/* ================= PREMIUM DESIGN SYSTEM ================= */
:root {
    /* Premium Dark Palette */
    --deep-black: #000000;
    --near-black: #0a0a0a;
    --charcoal: #111111;
    --card-bg: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(255, 255, 255, 0.08);
    
    /* Premium Accent - Subtle Purple/Blue */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-glow: rgba(99, 102, 241, 0.3);
    
    /* Text Hierarchy */
    --white: #ffffff;
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    
    /* Gradients */
    --gradient-spotlight: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15), transparent 50%);
    --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    --gradient-border: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    
    /* Shadows */
    --shadow-premium: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 60px var(--accent-glow);
    
    /* Blur Effects */
    --blur-glass: blur(20px);
    
    --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
    --nav-height: 70px;
}

/* ================= RESET & BASE ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--deep-black);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; transition: all 0.3s var(--ease-smooth); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ================= SCROLL PROGRESS ================= */
.scroll-progress-track {
    position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 9999; background: transparent;
}
.scroll-progress-bar {
    height: 100%; 
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    width: 0%; 
    transition: width 0.1s ease;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ================= FLOATING ELEMENTS ================= */
.floating-logo {
    position: fixed; 
    top: 1.5rem; 
    left: 2rem; 
    font-size: 1.6rem; 
    font-weight: 700; 
    z-index: 1000;
    color: var(--white); 
    cursor: pointer; 
    transition: all 0.4s var(--ease-smooth);
    opacity: 1;
}

/* Hide floating logo when navbar is visible */
.navbar.visible ~ .floating-logo,
.navbar.visible ~ .floating-resume {
    opacity: 0;
    pointer-events: none;
}

.floating-logo:hover {
    transform: scale(1.05);
    color: var(--accent-primary);
}

.floating-resume {
    position: fixed; 
    top: 1.5rem; 
    right: 2rem; 
    z-index: 1000;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: var(--blur-glass);
    color: var(--white);
    padding: 0.65rem 1.5rem; 
    border-radius: 10px; 
    font-weight: 600; 
    font-size: 0.9rem;
    cursor: pointer; 
    transition: all 0.4s var(--ease-smooth); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.floating-resume:hover { 
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px); 
    box-shadow: var(--shadow-glow);
}

/* ================= VERTICAL SOCIALS ================= */
.vertical-socials {
    position: fixed;
    left: 2rem;
    bottom: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.vertical-socials::after {
    content: '';
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    margin-top: 0.8rem;
}

.vertical-socials.hide-socials {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Prevents clicking them when invisible */
    transform: translateY(20px); /* Optional: makes them sink down slightly */
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    backdrop-filter: var(--blur-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 1rem;
    transition: all 0.3s var(--ease-smooth);
    cursor: pointer;
    border: 1px solid var(--card-border);
}

.social-icon:hover {
    transform: translateY(-5px);
    background: var(--accent-primary);
    color: var(--white);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

/* ================= NAVBAR (GLASS MORPHISM) ================= */
.navbar {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: var(--nav-height); 
    z-index: 999;
    background: rgba(10, 10, 10, 0.8); 
    backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid var(--card-border);
    transform: translateY(-100%); 
    opacity: 0; 
    transition: all 0.4s var(--ease-smooth); 
    pointer-events: none;
}

.navbar.visible { 
    transform: translateY(0); 
    opacity: 1; 
    pointer-events: auto; 
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 100%; 
}

.logo { 
    font-weight: 700; 
    font-size: 1.6rem; 
    color: var(--white);
}

.nav-links { 
    display: flex; 
    gap: 2.5rem; 
    align-items: center; 
}

.nav-links a { 
    font-weight: 500; 
    font-size: 0.9rem; 
    color: var(--text-tertiary); 
    position: relative; 
}

.nav-links a:hover, 
.nav-links a.active { 
    color: var(--white); 
}

.nav-links a.active::after {
    content: ''; 
    position: absolute; 
    bottom: -8px; 
    left: 0; 
    width: 100%; 
    height: 2px; 
    background: var(--accent-primary);
    border-radius: 2px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: var(--blur-glass);
    color: var(--white) !important; 
    padding: 0.65rem 1.5rem !important; 
    border-radius: 10px !important; 
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.nav-btn:hover { 
    background: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    transform: translateY(-2px);
}

/* ================= HERO SECTION - PREMIUM WITH GRID + CURSOR SPOTLIGHT ================= */
.hero-section {
    position: relative; 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: var(--deep-black);
    overflow: hidden; 
    padding: 140px 0 100px;
}

/* Animated Grid Background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 40%, transparent 100%);
    pointer-events: none;
    animation: grid-flow 20s linear infinite;
    z-index: 0;
}

@keyframes grid-flow {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* Cursor Spotlight Effect */
.hero-spotlight {
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    will-change: transform;
}

.hero-spotlight.active {
    opacity: 1;
}

.hero-split {
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 6rem; 
    align-items: center; 
    position: relative; 
    z-index: 10;
}

.hero-text { 
    text-align: left; 
}

.hero-role { 
    display: block; 
    font-size: 0.95rem; 
    font-weight: 600; 
    color: var(--text-tertiary); 
    margin-bottom: 1.5rem; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
}

h1 { 
    font-size: 5.5rem; 
    line-height: 1.05; 
    font-weight: 700; 
    margin-bottom: 1.5rem; 
    color: var(--white);
    letter-spacing: -0.02em;
}

.gradient-text { 
    background: linear-gradient(135deg, var(--white) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

/* Shimmer Effect on Name */
.gradient-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shimmer 2.5s ease-in-out 0.8s 1;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.hero-sub { 
    font-size: 1.35rem; 
    color: var(--text-tertiary); 
    margin-bottom: 3rem; 
    max-width: 650px; 
    min-height: 80px;
    font-weight: 400;
    line-height: 1.7;
}

/* ================= PROFILE CARD - GLASS EFFECT ================= */
.profile-container {
    position: relative; 
    width: 100%; 
    max-width: 400px; 
    margin: 0 auto; 
    perspective: 1500px;
}

.profile-card {
    position: relative; 
    width: 100%; 
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    background: transparent;
}

.profile-img {
    width: 100%; 
    height: auto;
    object-fit: cover; 
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--charcoal);
    animation: breathing-glow 4s ease-in-out infinite;
}

@keyframes breathing-glow {
    0%, 100% { 
        box-shadow: 
            0 30px 60px rgba(0, 0, 0, 0.6), 
            0 0 40px rgba(99, 102, 241, 0.2),
            0 0 80px rgba(99, 102, 241, 0.1);
        filter: brightness(1);
    }
    50% { 
        box-shadow: 
            0 30px 60px rgba(0, 0, 0, 0.6), 
            0 0 60px rgba(99, 102, 241, 0.5),
            0 0 120px rgba(99, 102, 241, 0.3);
        filter: brightness(1.05);
    }
}

.floating-badge {
    position: absolute; 
    background: var(--card-bg);
    backdrop-filter: var(--blur-glass);
    padding: 0.75rem 1.3rem; 
    border-radius: 100px; 
    font-size: 0.85rem; 
    font-weight: 600;
    box-shadow: var(--shadow-premium); 
    display: flex; 
    gap: 0.6rem; 
    align-items: center;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    transition: all 0.3s var(--ease-smooth);
}

.floating-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
}

.floating-badge i { 
    color: var(--accent-primary); 
    font-size: 1rem; 
}

.badge-1 { 
    top: 40px; 
    left: -60px; 
    animation: float-enhanced 6s infinite ease-in-out;
}

.badge-2 { 
    bottom: 60px; 
    right: -60px; 
    animation: float-enhanced 6s infinite ease-in-out;
    animation-delay: 3s;
}

@keyframes float-enhanced { 
    0%, 100% { transform: translateY(0) scale(1); } 
    50% { transform: translateY(-15px) scale(1.02); } 
}

/* ================= BUTTONS ================= */
.hero-cta { 
    display: flex; 
    gap: 1.5rem; 
    align-items: center; 
    flex-wrap: wrap; 
}

.btn { 
    padding: 1rem 2rem; 
    border-radius: 12px; 
    font-weight: 600; 
    display: inline-flex; 
    align-items: center; 
    gap: 0.6rem; 
    transition: all 0.3s var(--ease-smooth); 
    cursor: pointer; 
    border: none; 
    font-size: 1rem;
}

.btn-primary { 
    background: var(--accent-primary); 
    color: var(--white); 
    box-shadow: var(--shadow-premium);
}

.btn-primary:hover { 
    background: var(--accent-secondary); 
    transform: translateY(-3px); 
    box-shadow: var(--shadow-glow);
}

.btn-text { 
    background: var(--card-bg);
    backdrop-filter: var(--blur-glass);
    color: var(--text-primary); 
    border: 1px solid var(--card-border); 
}

.btn-text:hover { 
    background: var(--card-hover); 
    border-color: rgba(255, 255, 255, 0.2);
}

/* ================= SECTION STYLES ================= */
.section { 
    padding: 120px 0; 
    position: relative;
    background: var(--deep-black);
}

.section-header { 
    text-align: center; 
    margin-bottom: 5rem; 
}

.section-header h2 { 
    font-size: 3rem; 
    font-weight: 700; 
    margin-bottom: 1rem;
    color: var(--white);
    letter-spacing: -0.02em;
}

h2 .accent-text {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    position: relative;
    display: inline;
}

h2 .accent-text::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border-radius: 8px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(8px);
}

.section-header p {
    color: var(--text-tertiary);
    font-size: 1.15rem;
    font-weight: 400;
}

/* ================= ANIMATIONS ================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-smooth);
}

.fade-in-up.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-smooth);
}

.stagger-item.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= GLASS CARDS - PREMIUM ================= */
.skills-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem; 
}

.skill-card {
    background: var(--card-bg);
    backdrop-filter: var(--blur-glass);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s var(--ease-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--white);
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-premium);
    position: relative;
    z-index: 1;
}

.skill-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.skill-list {
    text-align: left;
    position: relative;
    z-index: 1;
}

.skill-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

.skill-list li:last-child {
    border-bottom: none;
}

/* ================= EXPERIENCE - CLEAN TIMELINE ================= */
.experience-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.exp-card {
    background: var(--card-bg);
    backdrop-filter: var(--blur-glass);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem 1.8rem;
    position: relative;
    transition: all 0.3s var(--ease-smooth);
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
    border-radius: 16px;
}

.exp-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.exp-card:hover::before {
    opacity: 1;
}

.exp-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.exp-header h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.role-title {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.exp-date {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
}

.exp-bullets {
    flex: 1;
    position: relative;
    z-index: 1;
}

.exp-bullets li {
    padding-left: 1.3rem;
    margin-bottom: 0.9rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
    font-size: 0.9rem;
}

.exp-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* ================= PROJECTS - GLASS CARDS ================= */
.project-row { 
    display: grid; 
    grid-template-columns: 0.9fr 1.1fr; 
    gap: 4rem; 
    align-items: center; 
    margin-bottom: 6rem; 
}

.project-visual { 
    height: 320px; 
    background: var(--card-bg);
    backdrop-filter: var(--blur-glass);
    border: 1px solid var(--card-border); 
    border-radius: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 4rem; 
    color: var(--accent-primary); 
    transition: all 0.3s var(--ease-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.project-visual:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.project-visual:hover::before {
    opacity: 1;
}

.project-visual i {
    position: relative;
    z-index: 1;
}

.project-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    letter-spacing: -0.01em;
}

.project-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tags { 
    margin-bottom: 2rem; 
}

.project-tags span { 
    font-family: 'Courier Prime', monospace; 
    background: var(--card-bg);
    backdrop-filter: var(--blur-glass);
    border: 1px solid var(--card-border); 
    padding: 6px 14px; 
    border-radius: 8px; 
    color: var(--accent-primary); 
    margin-right: 8px; 
    font-size: 0.8rem; 
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
    transition: all 0.3s var(--ease-smooth);
}

.project-tags span:hover {
    background: var(--accent-primary);
    color: var(--white);
    border-color: var(--accent-primary);
}

.project-link { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    font-weight: 600; 
    color: var(--accent-primary); 
    font-size: 1.05rem;
    transition: all 0.3s var(--ease-smooth);
}

.project-link:hover { 
    gap: 0.8rem; 
    color: var(--accent-secondary);
}

/* ================= CONTACT ================= */
.contact-section {
    background: var(--deep-black);
    padding: 120px 0;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.35), transparent 70%);
    pointer-events: none;
}

.contact-wrapper { 
    text-align: center; 
    max-width: 800px; 
    margin: 0 auto; 
    position: relative;
    z-index: 1;
}

.contact-wrapper h2 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--text-tertiary);
    margin-bottom: 4rem;
    font-weight: 400;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.btn-email { 
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--accent-primary); 
    color: var(--white); 
    font-size: 1.1rem; 
    padding: 1.1rem 2.5rem; 
    border-radius: 12px; 
    font-weight: 600; 
    transition: all 0.3s var(--ease-smooth); 
    box-shadow: var(--shadow-premium);
}

.btn-email:hover { 
    background: var(--accent-secondary);
    transform: scale(1.05) translateY(-3px); 
    box-shadow: var(--shadow-glow);
}

.contact-socials {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.contact-social-link {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--card-bg);
    backdrop-filter: var(--blur-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 1.3rem;
    transition: all 0.3s var(--ease-smooth);
    border: 1px solid var(--card-border);
}

.contact-social-link:hover {
    background: var(--accent-primary);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-primary);
}

/* ================= FOOTER ================= */
footer { 
    padding: 3rem 0; 
    background: var(--deep-black); 
    border-top: 1px solid var(--card-border); 
    text-align: center; 
    color: var(--text-tertiary);
}

.footer-socials { 
    display: flex; 
    justify-content: center; 
    gap: 2rem; 
    margin-top: 1.5rem; 
}

.footer-socials a { 
    color: var(--text-tertiary); 
    font-size: 1.2rem; 
    transition: all 0.3s var(--ease-smooth); 
}

.footer-socials a:hover { 
    color: var(--accent-primary); 
    transform: translateY(-3px); 
}

/* ================= MODAL - GLASS ================= */
.modal {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.95); 
    backdrop-filter: var(--blur-glass);
    z-index: 2000; 
    justify-content: center; 
    align-items: center;
    padding: 1rem;
}

.modal.active { 
    display: flex; 
}

.modal-content {
    width: 100%; 
    max-width: 900px; 
    height: 90vh; 
    background: var(--card-bg); 
    backdrop-filter: var(--blur-glass);
    border-radius: 20px;
    display: flex; 
    flex-direction: column; 
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.modal-header { 
    padding: 1.5rem 2rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid var(--card-border); 
    background: rgba(10, 10, 10, 0.5);
}

.modal-header h3 {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
}

.modal-close { 
    cursor: pointer; 
    font-size: 2rem; 
    color: var(--text-tertiary); 
    transition: all 0.3s var(--ease-smooth); 
    line-height: 1;
    font-weight: 300;
}

.modal-close:hover { 
    color: var(--accent-primary); 
    transform: rotate(90deg);
}

.modal-body { 
    flex: 1; 
    padding: 0; 
    overflow: hidden; 
}

.modal-body iframe { 
    width: 100%; 
    height: 100%; 
    border: none; 
}

.modal-footer { 
    padding: 1.5rem; 
    display: flex; 
    gap: 1rem; 
    justify-content: center; 
    border-top: 1px solid var(--card-border); 
    flex-wrap: wrap;
    background: rgba(10, 10, 10, 0.5);
}

.modal-footer .btn {
    border: 1px solid var(--card-border);
}

.modal-footer .btn-text {
    border-color: var(--card-border);
    color: var(--text-primary);
}

.modal-footer .btn-text:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--card-hover);
}

/* ================= MOBILE MENU ================= */
.hamburger { 
    display: none; 
    cursor: pointer; 
    z-index: 1100; 
    position: fixed; 
    right: 2rem; 
    top: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    backdrop-filter: var(--blur-glass);
    border-radius: 10px;
    border: 1px solid var(--card-border);
    padding: 10px;
    transition: all 0.3s var(--ease-smooth);
}

.hamburger:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.hamburger:hover span {
    background: var(--white);
}

.hamburger span { 
    display: block; 
    width: 100%; 
    height: 2px; 
    background: var(--text-primary); 
    margin: 4px 0; 
    transition: all 0.3s var(--ease-smooth);
    border-radius: 2px;
}

.hamburger.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.hamburger.active span {
    background: var(--white);
}

.hamburger.active span:nth-child(1) { 
    transform: rotate(45deg) translate(6px, 6px); 
}

.hamburger.active span:nth-child(2) { 
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active span:nth-child(3) { 
    transform: rotate(-45deg) translate(6px, -6px); 
}

.mobile-menu-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: var(--deep-black);
    z-index: 1050; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.4s var(--ease-smooth);
}

.mobile-menu-overlay.active { 
    opacity: 1; 
    pointer-events: auto; 
}

.mobile-menu-content { 
    display: flex; 
    flex-direction: column; 
    gap: 2.5rem; 
    text-align: center;
    padding: 2rem;
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--card-bg);
    backdrop-filter: var(--blur-glass);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.mobile-menu-close:hover {
    background: var(--accent-primary);
    color: var(--white);
    border-color: var(--accent-primary);
    transform: rotate(90deg);
}

.mobile-link { 
    font-size: 2rem; 
    font-weight: 600; 
    color: var(--text-primary);
    transition: all 0.3s var(--ease-smooth);
}

.mobile-link:hover {
    color: var(--accent-primary);
    transform: translateX(10px);
}

.mobile-resume-btn { 
    display: inline-block; 
    font-size: 1.2rem; 
    padding: 1rem 2.5rem; 
    background: var(--accent-primary); 
    color: var(--white); 
    border-radius: 12px; 
    margin-top: 1rem;
    font-weight: 600;
    transition: all 0.3s var(--ease-smooth);
}

.mobile-resume-btn:hover {
    background: var(--accent-secondary);
    transform: scale(1.05);
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 968px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    
    .hero-split {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    h1 {
        font-size: 4rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .experience-timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Fix mobile viewport issues */
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 1.5rem;
        max-width: 100%;
    }
    
    /* Make grid MORE visible on mobile */
    .hero-section::before {
        background-image: 
            linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
        background-size: 30px 30px;
        mask-image: radial-gradient(ellipse 100% 80% at 50% 40%, black 60%, transparent 100%);
        -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 40%, black 60%, transparent 100%);
        animation: grid-flow 15s linear infinite;
        opacity: 1;
        z-index: 0;
    }
    
    /* Add pulsing spotlight for mobile */
    .hero-section::after {
        content: '';
        position: absolute;
        top: 30%;
        left: 50%;
        transform: translateX(-50%);
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
        pointer-events: none;
        z-index: 1;
        animation: pulse-spotlight 8s ease-in-out infinite;
    }
    
    @keyframes pulse-spotlight {
        0%, 100% { 
            opacity: 0.4; 
            transform: translateX(-50%) scale(0.9); 
        }
        50% { 
            opacity: 0.8; 
            transform: translateX(-50%) scale(1.2); 
        }
    }
    
    /* Adjust floating elements for mobile */
    .vertical-socials {
        display: none;
    }
    
    .vertical-socials::after {
        height: 30px;
    }
    
    .social-icon {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    
    .floating-logo {
        left: 0.75rem;
        top: 1rem;
        font-size: 1.3rem;
    }
    
    .floating-resume {
        right: 0.75rem;
        top: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .hamburger {
        right: 0.75rem;
        top: 1rem;
        width: 38px;
        height: 38px;
    }
    
    .hero-section { 
        padding: 90px 0 60px;
        min-height: auto; 
    }
    
    .hero-split {
        grid-template-columns: 1fr;
        gap: 3rem;
        position: relative;
        z-index: 2;
    }
    
    .hero-text {
        text-align: center;
    }
    
    h1 { 
        font-size: 2.5rem; 
    }
    
    .hero-sub { 
        font-size: 1.05rem;
        margin: 0 auto 2rem;
    }
    
    .hero-role { 
        font-size: 0.8rem; 
        letter-spacing: 2px; 
    }
    
    .profile-container { 
        max-width: 280px;
    }
    
    .floating-badge { 
        font-size: 0.7rem; 
        padding: 0.5rem 0.9rem; 
    }
    
    .badge-1 { 
        left: -20px; 
        top: 25px; 
    }
    
    .badge-2 { 
        right: -20px; 
        bottom: 30px; 
    }
    
    .hero-cta { 
        flex-direction: column; 
        width: 100%; 
        gap: 1rem;
    }
    
    .btn { 
        width: 100%; 
        justify-content: center; 
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-card {
        padding: 2rem 1.5rem;
    }
    
    .experience-timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-row { 
        grid-template-columns: 1fr; 
        gap: 2rem;
        margin-bottom: 5rem;
    }
    
    .project-visual { 
        order: -1; 
        height: 200px; 
        font-size: 3rem;
    }
    
    .project-content h3 {
        font-size: 1.7rem;
    }
    
    .project-content p {
        font-size: 0.95rem;
    }
    
    .contact-wrapper h2 {
        font-size: 2.2rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .btn-email {
        font-size: 1rem;
        padding: 1rem 2rem;
    }
    
    .modal-content {
        width: 95%;
        height: 85vh;
        border-radius: 16px;
    }
    
    .modal-footer {
        flex-direction: column;
        padding: 1rem;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .hero-sub {
        font-size: 0.95rem;
    }
    
    .profile-container {
        max-width: 240px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .contact-wrapper h2 {
        font-size: 1.8rem;
    }
    
    .skill-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
    
    .project-visual {
        height: 160px;
        font-size: 2.5rem;
    }
    
    .floating-logo {
        font-size: 1.2rem;
    }
    
    .floating-resume {
        font-size: 0.75rem;
        padding: 0.45rem 0.9rem;
    }
}