/* ==========================================================================
   File: css/style.css
   ========================================================================== */

/* ==========================================================================
   Wbee.site | Premium Glassmorphism Design System (Dark Theme Optimized)
   ========================================================================== */

:root {
    /* Color Palette - Dark Theme Optimized */
    --color-bg: #0f1115;
    --color-surface: rgba(255, 255, 255, 0.05);
    --color-surface-hover: rgba(255, 255, 255, 0.08);
    --color-border: rgba(255, 255, 255, 0.15);
    --color-border-light: rgba(255, 255, 255, 0.25);
    
    /* Typography Optimized for Dark Backgrounds */
    --color-text-primary: #f8fafc;
    --color-text-secondary: #cbd5e1;
    --color-accent: #8ac035; /* Brightened Wbee Green for Contrast */
    --color-accent-hover: #98d03c;
    
    /* Typography */
    --font-sans: 'Outfit', system-ui, sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Liquid Glass Design Tokens (Refined for Dark Theme) */
    --glass-blur: 8px;
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.7);
    
    /* Navbar Base Background (Matches mobile-action-bar gradient) */
    --glass-nav-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(138, 192, 53, 0.15) 50%, rgba(59, 130, 246, 0.15) 100%);
    --glass-nav-border: 2px solid rgba(255, 255, 255, 0.25);
    
    /* Card/Pill Opacity */
    --glass-card-bg: rgba(255, 255, 255, 0.04);
    --glass-card-border: 2px solid rgba(255, 255, 255, 0.15);
    
    /* Card/Pill Hover */
    --glass-card-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-card-border-hover: 2px solid rgba(255, 255, 255, 0.3);
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea, select {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

img {
    -webkit-user-drag: none;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-primary);
    line-height: 1.2;
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Typography Utilities */
.text-accent {
    color: var(--color-accent);
}

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 8rem 0;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 600px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.w-100 {
    width: 100%;
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.text-center { text-align: center; }

/* 
  ========================================
  Liquid Glassmorphism Core System
  ========================================
*/
.glass-panel,
.glass-card,
.badge,
.tags span {
    background: var(--glass-card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-card-border);
    /* Added inset highlight for realistic glass edge on dark background */
    box-shadow: var(--glass-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* Card Shape */
.glass-panel,
.glass-card {
    border-radius: 25px;
}

/* Card Specifics & Micro-interactions */
.glass-card {
    padding: 2.5rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
    background: var(--glass-card-bg-hover);
    border: var(--glass-card-border-hover);
    transform: translateY(-6px) scale(1.02);
    /* Enhanced inner glow for depth */
    box-shadow: var(--glass-shadow-hover), inset 0 1px 3px rgba(255, 255, 255, 0.25);
}

/* 3D Grid Animated Background */
.bg-wrap {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    margin: 0 auto;
    perspective: 360px;
    perspective-origin: 50% 50%;

    /* Premium Dark Textured Background */
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08) 0%, transparent 35%),
        radial-gradient(circle at 80% 25%, rgba(255,255,255,0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(255,255,255,0.03) 0%, transparent 45%),
        repeating-linear-gradient(
            45deg,
            rgba(226, 226, 226, 0.06) 0px,
            rgba(226, 226, 226, 0.06) 2px,
            transparent 2px,
            transparent 4px
        ),
        linear-gradient(
            90deg,
            rgb(33, 33, 33),
            rgb(33, 33, 33)
        );

    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

.top-plane, 
.bottom-plane {
    width: 200%;
    height: 130%;
    position: absolute;
    left: -50%;
    background-image: 
        linear-gradient(rgba(138, 192, 53, 0.15) 2px, transparent 2px), 
        linear-gradient(90deg, rgba(138, 192, 53, 0.15) 2px, transparent 2px);
    background-size: 100px 100px, 100px 100px;
    background-position: -1px -1px, -1px -1px;
}

.top-plane {
    bottom: -30%;
    transform: rotateX(85deg);
    animation: planeMoveTop 6s infinite linear;
}

.bottom-plane {
    top: -30%;
    transform: rotateX(-85deg);
    animation: planeMoveBot 6s infinite linear;
}

@keyframes planeMoveTop {
    from { background-position: 0px -100px, 0px 0px; }
    to { background-position: 0px 0px, 100px 0px; }
}

@keyframes planeMoveBot {
    from { background-position: 0px 0px, 0px 0px; }
    to { background-position: 0px -100px, 100px 0px; }
}

@media (max-height: 350px) {
    .bg-wrap {
        perspective: 210px;
    }
}

/* Custom Liquid Glass Cursor (Desktop Only) */
html.custom-cursor,
html.custom-cursor * {
    cursor: none !important;
}

.glass-cursor-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999999;
    display: none;
    /* Force hardware acceleration for lerp translation */
    will-change: transform;
}

.glass-cursor-visual {
    width: 22px;
    height: 22px;
    /* This radius creates a perfect pointer teardrop aimed at 0,0 */
    border-radius: 0 50% 50% 50%; 
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    
    /* High contrast borders and subtle ambient glow */
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset,
        0 0 0 1px rgba(255, 255, 255, 0.1);
        
    transform-origin: 0 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, background, box-shadow;
}

/* Cursor Micro-Interactions */
.glass-cursor-wrapper.hover .glass-cursor-visual {
    transform: scale(1.6);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.4), 
        0 0 0 1px rgba(255, 255, 255, 0.25) inset, 
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.glass-cursor-wrapper.click .glass-cursor-visual {
    transform: scale(0.85);
    transition: transform 0.1s ease;
}

/* Buttons & Interactive Elements */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.96);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--color-accent);
    color: #0f1115; /* Dark text for contrast against vibrant button */
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 4px 15px rgba(138, 192, 53, 0.35);
}

.btn-outline {
    background: transparent;
    border-color: var(--color-border-light);
    color: var(--color-text-primary);
}

.btn-outline:hover {
    background: var(--color-text-primary);
    border-color: var(--color-text-primary);
    color: var(--color-bg);
}

/* Navigation - Liquid Glass Implementation */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: var(--container-width);
    border-radius: 25px;
    z-index: 100;
    transition: var(--transition-smooth);
    
    background: var(--glass-nav-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-nav-border);
    box-shadow: var(--glass-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    
    overflow: hidden;
}

.navbar.scrolled {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--glass-shadow-hover), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.navbar .glass-content {
    position: relative;
    z-index: 3;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border: 1px solid var(--color-border);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background-color 0.3s ease;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.brand:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.brand:active {
    transform: translateY(0) scale(0.96);
}

.brand-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

/* Nav Links as Liquid Glass Pills */
.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.4rem 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-text-primary);
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.nav-links a:active {
    transform: translateY(0) scale(0.96);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-primary);
    cursor: pointer;
}

/* Subpage Headers */
.page-header {
    padding: 12rem 0 6rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 4rem;
}

.page-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
}

.hero-content {
    max-width: 800px;
}

/* Pill Treatment (Badges) */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Stats Section */
.stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 4rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.stat-divider {
    width: 1px;
    height: 80px;
    background: var(--color-border);
}

/* Form Layout Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

/* FAQ Search Bar */
#faqSearchInput {
    padding: 1.25rem 2rem;
    font-size: 1.15rem;
    background: var(--glass-nav-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-nav-border);
    border-radius: 25px;
    color: var(--color-text-primary);
    transition: var(--transition-smooth);
    box-shadow: var(--glass-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    margin-bottom: 2rem;
}

#faqSearchInput:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--glass-shadow-hover), inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 0 0 3px rgba(138, 192, 53, 0.2);
}

#faqSearchInput::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.8;
}

/* Founder Card Layout */
.founder-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
}

.founder-portrait {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-glass);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    padding: 1rem;
}

#founder-canvas {
    width: 100%;
    height: 300px;
    max-width: 300px;
    cursor: crosshair;
}

.founder-info h2 {
    font-size: 2.5rem;
}

.founder-title {
    color: var(--color-accent);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.founder-socials {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-glow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    transition: var(--transition-smooth);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
}

.social-glow:hover {
    background: var(--color-surface-hover);
    color: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(138, 192, 53, 0.4), inset 0 2px 4px rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .founder-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        text-align: center;
    }
    .founder-socials {
        justify-content: center;
    }
}

/* Bento Grid (Index) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bento-large {
    grid-column: span 2;
}

.bento-grid .glass-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.card-icon {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.bento-grid h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
}

/* Pill Treatment (Tags) */
.tags span {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--color-text-primary);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.portfolio-img {
    width: 100%;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-md);
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.02);
}

.portfolio-info {
    padding: 0 0.5rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.portfolio-info h3 {
    font-size: 1.25rem;
    flex: 1;
    line-height: 1.3;
}

.portfolio-info .badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    flex-shrink: 0;
    white-space: nowrap;
    margin-bottom: 0;
}

/* Services Grid (Uniform Premium Tile/Grid Layout) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    align-items: stretch;
}

.service-grid .glass-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    padding: 1.5rem;
    justify-content: space-between;
    overflow: hidden;
    margin: 0; 
}

.service-grid .card-icon {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.service-grid h3 {
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.3;
}

.service-grid p {
    display: none; 
}

.premium-list {
    list-style: none;
    padding: 0;
    width: 100%;
    margin-top: auto;
    margin-bottom: auto;
}

.premium-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    line-height: 1.3;
}

.premium-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.service-grid .btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.6rem;
    font-size: 0.8125rem;
}

/* Accordion (FAQ) */
.accordion {
    width: 100%;
}

.accordion-item {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    text-align: left;
    padding: 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.accordion-header:hover {
    color: var(--color-accent);
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content p {
    padding-bottom: 1.5rem;
    color: var(--color-text-secondary);
}

/* Legal Content */
.legal-content h3 {
    margin: 2rem 0 1rem;
    color: var(--color-text-primary);
}

.legal-content p, .legal-content ul {
    margin-bottom: 1.5rem;
}

.legal-content ul {
    padding-left: 1.5rem;
}

/* Testimonials Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-grid .glass-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.client-info h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.client-info span {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal .modal-content {
    width: 100%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    margin: 1rem;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 25px;
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    color: var(--color-accent);
    transform: rotate(90deg);
}

/* Calendar Modal Specifics */
.modal-large {
    max-width: 1060px !important;
    height: 90vh;
    display: flex;
    flex-direction: column;
    padding-top: 3.5rem; 
    overflow: hidden !important; 
}

#my-cal-inline {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: transparent;
}

#my-cal-inline iframe {
    border-radius: 12px;
}

/* Footer & Form Elements */
.footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 4rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
}

.footer-logo-wrapper {
    background: var(--glass-nav-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-nav-border);
    box-shadow: var(--glass-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 1.25rem 2.5rem;
    display: inline-block;
    margin-bottom: 2rem;
}

#footer-logo-canvas {
    width: 200px !important;
    height: 80px !important;
    display: block;
    margin: 0 auto;
}

.contact-link {
    font-size: 1.25rem;
    color: var(--color-text-primary);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.contact-link:hover {
    color: var(--color-accent);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-links .form, .footer-links nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links .form a, .footer-links nav a {
    color: var(--color-text-secondary);
}

.footer-links .form a:hover, .footer-links nav a:hover {
    color: var(--color-accent);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.875rem;
    color: var(--color-text-primary);
}

.input-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    color: var(--color-text-primary);
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.input-field option {
    background: var(--color-bg);
    color: var(--color-text-primary);
}

.input-field:focus {
    outline: none;
    border-color: var(--color-border-light);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(138, 192, 53, 0.25);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 3px solid var(--color-border);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

/* Mobile Bottom Action Bar */
.mobile-action-bar {
    display: none;
    position: fixed;
    bottom: max(1.5rem, env(safe-area-inset-bottom));
    left: 50%;
    width: calc(100% - 2rem);
    max-width: 400px;
    z-index: 99;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    align-items: center;
    justify-content: space-between;
    
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(138, 192, 53, 0.15) 50%, rgba(59, 130, 246, 0.15) 100%);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-nav-border);
    box-shadow: var(--glass-shadow-hover), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    
    opacity: 0;
    transform: translateX(-50%) translateY(100px);
}

@keyframes slideUpFadeBar {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.promo-content {
    display: flex;
    flex-direction: column;
}

.promo-badge {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-secondary);
    margin-bottom: 0.1rem;
}

.promo-text {
    font-size: 0.8rem;
    color: var(--color-text-primary);
    line-height: 1.2;
}

.promo-text strong {
    color: var(--color-accent);
    font-size: 0.9rem;
}

/* Animations Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 1200px) {
    .pricing-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .bento-grid, .portfolio-grid, .testimonial-grid, .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Navigation / Hamburger Animations */
    .nav-container {
        flex-wrap: wrap;
    }
    .brand {
        order: 1;
    }
    .mobile-menu-btn {
        order: 2;
        display: block;
    }
    .mobile-menu-btn svg {
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .nav-links {
        order: 3;
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding-top: 0;
        margin: 0;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.4s ease;
    }
    .nav-actions {
        order: 4;
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding-top: 0;
        padding-bottom: 0;
        margin: 0;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.4s ease;
    }
    
    .navbar.menu-open .nav-links {
        max-height: 350px;
        opacity: 1;
        padding-top: 1.5rem;
    }
    .navbar.menu-open .nav-actions {
        max-height: 250px;
        opacity: 1;
        padding-top: 1rem;
        padding-bottom: 0.5rem;
    }
    .navbar.menu-open .mobile-menu-btn svg {
        transform: rotate(90deg) scale(1.1);
    }
    
    /* Layout & Spacing */
    .section-padding { padding: 5rem 0; }
    .page-header { padding: 9rem 0 4rem; }
    .hero { min-height: 80vh; padding-top: 8rem; padding-bottom: 4rem; }
    .glass-card { padding: 1.75rem; }
    .pricing-card { padding: 2rem 1.5rem; }
    .stats-grid { flex-direction: column; gap: 2rem; padding: 2rem; }
    .stat-divider { width: 100%; height: 1px; }
    
    /* Grids */
    .bento-grid, .portfolio-grid, .pricing-grid-4, .testimonial-grid, .service-grid {
        grid-template-columns: 1fr;
    }
    .bento-large {
        grid-column: span 1;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .hero-cta {
        flex-direction: column;
    }
    
    /* Reveal Bottom Action Bar & Provide Spacing */
    .mobile-action-bar {
        display: flex;
        animation: slideUpFadeBar 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    }
    body {
        padding-bottom: 6rem;
    }
}

@media (max-width: 480px) {
    /* Micro Adjustments for Small Phones */
    .section-padding { padding: 4rem 0; }
    .page-header { padding: 7rem 0 3rem; }
    .glass-card { padding: 1.25rem; }
    .pricing-card { padding: 1.5rem 1.25rem; }
    .nav-container { padding: 0.6rem 1rem; }
    .brand { font-size: 1.1rem; padding: 0.3rem 0.6rem; }
    .brand-logo { height: 28px; }
    
    /* Full Width Actions */
    .hero-cta .btn { width: 100%; }
    
    /* Modals */
    .modal .modal-content { margin: 0.5rem; width: calc(100% - 1rem); }
    .modal-large { padding-top: 3rem; }
    
    /* Elements */
    .stat-number { font-size: 2.5rem; }
    .footer-grid { gap: 1.5rem; }
}

/* Reduced Motion Preference */
@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;
    }
}

/* ==========================================================================
   Light Theme Overrides
   ========================================================================== */

[data-theme="light"] {
    --color-bg: #f8fafc;
    --color-surface: rgba(255, 255, 255, 0.75);
    --color-surface-hover: rgba(255, 255, 255, 0.95);
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-light: rgba(0, 0, 0, 0.15);
    --color-text-primary: #000000;
    --color-text-secondary: #334155;
    --color-accent: #78a22d;
    --color-accent-hover: #5d8021;
    --glass-blur: 4px;
    --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --glass-shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.12);
    /* Light Theme Navbar Background matching Mobile Action Bar Gradient */
    --glass-nav-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(120, 162, 45, 0.2) 50%, rgba(59, 130, 246, 0.2) 100%);
    --glass-nav-border: 2px solid rgba(255, 255, 255, 0.5);
    --glass-card-bg: rgba(255, 255, 255, 0.3);
    --glass-card-border: 2px solid rgba(255, 255, 255, 0.35);
    --glass-card-bg-hover: rgba(255, 255, 255, 0.45);
    --glass-card-border-hover: 2px solid rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .glass-panel,
[data-theme="light"] .glass-card,
[data-theme="light"] .badge,
[data-theme="light"] .tags span {
    box-shadow: var(--glass-shadow);
}

[data-theme="light"] .glass-card:hover {
    box-shadow: var(--glass-shadow-hover), inset 0 0 20px rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .bg-wrap {
    background:
        /* Added Subtle Light Green Circular Glow */
        radial-gradient(circle at 50% 50%, rgba(120, 162, 45, 0.07) 0%, transparent 70%),
        radial-gradient(circle at 20% 18%, rgba(255,255,255,.18), transparent 35%),
        radial-gradient(circle at 82% 22%, rgba(255,255,255,.12), transparent 42%),
        radial-gradient(circle at 55% 78%, rgba(255,255,255,.08), transparent 45%),
        linear-gradient(161deg, rgba(121,121,121,.02) 0%, rgba(121,121,121,.02) 16.667%, rgba(193,193,193,.02) 16.667%, rgba(193,193,193,.02) 33.334%, rgba(177,177,177,.02) 33.334%, rgba(177,177,177,.02) 50.001%, rgba(5,5,5,.02) 50.001%, rgba(5,5,5,.02) 66.668%, rgba(229,229,229,.02) 66.668%, rgba(229,229,229,.02) 83.335%, rgba(211,211,211,.02) 83.335%, rgba(211,211,211,.02) 100.002%),
        linear-gradient(45deg, rgba(223,223,223,.02) 0%, rgba(223,223,223,.02) 14.286%, rgba(70,70,70,.02) 14.286%, rgba(70,70,70,.02) 28.572%, rgba(109,109,109,.02) 28.572%, rgba(109,109,109,.02) 42.858%, rgba(19,19,19,.02) 42.858%, rgba(19,19,19,.02) 57.144%, rgba(180,180,180,.02) 57.144%, rgba(180,180,180,.02) 71.43%, rgba(63,63,63,.02) 71.43%, rgba(63,63,63,.02) 85.716%, rgba(87,87,87,.02) 85.716%, rgba(87,87,87,.02) 100.002%),
        linear-gradient(337deg, rgba(142,142,142,.02) 0%, rgba(142,142,142,.02) 20%, rgba(164,164,164,.02) 20%, rgba(164,164,164,.02) 40%, rgba(203,203,203,.02) 40%, rgba(203,203,203,.02) 60%, rgba(228,228,228,.02) 60%, rgba(228,228,228,.02) 80%, rgba(54,54,54,.02) 80%, rgba(54,54,54,.02) 100%),
        linear-gradient(314deg, rgba(187,187,187,.02) 0%, rgba(187,187,187,.02) 12.5%, rgba(170,170,170,.02) 12.5%, rgba(170,170,170,.02) 25%, rgba(214,214,214,.02) 25%, rgba(214,214,214,.02) 37.5%, rgba(187,187,187,.02) 37.5%, rgba(187,187,187,.02) 50%, rgba(190,190,190,.02) 50%, rgba(190,190,190,.02) 62.5%, rgba(6,6,6,.02) 62.5%, rgba(6,6,6,.02) 75%, rgba(206,206,206,.02) 75%, rgba(206,206,206,.02) 87.5%, rgba(171,171,171,.02) 87.5%, rgba(171,171,171,.02) 100%),
        linear-gradient(300deg, rgba(243,243,243,.01) 0%, rgba(243,243,243,.01) 12.5%, rgba(209,209,209,.01) 12.5%, rgba(209,209,209,.01) 25%, rgba(179,179,179,.01) 25%, rgba(179,179,179,.01) 37.5%, rgba(3,3,3,.01) 37.5%, rgba(3,3,3,.01) 50%, rgba(211,211,211,.01) 50%, rgba(211,211,211,.01) 62.5%, rgba(151,151,151,.01) 62.5%, rgba(151,151,151,.01) 75%, rgba(16,16,16,.01) 75%, rgba(16,16,16,.01) 87.5%, rgba(242,242,242,.01) 87.5%, rgba(242,242,242,.01) 100%),
        linear-gradient(6deg, rgba(31,31,31,.02) 0%, rgba(31,31,31,.02) 20%, rgba(193,193,193,.02) 20%, rgba(193,193,193,.02) 40%, rgba(139,139,139,.02) 40%, rgba(139,139,139,.02) 60%, rgba(14,14,14,.02) 60%, rgba(14,14,14,.02) 80%, rgba(122,122,122,.02) 80%, rgba(122,122,122,.02) 100%),
        linear-gradient(279deg, rgba(190,190,190,.02) 0%, rgba(190,190,190,.02) 14.286%, rgba(160,160,160,.02) 14.286%, rgba(160,160,160,.02) 28.572%, rgba(23,23,23,.02) 28.572%, rgba(23,23,23,.02) 42.858%, rgba(60,60,60,.02) 42.858%, rgba(60,60,60,.02) 57.144%, rgba(149,149,149,.02) 57.144%, rgba(149,149,149,.02) 71.43%, rgba(4,4,4,.02) 71.43%, rgba(4,4,4,.02) 85.716%, rgba(50,50,50,.02) 85.716%, rgba(50,50,50,.02) 100.002%),
        linear-gradient(109deg, rgba(124,124,124,.03) 0%, rgba(124,124,124,.03) 12.5%, rgba(61,61,61,.03) 12.5%, rgba(61,61,61,.03) 25%, rgba(187,187,187,.03) 25%, rgba(187,187,187,.03) 37.5%, rgba(207,207,207,.03) 37.5%, rgba(207,207,207,.03) 50%, rgba(206,206,206,.03) 50%, rgba(206,206,206,.03) 62.5%, rgba(118,118,118,.03) 62.5%, rgba(118,118,118,.03) 75%, rgba(89,89,89,.03) 75%, rgba(89,89,89,.03) 87.5%, rgba(96,96,96,.03) 87.5%, rgba(96,96,96,.03) 100%),
        linear-gradient(329deg, rgba(35,35,35,.02) 0%, rgba(35,35,35,.02) 20%, rgba(246,246,246,.02) 20%, rgba(246,246,246,.02) 40%, rgba(118,118,118,.02) 40%, rgba(118,118,118,.02) 60%, rgba(245,245,245,.02) 60%, rgba(245,245,245,.02) 80%, rgba(140,140,140,.02) 80%, rgba(140,140,140,.02) 100%),
        linear-gradient(90deg, #f8fafc, #eef2f6);
}

[data-theme="light"] .top-plane, 
[data-theme="light"] .bottom-plane {
    background-image: 
        linear-gradient(rgba(120, 162, 45, 0.15) 2px, transparent 2px), 
        linear-gradient(90deg, rgba(120, 162, 45, 0.15) 2px, transparent 2px);
}

[data-theme="light"] .glass-cursor-visual {
    background: rgba(255, 255, 255, 0.25);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 0 0 1px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .glass-cursor-wrapper.hover .glass-cursor-visual {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.4) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 0 0 1px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-primary { color: #ffffff; }

[data-theme="light"] .navbar.scrolled {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--glass-shadow-hover);
}

[data-theme="light"] .brand {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .brand:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .nav-links a {
    background-color: rgba(255, 255, 255, 0.56);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mobile-action-bar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(120, 162, 45, 0.2) 50%, rgba(59, 130, 246, 0.2) 100%);
    box-shadow: var(--glass-shadow-hover);
}

[data-theme="light"] .modal {
    background: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .footer {
    background: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .input-field {
    background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .input-field:focus {
    border-color: var(--color-accent);
    background: #ffffff;
    box-shadow: 0 0 10px rgba(120, 162, 45, 0.15);
}

[data-theme="light"] .btn-outline:hover { color: #ffffff; }

/* ==========================================================================
   Performance & Accessibility Tweaks
   ========================================================================== */

/* Skip to Main Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent);
    color: #0f1115;
    padding: 8px;
    z-index: 1000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Enhanced Keyboard Focus States */
*:focus-visible {
    outline: 2px solid var(--color-accent) !important;
    outline-offset: 4px;
}

/* Content Visibility for Performance */
.section-padding,
.stats,
.services,
.testimonials,
.footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* Touch Targets for Mobile Accessibility */
@media (max-width: 768px) {
    .social-links a,
    .footer-links a,
    .accordion-header {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
    }
    .nav-links a {
        min-height: 44px;
        justify-content: center;
    }
}

/* Loading Spinner inside Button */
.btn.loading {
    color: transparent !important;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Interactive & Premium Additions
   ========================================================================== */

/* Logo Sweep & Glow Effect */
.brand-logo {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
    position: relative;
}

.brand:hover .brand-logo {
    transform: scale(1.15) rotate(-2deg);
    filter: drop-shadow(0 0 25px rgba(138, 192, 53, 1)) brightness(1.4);
}

/* We'll simulate a sweep using a pseudo element on the .brand link */
.brand {
    position: relative;
    overflow: hidden;
}

.brand::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg);
    transition: none;
    pointer-events: none;
}

.brand:hover::after {
    animation: shineSweep 0.8s ease forwards;
}

@keyframes shineSweep {
    0% { left: -150%; }
    100% { left: 200%; }
}

/* Portfolio Advanced Interactions */
.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    /* Will be manipulated by JS for 3D tilt, but here are fallbacks */
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    padding: 0; /* Remove old padding to allow image to fill */
}

.portfolio-item:hover {
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(138, 192, 53, 0.2);
    transform: translateY(-5px); /* Fallback if JS tilt fails */
}

.portfolio-img-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    transform: translateZ(20px); /* 3D pop out */
}

.portfolio-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
    filter: grayscale(20%) brightness(0.8);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.08);
    filter: grayscale(0%) brightness(1.1);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 17, 21, 0.95) 0%, rgba(15, 17, 21, 0.1) 60%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 25px;
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    transform: translateZ(30px) translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
}

.portfolio-item:hover .portfolio-info {
    transform: translateZ(30px) translateY(0);
    opacity: 1;
}

.portfolio-info h3 {
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    color: #fff;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-tags .badge {
    background: rgba(15, 17, 21, 0.8);
    border-color: rgba(138, 192, 53, 0.5);
    color: #fff;
    backdrop-filter: blur(4px);
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    margin: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-tags .badge:hover {
    background: var(--color-accent);
    color: #0f1115;
    transform: translateY(-2px);
}
/* ==========================================================================
   Testimonial Marquee Slider
   ========================================================================== */
.testimonial-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
    /* Fade the edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonial-marquee {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll-marquee 50s linear infinite;
}

.testimonial-marquee:hover {
    animation-play-state: paused;
}

.testimonial-marquee .glass-card {
    width: 380px;
    flex-shrink: 0;
    white-space: normal;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); } /* Shifts by exactly half the width */
}

@media (max-width: 768px) {
    .testimonial-marquee .glass-card {
        width: 300px;
    }
}

/* ==========================================================================
   Playground & Tooltips
   ========================================================================== */

/* Logo Tooltip */
.footer-logo-wrapper {
    position: relative;
    display: inline-block;
}

.logo-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--glass-nav-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--color-text);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.footer-logo-wrapper:hover .logo-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Playground Grid */
.playground-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.demo-card {
    background: var(--glass-nav-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.demo-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 25px -5px rgba(235, 94, 40, 0.2);
}

.demo-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

/* Iframe Modal */
#demoModal .modal-content {
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
    padding: 2.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
}

#demoModal iframe {
    flex-grow: 1;
    width: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--color-bg);
}

