@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-main: #ffffff;
    --bg-card: #f8fafc;
    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.1);
    --secondary: #7c3aed;
    --text-main: #0f172a;
    --text-muted: #334155;
    --border: rgba(0, 0, 0, 0.08);
    --glass: rgba(255, 255, 255, 0.9);
    --navbar-bg: rgba(255, 255, 255, 0.8);
    --highlight: #2563eb;
}

[data-theme="dark"] {
    --bg-main: #0a0c10;
    --bg-card: #111827;
    --primary: #60a5fa;
    --primary-glow: rgba(96, 165, 250, 0.2);
    --secondary: #a78bfa;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(23, 27, 34, 0.8);
    --navbar-bg: rgba(10, 12, 16, 0.8);
    --highlight: #60a5fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
    z-index: -1;
}

[data-theme="dark"]::before {
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0a0c10 100%);
}

.glow-spot {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary-glow);
    filter: blur(120px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
}

/* Typography & Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-main {
    color: var(--text-main) !important;
}

.highlight {
    color: var(--highlight) !important;
    font-weight: 700;
}

.lead {
    color: var(--text-muted);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: background 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.theme-toggle {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* About Section */
#about {
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.profile-img-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 2rem;
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--border);
    box-shadow: 0 0 20px var(--primary-glow);
}

.profile-img-container::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    z-index: -1;
    opacity: 0.4;
    filter: blur(15px);
}

/* Experience / Clients Grid */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.experience-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px var(--primary-glow);
}

.experience-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Skills */
.skill-pill {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 100px;
    margin: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-pill:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Project Cards */
.card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 24px !important;
    overflow: hidden;
    transition: all 0.4s ease !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.card .card-title {
    color: var(--text-main);
}

.card .card-text {
    color: var(--text-muted);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary) !important;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.card:hover .card-img-top {
    opacity: 1;
}

.card-body {
    padding: 2rem !important;
}

/* Contact Buttons */
.btn-modern {
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-modern {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-primary-modern:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.btn-outline-modern {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline-modern:hover {
    background: var(--glass);
    border-color: var(--text-main);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    background: var(--bg-dark);
    padding: 3rem 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.17, 0.55, 0.55, 1);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

.experience-card.reveal,
.card.reveal {
    transition-delay: 0.1s;
}

.skill-pill.reveal {
    transition: all 0.4s ease;
}

/* Adjustments for profile parallax */
#profileImg {
    transition: transform 0.1s ease-out;
}