/* ========================================
   DevMatch - CSS Styles v2
   Nav Sticky + Hero Full Viewport
   ======================================== */

/* CSS Variables */
:root {
    /* Colors - Light Mode */
    --bg-primary: #F8F9FA;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #E9ECEF;
    --text-primary: #1A1A2E;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --primary: #1E3A8A;
    --primary-light: #3B82F6;
    --primary-dark: #1E40AF;
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --border: #E5E7EB;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.12);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #334155;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --primary: #3B82F6;
    --primary-light: #60A5FA;
    --primary-dark: #2563EB;
    --border: #334155;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.4);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ========================================
   DEVELOPMENT BANNER
   ======================================== */
.dev-banner {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.dev-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.dev-banner-text {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    font-weight: 500;
}

.dev-banner-text svg {
    flex-shrink: 0;
}

.dev-banner-close {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    opacity: 0.8;
}

.dev-banner-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.dev-banner.hidden {
    display: none;
}

/* ========================================
   NAVIGATION - Sticky
   ======================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-base);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
}

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

/* Logo - 700 28px */
.logo {
    font-weight: 700;
    font-size: 28px;
    color: var(--primary);
    letter-spacing: -0.02em;
    transition: color var(--transition-fast);
}

.logo:hover {
    color: var(--primary-light);
}

.logo-tld {
    color: var(--accent);
}

/* Nav Links - 500 16px */
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-weight: 500;
    font-size: 16px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-fast);
}

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

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

/* Theme Toggle - SVG 24px */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.theme-toggle {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-primary);
}

.theme-toggle:hover {
    background: var(--border);
    transform: scale(1.05);
}

.theme-toggle svg {
    position: absolute;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.icon-moon {
    opacity: 0;
    transform: rotate(-90deg);
}

[data-theme="dark"] .icon-sun {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .icon-moon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 100;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

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

.burger.active span:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: var(--space-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mobile-nav-links a {
    display: block;
    padding: var(--space-sm) 0;
    font-weight: 500;
    font-size: 18px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.mobile-nav-links a:hover {
    color: var(--primary);
}

/* ========================================
   HERO - Full Viewport
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #1E3A8A 0%, #3B82F6 50%, #1E40AF 100%);
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--space-3xl) 0;
}

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

/* H1 - Inter 700 64px/72px */
.hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 72px;
    color: #FFFFFF;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

/* Subtitle - Inter 500 24px */
.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-2xl);
}

/* ========================================
   PARTICLES CSS Animation
   ======================================== */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 5%; top: 20%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 15%; top: 60%; animation-delay: 1s; animation-duration: 14s; width: 12px; height: 12px; }
.particle:nth-child(3) { left: 25%; top: 30%; animation-delay: 2s; animation-duration: 10s; width: 6px; height: 6px; }
.particle:nth-child(4) { left: 35%; top: 80%; animation-delay: 3s; animation-duration: 16s; }
.particle:nth-child(5) { left: 45%; top: 15%; animation-delay: 4s; animation-duration: 11s; width: 10px; height: 10px; }
.particle:nth-child(6) { left: 55%; top: 50%; animation-delay: 5s; animation-duration: 13s; width: 14px; height: 14px; }
.particle:nth-child(7) { left: 65%; top: 25%; animation-delay: 6s; animation-duration: 15s; }
.particle:nth-child(8) { left: 75%; top: 70%; animation-delay: 7s; animation-duration: 12s; width: 6px; height: 6px; }
.particle:nth-child(9) { left: 85%; top: 40%; animation-delay: 8s; animation-duration: 14s; width: 10px; height: 10px; }
.particle:nth-child(10) { left: 90%; top: 85%; animation-delay: 9s; animation-duration: 11s; }
.particle:nth-child(11) { left: 10%; top: 90%; animation-delay: 10s; animation-duration: 13s; width: 12px; height: 12px; }
.particle:nth-child(12) { left: 50%; top: 5%; animation-delay: 11s; animation-duration: 16s; width: 8px; height: 8px; }

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.15;
    }
    25% {
        transform: translateY(-30px) translateX(15px) scale(1.1);
        opacity: 0.25;
    }
    50% {
        transform: translateY(-15px) translateX(-10px) scale(0.9);
        opacity: 0.2;
    }
    75% {
        transform: translateY(-40px) translateX(20px) scale(1.05);
        opacity: 0.3;
    }
}

/* ========================================
   DUAL SEARCH BOX
   ======================================== */
.search-dual {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.search-row {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.search-row-bottom {
    margin-bottom: 0;
}

.search-field {
    flex: 1;
    position: relative;
}

.search-field-select {
    flex: 1.5;
}

.search-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-xs);
}

.search-input,
.search-select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

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

.search-input:focus,
.search-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.search-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 44px;
}

/* Match Button - #F59E0B hover #D97706 */
.btn-match {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    min-width: 140px;
    padding: 14px 28px;
    background: #F59E0B;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    transition: all var(--transition-fast);
    align-self: flex-end;
}

.btn-match:hover {
    background: #D97706;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

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

.btn-match svg {
    transition: transform var(--transition-fast);
}

.btn-match:hover svg {
    transform: translateX(4px);
}

/* Autocomplete */
.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 10px 40px var(--shadow-lg);
}

.autocomplete-list.active {
    display: block;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: background-color var(--transition-fast);
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: var(--bg-tertiary);
}

.autocomplete-item strong {
    color: var(--accent);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-bounce 1.5s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0.3;
    }
}

/* ========================================
   STAGGERED ANIMATIONS
   ======================================== */
.anim-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.anim-item:nth-child(1) { animation-delay: 0.2s; }
.anim-item:nth-child(2) { animation-delay: 0.4s; }
.anim-item:nth-child(3) { animation-delay: 0.6s; }
.anim-item:nth-child(4) { animation-delay: 0.8s; }
.anim-item:nth-child(5) { animation-delay: 1.0s; }

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

/* ========================================
   WAVE DIVIDERS
   ======================================== */
.wave-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: -1px;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 80px;
}

.wave-divider-hero {
    margin-top: -80px;
    position: relative;
    z-index: 1;
}

.wave-divider-hero svg {
    height: 120px;
}

@media (max-width: 768px) {
    .wave-divider svg {
        height: 60px;
    }

    .wave-divider-hero svg {
        height: 80px;
    }
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.section-cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.filter-btn {
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ========================================
   PROJECTS FILTER BAR - Sticky
   ======================================== */
.projects-filter-bar {
    position: sticky;
    top: 72px;
    z-index: 40;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md) 0;
    margin-bottom: var(--space-xl);
}

[data-theme="dark"] .projects-filter-bar {
    background: rgba(15, 23, 42, 0.95);
}

.filter-bar-container {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.filter-search {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.filter-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.filter-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.filter-input::placeholder {
    color: var(--text-muted);
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.filter-location {
    min-width: 160px;
}

.filter-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all var(--transition-fast);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-clear {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 12px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-clear:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ========================================
   PROJECT CARDS - List Layout
   ======================================== */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    opacity: 1;
    transform: translateY(0);
}

.project-card.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
}

.project-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px var(--shadow);
}

/* Card Header - Title + Location */
.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.project-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

/* Project Description */
.project-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 var(--space-md) 0;
}

/* Card Body */
.project-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
}

/* Tags - Accent Style */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.tag {
    padding: 4px 16px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
}

[data-theme="dark"] .tag {
    background: rgba(245, 158, 11, 0.15);
}

/* Location Badge - Green */
.project-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #10B981;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: #FFFFFF;
    flex-shrink: 0;
}

.project-location svg {
    width: 14px;
    height: 14px;
}

/* Skills Progress Bar - Inline */
.project-skills {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    min-width: 180px;
}

.skill-bar-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.skill-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    min-width: 80px;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    border-radius: var(--radius-full);
    transition: width 0.8s ease-out;
}

.skill-percent {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    min-width: 36px;
}

/* Dual CTA Buttons */
.project-actions {
    display: flex;
    gap: var(--space-sm);
    margin-left: auto;
    flex-shrink: 0;
}

.btn-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-details:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-match-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-match-now:hover {
    background: var(--accent-dark);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Legacy cards-grid fallback */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-lg);
}

/* ========================================
   DEVELOPER CARDS
   ======================================== */
.developers {
    background: var(--bg-secondary);
}

.dev-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.dev-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.dev-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-lg);
}

.dev-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.dev-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.dev-role {
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: var(--space-sm);
}

.dev-location {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: var(--space-md);
}

.dev-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.dev-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.dev-stat {
    text-align: center;
}

.dev-stat-value {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.dev-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   FAQ - CSS Details/Summary Accordion
   ======================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--space-lg);
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition-fast);
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    display: none;
    content: '';
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-item[open] .faq-question {
    color: var(--primary);
}

.faq-answer {
    animation: faqSlideDown 0.3s ease-out;
}

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

.faq-answer p {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
    display: inline-block;
    font-size: 24px;
    margin-bottom: var(--space-md);
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: var(--space-lg);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Newsletter */
.footer-newsletter {
    margin-bottom: var(--space-lg);
}

.footer-newsletter h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.newsletter-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.newsletter-form {
    display: flex;
    gap: var(--space-xs);
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.newsletter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.newsletter-btn:hover {
    background: var(--accent-dark);
    transform: scale(1.05);
}

/* ========================================
   SCROLL REVEAL ANIMATION
   ======================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Staggered reveal for cards */
.project-card {
    transition-delay: calc(var(--card-index, 0) * 0.1s);
}

/* No results state */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    color: var(--text-muted);
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.no-results-text {
    font-size: 18px;
    font-weight: 500;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-actions {
        margin-left: 0;
        width: 100%;
        margin-top: var(--space-sm);
    }

    .project-actions .btn-details,
    .project-actions .btn-match-now {
        flex: 1;
    }

    .project-skills {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Nav */
    .nav-links {
        display: none;
    }

    .burger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .logo {
        font-size: 20px;
    }

    /* Hero */
    .hero-title {
        font-size: 48px;
        line-height: 56px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .search-row {
        flex-direction: column;
    }

    .search-row-bottom {
        flex-direction: row;
    }

    .btn-match {
        width: auto;
        flex-shrink: 0;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

    /* Sections */
    .section-title {
        font-size: 32px;
    }

    .cards-grid,
    .dev-cards-grid {
        grid-template-columns: 1fr;
    }

    /* Filter bar mobile */
    .filter-bar-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-search {
        min-width: 100%;
    }

    .filter-location {
        width: 100%;
    }

    .filter-clear {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero-title {
        font-size: 36px;
        line-height: 44px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .search-row-bottom {
        flex-direction: column;
    }

    .btn-match {
        width: 100%;
    }

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

/* ========================================
   Auth Navigation
   ======================================== */
.auth-nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

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

.user-greeting strong {
    color: var(--text-primary);
}

.btn-login {
    padding: 8px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-logout {
    padding: 8px 16px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: var(--error);
    color: #fff;
    border-color: var(--error);
}

/* Mobile Auth */
.mobile-auth {
    padding: var(--space-lg);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.user-greeting-mobile {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
}

.btn-login-mobile {
    display: block;
    padding: 12px 24px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.btn-logout-mobile {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-weight: 500;
    cursor: pointer;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
    background: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.testimonial-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

/* Different colors for each testimonial */
.testimonial-card:nth-child(1) .testimonial-avatar {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.testimonial-card:nth-child(2) .testimonial-avatar {
    background: linear-gradient(135deg, #10b981, #059669);
}

.testimonial-card:nth-child(3) .testimonial-avatar {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.testimonial-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.testimonial-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.testimonial-rating {
    font-size: 18px;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

.testimonial-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.stat-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .testimonial-card {
        padding: var(--space-lg);
    }
}
