/* Modern Glassmorphic Theme - Production Ready */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    /* --- palette --- */
    --color-primary: #6366f1;
    --color-primary-active: #4f46e5;
    --color-accent: #2dd4bf;
    --color-secondary: #ec4899;
    /* Pink-500 */
    --color-text-body: #334155;
    --color-text-heading: #0f172a;
    --color-text-muted: #64748b;
    --color-text-light: #ffffff;
    --color-bg-body: #f8fafc;

    /* --- gradients --- */
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.25) 100%);
    --gradient-glass-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    --gradient-border: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 100%);

    /* --- spacing scale --- */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* --- typography --- */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;

    /* Fluid Type Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: clamp(1.5rem, 3vw, 2rem);
    --text-3xl: clamp(2rem, 4vw, 3rem);
    --text-4xl: clamp(2.5rem, 5vw, 4.5rem);

    /* --- glassmorphism --- */
    --glass-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --glass-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --glass-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --glass-shadow-hover: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
    --glass-blur: blur(20px);
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;

    /* --- transitions --- */
    --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Fix for navbar overlap */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    /* Thinner width */
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    /* Thinner border */
    background-clip: padding-box;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-primary-active), var(--color-secondary));
    border: 1px solid white;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-body);
    background-color: #eef2ff;
    /* Animated Gradient Background - Darker & More Visible */
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.4) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.4) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(45, 212, 191, 0.4) 0, transparent 50%),
        radial-gradient(at 0% 100%, rgba(99, 102, 241, 0.4) 0, transparent 50%);
    background-size: 150% 150%;
    animation: gradient-move 15s ease infinite;
    background-attachment: fixed;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    /* Ensure z-indexing works for children */
}

#bg-canvas {
    position: absolute;
    /* Changed from fixed to absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind content but in hero */
    pointer-events: auto;
    /* Allow interactions */
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--color-text-heading);
    line-height: 1.1;
    font-weight: 700;
}

h1 {
    font-size: var(--text-4xl);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-6);
}

h2 {
    font-size: var(--text-3xl);
    letter-spacing: -0.01em;
    margin-bottom: var(--space-4);
    display: inline-block;
    /* White shimmer effect on dark text */
    background: linear-gradient(90deg,
            var(--color-text-heading) 0%,
            var(--color-text-heading) 45%,
            #94a3b8 50%,
            var(--color-text-heading) 55%,
            var(--color-text-heading) 100%);
    background-size: 200% auto;
    /* Reset to 200% as 1000% might break on some browsers, but adjust logic */
    /* actually, user wants "time" fix. Overlap happens if gradient repeats. 
       Let's use no-repeat and keyframes that move it through. 
       But gradient text needs to be cover or sized. 
       Let's stick to the 500% plan but formatted correctly this time. 
    */
    background: linear-gradient(90deg,
            var(--color-text-heading) 0%,
            var(--color-text-heading) 48%,
            #94a3b8 50%,
            var(--color-text-heading) 52%,
            var(--color-text-heading) 100%);
    background-size: 500% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 8s linear infinite;
}

h2 span {
    /* Blue base with white shimmer */
    background: linear-gradient(90deg,
            var(--color-primary) 0%,
            var(--color-primary) 48%,
            #ffffff 50%,
            var(--color-primary) 52%,
            var(--color-primary) 100%);
    background-size: 500% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 8s linear infinite;
}

h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

p {
    margin-bottom: var(--space-4);
    max-width: 65ch;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--space-4);
}

.section-padding {
    padding-block: var(--space-16);
}

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

.text-center p {
    margin-inline: auto;
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.hidden {
    display: none;
}

/* Grid System */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: var(--space-8);
}

/* Glass Components */
.glass-card {
    background: var(--gradient-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--glass-shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth), background 0.4s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--glass-shadow-hover);
    background: var(--gradient-glass-hover);
    border-color: #fff;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 600;
    transition: all 0.2s var(--ease-smooth);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-display);
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 10px 20px -10px var(--color-primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: white;
    z-index: -1;
    transition: width 0.4s var(--ease-smooth);
}

.btn-primary:hover {
    color: var(--color-primary);
    border-color: white;
    /* Added as requested */
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px var(--color-primary);
    /* Removed background change */
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.4);
    color: var(--color-primary);
    border-color: rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: white;
    z-index: -1;
    transition: width 0.4s var(--ease-smooth);
}

.btn-glass:hover {
    background: transparent;
    color: var(--color-primary);
    /* Ensure text stays primary color */
}

.btn-glass:hover::before {
    width: 100%;
}

.btn-glass-dark {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-heading);
    border: 1px solid var(--color-text-muted);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-glass-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    /* Ensure this is explicitly blue/primary color */
    background: var(--color-primary);
    z-index: -1;
    transition: width 0.4s var(--ease-smooth);
}

.btn-glass-dark:hover {
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    background: transparent;
}

.btn-glass-dark:hover::before {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-block: var(--space-8);
    /* Increased to 2rem for maximum spacing */
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-block: var(--space-4);
    /* Reduce slightly when scrolled */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    align-items: center;
    position: relative;
    /* Needed for absolute centering of links */
    justify-content: space-between;
    /* Ensures logo and toggle are on edges */
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-heading);
    z-index: 1001;
}

.logo img {
    height: 2.2rem;
    width: auto;
    object-fit: contain;
    /* Stronger white glow + shadow for maximum visibility */
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 3px rgba(255, 255, 255, 0.7)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}

/* Centered Navigation Links */
.nav-links {
    display: flex;
    gap: var(--space-8);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    padding: 0.75rem 2.5rem;
    /* More generous padding */
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.65);
    /* Slightly more opaque */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.nav-links:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    transform: translate(-50%, -50%);
    /* Maintain centering without lift */
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-heading);
    border: none;
    background: transparent;
    padding: 0.5rem;
    margin-left: auto;
    /* Push to right on mobile */
}

/* Mobile Menu */
/* Mobile Menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1100;
        /* Ensure button is ALWAYS on top of the menu overlay */
    }

    .nav-links {
        position: fixed;
        inset: 0;
        left: 0;
        transform: translateX(100%);
        /* Reset transform for mobile slide */
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        /* Less transparent for cleaner look */
        backdrop-filter: blur(10px);
        /* Lighter blur for performance */
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-8);
        transform: translateX(100%);

        /* Add visibility transition */
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.4s;

        /* Silk smooth, no elastic bounce */
        font-size: 1.25rem;
        margin: 0;
        border-radius: 0;
        width: 100%;
        height: 100vh;
        border: none;
        z-index: 1050;
        /* High, but below button */
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--space-16);
    position: relative;
    overflow: hidden;
    /* Contain the canvas */
}

/* Ensure content sits above canvas */
.hero .container {
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}

@keyframes text-shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.hero h1 span {
    /* Pink-Blue gradient flow with subtle white shine */
    background: linear-gradient(90deg,
            var(--color-primary) 0%,
            var(--color-secondary) 48%,
            #ffffff 50%,
            var(--color-secondary) 52%,
            var(--color-primary) 100%);
    background-size: 500% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 8s linear infinite;
}

/* Features/Services */
.icon-box {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, #fff 0%, #f0f4ff 100%);
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.15);
}

/* About Section */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    position: relative;
    z-index: 1;
}

#about {
    position: relative;
}

#about-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind content */
    pointer-events: none;
}

.about-img {
    width: 100%;
    height: auto;
    /* Fix aspect ratio */
    object-fit: cover;
    /* Ensure image covers area if constraints exist */
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow-lg);
    transition: transform 0.3s ease;
}

.about-img:hover {
    transform: translateY(-5px);
    /* Simple lift on hover */
}

@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
}

.faq-button {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text-heading);
    font-size: 1rem;
}

.faq-button:focus-visible {
    outline: 2px solid var(--color-primary);
    z-index: 1;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-button[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    color: var(--color-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease-smooth);
    padding-inline: 1.5rem;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Contact Form */
.grid-contact {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-12);
}

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

.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: white;
}

.feedback-msg {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    display: none;
}

.feedback-msg.success {
    background: #dcfce7;
    color: #166534;
    display: block;
}

.feedback-msg.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* --- Animations & Keyframes --- */
@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .section-padding {
        padding-block: var(--space-8);
    }

    .hero {
        padding-top: var(--space-12);
        padding-bottom: var(--space-8);
    }

    /* Mobile Typography Refinement */
    h1 {
        font-size: 2.25rem;
        /* Better fit than var(--text-3xl) */
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p {
        font-size: 0.95rem;
        /* Slightly smaller for mobile readability */
        line-height: 1.5;
    }

    .glass-card {
        padding: 1.5rem;
        /* Tighter padding */
    }

    .logo img {
        height: 1.4rem;
        /* Smaller size for mobile responsiveness */
    }


    /* Optimization: Reduce blur for mobile smoothness */
    .glass-card,
    .nav-links {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* --- Prism Glass Footer (Full Width) --- */
.prism-footer {
    margin-top: 0;
    padding-top: var(--space-12);
    padding-bottom: var(--space-8);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* Ensure canvas doesn't spill */
}

#footer-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 1;
    /* Full visibility */
    pointer-events: none;
}

/* Holo-Top Border */
.prism-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    z-index: 2;
    /* Above canvas */
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr;
    gap: var(--space-12);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: var(--space-8);
}

.footer-logo {
    font-size: 1.75rem;
    margin-bottom: var(--space-4);
    display: inline-block;
}

.gradient-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-bio {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-6);
    font-size: 0.95rem;
}

/* Socials (Spotlight Effect) */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-body);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.social-btn i {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-4px) rotate(8deg);
    border-color: transparent;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.social-btn:hover::before {
    opacity: 1;
}

.social-btn:hover i {
    color: white;
    transform: scale(1.1);
}

/* Nav Columns (Magnetic Underline) */
.footer-nav {
    display: flex;
    gap: var(--space-12);
    justify-content: center;
}

.nav-col h4,
.footer-action h4 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-6);
    color: var(--color-text-heading);
    opacity: 0.8;
}

.nav-col ul {
    list-style: none;
    padding: 0;
}

.nav-col li {
    margin-bottom: 0.75rem;
}

.nav-col a {
    color: var(--color-text-muted);
    transition: color 0.3s;
    font-size: 0.95rem;
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
}

.nav-col a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-col a:hover {
    color: var(--color-text-heading);
}

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

/* Newsletter */
.footer-form .input-wrapper {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.3rem;
    border-radius: 99px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.footer-form .input-wrapper:focus-within {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.footer-form input {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    width: 100%;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
}

.footer-form button {
    background: var(--color-primary);
    color: white;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.footer-form button:hover {
    transform: scale(1.05);
    background: var(--color-primary-active);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.back-top-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-heading);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-top-btn:hover {
    background: var(--color-text-heading);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
        gap: var(--space-8);
    }

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

    .footer-bottom {
        flex-direction: column-reverse;
        gap: var(--space-4);
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s var(--ease-smooth);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Holographic FAQ (Ultra Compact) --- */
/* --- Holographic FAQ (Modern & Clean) --- */
#faq {
    position: relative;
    overflow: hidden;
    /* Contain the smog */
}

#faq-prisms-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind content */
    opacity: 1;
    pointer-events: none;
}

#contact-waves-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 1;
    pointer-events: none;
}

#contact .container {
    position: relative;
    z-index: 2;
}


#faq .container {
    position: relative;
    z-index: 2;
    /* Content above smog */
}

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

.faq-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.faq-card:hover {
    background: rgba(255, 255, 255, 0.65);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 255, 255, 0.8);
}

.faq-card[data-expanded="true"] {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.1);
    border-color: rgba(255, 255, 255, 1);
}

.faq-button {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-heading);
    transition: color 0.2s;
}

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

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    color: var(--color-primary);
    transition: transform 0.4s var(--ease-elastic), background 0.2s, color 0.2s;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-button[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-body);
}

/* --- Modern Glass Contact Form (Decent & Smooth) --- */
.form-container {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1.25rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.floating-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    /* Reduced padding */
    font-size: 0.95rem;
    /* Slightly smaller font */
    font-weight: 500;
    color: var(--color-text-heading);
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.75rem;
    /* Slightly tighter radius */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-input:focus {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.floating-label {
    position: absolute;
    top: 1rem;
    left: 1.25rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1) all;
    background: transparent;
    padding: 0 0.25rem;
    z-index: 10;
}

/* Float label state */
.form-input:focus~.floating-label,
.form-input:not(:placeholder-shown)~.floating-label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    letter-spacing: 0.02em;
}

/* Liquid Button (Refined Compact) */
.liquid-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    /* Compact padding */
    font-size: 1rem;
    /* Standard readable size */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: white;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 16px -4px rgba(99, 102, 241, 0.4);
}

.liquid-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.liquid-button:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 15px 30px -8px rgba(99, 102, 241, 0.5);
}

.liquid-button:hover::before {
    opacity: 1;
}

/* Subtle inner ripple instead of big splash */
.liquid-button .liquid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 150%;
    padding-bottom: 150%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.liquid-button:active .liquid {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition: 0s;
}

/* Shine Effect */
.liquid-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: 2;
}

.liquid-button:hover::after {
    left: 100%;
}


/* Z-Index Fixes */
#faq,
#contact {
    position: relative;
    z-index: 10;
    /* Ensure interactivity above canvas */
}

/* --- Intro Overlay (God Level: Windy Cinema Fabric) --- */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    transition: visibility 2s;
    perspective: 2000px;
    /* Deep 3D space for fabric movement */
    overflow: hidden;
}

/* The Background Curtains */
.intro-curtain {
    position: absolute;
    top: 0;
    height: 100%;
    width: 51%;
    /* Slight overlap to prevent gaps */

    /* Modern Premium Texture: Subtle Dot Matrix over Gradient */
    background-image:
        radial-gradient(#a5b4fc 1px, transparent 1px),
        linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 50%, #e0e7ff 100%);
    background-size: 20px 20px, 200% 200%;
    /* Texture size, Gradient size */
    background-position: 0 0, 0 0;

    animation: gradient-flow 10s ease infinite;

    z-index: 1;
    /* Slow, majestic opening (3s) */
    transition: transform 3s cubic-bezier(0.25, 1, 0.5, 1), opacity 2s ease;
    will-change: transform;

    box-shadow: none;
}

.intro-curtain.left {
    left: 0;
    transform-origin: top left;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    /* Subtle seam overlap */
}

.intro-curtain.right {
    right: 0;
    transform-origin: top right;
    border-left: 1px solid rgba(255, 255, 255, 0.5);
}

/* Hidden State: The "Slow Cinema Open" Effect */
#intro-overlay.hidden {
    visibility: hidden;
    pointer-events: none;
}

#intro-overlay.hidden .intro-curtain.left {
    /* Slide open smoothly */
    transform: translateX(-100%);
}

#intro-overlay.hidden .intro-curtain.right {
    /* Slide open smoothly */
    transform: translateX(100%);
}

/* Remove content instantly to focus on curtains */
#intro-overlay.hidden .intro-content {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

/* Content Layer */
.intro-content {
    text-align: center;
    position: relative;
    z-index: 10;
    /* Above curtains */
    transition: opacity 0.5s ease, transform 0.8s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.intro-title {
    line-height: 1.1;
    margin-bottom: 0;
}

/* Typography Styling */
.intro-title span {
    display: block;
}

/* "Welcome to" - Elegant Serif */
.intro-title span:first-child {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #4b5563;
    /* Muted elegant dark gray */
    letter-spacing: 0.05em;
}

/* "WFM" - Bold Modern Sans with Vivid Gradient */
.intro-title .highlight {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 6rem);
    /* More Vibrant Gradient */
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    filter: drop-shadow(0 10px 20px rgba(139, 92, 246, 0.3));
    /* Glow */
}

.intro-logo {
    max-height: clamp(2.5rem, 7vw, 5rem);
    width: auto;
    object-fit: contain;
    margin-top: 2rem;
    filter: drop-shadow(0 10px 20px rgba(139, 92, 246, 0.3));
    display: inline-block;
}

/* Decorative Line */
.intro-divider {
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
    animation: divider-expand 1.5s ease-out forwards 0.8s;
    margin: 0 auto;
    border-radius: 99px;
}

@keyframes divider-expand {
    to {
        width: 120px;
    }
}

.intro-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    font-weight: 300;
    letter-spacing: 0.25em;
    /* CINEMATIC SPACING */
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

/* Glossy Reveal Animation */
.text-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: text-slide-up 1s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.5s;
}

.delay-3 {
    animation-delay: 1s;
}

@keyframes text-slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MAGNETIC BUTTON (God Level Interactive) --- */
.btn-intro {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 1.25rem 3.5rem;
    border-radius: 99px;
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    cursor: pointer;

    /* Deep Shadow */
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 20px 25px -5px rgba(79, 70, 229, 0.4),
        inset 0 2px 2px rgba(255, 255, 255, 0.3);

    transition: box-shadow 0.3s ease;
    /* Only animate shadow on hover/click */
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;

    /* Continuous Attraction Animation */
    animation:
        fade-up 1.2s ease-out 1.5s backwards,
        pulse-attract 3s infinite ease-in-out;

    letter-spacing: 0.02em;
}

/* Inner Liquid Shine - Continuous Flow */
.btn-intro::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-20deg) translateX(-150%);

    /* Auto-animate the shine */
    animation: shine-flow 4s infinite linear;
    animation-delay: 1s;
}

/* No physical movement on hover, just subtle shadow deepening */
.btn-intro:hover {
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 25px 50px -12px rgba(124, 58, 237, 0.7),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-intro:active {
    transform: scale(0.98);
    /* Subtle click feedback only */
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.4);
}

/* Animations */
@keyframes pulse-attract {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 0 20px 10px rgba(124, 58, 237, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
    }
}

@keyframes shine-flow {
    0% {
        transform: skewX(-20deg) translateX(-150%);
    }

    20% {
        transform: skewX(-20deg) translateX(150%);
    }

    /* Pass through quickly */
    100% {
        transform: skewX(-20deg) translateX(150%);
    }

    /* Wait */
}

.btn-intro i {
    transition: transform 0.3s ease;
}

.btn-intro:hover i {
    transform: translateX(4px);
}

/* --- Custom Context Toast --- */
.context-toast {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5);
    padding: 1rem 1.5rem;
}

.context-toast.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast-message {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-body);
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.toast-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.2s;
    border-bottom: 1px dashed var(--color-primary);
}

.toast-link:hover {
    border-bottom-style: solid;
    transform: translateY(-1px);
}

.btn-intro::before {
    display: none;
    /* Remove the shine effect from dark mode */
}

/* --- Portfolio Projects Section --- */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.6rem 1.4rem;
    border-radius: 99px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-text-body);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s var(--ease-smooth);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.project-card {
    background: var(--gradient-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--glass-shadow-md);
    transition: transform 0.4s var(--ease-elastic), box-shadow 0.4s var(--ease-smooth), border 0.4s var(--ease-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 1;
}

.project-card.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

.project-card.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--glass-shadow-hover);
    border-color: rgba(255, 255, 255, 0.8);
}

.project-mockup {
    height: 210px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    transition: all 0.4s var(--ease-smooth);
}

.project-card:hover .project-mockup {
    filter: saturate(1.05) brightness(1.02);
}

/* Browser/App Dot Indicator Mockup */
.project-mockup::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 18px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 12px 0 0 rgba(255, 255, 255, 0.4), 24px 0 0 rgba(255, 255, 255, 0.4);
}

.project-mockup i {
    font-size: 4.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s var(--ease-elastic);
    z-index: 2;
}

.project-card:hover .project-mockup i {
    transform: scale(1.18) rotate(3deg);
}

/* Background Mockup Geometric Elements */
.project-mockup::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    transform: rotate(45deg);
    transition: transform 0.4s var(--ease-smooth);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-card:hover .project-mockup::after {
    transform: rotate(55deg) scale(1.1);
}

.project-info {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--color-text-heading);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.project-info p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--color-primary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.project-card:nth-child(even) .project-tag {
    background: rgba(236, 72, 153, 0.08);
    color: var(--color-secondary);
}

.project-card:nth-child(3n) .project-tag {
    background: rgba(45, 212, 191, 0.08);
    color: var(--color-accent);
}

.project-footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.2s;
    margin-top: auto;
}

.project-footer-link:hover {
    gap: 0.75rem;
    color: var(--color-primary-active);
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}