/* Main CSS file containing all styles for the resume website */
/* Previously imported styles.css content now included directly here */

/* Import fallback fonts if Google Fonts fail */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* Set default theme - dark mode */
html {
    background-color: #0c0c0c;
    color: #ffffff;
}

/* Fallback font stack */
body {
    font-family: 'Rajdhani', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-logo .logo-text,
.hero-title,
.section-title {
    font-family: 'Orbitron', 'Courier New', monospace;
}
/* Import fallback fonts if Google Fonts fail */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* Set default theme - dark mode */
html {
    background-color: #0c0c0c;
    color: #ffffff;
}

/* Fallback font stack */
body {
    font-family: 'Rajdhani', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-logo .logo-text,
.hero-title,
.section-title {
    font-family: 'Orbitron', 'Courier New', monospace;
}

/* Fallback for Font Awesome icons */
.fas, .fab {
    font-style: normal;
    font-weight: 900;
    display: inline-block;
    text-rendering: auto;
}

.fas:before, .fab:before {
    content: 'G��'; /* Default bullet as fallback */
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

    /* Center a single card within its container and prevent horizontal scroll */
    .rec-cards-wrapper.center-card {
        /* Switch to flex layout to center the active card */
        display: flex !important;
        justify-content: center;
        align-items: stretch;
        gap: 0;
        /* Hide any horizontal overflow so no scrollbar appears */
        overflow-x: hidden !important;
        /* Disable scroll snapping/padding offsets used for the carousel */
        scroll-snap-type: none !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* When marquee mode was enabled, collapse the inner scroller to a centering flex row */
    .rec-cards-wrapper.center-card .scroller__inner {
        display: flex !important;
        width: 100% !important;
        justify-content: center;
        align-items: stretch;
        gap: 0;
        animation: none !important;
        transform: none !important;
    }

    /* Only keep the expanded card in flow to allow perfect centering */
    .rec-cards-wrapper.center-card .rec-card:not(.expanded) {
        display: none !important;
    }

    /* Constrain the centered card to never exceed the visible width */
    .rec-cards-wrapper.center-card .rec-card.expanded,
    .rec-cards-wrapper.center-card .rec-card.expanded .rec-card-inner {
        max-inline-size: min(100%, 720px);
        inline-size: min(100% - 16px, 720px);
    }

    /* Neutralize any transforms that could nudge the centered card */
    .rec-cards-wrapper.center-card .rec-card.expanded {
        transform: none !important;
    }


html {
    scroll-behavior: smooth;
}

/* CSS Variables for Theming */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #0c0c0c;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: rgba(255, 255, 255, 0);
    --bg-card-hover: rgba(0, 245, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --accent-primary: #00f5ff;
    --accent-secondary: #ff6b6b;
    --accent-tertiary: #00ff88;
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(0, 245, 255, 0.3);
    --shadow-primary: rgba(0, 245, 255, 0.2);
    --navbar-bg: rgba(12, 12, 12, 0.95);
    --navbar-bg-scroll: rgba(12, 12, 12, 0.98);
    
    /* Transition variables for smooth theme changes */
    --transition-duration: 0.3s;
    --transition-easing: ease;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-duration: 0s;
    }
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0);
    --bg-card-hover: rgba(0, 123, 191, 0.1);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --accent-primary: #0070f3;
    --accent-secondary: #f56565;
    --accent-tertiary: #38a169;
    --border-primary: rgba(0, 0, 0, 0.1);
    --border-accent: rgba(0, 112, 243, 0.3);
    --shadow-primary: rgba(0, 112, 243, 0.2);
    --navbar-bg: rgba(248, 250, 252, 0.95);
    --navbar-bg-scroll: rgba(248, 250, 252, 0.98);
}

body {
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    overflow-x: hidden;
    transition: color var(--transition-duration) var(--transition-easing), 
                background var(--transition-duration) var(--transition-easing);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Particles Background */
#particles-js {
    /* Full viewport particle layer (needs to receive mouse events) */
    position: fixed;
    width: 100vw; /* ensure full viewport width regardless of body layout */
    height: 100vh; /* ensure full viewport height */
    top: 0;
    left: 0;
    z-index: 0; /* was -1 (prevented interaction); keep >=0 so canvas can capture hover/click */
    /* IMPORTANT: do NOT set pointer-events:none; particles.js needs events for repulse/push */
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    transition: background 0.3s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-primary);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative; /* Ensure proper positioning context */
    overflow: visible; /* Allow absolutely positioned elements to be visible */
    gap: 20px; /* Add space between nav elements */
}

/* Navigation right side group - contains social icons, theme toggle, and hamburger */
.nav-right-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0; /* Prevent this group from shrinking */
}

.nav-logo .logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Theme Toggle Button - Now as flex item */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--accent-primary);
    margin-left: 0; /* No margin needed in flex container */
    position: relative; /* Keep as relative for flex item */
    flex-shrink: 0; /* Prevent button from shrinking in flex container */
    z-index: 1002; /* Ensure it's above other elements */
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    .theme-toggle {
        transition: none;
    }
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    transform: scale(1.1);
    box-shadow: 0 5px 15px var(--shadow-primary);
}

/* Enhanced focus styles for WCAG compliance */
.theme-toggle:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 245, 255, 0.2);
}

/* Light theme focus styles */
[data-theme="light"] .theme-toggle:focus {
    outline: 2px solid var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(0, 112, 243, 0.2);
}

/* Active state for better feedback */
.theme-toggle:active {
    transform: scale(0.95);
}

/* Loading state during theme transition */
.theme-transitioning .theme-toggle {
    pointer-events: none;
}

.theme-transitioning .theme-toggle i {
    animation: spin 0.5s ease-in-out;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(180deg); }
}

/* Respect reduced motion preferences for animations */
@media (prefers-reduced-motion: reduce) {
    .theme-transitioning .theme-toggle i {
        animation: none;
    }
}

.theme-toggle i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

/* Visually hidden class for screen reader announcements */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

/* Social Icons in Navigation */
.nav-social-icons {
    display: flex;
    gap: 16px;
    margin-left: 0; /* Remove margin since it's now in nav-right-group */
}

/* Navigation right side group - contains social icons, theme toggle, and hamburger */
.nav-container > .nav-social-icons,
.nav-container > .theme-toggle,
.nav-container > .hamburger {
    flex-shrink: 0; /* Prevent these elements from shrinking */
}

.social-icon {
    color: var(--text-primary);
    font-size: 20px;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
}


.social-icon:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
    box-shadow: 0 6px 16px -4px var(--shadow-primary);
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }

    .hamburger {
        display: flex;
        z-index: 1003;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0; /* Full height */
        gap: 0;
        flex-direction: column;
        background: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        z-index: 1001;
        padding-top: 80px; /* Space for navbar */
        backdrop-filter: blur(15px);
        box-shadow: 0 0 0 0 rgba(0,0,0,0);
    }

    .nav-menu.active {
        left: 0;
        box-shadow: 0 0 50px rgba(0,0,0,0.5);
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-link {
        font-size: 24px;
        display: inline-block;
        padding: 5px 0;
    }
    
    /* Ensure only valid nav items shown */
    .nav-social-icons {
        justify-content: center;
        margin-top: 20px;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    margin-bottom: 30px;
}

.title-line {
    display: block;
    font-size: 20px;
    color: var(--accent-primary);
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.title-main {
    display: block;
    font-size: 72px;
    font-weight: 900;
    background: linear-gradient(45deg, #00f5ff, #ff6b6b, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.title-subtitle {
    display: block;
    font-size: 24px;
    color: var(--text-primary);
    opacity: 0.8;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 1s ease 1.1s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 1.3s forwards;
}

.btn {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
}

.btn-primary {
    background: linear-gradient(45deg, #00f5ff, #0099cc);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-primary);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-element {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 60% 40%, rgba(0, 245, 255, 0.2), rgba(22, 34, 51, 0.6));
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite, pulse-glow 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 0 40px 5px rgba(0, 242, 255, 0.53), inset 0 4px 16px 0 rgba(0,0,0,0.6);
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.5s ease;
    backdrop-filter: blur(8px);
}

.floating-element:hover {
    transform: scale(1.02) rotate(-1deg);
    filter: brightness(1.7);
    box-shadow: 0 0 64px 18px rgba(0, 245, 255, 0.5), inset 0 4px 32px 0 rgba(22, 44, 68, 0.8);
}

.floating-download-link {
    display: inline-block;
    position: relative;
    text-decoration: none;
    color: var(--text-primary);
}

.download-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-element:hover .download-icon-container {
    opacity: 1;
}

.download-icon-container i {
    font-size: 48px;
    margin-bottom: 10px;
}

.download-icon-container span {
    font-size: 18px;
    font-weight: 600;
}


.floating-element::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 245, 255, 0.1), transparent);
    animation: rotate 4s linear infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-primary);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 80px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about {
    background: var(--bg-card);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-intro {
    font-size: 24px;
    color: var(--accent-primary);
    margin-bottom: 20px;
    font-weight: 500;
}

.about-details {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 900;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.about-image {
    text-align: center;
}

.image-placeholder {
    width: 250px;
    height: 250px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 245, 255, 0.1), rgba(255, 107, 107, 0.1));
    border: 3px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 50px var(--shadow-primary);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Featured Experience Highlight Card */
.experience-highlight {
    max-width: 860px;
    margin: 0 auto 32px auto; /* reduced gap */
    background: linear-gradient(145deg,
        color-mix(in srgb, var(--bg-card) 95%, var(--accent-primary) 5%) 0%,
        color-mix(in srgb, var(--bg-card) 97%, var(--accent-secondary) 3%) 100%);
    border: 1px solid var(--border-primary);
    border-radius: 26px;
    padding: 42px 48px 38px 48px;
    position: relative;
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 18px 48px -10px rgba(0,245,255,0.15), 0 4px 14px rgba(0,0,0,0.6);
    transition: border-color var(--transition-duration) var(--transition-easing),
                transform var(--transition-duration) var(--transition-easing),
                box-shadow var(--transition-duration) var(--transition-easing);
}

.experience-highlight::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 26px;
    padding: 1px;
    background: linear-gradient(60deg, var(--accent-primary), transparent 40%, var(--accent-secondary));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
        mask-composite: exclude;
    opacity: 0.35;
    pointer-events: none;
    transition: opacity var(--transition-duration) var(--transition-easing);
}

.experience-highlight:hover {
        border-color: var(--accent-primary);
        transform: translateY(-6px);
        box-shadow: 0 25px 60px -12px rgba(0,245,255,0.25), 0 8px 22px rgba(0,0,0,0.65);
}

.experience-highlight:hover::before { opacity: 0.6; }

.exp-header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.exp-role { font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: .5px; background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.exp-company { font-size: 18px; color: var(--accent-secondary); font-weight: 600; }
.exp-dates { font-size: 14px; color: var(--text-tertiary); margin-left: 10px; font-weight: 400; }

.exp-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.65; }
.exp-points > li { position: relative; padding-left: 36px; color: var(--text-secondary); transition: color var(--transition-duration) var(--transition-easing); }
.exp-points > li:hover { color: var(--text-primary); }
.exp-points > li:hover .point-icon { 
    background: rgba(0, 245, 255, 0.2); 
    border-color: var(--accent-primary); 
    transform: scale(1.1); 
}

/* Accessibility improvements */
.exp-points > li:focus-within .point-icon,
.exp-sublist li:focus-within .sublist-icon {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.exp-points > li:focus-within {
    color: var(--text-primary);
}

.exp-sublist li:focus-within {
    color: var(--text-secondary);
}
.exp-points strong { color: var(--accent-primary); font-weight: 600; }
/* Removed decorative dot because we use icon spans */
.exp-points > li::before { display:none; }
.point-icon { 
    position: absolute; 
    left: 0; 
    top: 2px; 
    width: 22px; 
    height: 22px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 16px; 
    color: var(--accent-primary); 
    background: rgba(0, 247, 255, 0); 
    border: 1px solid rgb(0 112 243 / 0%);; 
    border-radius: 6px; 
    transition: all var(--transition-duration) var(--transition-easing);
}
.exp-sublist { list-style: none; margin-top: 10px; padding-left: 0; display: flex; flex-direction: column; gap: 6px; }
.exp-sublist li { position: relative; padding-left: 20px; font-size: 15px; color: var(--text-tertiary); transition: color var(--transition-duration) var(--transition-easing); }
.exp-sublist li:hover { color: var(--text-secondary); }
.exp-sublist li .sublist-icon { position: absolute; left: 0; top: 2px; font-size: 12px; color: var(--accent-secondary); transition: color var(--transition-duration) var(--transition-easing); }
.exp-sublist li:hover .sublist-icon { color: var(--accent-primary); }

@media (max-width: 900px) {
    .experience-highlight { padding: 36px 34px 32px; }
    .exp-role { font-size: 30px; }
    .point-icon { width: 21px; height: 21px; font-size: 15px; }
    .exp-sublist li .sublist-icon { font-size: 11px; }
}
@media (max-width: 640px) {
    .experience-highlight { padding: 30px 26px 26px; }
    .exp-role { font-size: 26px; }
    .exp-points { font-size: 16px; }
    .exp-points > li { padding-left: 32px; }
    .point-icon { font-size: 18px; top: 3px; width: 20px; height: 20px; }
    .exp-sublist li { padding-left: 18px; font-size: 14px; }
    .exp-sublist li .sublist-icon { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .experience-highlight, .experience-highlight:hover { transform: none !important; transition: none !important; }
    .experience-highlight::before { transition: none !important; }
}

/* Anchor styling inside highlight (if any auto-linked) */
.experience-highlight a { color: var(--accent-primary); font-weight:600; text-decoration:none; }
.experience-highlight a:hover, .experience-highlight a:focus { text-decoration:underline; }

/* Timeline company links */
.timeline-company a { color: var(--accent-secondary); text-decoration: none; transition: color 0.3s ease; }
.timeline-company a:hover, .timeline-company a:focus { color: var(--accent-primary); text-decoration: underline; }

/* HUD timeline links */
.hud-card.timeline a { color: var(--accent-primary); text-decoration: none; transition: color 0.3s ease; }
.hud-card.timeline a:hover, .hud-card.timeline a:focus { color: var(--accent-secondary); text-decoration: underline; }

/* Fallback for browsers without mask-composite support */
@supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
    .experience-highlight::before { display:none; }
    .experience-highlight { border:1px solid var(--border-accent); }
}

/* Narrow mobile bullet layout adjustments */
@media (max-width:540px){
    .exp-points { gap:10px; }
    .exp-points > li { padding-left:34px; font-size:15px; }
    .point-icon { top:3px; font-size:14px; width:20px; height:20px; }
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
}

.timeline-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border: 4px solid var(--bg-secondary);
    border-radius: 50%;
    top: 0;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

.timeline-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-primary);
}

.timeline-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.timeline-company {
    font-size: 18px;
    color: var(--accent-secondary);
    margin-bottom: 5px;
}

.timeline-date {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 15px;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Timeline bullet list version */
.role-points { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; font-size:15px; line-height:1.55; }
.role-points li { position:relative; padding-left:32px; color: var(--text-secondary); }
.role-points strong { color: var(--accent-primary); font-weight:600; }
.role-points li i { position:absolute; left:0; top:4px; width:22px; height:22px; display:flex; align-items:center; justify-content:center; font-size:13px; color: var(--accent-primary); background: rgba(0,0,0,0.0); border:1px solid rgb(0 112 243 / 0%); border-radius:6px; }
@media (max-width:768px){
    .role-points { font-size:14px; }
    .role-points li { padding-left:30px; }
    .role-points li i { width:20px; height:20px; font-size:12px; top:4px; }
}

/* Skills Section */
.skills {
    background: var(--bg-card);
}

.skills-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ================= Dynamic Skill Carousels ================= */
.skill-carousels { display:flex; flex-direction:column; gap:70px; }
.skill-carousel { position:relative; }
.skill-carousel-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; flex-wrap:wrap; gap:16px; }
.skill-carousel-title { font-size:28px; font-weight:700; letter-spacing:.5px; background:linear-gradient(45deg,var(--accent-primary),var(--accent-secondary)); -webkit-background-clip:text; background-clip:text; color:transparent; display:flex; align-items:center; gap:12px; }
.skill-carousel-title i { font-size:24px; color:var(--accent-primary); filter:drop-shadow(0 0 6px rgba(0,245,255,.35)); }
.skill-carousel-controls { display:flex; align-items:center; gap:8px; }
.skill-btn { width:44px; height:44px; border-radius:12px; border:1px solid var(--border-accent); background:var(--bg-card); color:var(--accent-primary); display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:18px; transition:all .3s ease; position:relative; overflow:hidden; }
.skill-btn:focus { outline:2px solid var(--accent-primary); outline-offset:2px; }
.skill-btn:hover { background:var(--bg-card-hover); transform:translateY(-3px); box-shadow:0 8px 22px -6px var(--shadow-primary); }
.skill-btn[disabled] { opacity:.35; cursor:not-allowed; transform:none; box-shadow:none; }
.skill-progress-bar { position:relative; width:160px; height:6px; background:var(--border-primary); border-radius:4px; overflow:hidden; }
.skill-progress-fill { position:absolute; left:0; top:0; height:100%; width:0%; background:linear-gradient(90deg,var(--accent-primary),var(--accent-secondary)); transition:width .4s ease; }
.skill-track-wrapper { position:relative; }
.skill-track { display:flex; gap:26px; overflow-x:auto; scroll-behavior:smooth; padding:8px 4px 10px; scrollbar-width:none; }
.skill-track::-webkit-scrollbar { display:none; }
.skill-card { flex:0 0 clamp(210px,22vw,280px); background:linear-gradient(145deg,color-mix(in srgb,var(--bg-card) 92%, var(--accent-primary) 8%), color-mix(in srgb,var(--bg-card) 96%, var(--accent-secondary) 4%)); border:1px solid var(--border-primary); border-radius:22px; padding:24px 20px 22px; position:relative; backdrop-filter:blur(14px) saturate(140%); display:flex; flex-direction:column; gap:14px; transition:border-color .35s var(--transition-easing), transform .4s var(--transition-easing), box-shadow .4s var(--transition-easing); }
.skill-card:before { content:""; position:absolute; inset:0; border-radius:22px; padding:1px; background:linear-gradient(60deg,var(--accent-primary),transparent 40%, var(--accent-secondary)); -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; opacity:.4; pointer-events:none; transition:opacity .4s ease; }
@supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)) { .skill-card:before { display:none; } }
.skill-card:hover { border-color:var(--accent-primary); transform:translateY(-10px) rotate3d(.5,1,0,6deg); box-shadow:0 25px 60px -18px rgba(0,245,255,.25),0 8px 24px rgba(0,0,0,.55); }
.skill-card:hover:before { opacity:.75; }
.skill-card-icon { width:50px; height:50px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:24px; color:var(--accent-primary); background:linear-gradient(135deg,rgba(0,245,255,.15),rgba(255,107,107,.15)); border:1px solid var(--border-accent); box-shadow:0 6px 20px -8px var(--shadow-primary); }
.skill-card-title { font-size:18px; font-weight:600; letter-spacing:.4px; color:var(--text-primary); line-height:1.25; }
.skill-card-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:auto; }
.skill-tag { font-size:11px; letter-spacing:.5px; text-transform:uppercase; padding:4px 10px 3px; border-radius:40px; background:var(--bg-card-hover); border:1px solid var(--border-accent); color:var(--accent-primary); font-weight:600; position:relative; overflow:hidden; }
.skill-tag:before { content:""; position:absolute; inset:0; background:linear-gradient(120deg,var(--accent-primary),var(--accent-secondary)); opacity:.15; }

/* Category color accents via data attribute */
[data-category-color="blue"] .skill-card-icon { color:#00aaff; }
[data-category-color="green"] .skill-card-icon { color:#00ff88; }
[data-category-color="orange"] .skill-card-icon { color:#ff9f43; }
[data-category-color="purple"] .skill-card-icon { color:#b388ff; }
[data-category-color="red"] .skill-card-icon { color:#ff6b6b; }
[data-category-color="teal"] .skill-card-icon { color:#20c997; }
[data-category-color="gold"] .skill-card-icon { color:#f7c948; }
[data-category-color="rose"] .skill-card-icon { color:#ff87b0; }

/* Drag hint overlay */
.skill-drag-hint { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; pointer-events:none; font-size:13px; font-weight:600; letter-spacing:1px; color:var(--text-tertiary); opacity:0; background:linear-gradient(90deg,rgba(0,0,0,.45),rgba(0,0,0,.1),rgba(0,0,0,.45)); backdrop-filter:blur(3px); transition:opacity .4s ease; text-transform:uppercase; }
.skill-track[data-dragging="true"] + .skill-drag-hint { opacity:.85; }

/* Scroll shadows */
.skill-track-wrapper:before, .skill-track-wrapper:after { content:""; position:absolute; top:0; width:70px; height:100%; pointer-events:none; z-index:3; transition:opacity .35s ease; }
.skill-track-wrapper:before { left:0; background:linear-gradient(90deg,var(--bg-card) 10%, transparent); }
.skill-track-wrapper:after { right:0; background:linear-gradient(-90deg,var(--bg-card) 10%, transparent); }
.skill-track-wrapper[data-scroll-start="true"]:before { opacity:0; }
.skill-track-wrapper[data-scroll-end="true"]:after { opacity:0; }

/* Accessible reduced motion adjustments */
@media (prefers-reduced-motion: reduce) {
    .skill-card, .skill-card:hover { transform:none !important; transition:none !important; }
    .skill-track { scroll-behavior:auto; }
}

/* Responsive tweaks */
@media (max-width:1200px){ .skill-card { flex:0 0 clamp(200px,26vw,260px); } }
@media (max-width:900px){ .skill-card { flex:0 0 clamp(200px,32vw,250px); } .skill-carousel-title { font-size:24px; } }
@media (max-width:680px){ .skill-carousels { gap:50px; } .skill-card { flex:0 0 78%; } .skill-carousel-header { flex-direction:column; align-items:flex-start; } .skill-progress-bar { width:100%; order:3; } }
@media (max-width:480px){ .skill-card { flex:0 0 84%; padding:20px 18px 18px; } .skill-carousel-title { font-size:22px; } .skill-btn { width:40px; height:40px; } }

/* ============================================================ */

/* ===================== Skills Carousel Redesign ===================== */

/* Main Skills Section */
.skills {
    padding: 80px 0;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.skills-intro {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.skills-intro h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skills-intro p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Carousel Container */
.skills-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.categories-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
    margin-bottom: 40px;
}

.categories-carousel::-webkit-scrollbar {
    display: none;
}

.category-item {
    /* flex: 0 0 280px; */ /* Removed for grid layout */
    background: linear-gradient(145deg, color-mix(in srgb, var(--bg-card) 94%, var(--accent-primary) 6%), color-mix(in srgb, var(--bg-card) 97%, var(--accent-secondary) 3%));
    border: 1px solid var(--border-primary);
    border-radius: 24px;
    padding: 30px 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(14px) saturate(140%);
    /* scroll-snap-align: start; */ /* Removed for grid layout */
    position: relative;
    overflow: hidden;
    /* Ensure minimum width */
    min-width: 200px;
    max-width: 300px;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(255, 107, 107, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.category-item:hover::before,
.category-item.active::before {
    opacity: 1;
}

.category-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px var(--shadow-primary);
    border-color: var(--accent-primary);
}

.category-item.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px var(--shadow-primary);
    border-color: var(--accent-primary);
}

.category-item.active .category-icon,
.category-item.active .category-title,
.category-item.active .category-count {
    color: white;
}

.category-icon {
    font-size: 48px;
    color: var(--accent-primary);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.category-item:hover .category-icon,
.category-item.active .category-icon {
    transform: scale(1.1);
}

.category-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.category-count {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Skills Detail Panel */
.skills-detail-panel {
    background: linear-gradient(145deg, color-mix(in srgb, var(--bg-card) 92%, var(--accent-primary) 8%), color-mix(in srgb, var(--bg-card) 96%, var(--accent-secondary) 4%));
    border: 1px solid var(--border-primary);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(14px) saturate(140%);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skills-detail-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.03), rgba(255, 107, 107, 0.03));
    pointer-events: none;
}

.skills-detail-panel.active {
    transform: translateX(0);
    opacity: 1;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-accent);
}

.detail-icon {
    font-size: 40px;
    color: var(--accent-primary);
    background: rgba(0, 245, 255, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.detail-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.skill-detail-item {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(255, 107, 107, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.skill-detail-item:hover::before {
    opacity: 1;
}

.skill-detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px var(--shadow-primary);
    border-color: var(--accent-primary);
}

.skill-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-level {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 10px;
}

.skill-progress-bar {
    height: 6px;
    background: var(--border-primary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.skill-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 15px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 4px 12px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    font-size: 11px;
    color: var(--accent-primary);
    font-weight: 500;
}

/* Carousel Navigation Arrows */
.carousel-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-nav:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: -25px;
}

.carousel-nav.next {
    right: -25px;
}

.carousel-nav i {
    color: var(--accent-primary);
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .categories-carousel {
        gap: 15px;
    }

    .category-item {
        flex: 0 0 250px;
        padding: 25px 20px;
    }

    .skills-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .skills-intro h2 {
        font-size: 36px;
    }

    .skills-intro p {
        font-size: 16px;
    }

    .categories-carousel {
        gap: 12px;
        padding: 15px 0;
    }

    .category-item {
        flex: 0 0 200px;
        padding: 20px 15px;
    }

    .category-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .category-title {
        font-size: 16px;
    }

    .skills-detail-panel {
        padding: 30px 20px;
    }

    .detail-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .detail-title {
        font-size: 24px;
    }

    .skills-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .skill-detail-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .skills {
        padding: 60px 0;
    }

    .skills-intro {
        margin-bottom: 40px;
    }

    .skills-intro h2 {
        font-size: 28px;
    }

    .categories-carousel {
        gap: 10px;
    }

    .category-item {
        flex: 0 0 160px;
        padding: 15px 10px;
    }

    .category-icon {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .category-title {
        font-size: 14px;
    }

    .category-count {
        font-size: 12px;
    }

    .skills-detail-panel {
        padding: 20px 15px;
        border-radius: 20px;
    }

    .detail-title {
        font-size: 20px;
    }

    .skill-name {
        font-size: 16px;
    }
}

/* Animation Keyframes */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

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

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .category-item,
    .skill-detail-item,
    .carousel-nav,
    .skills-detail-panel {
        transition: none;
        animation: none;
    }

    .skill-progress-fill {
        transition: none;
    }
}

/* ===================== End Skills Carousel Redesign ===================== */

/* Client Recommendations Section */
.recommendations {
    /* Editable opacity (0 to 1). Override this variable where needed. */
    --recommendations-opacity: 0;

    padding: 80px 0;
    position: relative;
    isolation: isolate; /* ensure ::before can sit behind content safely */
    background: transparent; /* background handled by overlay below */
}

/* Background overlay with adjustable opacity that does NOT affect children */
.recommendations::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg-secondary);
    opacity: var(--recommendations-opacity, 1);
    pointer-events: none;
    z-index: -1; /* render behind content */
}

.recommendation-summary {
    margin-top: 50px;
}

.recommendation-summary-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 30px;
    transition: all 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
}

.recommendation-summary-content:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
}

.recommendation-summary-content.loading {
    opacity: 0.8;
}

.recommendation-summary-content.error {
    border-color: var(--accent-secondary);
}

.recommendation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    font-size: 36px;
    color: white;
    flex-shrink: 0;
}

.recommendation-icon.error {
    background: linear-gradient(45deg, var(--accent-secondary), #ff8a80);
}

.recommendation-icon i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.recommendation-info {
    flex: 1;
}

.recommendation-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.recommendation-count {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 15px;
}

.count-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent-primary);
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 245, 255, 0.3);
}

.count-label {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.recommendation-description {
    color: var(--text-tertiary);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.recommendation-error {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.error-message {
    color: var(--accent-secondary);
    font-weight: 600;
    font-size: 16px;
}

.error-details {
    color: var(--text-tertiary);
    font-size: 12px;
    font-style: italic;
}

/* Responsive Design for Recommendations */
@media (max-width: 768px) {
    .recommendations {
        padding: 60px 0;
    }
    
    .recommendation-summary-content {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 20px;
    }
    
    .recommendation-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .recommendation-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .count-number {
        font-size: 36px;
    }
    
    .count-label {
        font-size: 14px;
    }
    
    .recommendation-count {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .recommendation-summary-content {
        padding: 20px;
        margin: 0 15px;
    }
    
    .recommendation-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .recommendation-title {
        font-size: 18px;
    }
    
    .count-number {
        font-size: 32px;
    }
    
    .recommendation-description {
        font-size: 13px;
    }
}

/* Recommendation Cards Component */
.rec-cards-container {
    margin-top: 16px;
}

.rec-cards-title {
    display: none; /* hide title from page */
}

.rec-count {
    color: var(--text-secondary);
    font-weight: 500;
}

.rec-cards-wrapper {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 320px);
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    /* Allow first/last items to center by extending snap area on both sides */
    scroll-padding-left: 50%;
    scroll-padding-right: 50%;
    padding: 4px 8px 8px;
    scrollbar-gutter: stable both-edges; /* avoid layout shift when scrollbar shows */
}

/* When one card is expanded, fade out the others for focus */
.rec-cards-wrapper.has-expanded .rec-card { opacity: 0; filter: blur(2px); transition: opacity .35s ease, filter .35s ease, transform .25s ease; }
.rec-cards-wrapper.has-expanded .rec-card.expanded { opacity: 1; filter: none; z-index: 2; transform: translateY(-2px); }

/* Disable scroll snap and tune column widths when a card is expanded for better centering */
.rec-cards-wrapper.has-expanded { 
    scroll-snap-type: none; 
    grid-auto-columns: minmax(280px, 360px);
    /* Temporary edge space so first/last can center within scroll range */
    padding-left: max(8px, 50%);
    padding-right: max(8px, 50%);
}
.rec-cards-wrapper.has-expanded .rec-card:not(.expanded) { pointer-events: none; }

@media (min-width: 720px) {
    .rec-cards-wrapper.has-expanded { grid-auto-columns: minmax(320px, 420px); }
}

@media (min-width: 1024px) {
    .rec-cards-wrapper.has-expanded { grid-auto-columns: minmax(360px, 520px); }
}

.rec-cards-wrapper::-webkit-scrollbar {
    height: 10px;
}

.rec-cards-wrapper::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: 8px;
}

.rec-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: var(--text-primary);
    scroll-snap-align: start;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    /* aspect-ratio removed to allow height to grow with content */
    display: flex;
    background-image: linear-gradient(180deg, var(--rec-accent-bg, transparent), transparent 40%);
    border-left: 3px solid var(--rec-accent, var(--accent-primary));
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.rec-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(60deg, var(--rec-accent, var(--accent-primary)), transparent 40%, var(--accent-secondary));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: .4;
    pointer-events: none;
    transition: opacity .35s ease;
}

.rec-card:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.rec-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.rec-card.expanded {
    /* no aspect-ratio here; height naturally grows with content */
    grid-column: span 2; /* horizontally expand to occupy two columns */
    box-shadow: 0 18px 48px -10px rgba(0,245,255,0.2), 0 6px 18px rgba(0,0,0,0.6);
    border-color: var(--border-accent);
    /* Stronger frosted-glass when expanded */
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    background: linear-gradient(145deg,
        color-mix(in srgb, var(--bg-card) 88%, var(--accent-primary) 12%) 0%,
        color-mix(in srgb, var(--bg-card) 94%, var(--accent-secondary) 6%) 100%);
    position: relative;
}

/* Glass highlight overlay */
.rec-card.expanded::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background:
        radial-gradient(1200px 300px at -10% -10%, rgba(255,255,255,0.09), transparent 60%),
        linear-gradient(180deg, rgba(255,255,255,0.06), transparent 35%);
    pointer-events: none;
}

/* Brighter accent stroke when expanded */
.rec-card.expanded::before { opacity: .75; }

/* Animated marquee mode: make expanded card wider horizontally */
.rec-cards-wrapper[data-animated="true"] .rec-card.expanded {
    flex: 0 0 clamp(360px, 58vw, 620px);
    z-index: 2;
}

@media (min-width: 1024px) {
    .rec-card.expanded { grid-column: span 2; }
}

.rec-card-inner {
    display: flex;
    flex-direction: column;
    padding: 14px;
    width: 100%;
    cursor: pointer; /* clicking inner triggers expansion */
    box-sizing: border-box; /* ensure padding doesn't force unintended sizing */
    /* Performance-friendly animation defaults */
    transform: translateZ(0) scale(1);
    transform-origin: 50% 50%;
    will-change: transform, opacity;
    /* 280ms in the responsive, natural-feel range with an ease-out curve */
    transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 0.28s ease;
}

.rec-card.expanded::before { opacity: .7; }

/* In expanded view, hide the brief summary and increase readability of details */
.rec-card.expanded .rec-summary { display: none; }
.rec-card.expanded .rec-details { 
    font-size: 0.98rem; 
    line-height: 1.6; 
    margin-top: 12px; 
    /* let container height auto-grow with content */
}
.rec-card.expanded .rec-full { font-size: 0.98rem; line-height: 1.65; }

/* Subtle, natural interaction feedback */
@media (hover: hover) {
    .rec-card:hover .rec-card-inner,
    .rec-card:focus-within .rec-card-inner {
        /* small lift + scale for depth without jitter */
        transform: translateY(-1px) scale(1.01);
    }
}

/* On mobile/touch, keep effects gentler */
@media (max-width: 480px) {
    .rec-card:focus-within .rec-card-inner {
        transform: scale(1.005);
    }
}

/* Expanded state keeps a slight presence without being aggressive */
.rec-card.expanded .rec-card-inner {
    transform: scale(1.012);
}

/* Animate contextual affordance icon smoothly */
.rec-toggle i {
    transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Visual hierarchy polish: fade/slide details after the card animates */
@keyframes rec-fade-up {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rec-card.expanded .rec-card-inner .rec-details {
    /* trigger only when expanded becomes active */
    animation: rec-fade-up 0.32s cubic-bezier(0.22, 0.61, 0.36, 1) 0.06s both;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    .rec-card,
    .rec-card-inner,
    .rec-toggle i {
        transition: none !important;
    }
    .rec-card:hover,
    .rec-card:hover .rec-card-inner,
    .rec-card:focus-within .rec-card-inner,
    .rec-card.expanded .rec-card-inner {
        transform: none !important;
    }
    .rec-card.expanded .rec-card-inner .rec-details {
        animation: none !important;
    }
}

@supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
    .rec-card::before { display: none; }
}
.rec-card-header {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 10px;
    align-items: center;
}

.rec-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2f45, #1a1f33);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8ecff;
    font-weight: 800;
}

.rec-avatar.with-img { padding: 0; background: none; }
.rec-avatar-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; }

.rec-links a { color: #0a66c2; font-size: 18px; }
.rec-links a:hover { filter: brightness(1.2); }

.rec-meta { min-width: 0; }

.rec-name {
    font-size: 16px;
    margin: 0;
}

.rec-company {
    margin: 2px 0 0 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.rec-summary { margin-top: 10px; }

.rec-excerpt {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 7;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rec-quote-icon {
    color: var(--rec-accent, var(--accent-primary));
    opacity: 0.7;
    margin-right: 6px;
}

.rec-details {
    margin-top: 10px;
    border-top: 1px dashed var(--border-primary);
    padding-top: 10px;
}

.rec-full {
    margin: 0 0 8px 0;
    line-height: 1.45;
}

.rec-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px 8px;
    margin: 0;
}

.rec-fields dt {
    font-weight: 600;
    color: var(--text-secondary);
}

.rec-fields dd { margin: 0; }

.rec-toggle {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-primary);
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.rec-card.expanded .rec-toggle i { transform: rotate(180deg); }

/* Action area with Next button */
.rec-actions { display: none; }
.rec-card.expanded .rec-actions {
    display: flex;
    margin-top: 10px;
    justify-content: space-between;
    gap: 10px;
}

.rec-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    color: var(--accent-primary);
    border: 1px solid var(--border-accent);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rec-next-btn:hover {
    background: var(--bg-card-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.rec-next-btn:active { transform: translateY(0); }

/* Previous button styles mirror Next */
.rec-prev-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    color: var(--accent-primary);
    border: 1px solid var(--border-accent);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rec-prev-btn:hover {
    background: var(--bg-card-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.rec-prev-btn:active { transform: translateY(0); }

@media (max-width: 480px) {
    .rec-card.expanded .rec-actions { justify-content: center; }
    .rec-prev-btn, .rec-next-btn { flex: 1 1 auto; justify-content: center; }
}

.rec-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    padding: 8px;
}

@media (min-width: 900px) {
    .rec-cards-wrapper { grid-auto-columns: minmax(280px, 360px); }
}

@media (max-width: 480px) {
    .rec-cards-wrapper { grid-auto-columns: 85vw; }
}

/* Progressive enhancement: Infinite marquee mode for recommendation cards */
/* When enabled via data-animated, we switch layout to a flex-based inner track */
.rec-cards-wrapper[data-animated="true"] {
    /* Container becomes a viewport; inner track handles layout */
    display: block;
    overflow-x: hidden;
    scroll-snap-type: none;
    /* fade edges (mask) similar to CodePen visual polish */
    --rec-gap: 16px;
    --rec-fade-size: 80px;
    -webkit-mask: linear-gradient(90deg,
        transparent 0,
        #000 calc(var(--rec-fade-size) * 0.6),
        #000 calc(100% - var(--rec-fade-size) * 0.6),
        transparent 100%
    );
            mask: linear-gradient(90deg,
        transparent 0,
        #000 calc(var(--rec-fade-size) * 0.6),
        #000 calc(100% - var(--rec-fade-size) * 0.6),
        transparent 100%
    );
}

/* Track that scrolls infinitely */
.rec-cards-wrapper[data-animated="true"] .scroller__inner {
    display: inline-flex;
    align-items: stretch;
    gap: var(--rec-gap);
    width: max-content; /* allow content to exceed container for marquee */
    animation: rec-cards-marquee var(--_rec-marquee-duration, 45s) linear infinite;
}

/* Match grid auto-columns sizing using flex basis when animated */
.rec-cards-wrapper[data-animated="true"] .rec-card {
    flex: 0 0 clamp(260px, 30vw, 320px);
}

/* Pause on hover/focus for usability */
.rec-cards-wrapper[data-animated="true"]:hover .scroller__inner,
.rec-cards-wrapper[data-animated="true"]:focus-within .scroller__inner {
    animation-play-state: paused;
}
/* Fully stop and reset when paused/expanded for precise centering */
.rec-cards-wrapper.has-expanded .scroller__inner,
.rec-cards-wrapper[data-paused="true"] .scroller__inner {
    animation: none !important;
    transform: none !important;
}

/* Allow manual scroll when expanded while keeping marquee DOM */
.rec-cards-wrapper[data-animated="true"].has-expanded {
    overflow-x: auto;
}

/* Make cloned cards non-interactive */
.rec-card[data-clone="true"] {
    pointer-events: none;
}

/* Keyframes inspired by Kevin PowellG��s marquee pattern */
@keyframes rec-cards-marquee {
    to {
        /* Move by half the track (original set width) + half the gap to align seamlessly */
        transform: translateX(calc(-50% - var(--rec-gap) / 2));
    }
}

/* Respect user motion preferences: no animation */
@media (prefers-reduced-motion: reduce) {
    .rec-cards-wrapper[data-animated="true"] .scroller__inner { animation: none !important; }
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.education-item {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box; /* prevent overflow from padding on mobile */
    overflow: hidden; /* guard against icon/long text overflow */
}

.education-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-primary);
}

.education-icon {
    font-size: 60px;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.education-degree {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.education-institution {
    font-size: 18px;
    color: var(--accent-secondary);
    margin-bottom: 10px;
}

.education-year {
    font-size: 16px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.education-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Education: Responsive adjustments */
@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr; /* single column */
        gap: 24px;
        justify-items: center; /* center the card */
    }
    .education-item {
        width: 100%;
        max-width: min(95vw, 520px);
        margin: 0 auto;
        padding: 22px 18px;
        text-align: center;
    }
    .education-icon { font-size: 42px; margin-bottom: 12px; }
    .education-degree { font-size: 20px; }
    .education-institution { font-size: 16px; }
    .education-year { font-size: 14px; }
    .education-description { font-size: 14px; line-height: 1.55; }
}

@media (max-width: 480px) {
    .education-item {
        max-width: 92vw;
        padding: 16px 14px;
        border-radius: 16px;
    }
    .education-icon { font-size: 34px; margin-bottom: 8px; }
    .education-degree { font-size: 18px; }
    .education-institution { font-size: 15px; }
    .education-year { font-size: 13px; }
    .education-description { font-size: 13.5px; line-height: 1.5; }
}

/* Projects Section */
.projects {
    background: var(--bg-card);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-primary);
}

.project-image {
    height: 200px;
    background: linear-gradient(45deg, rgba(0, 245, 255, 0.1), rgba(255, 107, 107, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--accent-primary);
}

.project-content {
    padding: 30px;
}

.project-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    padding: 5px 15px;
    background: var(--bg-card-hover);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid var(--border-accent);
}

.project-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 25px;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-primary);
}

.project-link i {
    font-size: 16px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact .container {
    padding: 0 16px; /* Mobile breathing room */
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Desktop: two-column layout */
    gap: 60px;
}

/* Desktop-specific contact divider (hidden in desktop two-column) */
.contact-divider {
    display: none; /* Hidden on desktop - visual separation comes from grid layout */
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
    margin: 40px 0;
    opacity: 0.6;
}

.contact-subtitle {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 24px; /* Better spacing */
    line-height: 1.3;
}

.contact-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 90%; /* Prevent too-wide text on large screens */
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px; /* Consistent spacing between contact items */
    margin-bottom: 0; /* No bottom margin on desktop - grid handles spacing */
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 20px; /* More generous padding */
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
    min-height: 80px; /* Consistent height for touch targets */
}

.contact-method:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-primary);
}

.contact-method i {
    font-size: 24px;
    color: var(--accent-primary);
    width: 30px;
    flex-shrink: 0;
    margin-top: 4px; /* Align with text baseline */
}

.method-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.method-label {
    font-size: 16px; /* Increased for better readability */
    color: var(--text-secondary);
    font-weight: 600; /* Bold labels for hierarchy */
    margin-bottom: 8px; /* Better label spacing */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method-value {
    font-size: 17px; /* Larger value text */
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.5; /* Better line height */
    min-height: 24px; /* Ensure touch-friendly height */
}

.method-value a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.method-value a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

/* Contact divider */
.contact-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
    margin: 40px 0;
    opacity: 0.6;
}

/* Phone reveal styles */
.phone-hidden {
    color: var(--accent-primary);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.phone-number {
    transition: all 0.3s ease;
}

.hidden {
    display: none;
}

.btn-reveal {
    background: var(--bg-card-hover);
    color: var(--accent-primary);
    border: 1px solid var(--border-accent);
    border-radius: 25px;
    padding: 12px 20px; /* Better touch target */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px; /* WCAG touch target minimum */
    min-width: 120px;
    justify-content: center;
}

.btn-reveal:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-primary);
}

.btn-reveal:active {
    transform: translateY(0);
}

.btn-reveal.revealed {
    background: var(--bg-success, #22c55e);
    color: white;
    border-color: var(--bg-success, #22c55e);
}

.btn-reveal.revealed:hover {
    background: var(--bg-success-hover, #16a34a);
}

/* Notification System */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background-color: var(--accent-primary);
    color: white;
}

.notification.error {
    background-color: #ff4d4d;
    color: white;
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(10px);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.contact-form .form-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 24px; /* Consistent spacing between fields */
}

.form-group:last-of-type {
    margin-bottom: 32px; /* Extra space before submit button */
}

.form-input {
    width: 100%;
    padding: 16px 20px; /* More generous padding for mobile */
    background: var(--bg-card);
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px; /* Prevent zoom on iOS */
    line-height: 1.5;
    transition: all 0.3s ease;
    min-height: 56px; /* Touch-friendly height */
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb, 59, 130, 246), 0.1);
    background: var(--bg-card-hover);
}

.form-input::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

.form-input[type="textarea"],
textarea.form-input {
    min-height: 120px; /* Better textarea height */
    resize: vertical;
    padding-top: 16px;
    line-height: 1.6;
}

.contact-form .btn {
    width: 100%;
    min-height: 56px; /* Touch-friendly button height */
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px; /* Separation from last field */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-primary);
}

/* Footer */
.footer {
    background: var(--bg-card);
    padding: 40px 0;
    border-top: 1px solid var(--border-primary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 20px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
}

.social-links a:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
    box-shadow: 0 6px 16px -4px var(--shadow-primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Achievements Section */
.achievements {
    padding: 80px 0;
    background: var(--bg-card);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.achievement-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
}

.achievement-icon {
    font-size: 48px;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.achievement-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.achievement-description {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Languages Section */
.languages {
    padding: 80px 0;
    background: var(--bg-card);
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.language-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.language-item:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
}

.language-icon {
    font-size: 36px;
    color: var(--accent-secondary);
    margin-right: 20px;
}

.language-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.language-level {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================================================ */
/* RESPONSIVE DESIGN ENHANCEMENTS */
/* ============================================================================ */

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(12, 12, 12, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        border-top: 1px solid var(--border-primary);
        z-index: 1000;
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 12px 0;
    }

    .nav-menu a {
        font-size: 18px;
        padding: 12px 20px;
        display: block;
        border-radius: 8px;
        margin: 0 20px;
    }

    .nav-menu a:hover {
        background: var(--bg-card-hover);
    }

    .hamburger {
        display: flex !important;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hide social icons in mobile nav to save space */
    .nav-social-icons {
        display: none;
    }

    /* Adjust navigation layout for mobile */
    .nav-container {
        padding: 0 15px;
        position: relative;
        min-height: 70px; /* Ensure minimum height */
        gap: 10px; /* Reduce gap on mobile */
    }

    /* Mobile navigation right group */
    .nav-right-group {
        gap: 10px; /* Reduce gap on mobile */
    }

    /* Mobile theme toggle - keep as flex item, no absolute positioning needed */
    .theme-toggle {
        width: 36px;
        height: 36px;
        /* No position absolute needed - stays as flex item */
    }

    /* No special active state transform needed for flex item */
    .theme-toggle:active {
        transform: scale(0.95);
    }

    /* Ensure hamburger is positioned correctly in flex container */
    .hamburger {
        position: relative; /* Change from absolute to relative */
        /* Remove absolute positioning since it's now in flex container */
    }

    .nav-logo .logo-text {
        font-size: 20px;
    }

    /* Light theme mobile nav */
    [data-theme="light"] .nav-menu {
        background: rgba(248, 250, 252, 0.98);
        border-top: 1px solid rgba(0, 112, 243, 0.2);
    }
}

/* Enhanced Mobile Hero Section */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 80px 0 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
        text-align: center;
        padding: 0 16px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .hero-content {
        order: 2;
        width: 100%;
        box-sizing: border-box;
    }

    .title-main {
        font-size: clamp(32px, 8vw, 48px);
        line-height: 1.2;
        margin-bottom: 10px;
        word-wrap: break-word;
        hyphens: auto;
    }

    .title-line {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .title-subtitle {
        font-size: clamp(16px, 4vw, 20px);
        margin-top: 10px;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.6;
        margin: 20px auto;
        max-width: 90%;
        padding: 0 8px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: center;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 16px 20px;
        font-size: 16px;
        border-radius: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 50px;
        box-sizing: border-box;
        text-align: center;
        white-space: nowrap;
    }

    .hero-buttons .btn i {
        font-size: 16px;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 20px;
        height: 200px;
    }

    .floating-element {
        width: 200px;
        height: 200px;
    }

    .download-icon-container {
        opacity: 1;
    }

    .download-icon-container i {
        font-size: 32px;
    }

    .download-icon-container span {
        font-size: 14px;
    }
}

/* Small Mobile Hero Adjustments */
@media (max-width: 480px) {
    .hero {
        padding: 70px 0 30px;
    }

    .hero-container {
        padding: 0 12px;
        gap: 25px;
    }

    .title-main {
        font-size: clamp(24px, 7vw, 36px);
    }

    .hero-description {
        font-size: 15px;
        max-width: 95%;
        padding: 0 4px;
    }

    .hero-buttons {
        max-width: 280px;
        gap: 14px;
    }

    .hero-buttons .btn {
        padding: 14px 18px;
        font-size: 15px;
        min-height: 48px;
        max-width: 260px;
    }

    .floating-element {
        width: 180px;
        height: 180px;
    }

    .download-icon-container i {
        font-size: 28px;
    }

    .download-icon-container span {
        font-size: 13px;
    }
}

/* Landscape Mobile Hero */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 60px 0 20px;
    }

    .hero-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        text-align: left;
        align-items: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        margin-bottom: 0;
    }

    .title-main {
        font-size: clamp(28px, 5vw, 40px);
    }

    .hero-buttons {
        max-width: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .hero-buttons .btn {
        width: auto;
        min-width: 140px;
        flex: 0 1 auto;
    }
}

/* Enhanced Mobile About Section */
@media (max-width: 768px) {
    .about {
        padding: 60px 0;
    }

    .about-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        padding: 0 16px;
    }

    .about-text {
        order: 2;
        width: 100%;
        box-sizing: border-box;
    }

    .about-intro {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 16px;
        font-weight: 500;
    }

    .about-details {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 32px;
        padding: 0 8px;
    }

    .about-stats {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .stat-item {
        padding: 20px 16px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 80px;
    }

    .stat-number {
        font-size: 32px;
        margin-bottom: 8px;
        line-height: 1;
    }

    .stat-label {
        font-size: 14px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .about-image {
        order: 1;
        margin-bottom: 20px;
    }

    .image-placeholder {
        width: 180px;
        height: 180px;
        margin: 0 auto;
        font-size: 64px;
    }
}

/* Small Mobile Devices - About Section */
@media (max-width: 480px) {
    .about {
        padding: 50px 0;
    }

    .about-content {
        padding: 0 12px;
        gap: 30px;
    }

    .about-intro {
        font-size: 18px;
        margin-bottom: 12px;
        padding: 0 4px;
    }

    .about-details {
        font-size: 15px;
        margin-bottom: 24px;
        padding: 0 4px;
    }

    .about-stats {
        gap: 12px;
        max-width: 280px;
    }

    .stat-item {
        padding: 16px 12px;
        min-height: 70px;
    }

    .stat-number {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .stat-label {
        font-size: 13px;
    }

    .image-placeholder {
        width: 160px;
        height: 160px;
        font-size: 56px;
    }
}

/* Tablet responsive adjustments - About Section */
@media (min-width: 481px) and (max-width: 768px) {
    .about-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        max-width: 500px;
        margin: 0 auto;
    }

    .stat-item {
        padding: 18px 14px;
    }

    .stat-number {
        font-size: 30px;
    }
}

/* Enhanced Mobile Experience Section */
@media (max-width: 768px) {
    .experience {
        padding: 60px 0;
    }

    /* Fix timeline for mobile - remove desktop two-column layout */
    .timeline::before {
        left: 20px;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px;
        padding-right: 20px;
        margin-bottom: 40px;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 50px;
        padding-right: 20px;
        text-align: left;
    }

    .timeline-marker {
        left: 10px !important;
        right: auto;
    }

    .timeline-content {
        padding: 25px 20px;
        border-radius: 12px;
        margin-bottom: 0;
    }

    .timeline-title {
        font-size: 20px;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .timeline-company {
        font-size: 16px;
        margin-bottom: 6px;
        line-height: 1.4;
    }

    .timeline-date {
        font-size: 14px;
        margin-bottom: 12px;
        display: block;
    }

    /* Fix role points for mobile */
    .role-points {
        margin-top: 15px;
        padding-left: 0;
    }

    .role-points li {
        padding-left: 35px;
        margin-bottom: 12px;
        font-size: 15px;
        line-height: 1.5;
        position: relative;
    }

    .role-points li i {
        position: absolute;
        left: 0;
        top: 5px;
        width: 24px;
        height: 24px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.25);
        border: 1px solid var(--border-accent);
        border-radius: 6px;
    }

    .role-points li span {
        display: block;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Experience highlight mobile adjustments */
    .experience-highlight {
        margin-bottom: 30px;
        padding: 30px 20px;
    }

    .exp-role {
        font-size: 26px;
    }

    .exp-points {
        font-size: 16px;
    }

    .exp-points > li {
        padding-left: 32px;
        margin-bottom: 12px;
    }

    .point-icon {
        top: 3px;
        font-size: 14px;
        width: 20px;
        height: 20px;
    }
}

/* Small Mobile Devices Experience Section */
@media (max-width: 480px) {
    .experience {
        padding: 50px 0;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 40px;
        padding-right: 15px;
        margin-bottom: 35px;
    }

    .timeline-marker {
        left: 5px !important;
        width: 16px;
        height: 16px;
    }

    .timeline-content {
        padding: 20px 15px;
    }

    .timeline-title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .timeline-company {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .timeline-date {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .role-points li {
        padding-left: 30px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .role-points li i {
        width: 20px;
        height: 20px;
        font-size: 12px;
        top: 4px;
    }

    /* Experience highlight small mobile */
    .experience-highlight {
        padding: 25px 15px;
        margin-bottom: 25px;
    }

    .exp-role {
        font-size: 22px;
    }

    .exp-points {
        font-size: 15px;
        gap: 10px;
    }

    .exp-points > li {
        padding-left: 28px;
        margin-bottom: 10px;
    }

    .point-icon {
        width: 18px;
        height: 18px;
        font-size: 12px;
    }
}

/* Mobile Projects Grid */
@media (max-width: 768px) {
    .projects {
        padding: 60px 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-card {
        margin: 0 15px;
    }

    .project-actions {
        flex-direction: column;
        gap: 10px;
    }

    .project-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Mobile Contact Section */
@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }

    .contact .container {
        padding: 0 16px; /* Consistent mobile padding */
    }

    .contact-content {
        grid-template-columns: 1fr; /* Mobile: single column */
        gap: 48px; /* Separation between info and form */
    }

    /* Show divider on mobile for visual separation */
    .contact-divider {
        display: block;
        margin: 32px 0;
    }

    .contact-subtitle {
        font-size: 28px;
        text-align: center;
        margin-bottom: 20px;
    }

    .contact-description {
        font-size: 16px;
        text-align: center;
        margin-bottom: 32px;
        max-width: 100%;
        line-height: 1.6;
    }

    .contact-methods {
        gap: 20px;
        margin-bottom: 0; /* Divider handles separation on mobile */
    }

    .contact-method {
        padding: 20px 16px;
        margin: 0 4px; /* Small side margins for touch */
        min-height: 88px; /* Larger touch targets on mobile */
    }

    .contact-method i {
        font-size: 22px;
        width: 28px;
    }

    .method-label {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .method-value {
        font-size: 16px;
        line-height: 1.5;
    }

    .btn-reveal {
        min-height: 48px; /* Larger mobile touch target */
        padding: 14px 18px;
        font-size: 15px;
        min-width: 140px;
    }

    .contact-form {
        padding: 32px 24px;
        margin: 0 4px; /* Consistent with contact methods */
    }

    .contact-form h3 {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .contact-form .form-subtitle {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group:last-of-type {
        margin-bottom: 28px;
    }

    .form-input {
        padding: 18px 16px;
        font-size: 16px; /* Prevent iOS zoom */
        min-height: 58px; /* Larger mobile touch targets */
        border-radius: 10px;
    }

    .form-input[type="textarea"],
    textarea.form-input {
        min-height: 140px;
        padding-top: 18px;
    }

    .contact-form .btn {
        min-height: 58px;
        padding: 18px 24px;
        font-size: 17px;
        margin-top: 20px;
        border-radius: 10px;
    }
}

/* Small Mobile Devices Contact Section */
@media (max-width: 480px) {
    .contact {
        padding: 50px 0;
    }

    .contact .container {
        padding: 0 12px;
    }

    .contact-content {
        gap: 40px;
    }

    .contact-subtitle {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .contact-description {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .contact-methods {
        gap: 16px;
        margin-bottom: 32px;
    }

    .contact-method {
        padding: 18px 14px;
        margin: 0 2px;
        min-height: 80px;
    }

    .contact-method i {
        font-size: 20px;
        width: 26px;
    }

    .method-label {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .method-value {
        font-size: 15px;
    }

    .btn-reveal {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 14px;
        min-width: 120px;
    }

    .contact-form {
        padding: 28px 20px;
        margin: 0 2px;
    }

    .contact-form h3 {
        font-size: 20px;
    }

    .contact-form .form-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group:last-of-type {
        margin-bottom: 24px;
    }

    .form-input {
        padding: 16px 14px;
        min-height: 52px;
    }

    .form-input[type="textarea"],
    textarea.form-input {
        min-height: 120px;
        padding-top: 16px;
    }

    .contact-form .btn {
        min-height: 52px;
        padding: 16px 20px;
        font-size: 16px;
        margin-top: 18px;
    }
}

/* Mobile Container and General Layout Fixes */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    /* Ensure no horizontal overflow */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Ensure all sections respect mobile width */
    section {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* Mobile-specific section padding */
    section {
        padding: 60px 0;
    }

    /* Section titles mobile optimization */
    .section-title {
        font-size: clamp(28px, 6vw, 36px);
        margin-bottom: 40px;
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
    }
}

/* Enhanced Touch-Friendly Interactive Elements */
@media (max-width: 768px) {
    .btn {
        min-height: 48px; /* WCAG recommended touch target size */
        padding: 14px 20px;
        font-size: 16px;
        border-radius: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        box-sizing: border-box;
        text-align: center;
        font-weight: 600;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .btn-primary {
        box-shadow: 0 8px 24px rgba(0, 245, 255, 0.3);
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(0, 245, 255, 0.4);
    }

    .btn-secondary {
        border: 2px solid var(--border-primary);
    }

    .btn-secondary:hover {
        background: var(--bg-card-hover);
        border-color: var(--accent-primary);
        transform: translateY(-2px);
    }

    /* Mobile theme toggle already defined above - duplicate removed */

    .social-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Larger touch targets for navigation */
    .nav-link {
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 8px;
        display: block;
        text-align: center;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Improved form inputs for mobile */
    .form-input {
        padding: 16px 20px;
        font-size: 16px;
        border-radius: 12px;
        min-height: 48px;
        box-sizing: border-box;
    }

    /* Skill category items touch-friendly */
    .category-item {
        min-height: 60px;
        padding: 16px 20px;
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .category-item:hover {
        transform: translateY(-4px);
    }

    .category-item:active {
        transform: translateY(-2px);
    }
}

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }

    .hero {
        padding: 70px 0 30px;
    }

    .hero-container {
        padding: 0 10px;
    }

    .title-main {
        font-size: clamp(24px, 7vw, 36px);
    }

    .hero-buttons .btn {
        padding: 12px 16px;
        font-size: 15px;
    }

    .about-stats {
        gap: 15px;
    }

    .stat-item {
        padding: 15px;
    }

    .stat-number {
        font-size: 28px;
    }

    .section-title {
        font-size: clamp(24px, 5vw, 32px);
        margin-bottom: 25px;
    }

    .experience-item {
        margin-bottom: 30px;
        padding-left: 15px;
    }

    .project-card {
        margin: 0 10px;
        padding: 20px 15px;
    }

    .contact-form {
        padding: 20px 15px;
    }

    .contact-item {
        padding: 15px;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 60px 0 20px;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        text-align: left;
    }

    .hero-visual {
        order: 1;
    }

    .title-main {
        font-size: clamp(28px, 5vw, 40px);
    }
}

/* Tablet Specific Improvements */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-container {
        padding: 0 30px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        max-width: 600px;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Mobile / Small Tablet */
@media (min-width: 481px) and (max-width: 900px) {
    .nav-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: none;
        box-shadow: none;
        border-top: none;
        padding: 0;
        width: auto;
    }

    .nav-menu li {
        margin: 0 10px;
    }

    .nav-menu a {
        font-size: 14px;
        padding: 8px 12px;
        margin: 0;
    }

    .hamburger {
        display: none !important;
    }

    .nav-social-icons {
        display: flex;
        gap: 12px;
        margin-left: 15px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* Improved Accessibility for Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .nav-menu {
        transition: none;
    }

    .hamburger .bar {
        transition: none;
    }

    .btn {
        transition: none;
    }

    .hero-title * {
        animation: none;
        opacity: 1;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-visual .image-placeholder {
        border-width: 2px;
    }

    .about-image .image-placeholder {
        border-width: 2px;
    }
}

/* Dark Mode Specific Mobile Adjustments */
@media (max-width: 768px) {
    [data-theme="light"] .nav-menu a:hover {
        background: rgba(0, 112, 243, 0.1);
    }

    [data-theme="light"] .hamburger .bar {
        background: var(--text-primary);
    }
}

/* Keyframes for glowing pulse effect */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 35px 8px rgba(0, 245, 255, 0.2), inset 0 4px 14px 0 rgba(0,0,0,0.5);
    }
    50% {
        box-shadow: 0 0 55px 15px rgba(0, 245, 255, 0.4), inset 0 4px 20px 0 rgba(0,0,0,0.7);
    }
}
