/* ==========================================
   SAŠA KITIĆ PORTFOLIO - Redesigned
   Abstract, Fluid, Less Boxy
   Deep Navy + Electric Cyan + Soft Purple
   ========================================== */

/* CSS Variables */
:root {
    /* Brand Colors - Dark Tech Theme */
    --bg-primary: #0a0f1a;
    --bg-secondary: #0f172a;
    --bg-elevated: rgba(15, 23, 42, 0.6);
    --bg-glass: rgba(15, 23, 42, 0.4);
    --accent-primary: #00D9FF;
    --accent-secondary: #7B68EE;
    --accent-tertiary: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #00D9FF 0%, #7B68EE 100%);
    --accent-gradient-reverse: linear-gradient(135deg, #7B68EE 0%, #00D9FF 100%);
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --section-padding: 120px;
    --navbar-height: 72px;
    
    /* Effects */
    --blur-sm: blur(8px);
    --blur-md: blur(16px);
    --blur-lg: blur(32px);
    --glow-cyan: 0 0 40px rgba(0, 217, 255, 0.3);
    --glow-purple: 0 0 40px rgba(123, 104, 238, 0.3);
    --glow-soft: 0 0 60px rgba(0, 217, 255, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Borders */
    --border-subtle: 1px solid rgba(255, 255, 255, 0.05);
    --border-glass: 1px solid rgba(255, 255, 255, 0.1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Remove all default focus outlines */
button,
input,
select,
textarea,
a,
.btn,
.nav-link {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

button:focus,
button:active,
button:focus-visible,
input:focus,
input:active,
select:focus,
select:active,
textarea:focus,
textarea:active,
a:focus,
a:active,
.btn:focus,
.btn:active,
.nav-link:focus,
.nav-link:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Prevent any element from showing outline or border on tap/click */
div,
span,
p,
section,
article,
header,
footer,
nav {
    -webkit-tap-highlight-color: transparent;
}

div:focus,
span:focus,
p:focus,
section:focus,
article:focus,
header:focus,
footer:focus,
nav:focus {
    outline: none !important;
    border: none !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    min-width: 360px; /* Prevent extreme narrowing */
}

html::-webkit-scrollbar {
    display: none;  /* Chrome/Safari */
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.7;
    background: var(--bg-primary);
    padding-top: var(--navbar-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    min-width: 360px; /* Prevent extreme narrowing */
}

body::-webkit-scrollbar {
    display: none;  /* Chrome/Safari */
}

/* Constellation Canvas - Fixed Background */
#constellation-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

body.interactive-bg #constellation-canvas {
    pointer-events: auto;
}

/* Main content above canvas */
.page-content,
#app > div:not(.loading-screen) {
    position: relative;
    z-index: 1;
}

/* Typography - Fluid & Light */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    outline: none !important;
    border: none !important;
}

h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus,
h1:active, h2:active, h3:active, h4:active, h5:active, h6:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
    outline: none !important;
}

a:hover {
    color: var(--accent-secondary);
}

a:focus,
a:active,
a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* ==========================================
   NAVBAR - Minimal & Floating
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 1rem 0;
    background: transparent;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border-bottom: var(--border-subtle);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    outline: none !important;
    border: none !important;
}

/* Left section with brand + section title */
.navbar-left-section {
    display: flex;
    align-items: center;
    gap: 0;
}

@media (max-width: 767px) {
    .navbar-left-section {
        position: relative;
        flex: 1;
    }
}

.navbar-brand:focus,
.navbar-brand:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.navbar-brand .brand-text {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    outline: none !important;
    border: none !important;
}

.navbar-brand .brand-name {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-normal);
}

.navbar-brand:hover .brand-name {
    opacity: 1;
    transform: translateX(0);
}

/* Section Title in Navbar */
.navbar-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    margin-left: 1.2rem;
    display: none;
    opacity: 0.9;
}

.navbar-section-title i {
    color: var(--accent-primary);
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Project Filter Dropdown in Navbar */
.navbar-filter-dropdown {
    position: relative;
    margin-left: 1rem;
    display: none;
}

.btn-filter-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 8px;
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
    outline: none !important;
}

.btn-filter-dropdown:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--accent-primary);
}

.btn-filter-dropdown:focus,
.btn-filter-dropdown:active {
    outline: none !important;
    box-shadow: none !important;
}

.btn-filter-dropdown i:first-child {
    font-size: 0.9rem;
}

.btn-filter-dropdown i:last-child {
    font-size: 0.75rem;
}

.filter-label {
    font-size: 0.85rem;
}

.filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 160px;
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: var(--blur-md);
    border: var(--border-glass);
    border-radius: 12px;
    padding: 0.5rem 0;
    z-index: 1001;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.filter-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.filter-dropdown-item i {
    font-size: 0.9rem;
    min-width: 16px;
}

.filter-dropdown-item:hover {
    background: rgba(0, 217, 255, 0.1);
    color: var(--accent-primary);
}

.filter-dropdown-item.active {
    background: rgba(0, 217, 255, 0.15);
    color: var(--accent-primary);
    font-weight: 600;
}

@media (max-width: 767px) {
    .navbar-section-title {
        display: none !important; /* Hide section title on skills page mobile */
    }

    .navbar-brand .brand-name {
        display: none;
    }

    /* Show filter dropdown on mobile for Skills page */
    .navbar-filter-dropdown {
        display: inline-block !important;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0 !important;
    }

    /* Adjust dropdown button for mobile */
    .btn-filter-dropdown {
        padding: 0.4rem 0.85rem;
        font-size: 0.8rem;
    }

    .btn-filter-dropdown .filter-label {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (min-width: 768px) {
    .navbar-section-title {
        display: inline-block;
    }

    .navbar-filter-dropdown {
        display: inline-block;
    }

    /* Show brand name on hover on desktop */
    .navbar-brand:hover .brand-name {
        opacity: 1;
        transform: translateX(0);
    }
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(248, 250, 252, 0.2);
    font-weight: 400;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.navbar-dark .navbar-nav .nav-link span {
    position: relative;
    display: inline-block;
}

.navbar-dark .navbar-nav .nav-link span::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: rgba(248, 250, 252, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover span::after {
    opacity: 1;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: rgba(248, 250, 252, 1);
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link i {
    display: none;
}

/* Hamburger Menu - Remove focus outline */
.navbar-toggler {
    border: none;
    background: transparent;
    padding: 0.5rem;
    cursor: pointer;
    outline: none !important;
    box-shadow: none !important;
    position: relative;
    width: 40px;
    height: 40px;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent-primary);
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--accent-primary);
    transition: all 0.3s ease;
    left: 0;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}

/* Hamburger to X animation */
.navbar-toggler.show .navbar-toggler-icon {
    background: transparent;
}

.navbar-toggler.show .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler.show .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Language Switcher - Dropdown Style */
.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

@media (max-width: 991px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: var(--border-subtle);
    }
}

.btn-lang {
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: transparent;
    border: var(--border-subtle);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 0.6;
    outline: none !important;
    box-shadow: none !important;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-lang:focus,
.btn-lang:active,
.btn-lang:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.btn-lang:hover {
    opacity: 0.9;
    background: rgba(0, 217, 255, 0.05);
    border-color: rgba(0, 217, 255, 0.2);
}

.btn-lang.active {
    opacity: 1;
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Language Dropdown */
.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 100%;
    min-width: auto;
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: var(--blur-md);
    border: var(--border-glass);
    border-radius: 12px;
    padding: 0.5rem 0;
    z-index: 1001;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

@media (max-width: 991px) {
    .language-dropdown {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 0.5rem;
    }
}

.language-dropdown .btn-lang {
    width: 100%;
    justify-content: center;
    border: none;
    border-radius: 0;
    padding: 0.5rem 1rem;
}

.language-dropdown .btn-lang:hover {
    background: rgba(0, 217, 255, 0.1);
    border: none;
}

/* ==========================================
   HERO - Full Screen, Minimal
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 2rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.hero-content {
    max-width: 900px;
    text-align: center;
}

.hero-greeting {
    font-size: 1rem;
    color: var(--accent-primary);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hero-title .name {
    display: block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.9;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-tagline .highlight {
    color: var(--accent-primary);
    font-weight: 500;
    display: block;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease forwards, float 2s ease-in-out infinite;
    animation-delay: 1.5s, 1.5s;
    cursor: pointer;
    padding: 1rem;
    transition: all var(--transition-fast);
    background: transparent;
    border: none;
}

.hero-scroll:hover {
    transform: translateX(-50%) scale(1.1);
}

.hero-scroll:active {
    transform: translateX(-50%) scale(0.95);
}

.hero-scroll i {
    font-size: 2.5rem;
    color: var(--text-primary);
    display: block;
    animation: bounce 2s ease-in-out infinite;
    transition: color var(--transition-fast);
}

.hero-scroll:hover i {
    color: var(--accent-primary);
}

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

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

@keyframes bounceUp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* ==========================================
   BUTTONS - Ghost & Gradient
   ========================================== */
.btn-primary-custom {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    border: none !important;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary-custom:focus,
.btn-primary-custom:active,
.btn-primary-custom:focus-visible,
.btn-primary-custom:focus-within {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7B68EE 0%, #00D9FF 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-cyan) !important;
    color: var(--bg-primary);
    outline: none !important;
    border: none !important;
}

.btn-primary-custom:hover::before {
    opacity: 1;
}

.btn-primary-custom span {
    position: relative;
    z-index: 1;
}

.btn-outline-custom {
    background: transparent;
    color: var(--text-primary);
    font-weight: 500;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.btn-outline-custom:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 217, 255, 0.05);
    transform: translateY(-3px);
}

/* ==========================================
   SECTIONS - Fluid Layout
   ========================================== */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* Snap Scroll Sections */
.section-snap {
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Adjust padding for snap sections to fit content better */
.section-snap.section {
    padding: 4rem 0;
}

/* Tighter spacing for projects section */
.section-snap:last-of-type .section-header {
    margin-bottom: 2rem;
}

.section-snap:last-of-type .projects-grid {
    margin-bottom: 1rem;
}

.section-snap:last-of-type .mt-5 {
    margin-top: 1.5rem !important;
}

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

.section-snap .section-header {
    margin-bottom: 3rem;
    margin-top: 2rem;
}

.section-label {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Divider - Organic Shape */
.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 100px;
    margin: 2rem auto;
}

/* ==========================================
   PHILOSOPHY - Floating Cards
   ========================================== */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Mobile: Horizontal scroll carousel */
@media (max-width: 767px) {
    .philosophy-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 1rem;
        padding: 1rem 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    .philosophy-grid::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .philosophy-item {
        flex: 0 0 85%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
}

.philosophy-item {
    padding: 3rem 2rem;
    background: var(--bg-glass);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border: var(--border-subtle);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.philosophy-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.philosophy-item:hover {
    transform: translateY(-8px);
    background: var(--bg-elevated);
    border-color: rgba(0, 217, 255, 0.2);
}

.philosophy-item:hover::before {
    opacity: 1;
}

.philosophy-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.philosophy-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.philosophy-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

/* ==========================================
   ABOUT PAGE - Clean
   ========================================== */

/* About Page - First section padding to avoid navbar overlap */
.about-page-section-1 {
    padding-top: calc(var(--navbar-height) + 3rem) !important;
}

/* About Carousel */
.about-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .about-carousel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .about-carousel {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 1rem;
        padding: 1rem 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

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

    .about-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
}

.about-card {
    background: var(--bg-glass);
    backdrop-filter: var(--blur-sm);
    border: var(--border-subtle);
    border-radius: 24px;
    overflow: hidden;
    transition: all var(--transition-normal);
    min-height: 400px;
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 217, 255, 0.2);
}

/* Image Card */
.about-image-card {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.about-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.about-image-placeholder {
    font-size: 8rem;
    color: var(--accent-primary);
    opacity: 0.3;
}

/* Text Card */
.about-text-card {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.about-text-large {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-text-normal {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.about-goal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.about-goal i {
    font-size: 1.5rem;
}

/* LinkedIn Card */
.linkedin-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.linkedin-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0A66C2;
    margin-bottom: 2rem;
}

.linkedin-header i {
    font-size: 2rem;
}

.linkedin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.linkedin-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.linkedin-title {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.linkedin-location {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.linkedin-location i {
    margin-right: 0.5rem;
}

.btn-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: #0A66C2;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    align-self: flex-start;
    margin-top: auto;
}

.btn-linkedin:hover {
    background: #004182;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 102, 194, 0.3);
    color: white;
}

.btn-linkedin i {
    font-size: 1.25rem;
}

/* Philosophy Carousel */
.philosophy-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .philosophy-carousel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .philosophy-carousel {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 1rem;
        padding: 1rem 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

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

    .philosophy-card-new {
        flex: 0 0 85%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
}

.philosophy-card-new {
    padding: 3rem 2rem;
    background: var(--bg-glass);
    backdrop-filter: var(--blur-sm);
    border: var(--border-subtle);
    border-radius: 24px;
    text-align: center;
    transition: all var(--transition-normal);
}

.philosophy-card-new:hover {
    transform: translateY(-8px);
    background: var(--bg-elevated);
    border-color: rgba(0, 217, 255, 0.2);
}

.philosophy-card-new .philosophy-icon-svg {
    margin-bottom: 1.5rem;
}

.philosophy-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.philosophy-card-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.about-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-glass);
    backdrop-filter: var(--blur-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--accent-primary);
    opacity: 0.5;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: 24px;
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.about-image-wrapper:hover .about-image::after {
    opacity: 1;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-glass);
    border-radius: 16px;
    border: var(--border-subtle);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.9;
}

.about-text .lead {
    font-size: 1.35rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 2rem;
}

.about-signature {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: var(--border-subtle);
}

.about-signature p {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
}

.signature {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   PROJECT CARDS - Minimal, Hoverable
   ========================================== */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: var(--border-glass);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

/* When viewport can't fit 3 cards comfortably (below ~950px), use carousel */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 950px) {
    .projects-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 1rem;
        padding: 1rem 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .projects-grid::-webkit-scrollbar {
        display: none;
    }

    .section-snap .project-card,
    .project-card,
    .all-projects-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        transform: scale(1);
    }
}

/* Mobile: Keep carousel style */
@media (max-width: 767px) {
    .projects-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 1rem;
        padding: 1rem 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .projects-grid::-webkit-scrollbar {
        display: none;
    }

    .section-snap .project-card,
    .project-card,
    .all-projects-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        transform: scale(1);
    }
}

.project-card {
    background: var(--bg-glass);
    backdrop-filter: var(--blur-sm);
    border: var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
}

/* Smaller cards for home page snap sections */
.section-snap .project-card {
    transform: scale(0.95);
}

.section-snap .project-card:hover {
    transform: scale(0.97) translateY(-8px);
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
    border-radius: 20px;
    padding: 1px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.section-snap .project-card:hover {
    transform: scale(0.97) translateY(-4px);
}

@media (min-width: 1400px) {
    .section-snap .project-card {
        transform: scale(0.98);
    }

    .section-snap .project-card:hover {
        transform: scale(1) translateY(-4px);
    }
}

.project-card:hover::after {
    opacity: 1;
}

.project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

/* Smaller image height in snap sections */
.section-snap .project-image {
    height: 160px;
}

/* Project image - proper scaling */
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.project-image-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent-primary);
    opacity: 0.3;
}

.project-content {
    padding: 2rem;
}

/* Tighter padding in snap sections */
.section-snap .project-content {
    padding: 1.5rem;
}

.project-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-secondary);
    margin-bottom: 0.75rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.project-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(0, 217, 255, 0.08);
    color: var(--accent-primary);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 217, 255, 0.15);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.project-links a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* "All Projects" Card */
.all-projects-card {
    background: var(--bg-glass);
    backdrop-filter: var(--blur-sm);
    border: var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    text-decoration: none;
    padding: 2rem;
}

/* Make it match project card height on mobile */
@media (max-width: 767px) {
    .all-projects-card {
        min-height: 420px;
    }
}

.all-projects-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
    border-radius: 20px;
    padding: 1px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.all-projects-card:hover {
    transform: translateY(-8px);
    background: var(--bg-elevated);
    border-color: rgba(0, 217, 255, 0.2);
}

.all-projects-card:hover::after {
    opacity: 1;
}

.all-projects-card-icon {
    font-size: 4rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.all-projects-card-title {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.all-projects-card-text {
    color: var(--text-muted);
    font-size: 1rem;
    text-align: center;
}

/* Carousel scroll indicators for mobile - REMOVED */
@media (max-width: 767px) {
    .section-snap {
        position: relative;
    }

    /* Removed scroll indicators
    .philosophy-grid::after,
    .projects-grid::after {
        content: '';
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
    }
    */
}

/* Status Badge - Subtle */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status-badge.demo {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.status-badge.internal {
    background: rgba(123, 104, 238, 0.15);
    color: var(--accent-secondary);
}

.status-badge .pulse {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* ==========================================
   SKILLS - Progress Bars, Clean
   ========================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
}

@media (max-width: 767px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

.skill-category {
    margin-bottom: 2rem;
}

.skill-category-title {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.skill-category-title i {
    color: var(--accent-primary);
    font-size: 1.5rem;
}

/* Skills Page - Snap Scroll Per Category */
.skill-category-section {
    position: relative;
}

.skill-category-content {
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    padding: 1.25rem 0;
    border-bottom: var(--border-subtle);
    transition: all var(--transition-fast);
}

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

.skill-item:hover {
    padding-left: 1rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.skill-name {
    font-weight: 500;
    font-size: 1rem;
}

.skill-years {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.skill-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 100px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-bar-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: var(--glow-cyan);
}

/* ==========================================
   TIMELINE - Vertical, Minimal
   ========================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

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

.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 4rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--bg-primary);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    box-shadow: var(--glow-cyan);
}

/* Experience Page - Snap Scroll Per Item */
.experience-snap-section {
    position: relative;
    padding-top: calc(var(--navbar-height) + 2rem) !important;
}

/* Experience Page - Vertical Timeline on Left */
.experience-timeline-left {
    position: fixed !important;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000 !important;
    display: flex !important;
    flex-direction: column;
    gap: 1.5rem;
    pointer-events: none;
    padding-left: 1.5rem;
}

/* Hide desktop timeline on mobile, show indicator instead */
.experience-timeline-desktop {
    display: flex !important;
}

@media (max-width: 1200px) {
    .experience-timeline-desktop {
        display: none !important;
    }
}

/* Mobile Timeline Indicator (Fixed, compact) */
.experience-timeline-indicator {
    position: fixed !important;
    bottom: 2rem;
    right: 2rem;
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border: 2px solid var(--accent-primary);
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), var(--glow-cyan);
    cursor: pointer;
    z-index: 100 !important;
    transition: all var(--transition-normal);
    pointer-events: auto;
    will-change: transform;
    transform: translateZ(0);
}

@media (max-width: 1199px) {
    .experience-timeline-indicator {
        display: flex;
    }
}

@media (max-width: 480px) {
    .experience-timeline-indicator {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.6rem 1rem;
        gap: 0.5rem;
        /* Prevent disappearing on swipe */
        position: fixed !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.experience-timeline-indicator:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), var(--glow-cyan);
    border-color: var(--accent-primary);
}

.timeline-indicator-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.25rem;
}

.timeline-indicator-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .timeline-indicator-icon {
        font-size: 1.1rem;
    }

    .timeline-indicator-text {
        font-size: 0.8rem;
    }
}

/* Mobile Timeline Expandable (Shows on scroll, auto-hides) */
.experience-timeline-expandable {
    position: fixed !important;
    bottom: 6rem;
    right: 2rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(10, 15, 26, 0.98);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border: 2px solid var(--accent-primary);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), var(--glow-cyan);
    z-index: 90 !important;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    max-height: 60vh;
    overflow-y: auto;
    /* Ensure it doesn't block scroll */
    touch-action: pan-y;
    will-change: transform, opacity;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.experience-timeline-expandable.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

@media (max-width: 1199px) {
    .experience-timeline-expandable {
        display: flex;
    }
}

@media (max-width: 480px) {
    .experience-timeline-expandable {
        bottom: 5rem;
        right: 1.5rem;
        left: 1.5rem;
        padding: 1rem;
        max-height: 50vh;
        /* Keep below navbar but above content */
        z-index: 90 !important;
    }
}

.experience-timeline-expandable::-webkit-scrollbar {
    width: 4px;
}

.experience-timeline-expandable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.experience-timeline-expandable::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 2px;
}

.experience-timeline-expandable .experience-year-item {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
}

.experience-timeline-expandable .experience-year-item:hover,
.experience-timeline-expandable .experience-year-item.active {
    background: rgba(0, 217, 255, 0.15);
    border-color: var(--accent-primary);
}

.experience-timeline-expandable .experience-year-dot {
    width: 10px;
    height: 10px;
}

.experience-timeline-expandable .experience-year-label {
    font-size: 0.85rem;
}

.experience-year-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    pointer-events: auto;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.experience-year-dot {
    width: 10px;
    height: 10px;
    background: var(--bg-secondary);
    border: 2px solid rgba(0, 217, 255, 0.5);
    border-radius: 50%;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.experience-year-item:hover .experience-year-dot,
.experience-year-item.active .experience-year-dot {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-cyan);
}

.experience-year-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.experience-year-item:hover .experience-year-label,
.experience-year-item.active .experience-year-label {
    color: var(--accent-primary);
    font-weight: 700;
}

/* Vertical line connecting dots */
.experience-timeline-left::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent,
        rgba(0, 217, 255, 0.4) 10%,
        rgba(0, 217, 255, 0.4) 90%,
        transparent
    );
}

.experience-item-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.experience-content {
    position: relative;
}

/* Projects Page - Snap Scroll Per Item */
.project-snap-section {
    position: relative;
}

.project-detail-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

/* Projects Page - Row Selector (like Experience timeline) */
.projects-row-selector {
    position: fixed !important;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000 !important;
    display: none !important; /* Hidden by default */
    flex-direction: column;
    gap: 1.5rem;
    pointer-events: none;
    padding-left: 1.5rem;
}

/* Show selector while navbar is visible (before hamburger menu appears at 991px) */
@media (min-width: 992px) {
    .projects-row-selector.has-multiple-chunks {
        display: flex !important;
    }
}

.project-row-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    pointer-events: auto;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.project-row-dot {
    width: 10px;
    height: 10px;
    background: var(--bg-secondary);
    border: 2px solid rgba(0, 217, 255, 0.5);
    border-radius: 50%;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.project-row-item:hover .project-row-dot,
.project-row-item.active .project-row-dot {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-cyan);
}

.project-row-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.project-row-item:hover .project-row-label,
.project-row-item.active .project-row-label {
    color: var(--accent-primary);
    font-weight: 700;
}

/* Vertical line connecting dots */
.projects-row-selector::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent,
        rgba(0, 217, 255, 0.4) 10%,
        rgba(0, 217, 255, 0.4) 90%,
        transparent
    );
}

/* Projects Page - Desktop Dynamic Grid with Snap Scroll */
@media (min-width: 768px) {
    .projects-page-container {
        scroll-snap-type: y mandatory !important;
        scroll-behavior: smooth;
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-top: var(--navbar-height);
        min-width: 768px;
    }

    .projects-page-container::-webkit-scrollbar {
        display: none;
    }

    .project-grid-chunk {
        scroll-snap-align: start !important;
        scroll-snap-stop: always;
        min-height: 100vh;
        max-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.5rem 1rem; /* Reduced from 2rem to prevent overflow */
        overflow: hidden;
        box-sizing: border-box;
    }

    .project-grid-chunk .container {
        max-width: 1200px;
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        margin: 0 auto;
        min-width: 400px;
        max-height: calc(100vh - var(--navbar-height) - 3rem); /* Ensure container fits */
        box-sizing: border-box;
    }

    /* Dynamic CSS Grid */
    .projects-dynamic-grid {
        display: grid;
        gap: 2rem;
        width: 100%;
        align-items: start;
        justify-items: center;
        justify-content: center;
        overflow: visible;
    }

    .projects-dynamic-grid .project-grid-item {
        width: 100%;
        max-width: 450px;
        min-width: 380px;
    }

    /* Ensure project cards don't shrink too much */
    .projects-dynamic-grid .project-card {
        min-width: 380px;
        width: 100%;
    }

    /* Large desktops */
    @media (min-width: 1600px) {
        .project-grid-chunk .container {
            max-width: 1400px;
        }

        .projects-dynamic-grid {
            gap: 2.5rem;
        }

        .projects-dynamic-grid .project-grid-item {
            max-width: 420px;
            min-width: 380px;
        }
    }

    /* Medium desktops */
    @media (min-width: 1200px) and (max-width: 1599px) {
        .project-grid-chunk .container {
            max-width: 1200px;
        }

        .projects-dynamic-grid {
            gap: 2rem;
        }

        .projects-dynamic-grid .project-grid-item {
            max-width: 400px;
            min-width: 360px;
        }
    }

    /* Small desktops / tablets - force single column */
    @media (min-width: 768px) and (max-width: 991px) {
        .project-grid-chunk {
            padding: 1rem; /* Further reduced padding for tablet */
        }

        .project-grid-chunk .container {
            max-width: 600px;
            min-width: 380px;
        }

        .projects-dynamic-grid {
            gap: 1rem; /* Reduced gap to prevent overflow */
            display: flex;
            flex-direction: column;
            align-items: center;
            overflow: visible;
        }

        .projects-dynamic-grid .project-grid-item {
            max-width: 100%;
            width: 100%;
            min-width: 360px !important;
        }

        .projects-dynamic-grid .project-card {
            min-width: 360px;
        }

        /* Show selector ONLY when there are multiple chunks */
        .projects-row-selector.has-multiple-chunks {
            display: flex !important;
        }

        /* Hide selector when only 1 chunk or not marked with has-multiple-chunks */
        .projects-row-selector:not(.has-multiple-chunks) {
            display: none !important;
        }
    }
}

/* Hide row selector on mobile and tablet */
@media (max-width: 767px) {
    .projects-row-selector {
        display: none !important;
    }

    /* Mobile keeps original single project per section */
    .projects-page-container {
        display: flex;
        flex-direction: column;
        scroll-snap-type: y mandatory !important;
        scroll-behavior: smooth;
        height: 100vh;
        overflow-y: scroll;
        overflow-x: hidden;
        min-width: 360px;
    }

    .project-grid-chunk {
        scroll-snap-align: start !important;
        scroll-snap-stop: always;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        overflow: hidden;
    }

    .projects-dynamic-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
    }

    .projects-dynamic-grid .project-grid-item {
        width: calc(100% - 2rem);
        max-width: 400px;
        min-width: 280px;
    }

    /* Very narrow screens - extra compact */
    @media (max-width: 400px) {
        .project-grid-chunk {
            padding: 0.5rem;
        }

        .projects-dynamic-grid .project-grid-item {
            width: calc(100% - 1rem);
            min-width: 260px;
        }

        .project-card {
            border-radius: 16px;
        }

        .project-content {
            padding: 1.25rem;
        }

        .project-title {
            font-size: 1.15rem;
        }

        .project-desc {
            font-size: 0.9rem;
        }
    }
}

/* Projects Page - Grid Layout (responsive, all projects in one grid) */
.project-grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

.project-grid-item {
    min-height: 450px;
}

/* Tablet: 2 columns */
@media (max-width: 1200px) {
    .project-grid-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
    .project-grid-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-grid-item {
        min-height: 400px;
    }
}

.timeline-date {
    color: var(--accent-primary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

/* Hide date on Experience page - show in navbar instead */
.experience-snap-section .timeline-date {
    display: none;
}

.timeline-company {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.timeline-position {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.timeline-content {
    background: var(--bg-glass);
    backdrop-filter: var(--blur-sm);
    border: var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
}

.timeline-content p {
    font-size: 1rem;
    margin-bottom: 0;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.timeline-projects {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: var(--border-subtle);
}

.timeline-projects-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.timeline-project {
    margin-bottom: 1rem;
}

.timeline-project:last-child {
    margin-bottom: 0;
}

.timeline-project-name {
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.timeline-project-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================
   CONTACT - Split Layout
   ========================================== */
/* Contact Page - New Grid Layout */
.contact-section {
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6rem 0 4rem 0;
}

.contact-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contact-availability-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-top: 0;
}

.contact-availability-footer {
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 280px);
    gap: 1.5rem;
    margin-bottom: 3rem;
    width: 100%;
    justify-content: center;
}

@media (max-width: 1200px) {
    .contact-info-grid {
        grid-template-columns: repeat(2, 280px);
    }
}

@media (max-width: 767px) {
    .contact-info-grid {
        grid-template-columns: 280px;
    }
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: var(--blur-sm);
    border: var(--border-subtle);
    border-radius: 20px;
    transition: all var(--transition-normal);
    width: 100%;
}

.contact-info-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 217, 255, 0.2);
}

.contact-info-content {
    flex: 1;
}

.contact-cta-card {
    cursor: pointer;
    background: rgba(0, 217, 255, 0.05);
    border-color: rgba(0, 217, 255, 0.2);
}

.contact-cta-card:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--accent-primary);
}

.btn-contact-toggle {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.contact-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: var(--border-subtle);
    margin-bottom: 2rem;
}

@media (max-width: 767px) {
    .contact-footer {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
}

.contact-form-wrapper {
    margin-top: 2rem;
    animation: fadeInDown 0.4s ease forwards;
    opacity: 1;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    position: sticky;
    top: calc(var(--navbar-height) + 2rem);
}

.contact-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 217, 255, 0.1);
    color: var(--accent-primary);
    border-radius: 12px;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item-title {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.contact-item-value {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-item-value a {
    color: var(--text-primary);
}

.contact-item-value a:hover {
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: rgba(0, 217, 255, 0.15);
    color: var(--accent-primary);
    transform: translateY(-3px);
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 0.75rem 1.25rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 2rem;
}

.availability-badge i {
    font-size: 0.5rem;
    animation: pulse 2s infinite;
}

/* Contact Form */
.contact-form {
    background: var(--bg-glass);
    backdrop-filter: var(--blur-sm);
    border: var(--border-subtle);
    border-radius: 24px;
    padding: 2.5rem;
}

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-subtle);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all var(--transition-fast);
    outline: none !important;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1) !important;
    color: var(--text-primary);
    outline: none !important;
}

.form-control:active, .form-select:active {
    outline: none !important;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Alert Messages */
.alert {
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border: none;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* ==========================================
   FOOTER - Minimal
   ========================================== */
.footer {
    background: transparent;
    border-top: var(--border-subtle);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-brand .brand-logo {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand .brand-tagline {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 767px) {
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--accent-primary);
    padding-left: 0.5rem;
}

.footer-section ul.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-section ul.contact-info li i {
    color: var(--accent-primary);
    width: 16px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: var(--border-subtle);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer-bottom .powered-by a {
    color: var(--accent-primary);
}

/* ==========================================
   BACK TO TOP - Floating
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--bg-glass);
    backdrop-filter: var(--blur-sm);
    color: var(--accent-primary);
    border: var(--border-glass);
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(0, 217, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: var(--glow-cyan);
}

/* Hide back to top on mobile */
@media (max-width: 767px) {
    .back-to-top {
        display: none !important;
    }
}

/* ==========================================
   NOT FOUND PAGE
   ========================================== */
.not-found {
    min-height: calc(100vh - var(--navbar-height) - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.not-found h1 {
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.not-found h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.not-found p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 991px) {
    :root {
        --section-padding: 80px;
    }

    /* Keep snap scroll on mobile */
    .section-snap {
        min-height: 100vh;
        scroll-snap-align: start;
        padding: 4rem 0 !important;
    }

    .navbar-collapse {
        background: rgba(10, 15, 26, 0.95);
        backdrop-filter: var(--blur-md);
        padding: 1.5rem;
        border-radius: 16px;
        margin-top: 1rem;
        border: var(--border-subtle);
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
    }

    .navbar-collapse.show {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        max-height: 500px;
    }

    /* Staggered animation for nav items */
    .navbar-collapse.show .nav-item {
        animation: slideInLeft 0.3s ease forwards;
    }

    .navbar-collapse.show .nav-item:nth-child(1) { animation-delay: 0.05s; }
    .navbar-collapse.show .nav-item:nth-child(2) { animation-delay: 0.1s; }
    .navbar-collapse.show .nav-item:nth-child(3) { animation-delay: 0.15s; }
    .navbar-collapse.show .nav-item:nth-child(4) { animation-delay: 0.2s; }
    .navbar-collapse.show .nav-item:nth-child(5) { animation-delay: 0.25s; }
    .navbar-collapse.show .nav-item:nth-child(6) { animation-delay: 0.3s; }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        position: static;
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 60px;
        --navbar-height: 64px;
    }

    .hero {
        padding: 2rem 1rem;
        min-height: calc(100vh - var(--navbar-height));
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: auto;
        min-width: 200px;
        max-width: 80%;
        justify-content: center;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .philosophy-item {
        padding: 2rem 1.5rem;
    }

    .projects-grid {
        gap: 1.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .projects-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .projects-filter .btn {
        width: 100%;
    }

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

    .timeline-item {
        padding-left: 2.5rem;
        padding-bottom: 3rem;
    }

    .timeline-item::before {
        left: 0;
    }

    .timeline-content {
        padding: 1rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    :root {
        --section-padding: 40px;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .project-card {
        border-radius: 16px;
    }

    .project-content {
        padding: 1.5rem;
    }

    h1 { font-size: clamp(2rem, 8vw, 3rem); }
    h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
    h3 { font-size: clamp(1.25rem, 4vw, 1.5rem); }
}

/* ==========================================
   UTILITIES
   ========================================== */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent {
    color: var(--accent-primary);
}

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

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: var(--blur-sm);
    border: var(--border-subtle);
    border-radius: 20px;
}

/* Prevent text selection on headings and brand elements */
.navbar-brand,
.hero-greeting,
.hero-subtitle,
.section-label,
.project-title,
.timeline-company,
.contact-title,
.footer-brand .brand-logo,
.skill-category-title,
.skill-name,
.about-signature .signature,
.stat-label {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Hide/Show based on scroll */
.hide-on-top {
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.scrolled .hide-on-top {
    opacity: 1;
}

/* Container override for proper centering */
.container {
    max-width: 1200px;
}

/* ==========================================
   CUSTOM ICON & BADGE SYSTEM
   Professional, Modern, No Emojis
   ========================================== */

/* Custom SVG Icons */
.category-icon {
    width: 1.2rem;
    height: 1.2rem;
    fill: var(--accent-primary);
    transition: fill var(--transition-fast);
    margin-right: 0.5rem;
    vertical-align: middle;
}

.category-icon:hover {
    fill: var(--accent-secondary);
}

.category-icon-small {
    width: 1rem;
    height: 1rem;
}

.category-icon-large {
    width: 1.5rem;
    height: 1.5rem;
}

/* Philosophy Icons */
.philosophy-icon-svg {
    width: 2.5rem;
    height: 2.5rem;
    fill: var(--accent-primary);
    margin: 0 auto 1rem auto;
    display: block;
    padding: 0.5rem;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.philosophy-icon-svg:hover {
    fill: var(--accent-secondary);
    background: rgba(123, 104, 238, 0.1);
    transform: translateY(-2px);
}

/* Modern Badge System - NO ROUND BADGES */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    border: 1px solid;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

/* Status Badge Variants */
.status-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border-color: rgba(16, 185, 129, 0.3);
}

.status-badge.demo {
    background: rgba(0, 217, 255, 0.15);
    color: var(--accent-primary);
    border-color: rgba(0, 217, 255, 0.3);
}

.status-badge.internal {
    background: rgba(123, 104, 238, 0.15);
    color: var(--accent-secondary);
    border-color: rgba(123, 104, 238, 0.3);
}

.status-badge.delivered {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border-color: rgba(245, 158, 11, 0.3);
}

/* Project Category Styling */
.project-category {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Filter Button Styling - Modern, No Emojis */
.btn-outline-custom {
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    background: transparent;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-custom:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
    transform: translateY(-1px);
}

.btn-primary-custom {
    background: var(--accent-gradient);
    border: 1px solid transparent;
    color: var(--text-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    box-shadow: var(--glow-soft);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-custom:hover {
    transform: translateY(-1px);
    box-shadow: var(--glow-cyan);
}

/* Tech Tag Styling - Geometric Design */
.tech-tag {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    margin: 0.15rem;
    transition: all var(--transition-fast);
}

.tech-tag:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .category-icon,
    .status-badge,
    .btn-outline-custom,
    .btn-primary-custom,
    .tech-tag {
        transition: none;
    }
}

/* ==========================================
   NEW SKILLS SIGNAL BAR SYSTEM
   Professional signal-style indicators
   ========================================== */

.skill-item-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-item-new:last-child {
    border-bottom: none;
}

.skill-name-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.skill-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.skill-experience {
    font-size: 0.85rem;
    color: var(--text-secondary);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.skill-signal-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.skill-signal {
    display: flex;
    align-items: end;
    gap: 2px;
    height: 24px;
}

.signal-bar {
    width: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    transition: background-color var(--transition-fast);
}

.signal-bar:nth-child(1) { height: 6px; }
.signal-bar:nth-child(2) { height: 10px; }
.signal-bar:nth-child(3) { height: 14px; }
.signal-bar:nth-child(4) { height: 18px; }
.signal-bar:nth-child(5) { height: 22px; }

.signal-bar.active {
    background: var(--accent-primary);
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.4);
}

.skill-level-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-left: 0.5rem;
    min-width: 35px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Desktop Skills Layout - Full width, vertical list like in screenshot */
@media (min-width: 768px) {
    .skill-category-section {
        padding-top: 6rem !important; /* Increased to push skills lower on desktop */
    }

    .skill-category-content {
        max-width: 1200px;
        display: block;
        margin-top: 2rem; /* Additional top margin */
    }

    .skill-item-new {
        padding: 1.25rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .skill-item-new:last-child {
        border-bottom: none;
    }

    .skill-name-section {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .skill-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .skill-experience {
        font-size: 0.9rem;
        color: var(--text-secondary);
    }

    .skill-signal-container {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    /* Show signal bars on desktop */
    .skill-signal {
        display: flex !important;
        align-items: flex-end;
        gap: 3px;
        height: 28px;
    }

    .signal-bar {
        width: 5px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
    }

    .signal-bar:nth-child(1) { height: 8px; }
    .signal-bar:nth-child(2) { height: 12px; }
    .signal-bar:nth-child(3) { height: 16px; }
    .signal-bar:nth-child(4) { height: 20px; }
    .signal-bar:nth-child(5) { height: 24px; }

    .signal-bar.active {
        background: var(--accent-primary);
        box-shadow: 0 0 8px rgba(0, 217, 255, 0.4);
    }

    .skill-level-text {
        font-size: 1rem;
        font-weight: 700;
        color: var(--accent-primary);
        min-width: 50px;
        text-align: right;
    }
}

/* Mobile 2 Columns */
@media (max-width: 767px) and (min-width: 576px) {
    .skill-category-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 575px) {
    .skill-item-new {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
    }

    .skill-name-section {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .skill-signal-container {
        width: 100%;
        justify-content: space-between;
    }
}

/* ==========================================
   CONTACT PAGE IMPROVEMENTS
   Modern availability indicator
   ========================================== */

.availability-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    color: #10B981;
    font-weight: 500;
    font-size: 0.9rem;
    gap: 0.5rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.availability-badge i {
    font-size: 0.7rem;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Remove old skill bar styles - replace with signal */
.skill-bar,
.skill-bar-fill {
    display: none;
}

.skill-header {
    display: none;
}

/* Additional responsive improvements for contact page */
@media (max-width: 575px) {
    .availability-badge {
        width: 100%;
        justify-content: center;
    }

    .contact-item {
        flex-direction: row;
        align-items: flex-start;
    }

    .social-links {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   MOBILE SPECIFIC IMPROVEMENTS
   ========================================== */

/* Home Page - Mobile Adjustments */
@media (max-width: 767px) {
    /* Hero Section - Aligned with navbar, cards lower */
    .hero {
        min-height: calc(100vh - var(--navbar-height));
        padding: 4rem 1.5rem 4rem; /* Increased top padding from 2rem to 4rem */
        align-items: flex-start; /* Changed from flex-end */
        padding-top: 4rem; /* Match Experience alignment */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .hero-content {
        margin-top: 3rem; /* Add top margin to push content lower */
    }

    .hero-greeting {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.25rem);
        margin-bottom: 1rem;
    }

    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Hide section headers on mobile to save space */
    .section-snap .section-header {
        display: none;
    }

    /* Remove all visible borders/lines on mobile */
    .section,
    .section-snap,
    .philosophy-item,
    .about-card,
    .project-card {
        border: none !important;
    }

    /* Remove border from skill items */
    .skill-item-new {
        border-bottom: none !important;
    }

    /* Philosophy Section - Cards lower, matching Experience alignment */
    .section-snap:nth-child(2) {
        min-height: calc(100vh - var(--navbar-height));
        padding-top: 4rem; /* Match Experience */
        padding-bottom: 1rem;
        display: flex;
        align-items: flex-start; /* Changed from center */
    }

    .section-snap:nth-child(2) .philosophy-grid {
        margin-top: 3rem; /* Add top margin */
    }

    /* Projects Section - Raised higher on mobile */
    .section-snap:nth-child(3) {
        min-height: calc(100vh - var(--navbar-height));
        padding-top: 2rem; /* Reduced from 4rem to raise projects carousel */
        padding-bottom: 1rem;
        display: flex;
        align-items: flex-start;
    }

    .section-snap:nth-child(3) .projects-grid {
        margin-top: 1.5rem; /* Reduced from 3rem to raise carousel */
        margin-bottom: 0.5rem;
    }

    /* Ensure proper spacing for all snap sections */
    .section-snap {
        scroll-snap-align: start;
    }
}

/* About Page - Mobile Adjustments */
@media (max-width: 767px) {
    /* About Cards - First carousel lower */
    .about-page-section-1 {
        padding-top: calc(var(--navbar-height) + 4rem) !important; /* Increased from 2rem to push lower */
        padding-bottom: 1rem !important;
    }

    .about-carousel {
        padding: 0;
        gap: 0.25rem;
        /* First carousel lower */
        margin-top: 3rem; /* Increased from 1.5rem to push lower */
    }

    .about-card {
        /* Reduced height to not go below navbar */
        min-height: calc(100vh - var(--navbar-height) - 8rem);
        max-height: calc(100vh - var(--navbar-height) - 8rem);
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }

    /* Image Card - Rounded rectangle */
    .about-image-card {
        padding: 0.5rem;
        height: 100%;
        border-radius: 24px;
    }

    .about-main-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 20px;
    }

    /* Text Card - Compact */
    .about-text-card {
        padding: 1rem 1.25rem;
    }

    .about-text-large {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }

    .about-text-normal {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }

    .about-goal {
        padding: 0.6rem 0.85rem;
        font-size: 0.9rem;
    }

    .about-goal i {
        font-size: 1.2rem;
    }

    /* LinkedIn Card - Compact */
    .linkedin-card {
        padding: 1rem 1.25rem;
    }

    .linkedin-header {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .linkedin-header i {
        font-size: 1.5rem;
    }

    .linkedin-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.25rem;
    }

    .linkedin-title {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .linkedin-location {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .btn-linkedin {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Card Text - Animations */
    .about-text-card {
        animation: fadeInUp 0.6s ease forwards;
    }

    .about-text-large,
    .about-text-normal,
    .about-goal {
        opacity: 0;
        animation: fadeInUp 0.6s ease forwards;
    }

    .about-text-large {
        animation-delay: 0.2s;
    }

    .about-text-normal {
        animation-delay: 0.4s;
    }

    .about-goal {
        animation-delay: 0.6s;
    }

    /* Philosophy Cards on About Page - Aligned same as first carousel */
    .section-snap:nth-child(2) {
        padding-top: 4rem !important; /* Match first carousel alignment */
        padding-bottom: 1rem;
    }

    .section-snap:nth-child(2) .philosophy-carousel {
        margin-top: 3rem; /* Match first carousel margin */
    }

    /* Hide section headers on About page mobile */
    .about-page-section-1 .section-header {
        display: none;
    }
}

/* Experience Page - Mobile Adjustments */
@media (max-width: 1199px) {
    /* Hide timeline indicator by default during scroll */
    .experience-timeline-expandable {
        display: none !important;
    }

    /* Show only on manual trigger */
    .experience-timeline-expandable.show {
        display: flex !important;
    }

    /* Auto-hide timeline on scroll */
    body.scrolling .experience-timeline-expandable {
        opacity: 0;
        pointer-events: none;
    }

    /* Hide role title on mobile - shown in navbar instead */
    .timeline-company.mobile-hide {
        display: none;
    }

    /* Experience sections - Cards pushed lower for better alignment */
    .experience-snap-section {
        min-height: calc(100vh - var(--navbar-height));
        padding-top: 4rem !important; /* Increased from 3rem to push cards lower */
        padding-bottom: 6rem !important; /* Extra space for indicator */
        display: flex;
        align-items: flex-start;
    }

    .experience-item-wrapper {
        margin-top: 3rem; /* Increased from 2rem for additional spacing */
    }

    /* Experience content sizing */
    .timeline-content {
        font-size: 0.9rem;
        padding-top: 0;
        padding-bottom: 2rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Amida IT - Reduce text size */
    .timeline-item:first-child .timeline-content,
    .timeline-item:first-child .timeline-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .timeline-projects {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .timeline-project {
        margin-bottom: 0.75rem;
    }

    .timeline-project-desc {
        font-size: 0.85rem;
    }
}

/* Projects Page - Enable Snap Scroll on Mobile */
@media (max-width: 767px) {
    .projects-page-container {
        display: flex;
        flex-direction: column;
    }

    .project-snap-section {
        scroll-snap-align: start;
        scroll-snap-stop: always;
        min-height: calc(100vh - var(--navbar-height));
        display: flex;
        align-items: center; /* Center vertically */
        justify-content: center; /* Center horizontally */
        padding: 1rem;
    }

    .project-snap-section .container {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .project-snap-section .row {
        width: 100%;
        margin: 0;
        display: flex;
        justify-content: center; /* Center row content */
    }

    .project-snap-section .project-grid-item {
        min-height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .project-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Desktop: Show grid layout */
@media (min-width: 768px) {
    .projects-page-container {
        padding: 4rem 0;
    }

    .project-snap-section {
        min-height: auto;
        padding: 0;
        margin-bottom: 2rem;
    }

    .project-snap-section .container {
        max-width: 100%;
    }

    /* Grid layout for desktop */
    .projects-page-container {
        display: block;
    }
}

/* Skills Page - Mobile Navigation Selector */
@media (max-width: 767px) {
    /* Add space in navbar for selector */
    .navbar-section-title {
        display: block !important;
        position: static !important;
        transform: none !important;
        margin-left: 0 !important;
        font-size: 0.85rem !important;
    }

    .navbar-filter-dropdown {
        display: inline-block !important;
        margin-left: 0.5rem !important;
    }

    /* Skills sections - Cards lower, matching Experience alignment */
    .skill-category-section {
        min-height: calc(100vh - var(--navbar-height));
        padding-top: 4rem !important; /* Match Experience */
        padding-bottom: 1rem !important;
        display: flex;
        align-items: flex-start; /* Changed from center */
    }

    .skill-category-content {
        width: 100%;
        margin-top: 3rem; /* Add top margin to match Experience */
        display: block; /* Override grid on mobile */
    }

    /* Skills - Compact mobile layout */
    .skill-item-new {
        padding: 0.6rem 0;
        gap: 0.4rem;
    }

    .skill-name-section {
        flex: 1 1 100%;
        margin-bottom: 0.3rem;
    }

    .skill-title {
        font-size: 0.95rem;
        margin-bottom: 0.15rem;
    }

    .skill-experience {
        font-size: 0.8rem;
        border-bottom: none;
    }

    /* Hide signal bars on mobile */
    .skill-signal {
        display: none !important;
    }

    /* Remove signal bars, keep only level text */
    .skill-signal-container {
        flex: 1 1 100%;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
    }

    .skill-signal {
        display: none; /* Hide signal bars on mobile */
    }

    .skill-level-text {
        font-size: 0.85rem;
        margin-left: 0;
        order: 1;
    }

    /* Move experience to same row as level */
    .skill-item-new {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .skill-name-section {
        flex: 1 1 100%;
    }

    .skill-signal-container {
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        width: auto;
        margin-left: auto;
    }

    /* Show experience years inline with level */
    .skill-experience {
        display: inline-block;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-secondary);
    }
}
