:root {
    /* --- Modern Color Palette 2025 --- */
    --bg-void: #ffffff;
    --bg-surface: #fafbfc;
    --bg-surface-hover: #f1f3f5;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.25);
    --primary-glow-strong: rgba(99, 102, 241, 0.4);
    
    --accent: #a855f7;
    --accent-dark: #9333ea;
    --accent-light: #c084fc;
    
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-dark: #020617;

    --border-subtle: rgba(15, 23, 42, 0.08);
    --border-medium: rgba(15, 23, 42, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.3);

    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Shadows - Modern Depth */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --shadow-glow-strong: 0 0 40px rgba(99, 102, 241, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-void);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

h2 {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--ease-out);
}

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.flex {
    display: flex;
    gap: 1rem;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-padding {
    padding: 8rem 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradient-shift 3s ease infinite;
    font-weight: 800;
}

/* --- Components --- */

/* Buttons - Modern Design */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 12px;
    font-size: 1rem;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    cursor: pointer;
    border: none;
    isolation: isolate;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    z-index: -1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-2xl), var(--shadow-glow-strong);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1);
}

.btn-outline {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-medium);
    color: var(--text-main);
    box-shadow: var(--shadow-md);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
}

/* Navbar - Enhanced Glassmorphism */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 1.125rem 2.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s var(--ease-out);
    box-shadow: 
        0 8px 32px rgba(15, 23, 42, 0.08),
        0 2px 8px rgba(99, 102, 241, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 0 1px rgba(99, 102, 241, 0.03);
}

.navbar:hover {
    box-shadow: 
        0 16px 48px rgba(15, 23, 42, 0.12),
        0 8px 24px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 1px rgba(99, 102, 241, 0.08);
    transform: translateX(-50%) translateY(-3px);
    background: rgba(255, 255, 255, 0.95);
}

.navbar.scrolled {
    top: 10px;
    padding: 0.875rem 1.75rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.15),
        0 2px 12px rgba(99, 102, 241, 0.1);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s var(--ease-out);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transition: width 0.3s var(--ease-out);
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

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

/* Cards (Bento) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
}

/* --- Sections --- */

/* Hero - Enhanced */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    background: 
        radial-gradient(ellipse at top, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.12) 0%, transparent 50%);
    animation: gradient-move 20s ease infinite;
}

@keyframes gradient-move {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -20px) scale(1.1); }
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    animation: fadeInDown 0.8s var(--ease-out);
}

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

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    mix-blend-mode: multiply;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-subtle);
}

.stat-item {
    text-align: center;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.stat-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-item:nth-child(4) {
    animation-delay: 0.4s;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Featured Solutions */
.featured-grid {
    display: grid;
    gap: 4rem;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    transition: all 0.4s var(--ease-out);
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
}

.featured-card-reverse {
    grid-template-columns: 1fr 1fr;
}

.featured-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s var(--ease-out);
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.featured-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-main);
    font-size: 1rem;
}

.feature-list i {
    color: var(--primary);
    font-size: 0.875rem;
}

/* WhatsApp Buttons */
.whatsapp-nav {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    transition: all 0.3s var(--ease-out) !important;
}

.whatsapp-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-nav i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s var(--ease-out);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 8px rgba(37, 211, 102, 0.2);
    }

    100% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    }
}

@media (max-width: 968px) {

    .featured-card,
    .featured-card-reverse {
        grid-template-columns: 1fr;
    }

    .featured-card-reverse .featured-content {
        order: 1;
    }

    .featured-card-reverse .featured-image {
        order: 2;
    }

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

/* Projects Section - Modern Professional Design */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    animation: fadeIn 0.6s ease-out;
}

@media (min-width: 1400px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.project-card {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    border: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    animation: fadeInUp 0.8s ease-out backwards;
    cursor: pointer;
    isolation: isolate;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.project-card:visited {
    color: inherit;
}

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

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(168, 85, 247, 0.03));
    opacity: 0;
    transition: opacity 0.6s var(--ease-out);
    z-index: 1;
    pointer-events: none;
}

.project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-out);
    z-index: 2;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card:nth-child(n+7) { animation-delay: 0.7s; }

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

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(15, 23, 42, 0.12),
        0 8px 24px rgba(99, 102, 241, 0.08);
}

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

.project-card:hover::after {
    transform: scaleX(1);
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    aspect-ratio: 16/10;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.project-card:hover .project-image {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(15, 23, 42, 0.7) 50%,
        transparent 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
    z-index: 3;
    backdrop-filter: blur(2px);
}

.project-view-btn {
    background: #ffffff;
    color: var(--text-main);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    transition: all 0.4s var(--ease-out);
    transform: translateY(10px);
    opacity: 0;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.project-card:hover .project-view-btn {
    transform: translateY(0);
    opacity: 1;
}

.project-info {
    padding: 2rem 2rem 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.project-icon {
    display: none;
}

.project-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.project-category {
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 6px;
    width: fit-content;
}

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

.project-tech-preview {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.tech-tag {
    background: #f8fafc;
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s var(--ease-out);
    font-family: var(--font-mono);
    letter-spacing: 0.01em;
}

.tech-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Project Filters - Modern Design */
.project-filters {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    background: transparent;
    border: 1.5px solid var(--border-medium);
    color: var(--text-muted);
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
    z-index: -1;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.filter-btn.active::before {
    opacity: 1;
}

/* Project Modal */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
    padding: 2rem;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s var(--ease-out);
}

.project-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(15, 23, 42, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.25rem;
    z-index: 10;
    transition: all 0.3s var(--ease-out);
}

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

.modal-header {
    padding: 3rem 3rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-category {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-body {
    padding: 2rem 3rem 3rem;
}

.modal-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.modal-tech {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tech-label {
    font-weight: 600;
    color: var(--text-main);
}

.modal-tech .tech-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    aspect-ratio: 16/9;
    position: relative;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s var(--ease-out);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* Project Detail Page - Modern Professional Design */
.project-detail-page {
    min-height: 100vh;
    background: #ffffff;
    position: relative;
}

.project-detail-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    padding: 140px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.project-detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.12) 0%, transparent 50%);
    opacity: 1;
}

.project-detail-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Project Detail Navigation */
.project-detail-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s var(--ease-out);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateX(-4px);
}

.back-button i {
    font-size: 0.875rem;
}

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

.nav-link-small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.3s var(--ease-out);
    position: relative;
}

.nav-link-small::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s var(--ease-out);
}

.nav-link-small:hover {
    color: white;
}

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

.project-detail-header {
    position: relative;
    z-index: 2;
}

.project-header-content {
    max-width: 900px;
}

.project-category-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.project-main-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    background: none;
    -webkit-text-fill-color: white;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.project-detail-subtitle {
    font-size: 1.375rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 800px;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.project-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.meta-item i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.project-detail-content {
    padding: 6rem 0;
    background: #ffffff;
}

.project-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 5rem;
    align-items: start;
}

.project-main-content {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.content-section {
    position: relative;
}

.section-heading {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-subtle);
}

.heading-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
}

.heading-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section-content {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.9;
}

.section-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.9;
}

.feature-list-detailed {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-list-detailed li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.feature-list-detailed li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s var(--ease-out);
}

.feature-list-detailed li:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.feature-list-detailed li:hover::before {
    transform: scaleY(1);
}

.feature-list-detailed li i {
    color: var(--primary);
    font-size: 1.125rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.feature-list-detailed li span {
    color: var(--text-main);
    line-height: 1.7;
    font-size: 1rem;
}

.project-gallery-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.detail-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: #fafbfc;
    aspect-ratio: 16/10;
    position: relative;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.detail-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    border-color: var(--primary);
}

.detail-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-gallery-item:hover .detail-gallery-image {
    transform: scale(1.08);
}

/* Modern Sidebar */
.project-sidebar-modern {
    position: sticky;
    top: 120px;
}

.sidebar-sticky {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    padding: 2rem;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.sidebar-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8125rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.tech-stack .tech-tag {
    background: white;
    color: var(--text-main);
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    transition: all 0.3s var(--ease-out);
}

.tech-stack .tech-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.info-value {
    font-size: 0.9375rem;
    color: var(--text-dark);
    font-weight: 600;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.125rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s var(--ease-out);
    width: 100%;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.cta-button i {
    font-size: 0.875rem;
    transition: transform 0.3s var(--ease-out);
}

.cta-button:hover i {
    transform: translateX(4px);
}

/* Project Navigation Footer */
.project-navigation {
    padding: 5rem 0;
    background: #fafbfc;
    border-top: 1px solid var(--border-subtle);
}

.project-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.nav-project-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
    color: var(--text-main);
}

.nav-project-card:hover {
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}

.nav-project-card .nav-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.nav-project-card .nav-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-project-card i {
    color: var(--primary);
    font-size: 1.25rem;
    transition: transform 0.3s var(--ease-out);
}

.nav-project-card:hover i {
    transform: translateX(4px);
}

/* Hide navbar when on project detail page */
.project-detail-page ~ .navbar {
    display: none;
}

/* Footer - Enhanced */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 6rem 0 3rem;
    background: 
        linear-gradient(to bottom, var(--bg-void) 0%, var(--bg-surface) 100%),
        radial-gradient(ellipse at top, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

.footer h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer p {
    color: var(--text-muted);
    max-width: none;
    font-size: 1rem;
    line-height: 1.7;
}

.footer a {
    transition: all 0.3s var(--ease-out);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
}

.footer a:hover {
    color: var(--primary);
    transform: translateY(-3px);
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.footer .flex-center {
    margin-bottom: 2rem;
}

/* Skip to Content Link (Accessibility) */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 10000;
    border-radius: 4px;
}

.skip-to-content:focus {
    top: 20px;
    left: 20px;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 968px) {
    .container {
        padding: 0 1.5rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    /* Contact Section Tablet */
    .contact .grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    .contact h2 {
        font-size: 2.25rem;
    }

    .contact .card[style*="height: 400px"] {
        height: 350px !important;
    }

    .contact iframe {
        height: 350px !important;
    }
}

/* Contact Section Mobile Responsive */
@media (max-width: 768px) {
    /* Contact Section */
    .contact {
        padding: 3rem 0 !important;
    }

    .contact .container {
        padding: 0 1.25rem;
    }

    .contact .grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .contact h2 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.2;
    }

    .contact > .container > .grid > div:first-child p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .contact .card {
        padding: 1.25rem !important;
        margin-bottom: 0 !important;
    }

    .contact .card.flex {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }

    .contact .card i {
        font-size: 1.25rem !important;
        margin-top: 0.25rem;
        flex-shrink: 0;
    }

    .contact .card h4 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .contact .card p,
    .contact .card address {
        font-size: 0.875rem !important;
        line-height: 1.5;
        word-break: break-word;
    }

    .contact .card a {
        font-size: 0.875rem !important;
    }

    /* Contact Info Grid */
    .contact > .container > .grid > div:first-child > div {
        gap: 1rem !important;
        margin-top: 1.5rem !important;
    }

    /* Map Container */
    .contact .card[style*="height: 400px"] {
        height: 300px !important;
        border-radius: 12px;
        overflow: hidden;
    }

    .contact iframe {
        height: 300px !important;
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 2.5rem 0 !important;
    }

    .contact .container {
        padding: 0 1rem;
    }

    .contact h2 {
        font-size: 1.75rem !important;
        margin-bottom: 0.875rem !important;
    }

    .contact > .container > .grid > div:first-child p {
        font-size: 0.9375rem !important;
        margin-bottom: 1.25rem;
    }

    .contact .grid {
        gap: 2rem !important;
    }

    .contact .card {
        padding: 1rem !important;
    }

    .contact .card.flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        text-align: left;
    }

    .contact .card i {
        font-size: 1.125rem !important;
    }

    .contact .card h4 {
        font-size: 0.9375rem !important;
        margin-bottom: 0.375rem !important;
    }

    .contact .card p,
    .contact .card address {
        font-size: 0.8125rem !important;
    }

    .contact .card a {
        font-size: 0.8125rem !important;
    }

    /* Map Container */
    .contact .card[style*="height: 400px"] {
        height: 250px !important;
    }

    .contact iframe {
        height: 250px !important;
        min-height: 250px;
    }

    .contact > .container > .grid > div:first-child > div {
        gap: 0.875rem !important;
        margin-top: 1.25rem !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 95%;
        padding: 1rem;
        border-radius: 16px;
        top: 10px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        border: 1px solid var(--border-subtle);
        border-radius: 16px;
        margin-top: 0.5rem;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

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

    .stat-number {
        font-size: 2rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        bottom: 20px;
        right: 20px;
    }

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

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

    .project-image-wrapper {
        height: 200px;
    }

    .project-detail-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-sidebar-modern {
        position: static;
    }

    .project-detail-hero {
        padding: 120px 0 60px;
    }

    .project-detail-nav {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .project-nav-links {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .project-main-title {
        font-size: 2.5rem;
    }

    .project-detail-subtitle {
        font-size: 1.125rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .project-main-content {
        gap: 3.5rem;
    }

    .section-heading {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .heading-text {
        font-size: 1.75rem;
    }

    .project-gallery-modern {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-list-detailed {
        grid-template-columns: 1fr;
    }

    .project-nav-grid {
        grid-template-columns: 1fr;
    }

    .project-detail-content {
        padding: 4rem 0;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .project-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}