/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    /* Colors */
    --bg-main: #0A0A0E;
    --bg-secondary: #12121A;
    --primary: #D4AF37;
    --primary-light: #F3E5AB;
    --secondary: #DAA520;
    --accent: #B8860B;
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --danger: #EF4444;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(12px);

    /* Gradients */
    --gradient-text: linear-gradient(135deg, var(--primary-light), var(--secondary), var(--accent));
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));

    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Custom Cursor Glow
   ========================================================================== */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,0.6) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, opacity 0.2s;
    opacity: 0;
    mix-blend-mode: screen;
}

/* ==========================================================================
   Stars / Particles Background
   ========================================================================== */
#stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.65; /* Slightly softer, elegant stars */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: radial-gradient(circle at 15% 20%, rgba(26, 12, 54, 0.55) 0%, rgba(8, 8, 12, 1) 60%),
                radial-gradient(circle at 85% 80%, rgba(12, 22, 48, 0.6) 0%, rgba(8, 8, 12, 1) 70%),
                #0A0A0E;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-attachment: fixed;
}

/* Cosmic Cyber Grid Background Overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center;
    z-index: -2;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* ==========================================================================
   Animated Background Blobs
   ========================================================================== */
.blob {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(212, 175, 55, 0.08) 40%, transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    top: 40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, rgba(59, 130, 246, 0.08) 50%, transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    bottom: -10%;
    left: 20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(212, 175, 55, 0.05) 50%, transparent 70%);
    animation-delay: -10s;
    opacity: 0.3;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.py-0 {
    padding-top: 0;
    padding-bottom: 0;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 40%, var(--accent) 60%, var(--primary-light) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
    animation: shimmer-text 4s linear infinite;
}

@keyframes shimmer-text {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.section-header {
    margin-bottom: 4rem;
    position: relative;
}

#about .section-header::before,
#achievements .section-header::before,
#experience .section-header::before,
#skills .section-header::before,
#projects .section-header::before,
#contact .section-header::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    filter: blur(90px);
    z-index: -1;
    opacity: 0.35;
    border-radius: 50%;
    pointer-events: none;
    animation: float-pulse 10s infinite alternate;
}

#experience .section-header::before,
#projects .section-header::before {
    top: -220px;
    left: -150px;
}

#skills .section-header::before,
#contact .section-header::before {
    left: auto;
    right: -150px;
    top: -150px;
}

#about .section-header::before,
#achievements .section-header::before {
    left: 50%;
    top: 50%;
    margin-left: -200px;
    margin-top: -200px;
    opacity: 0.15;
    width: 400px;
    height: 400px;
}

@keyframes float-pulse {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.25;
    }

    100% {
        transform: scale(1.1) translate(30px, 20px);
        opacity: 0.4;
    }
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible .section-title::after,
.section-header .section-title::after {
    width: 60px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 300;
    margin-top: 0.8rem;
}

/* ==========================================================================
   Glassmorphism Components
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-normal), background var(--transition-normal), border var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    /* NO overflow:hidden here — floating badges need to escape */
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212,175,55,0.04) 0%, transparent 60%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
    z-index: 0;
}

.glass-card:hover {
    background: var(--glass-hover);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(212,175,55,0.1);
}

.glass-card:hover::before {
    opacity: 1;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 14, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: padding var(--transition-normal);
}

.glass-nav.scrolled {
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-btn {
    padding: 0.6rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    border-radius: 50px;
    transition: opacity var(--transition-fast);
    z-index: -1;
}

.nav-btn:hover {
    color: #0A0A0E;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.nav-btn:hover::after {
    opacity: 1;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-main);
    padding: 0.4rem 0.6rem;
    border-radius: 10px;
    transition: background var(--transition-fast), color var(--transition-fast);
    z-index: 1001;
}

.mobile-menu-btn:hover {
    background: var(--glass-hover);
    color: var(--primary-light);
}

/* Mobile Drawer */
.mobile-drawer {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 10, 14, 0.97);
}

.mobile-drawer.open {
    max-height: 420px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 0.8rem 1.2rem 1.4rem;
    gap: 0.2rem;
}

.mobile-nav-link {
    padding: 0.85rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 12px;
    transition: all var(--transition-fast);
    display: block;
    border: 1px solid transparent;
}

.mobile-nav-link:hover {
    background: var(--glass-hover);
    color: var(--text-main);
    border-color: var(--glass-border);
    padding-left: 1.6rem;
}

.mobile-connect-btn {
    margin-top: 0.6rem !important;
    background: var(--gradient-primary) !important;
    color: #0A0A0E !important;
    font-weight: 700 !important;
    text-align: center;
    border-radius: 50px !important;
    border: none !important;
}

.mobile-connect-btn:hover {
    opacity: 0.88;
    padding-left: 1.2rem !important;
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(212,175,55,0.35);
}

/* Backdrop */
.mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 998;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.mobile-backdrop.show {
    display: block;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 110px;
}

.hero-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    min-height: 48px;
    /* Prevents layout shift during typing */
}

#typewriter {
    color: var(--primary-light);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(243, 229, 171, 0.45), 0 0 20px rgba(212, 175, 55, 0.2);
    border-right: 3px solid var(--primary);
    padding-right: 4px;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary); }
}



.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all var(--transition-normal);
}

.social-links a:hover {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px) rotate(8deg);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.5);
}

/* ==========================================================================
   Hero Image
   ========================================================================== */
.hero-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Outer glow pulse only */

@keyframes pulse-glow {
    0% { opacity: 0.6; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1.05); }
}

.image-card {
    padding: 6px;
    position: relative;
    z-index: 2;
    width: clamp(300px, 44vw, 480px);
    height: clamp(300px, 44vw, 480px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.03));
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow:
        0 0 60px rgba(212, 175, 55, 0.15),
        0 0 120px rgba(212, 175, 55, 0.05),
        inset 0 0 30px rgba(212, 175, 55, 0.05);
    transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.image-card:hover {
    box-shadow:
        0 0 80px rgba(212, 175, 55, 0.3),
        0 0 150px rgba(212, 175, 55, 0.1),
        inset 0 0 40px rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.7);
}

.image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(1.1) brightness(1.02);
    transition: transform var(--transition-slow), filter var(--transition-slow);
}

.image-card:hover .profile-img {
    transform: scale(1.06);
    filter: contrast(1.1) saturate(1.2) brightness(1.05);
}

/* Floating Tech Badges — positioned to touch the profile circle edge */
.floating-badge {
    position: absolute;
    background: rgba(15, 15, 22, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.65rem 1.2rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 14px rgba(212, 175, 55, 0.15);
    z-index: 10;
    letter-spacing: 0.3px;
    transition: all var(--transition-normal);
}

.floating-badge:hover {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.25);
    transform: translateY(-3px) scale(1.03);
}

.floating-badge i {
    font-size: 1.05rem;
}

/* Badge 1 — Python: upper-left, touching the circle */
.badge-1 {
    top: 18%;
    left: 2%;
    animation: float-small 6s infinite ease-in-out alternate;
}

/* Badge 2 — APIs: right side, touching the circle */
.badge-2 {
    bottom: 22%;
    right: 2%;
    animation: float-small 6s infinite ease-in-out alternate;
    animation-delay: -3s;
}

.badge-3 {
    bottom: 5%;
    left: 0%;
    animation: float-small 7s infinite ease-in-out alternate;
    animation-delay: -1.5s;
}

@keyframes float-small {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    padding: 3rem;
    text-align: center;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.stat-item:not(:last-child) {
    border-right: 1px solid var(--glass-border);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 0.2rem;
    font-family: var(--font-mono);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Colorful About Icons & Custom Glow */
.about-grid .about-card:nth-child(1) .about-icon {
    color: #C084FC; /* Purple/Violet */
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}
.about-grid .about-card:nth-child(1):hover .about-icon {
    background: #8B5CF6;
    color: #fff;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.45);
}

.about-grid .about-card:nth-child(2) .about-icon {
    color: #FBBF24; /* Amber/Gold */
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}
.about-grid .about-card:nth-child(2):hover .about-icon {
    background: #F59E0B;
    color: #fff;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.45);
}

.about-grid .about-card:nth-child(3) .about-icon {
    color: #22D3EE; /* Cyan/Teal */
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}
.about-grid .about-card:nth-child(3):hover .about-icon {
    background: #06B6D4;
    color: #fff;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.45);
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.currently-learning {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.currently-learning h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
}

.learning-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.tag:hover {
    background: rgba(212,175,55,0.12);
    border-color: rgba(212,175,55,0.3);
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* ==========================================================================
   Experience Timeline
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    margin-left: 50px;
    padding: 2rem;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    left: -35px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(79, 70, 229, 0.15);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.timeline-company {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-desc {
    color: var(--text-muted);
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 3rem;
}

.skills-category {
    padding: 2.5rem;
}

.skills-category h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    color: var(--primary-light);
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    width: 0;
    /* Animated via JS */
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.1, 1);
    position: relative;
    overflow: hidden;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    animation: progress-shine 2.5s infinite;
}

@keyframes progress-shine {
    0% { left: -100%; }
    60%, 100% { left: 150%; }
}

/* ==========================================================================
   Achievements Section
   ========================================================================== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.achievement-card {
    padding: 2.5rem;
    position: relative;
    overflow: hidden; /* specific overflow for achievement cards */
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.achievement-card:hover::before {
    opacity: 1;
}

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: icon-pulse 3s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.achievement-icon.medal {
    color: #FBBF24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    animation-delay: 0s;
}

.achievement-icon.certificate {
    color: #60A5FA;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
    animation-delay: 1s;
}

.achievement-icon.shield {
    color: #34D399;
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.5);
    animation-delay: 2s;
}

/* Support direct children (new layout matching screenshot) */
.achievement-card h3,
.achievement-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.achievement-card > h4,
.achievement-content h4 {
    color: var(--primary-light);
    font-size: 0.92rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.achievement-card > p,
.achievement-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 3rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden; /* specific overflow for project cards */
    border-radius: 20px;
}

.project-img {
    width: 100%;
    height: 250px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.project-img img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
    filter: brightness(0.85) saturate(0.9);
}

.project-card:hover .project-img img {
    transform: scale(1.08);
    filter: brightness(1) saturate(1.1);
}

.project-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,14,0.7) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.img-placeholder {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-slow);
}

.project-card:hover .img-placeholder {
    transform: scale(1.1);
    color: var(--primary-light);
}

.project-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-tags .tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.8rem;
    background: rgba(212, 175, 55, 0.08);
    color: var(--primary-light);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all var(--transition-fast);
}

.project-tags .tag:hover,
.learning-tags .tag:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.project-link:hover {
    color: var(--primary-light);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 4rem;
    padding: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.method .icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-light);
}

.method h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.method a {
    font-weight: 500;
    font-size: 1.1rem;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.method a:hover {
    color: var(--primary-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12), 0 0 20px rgba(212, 175, 55, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(156, 163, 175, 0.5);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.glass-footer {
    background: rgba(10, 10, 14, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.footer-logo a {
    font-size: 1.8rem;
    font-weight: 800;
}

.footer-logo span {
    color: var(--primary);
}

.footer-logo p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--primary);
    margin-left: 0.3rem;
    letter-spacing: 1px;
}

/* ==========================================================================
   Brand Icon Colors
   ========================================================================== */
.fa-linkedin-in {
    color: #0A66C2;
}

.fa-github {
    color: #ffffff;
}

.fa-instagram {
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fa-envelope {
    color: #EA4335;
}

/* Ensure hover states override brand colors */
.social-links a:hover i,
.footer-social a:hover i {
    background: none !important;
    -webkit-text-fill-color: white !important;
    color: white !important;
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease-out, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children inside visible fade-in */
.fade-in.visible > * {
    animation: none;
}

/* Scroll progress bar at top of page */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--gradient-primary);
    z-index: 2000;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(212,175,55,0.6);
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.6rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .about-grid,
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-container {
        grid-template-columns: 1fr;
    }
}

/* ── Tablet & Desktop: 769px+ → full nav, no hamburger ── */
@media (min-width: 769px) {
    .mobile-menu-btn,
    .mobile-drawer,
    .mobile-backdrop {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
        gap: 1.8rem;
    }

    .nav-btn {
        display: inline-flex !important;
    }
}

/* ── Mobile: 768px and below → hamburger only ── */
@media (max-width: 768px) {
    *, *::before, *::after {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    #stars-canvas {
        max-width: 100vw !important;
        overflow: hidden !important;
    }

    .section {
        padding: 4rem 0;
        overflow: hidden; /* Prevent horizontal leaks */
    }

    .nav-links,
    .nav-btn {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-drawer {
        display: block;
    }

    .glass-nav {
        z-index: 999;
    }

    /* Hero fixes */
    .hero {
        padding-top: 90px;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-title {
        font-size: 2.6rem;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        min-height: 38px;
    }

    .hero-description {
        font-size: 0.97rem;
        margin: 0 auto 2rem;
        max-width: 90%;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.9rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .social-links {
        justify-content: center;
    }

    /* Profile image smaller on mobile */
    .image-card {
        width: clamp(200px, 70vw, 300px);
        height: clamp(200px, 70vw, 300px);
    }

    /* Floating badges on mobile */
    .floating-badge {
        font-size: 0.78rem;
        padding: 0.45rem 0.85rem;
        border-radius: 10px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem;
        margin-top: -1rem;
    }

    .stat-item {
        border-right: none !important;
    }

    .about-grid,
    .achievements-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        margin-left: 30px;
        padding: 1.5rem;
    }

    .timeline-dot {
        left: -26px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 3rem;
    }

    .footer-content,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    /* Mobile drawer spacing fix */
    .mobile-nav-links {
        padding: 0.5rem 1rem 1.2rem;
        gap: 0.1rem;
    }

    .mobile-nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.98rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-card,
    .achievement-card {
        padding: 1.8rem;
    }
}

/* ── Very small phones: below 380px ── */
@media (max-width: 380px) {
    .hero-title {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .image-card {
        width: 220px;
        height: 220px;
    }
}

/* All responsive styles are now in the comprehensive blocks above */