/* ========================================
   CSS VARIABLES & RESET
======================================== */

:root {
    /* Colors */
    --color-primary: #30b74b;
    --color-primary-dark: #1db94f;
    --color-primary-light: #4cd964;
    --color-secondary: #6366f1;
    --color-accent: #f59e0b;
    
    --color-bg: #ffffff;
    --color-bg-secondary: #fafafa;
    --color-bg-tertiary: #f5f5f5;
    
    --color-text: #0a0a0a;
    --color-text-secondary: #6a6a6a;
    --color-text-tertiary: #9a9a9a;
    
    --color-border: #e5e5e5;
    --color-border-light: #f0f0f0;
    
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #30b74b 0%, #1db94f 100%);
    --gradient-overlay: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    
    /* Borders */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-index */
    --z-fixed: 1030;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0a0a0a;
        --color-bg-secondary: #1a1a1a;
        --color-bg-tertiary: #2a2a2a;
        --color-text: #ffffff;
        --color-text-secondary: #a0a0a0;
        --color-text-tertiary: #6a6a6a;
        --color-border: #2a2a2a;
        --color-border-light: #1a1a1a;
    }
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition-base);
}

ul, ol {
    list-style: none;
}

/* ========================================
   NAVIGATION - COMPLETE & WORKING
   ======================================== */

/* Navbar Container */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    background: #1a1a1a;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* Nav Container */
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

/* Logo */
.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 10002;
    position: relative;
    white-space: nowrap;
}

.nav-logo:hover {
    color: #30b74b;
    transform: translateY(-1px);
}

/* Desktop Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #6a6a6a;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #30b74b, #1db94f);
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: #30b74b;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Desktop CTA Button */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #30b74b 0%, #1db94f 100%);
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(48, 183, 75, 0.25);
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(48, 183, 75, 0.35);
    background: linear-gradient(135deg, #1db94f 0%, #30b74b 100%);
}

.nav-cta:active {
    transform: translateY(0);
}

.nav-cta i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.nav-cta:hover i {
    transform: translateX(4px);
}

/* ========================================
   HAMBURGER MENU BUTTON
   ======================================== */

.hamburger-menu {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    z-index: 10002;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    background: rgba(48, 183, 75, 0.08);
}

.hamburger-menu:active {
    transform: scale(0.95);
}

.hamburger-menu i {
    font-size: 24px;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: block;
}

.hamburger-menu:hover i {
    color: #30b74b;
}

/* Hamburger Active State */
.hamburger-menu.active i::before {
    content: "\f00d"; /* Font Awesome X icon */
    color: #30b74b;
}

.hamburger-menu.active {
    background: rgba(48, 183, 75, 0.12);
}

/* ========================================
   MOBILE SIDEBAR
   ======================================== */

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    right: 0;
}

/* Custom Scrollbar */
.mobile-sidebar::-webkit-scrollbar {
    width: 6px;
}

.mobile-sidebar::-webkit-scrollbar-track {
    background: #fafafa;
}

.mobile-sidebar::-webkit-scrollbar-thumb {
    background: #30b74b;
    border-radius: 3px;
}

.mobile-sidebar::-webkit-scrollbar-thumb:hover {
    background: #1db94f;
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-logo {
    font-weight: 800;
    font-size: 1.375rem;
    letter-spacing: -0.02em;
    color: #0a0a0a;
}

.close-sidebar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #30b74b, #1db94f);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(48, 183, 75, 0.3);
}

.close-sidebar:hover {
    background: linear-gradient(135deg, #1db94f, #30b74b);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(48, 183, 75, 0.4);
}

.close-sidebar:active {
    transform: rotate(90deg) scale(0.95);
}

/* Sidebar Navigation Links */
.sidebar-links {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    flex: 1;
    gap: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.5rem;
    text-decoration: none;
    color: #0a0a0a;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    position: relative;
    margin: 0 0.5rem;
    border-radius: 0 12px 12px 0;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(48, 183, 75, 0.1) 0%, 
        rgba(48, 183, 75, 0.05) 50%,
        transparent 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: 0 12px 12px 0;
}

.sidebar-link:hover::before,
.sidebar-link.active::before {
    width: 100%;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #30b74b;
    border-left-color: #30b74b;
    padding-left: 2rem;
}

.sidebar-link i {
    font-size: 1.25rem;
    width: 24px;
    min-width: 24px;
    color: #30b74b;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sidebar-link:hover i {
    transform: scale(1.2) rotate(5deg);
}

.sidebar-link span {
    flex: 1;
}

/* Sidebar CTA */
.sidebar-cta {
    margin: 1.5rem;
    padding: 1.125rem 1.5rem;
    background: linear-gradient(135deg, #30b74b 0%, #1db94f 100%);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 8px 20px rgba(48, 183, 75, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sidebar-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.sidebar-cta:hover::before {
    left: 100%;
}

.sidebar-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(48, 183, 75, 0.4);
}

.sidebar-cta:active {
    transform: translateY(-1px);
}

.sidebar-cta i {
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.sidebar-cta:hover i {
    transform: translateX(4px);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet & Mobile (1024px and below) */
@media (max-width: 1024px) {
    .nav-menu,
    .nav-cta {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }
}

/* Tablet (768px) */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .nav-logo {
        font-size: 1.375rem;
    }

    .mobile-sidebar {
        width: 100%;
        max-width: 100%;
    }

    .hamburger-menu {
        width: 44px;
        height: 44px;
    }

    .hamburger-menu i {
        font-size: 22px;
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.875rem 1rem;
    }

    .nav-logo {
        font-size: 1.25rem;
    }

    .sidebar-link {
        padding: 1rem 1.25rem;
        font-size: 0.9375rem;
    }

    .sidebar-cta {
        margin: 1rem;
        padding: 1rem;
        font-size: 0.9375rem;
    }

    .close-sidebar {
        width: 44px;
        height: 44px;
    }

    .hamburger-menu {
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   ACCESSIBILITY & PERFORMANCE
   ======================================== */

/* Focus States for Keyboard Navigation */
.nav-link:focus-visible,
.sidebar-link:focus-visible,
.nav-cta:focus-visible,
.sidebar-cta:focus-visible,
.hamburger-menu:focus-visible,
.close-sidebar:focus-visible {
    outline: 3px solid rgba(48, 183, 75, 0.5);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-sidebar,
    .sidebar-overlay,
    .hamburger-menu {
        display: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .navbar {
        border-bottom: 2px solid #0a0a0a;
    }

    .nav-link,
    .sidebar-link {
        font-weight: 700;
    }
}


/* ========================================
   HERO SECTION
======================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
    background: var(--color-bg);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--color-border-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border-light) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, 
        rgba(48, 183, 75, 0.05) 0%, 
        transparent 70%);
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 10;
    opacity: 1 !important;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--color-text-tertiary);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: translateY(0); opacity: 0; }
    50% { transform: translateY(20px); opacity: 1; }
}

/* ========================================
   BUTTONS
======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(48, 183, 75, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(48, 183, 75, 0.3);
}

.btn-secondary {
    background: var(--color-bg-tertiary);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-border);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: var(--text-lg);
}

.btn i {
    font-size: 0.875em;
    transition: var(--transition-base);
}

.btn:hover i {
    transform: translateX(4px);
}

/* ========================================
   SECTIONS
======================================== */

section {
    padding: var(--space-5xl) 2rem;
    position: relative;
    background: var(--color-bg);
    opacity: 1 !important;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================
   FILTER SECTION
======================================== */

.filter-section {
    padding: var(--space-2xl) 2rem;
    background: var(--color-bg);
    /* position: sticky; */
    top: 76px;
    z-index: 100;
    border-bottom: 1px solid var(--color-border-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.filter-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition-base);
}

.filter-btn:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-primary);
    color: var(--color-text);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: var(--color-primary);
    color: white;
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
}

.filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   PROJECTS GRID
======================================== */

.projects-section {
    background: var(--color-bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    grid-auto-flow: dense;
}

/* Project Card */
.project-card {
    position: relative;
    background: var(--color-bg);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: var(--transition-base);
    opacity: 1 !important;
    transform: none !important;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

/* Card Layouts */
.project-card.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.project-card.wide {
    grid-column: span 2;
}

.project-card.tall {
    grid-row: span 2;
}

/* Project Image */
.project-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--color-bg-tertiary);
}

.project-card.featured .project-image,
.project-card.tall .project-image {
    height: 700px;
}

.project-card.wide .project-image {
    height: 350px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    opacity: 0;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-view-btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: var(--color-primary);
    font-size: var(--text-xl);
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-view-btn {
    transform: scale(1);
    opacity: 1;
}

.project-view-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

/* Project Content */
.project-content {
    padding: 2rem;
}

.project-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(48, 183, 75, 0.1);
    color: var(--color-primary);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.project-description {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-light);
}

.project-tech {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-tech span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.project-tech i {
    font-size: var(--text-base);
    color: var(--color-primary);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.project-link i {
    font-size: 0.75rem;
    transition: var(--transition-base);
}

.project-link:hover i {
    transform: translateX(4px);
}

/* Hidden State for Filtering */
.project-card.hidden {
    display: none;
}

/* Load More */
.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.load-more-btn {
    padding: 1rem 2.5rem;
}

/* ========================================
   STATS SECTION
======================================== */

.stats-section {
    background: var(--color-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 16px rgba(48, 183, 75, 0.2);
}

.stat-icon i {
    font-size: var(--text-2xl);
    color: white;
}

.stat-card .stat-number {
    font-size: var(--text-5xl);
    font-weight: 900;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.stat-card .stat-number::after {
    content: '+';
    color: var(--color-primary);
}

.stat-card .stat-label {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
}

/* ========================================
   CTA SECTION
======================================== */

.cta-section {
    position: relative;
    padding: var(--space-5xl) 2rem;
    text-align: center;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    z-index: 0;
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    color: white;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: var(--text-xl);
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: white;
    color: var(--color-primary);
}

.cta-section .btn-outline {
    border-color: white;
    color: white;
}

.cta-section .btn-outline:hover {
    background: white;
    color: var(--color-primary);
}

/* ========================================
   FOOTER
======================================== */

.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: var(--space-4xl) 2rem var(--space-2xl);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-secondary);
    transition: var(--transition-base);
}

.footer-social a:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.footer-title {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.footer-contact i {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    transition: var(--transition-base);
}

.footer-legal a:hover {
    color: var(--color-primary);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .project-card.featured,
    .project-card.wide {
        grid-column: span 1;
    }
    
    .project-card.tall {
        grid-row: span 1;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 1.5rem 3rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .filter-wrapper {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-image {
        height: 250px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
