/* =========================================
   Abyssinia Digital Creator - High-End Design System
   ========================================= */

:root {
    /* Color Palette - Deeper, richer, non-standard darks */
    --color-bg: #050507;
    --color-bg-alt: #0a0a0f;
    --color-surface: rgba(255, 255, 255, 0.02);
    --color-surface-hover: rgba(255, 255, 255, 0.05);

    /* Accents - Using a "Aurora" palette instead of flat neon */
    --color-primary: #6366f1;
    --color-primary-glow: rgba(99, 102, 241, 0.4);
    --color-secondary: #ec4899;
    --color-tertiary: #06b6d4;

    --color-text-main: #ffffff;
    --color-text-muted: #9ca3af;
    --color-text-dark: #94a3b8;
    /* Lightened for legibility on dark bg */

    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(255, 255, 255, 0.15);

    /* Gradients */
    --gradient-text: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    --gradient-glow: radial-gradient(circle at center, var(--color-primary-glow), transparent 70%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Dimensions & Spacing */
    --nav-height: 80px;
    --container-width: 1400px;
    --spacing-section: clamp(8rem, 12vw, 14rem);
    /* Increased for better breathing room */

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-pill: 999px;

    /* Animation Easing - Premium smoothness */
    --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    /* Additional ease curves for specific use cases */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);

    /* Transition Durations - Optimized for perceived smoothness */
    --transition-fast: 0.2s;
    --transition-base: 0.3s;
    --transition-smooth: 0.4s;
    --transition-slow: 0.6s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    animation: background-crawl 120s linear infinite;
}

@keyframes background-crawl {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 60px 60px;
    }
}

/* Typography Overhaul */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 6.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 0.5rem;
}

p {
    color: var(--color-text-muted);
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.75;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base) var(--ease-smooth);
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.text-gradient {
    /* Fallback color in case gradient fails */
    color: #fff;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #c7d2fe 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Ensure the element is visible and stacks vertically */
    display: block;
}

/* Section Spacing Utilities */
.section-spacing-xl {
    margin-top: 12rem;
    margin-bottom: 12rem;
}

.section-spacing-lg {
    margin-top: 8rem;
    margin-bottom: 8rem;
}

.section-spacing-md {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.section-spacing-sm {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.section-spacing-top-xl {
    margin-top: 12rem;
}

.section-spacing-top-lg {
    margin-top: 8rem;
}

.section-spacing-bottom-xl {
    margin-bottom: 12rem;
}

.section-spacing-bottom-lg {
    margin-bottom: 8rem;
}

.label {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 100px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Navbar - Floating Glass Island */
.navbar {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    transition: all var(--transition-smooth) var(--ease-smooth);
}

.navbar.scrolled {
    top: 1rem;
    width: 95%;
}

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

    .navbar.scrolled {
        width: 98%;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-smooth) var(--ease-smooth);
}

/* Premium Portfolio Layout */
.project-hero-immersive {
    height: 85vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-bottom: 6rem;
    padding-top: calc(var(--nav-height) + 3rem);
    /* Offset for navbar */
}

.project-hero-immersive::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 5, 7, 0.3), var(--color-bg));
}

.project-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.case-study-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 8rem;
}

.case-sidebar {
    position: sticky;
    top: 120px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: var(--radius-md);
}

.case-meta-item {
    margin-bottom: 2rem;
}

.case-meta-item h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.case-meta-item p {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
}

.case-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
}

.case-content h2:first-child {
    margin-top: 0;
}

.case-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.case-image-block {
    margin: 4rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.case-image-block img {
    width: 100%;
    display: block;
}

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

    .case-sidebar {
        position: static;
        margin-bottom: 4rem;
    }

    .project-hero-immersive {
        height: 60vh;
    }
}

/* Navigation CTA Button */
.navbar .btn-primary {
    display: none;
    /* Hidden on mobile */
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

@media (min-width: 769px) {
    .navbar .btn-primary {
        display: inline-flex;
        /* Visible on desktop */
    }
}

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

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

/* Buttons - Magnetic Glow */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.75rem;
    font-size: 0.9rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-smooth) var(--ease-smooth);
    gap: 0.5rem;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: #fff;
    color: #000;
    position: relative;
    overflow: hidden;
    border: 1px solid #fff;
}

.btn-primary:hover {
    background: #e2e8f0;
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.4),
        0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Hero Section */
.hero {
    padding-top: 12rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    pointer-events: none;
    animation: glow-pulse 8s ease-in-out infinite alternate;
}

/* Global Page Glow & Motion Backgrounds */
.page-glow {
    position: relative;
    overflow: hidden;
}

.page-glow::before {
    content: '';
    position: absolute;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: glow-float 12s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    from {
        opacity: 0.6;
        transform: translateX(-50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }
}

@keyframes glow-float {
    0% {
        transform: translate(-50%, -5%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-45%, 5%) scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-55%, -2%) scale(0.95);
        opacity: 0.6;
    }
}

/* Ensure consistent body background across all folders */
body {
    background-color: var(--color-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

/* Bento Grid Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 2rem;
    padding-top: 2rem;
}

.bento-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    /* Enforce left alignment for better UI */
    align-items: flex-start;
    /* Align flex items to start */
}

.bento-card:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-5px);
}

.bento-card.large {
    grid-column: span 8;
}

.bento-card.small {
    grid-column: span 4;
}

.bento-card.medium {
    grid-column: span 6;
}

@media (max-width: 1024px) {

    .bento-card.large,
    .bento-card.small,
    .bento-card.medium {
        grid-column: span 12;
    }
}

.bento-icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
    display: inline-block;
    /* Ensure it respects text-align if needed */
}

/* Featured Work - Immersive */
.project-row {
    margin-bottom: 8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.project-row.reverse {
    direction: rtl;
}

.project-row.reverse .project-info {
    direction: ltr;
}

.project-preview {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background: #111;
}

.project-image-zoom {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-image-zoom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-smooth);
}

.project-row:hover .project-image-zoom img {
    transform: scale(1.1);
}

/* Branded Composite Styling */
.project-preview {
    position: relative;
    /* Ensure badges are relative to this */
}

.composite-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 5;
    transition: all 0.6s var(--ease-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.composite-badge i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.composite-badge span {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-top-left {
    top: 2rem;
    left: 2rem;
    transform: translateX(-20px);
    opacity: 0;
}

.badge-bottom-right {
    bottom: 2rem;
    right: 2rem;
    transform: translateX(20px);
    opacity: 0;
}

.project-row:hover .badge-top-left {
    transform: translateX(0);
    opacity: 1;
}

.project-row:hover .badge-bottom-right {
    transform: translateX(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.composite-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(99, 102, 241, 0.15), transparent 60%);
    z-index: 2;
    pointer-events: none;
}

/* Footer */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 6rem 0;
    background: #000;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer h4 {
    margin-bottom: 2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        top: 1rem;
        width: 95%;
        padding: 0.5rem;
    }

    .nav-container {
        padding: 0.75rem 1.5rem;
    }

    .nav-links {
        position: absolute;
        top: 110%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        border-radius: var(--radius-md);
        border: 1px solid var(--color-border);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all 0.3s var(--ease-smooth);
        gap: 1.5rem;
        text-align: center;
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

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

    .hero {
        padding-top: 10rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .project-row {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 5rem;
        direction: ltr !important;
    }

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

/* Standard Animation utilities */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

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

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Standardized Header Types */
.page-header,
.project-hero,
.service-header,
.section:first-of-type {
    padding-top: calc(var(--nav-height) + 6rem) !important;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Immersive Header for Portfolio & Special Pages */
.project-hero-immersive {
    height: 70vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.project-hero-immersive::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(5, 5, 7, 0.4) 0%,
            var(--color-bg) 100%);
}

.project-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.project-hero-content .label {
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .project-hero-immersive {
        height: 60vh;
        background-attachment: scroll;
        /* Performance on mobile */
    }
}

@media (max-width: 768px) {

    .page-header,
    .project-hero,
    .service-header,
    .profile-header,
    .section:first-of-type {
        padding-top: calc(var(--nav-height) + 4rem) !important;
        min-height: 30vh;
    }
}

/* =========================================
   Phase 4: Content Expansion Styles
   ========================================= */

/* Brand Strip - Infinite Marquee */
.brand-strip {
    padding: 4rem 0;
    background: var(--color-bg);
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.brand-label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
}

.brand-marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 4rem;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 4rem;
    min-width: 100%;
    animation: marquee-scroll 40s linear infinite;
}

.brand-marquee:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% - 4rem));
    }
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    white-space: nowrap;
    opacity: 0.6;
    transition: all 0.4s var(--ease-smooth);
    padding: 0.5rem 1rem;
}

.brand-logo:hover {
    opacity: 1;
    color: #fff;
    transform: scale(1.1);
}

.logo-symbol {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 0 15px var(--color-primary-glow);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-top: 2rem;
}

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

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    /* Solid fallback color */
    color: #ffffff;
    /* Gradient overlay - use !important to ensure it applies */
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin-bottom: 0.5rem;
}

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

/* Team Card Styles */
.team-card {
    transition: transform var(--transition-smooth) var(--ease-smooth);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.team-card {
    display: block;
    aspect-ratio: 1/1.2;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: var(--color-surface);
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-smooth);
}

.team-card:hover img {
    transform: scale(1.1);
}

.team-socials {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.team-card:hover .team-socials {
    opacity: 1 !important;
}

.team-socials span {
    color: #fff;
    font-size: 1.2rem;
}

.team-card h3 {
    margin-top: 1rem;
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--radius-lg);
    position: relative;
    transition: transform var(--transition-smooth) var(--ease-smooth);
}

.process-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.process-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

.process-card h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.process-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Testimonials - Premium 3D Slider */
.testimonials-slider {
    position: relative;
    max-width: 1000px;
    margin: 6rem auto 0;
    padding: 4rem 1rem;
    /* Added horizontal padding for mobile safety */
    perspective: 2000px;
    overflow: hidden;
    /* Critical for preventing horizontal scroll */
}

.testimonial-track {
    position: relative;
    height: 450px;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.testimonial-card {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    pointer-events: none;
    transform: translateZ(-200px) rotateY(15deg) translateX(50px);
}

.testimonial-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateZ(0) rotateY(0) translateX(0);
}

.testimonial-card.prev {
    opacity: 0;
    transform: translateZ(-200px) rotateY(-15deg) translateX(-50px);
}

.testimonial-card.next {
    opacity: 0.3;
    transform: translateZ(-150px) rotateY(15deg) translateX(80px);
}

.testimonial-card .quote-icon {
    font-size: 5rem;
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.15;
    font-family: serif;
}

.testimonial-card .quote {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    line-height: 1.4;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}


.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s var(--ease-smooth) 0.3s;
}

.testimonial-card.active .author {
    transform: translateY(0);
    opacity: 1;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-primary);
    padding: 2px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.author-info h4 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.slider-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 4rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-dot.active {
    background: var(--color-primary);
    width: 40px;
    border-radius: 100px;
    box-shadow: 0 0 20px var(--color-primary-glow);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--gradient-primary);
    filter: blur(150px);
    opacity: 0.2;
    z-index: -1;
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Responsive adjustments for new content */
@media (max-width: 768px) {
    .container {
        width: 92%;
        /* Slightly wider on mobile */
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
        /* Adjust hero font on mobile */
    }

    .brand-marquee {
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        /* Stack vertically on small screens */
        gap: 1.5rem;
        padding: 2rem;
    }

    /* Ensure bento cards take full width but add bottom margin */
    .bento-card {
        padding: 2rem;
    }

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

    .cta-banner {
        padding: 3rem 1.5rem;
    }

    .cta-banner h2 {
        font-size: 2rem;
    }

    /* About Page Mobile Fixes */
    .mission-grid,
    .story-section,
    .why-us-stats,
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .story-image {
        margin-top: 2rem;
    }

    .decorative-shape {
        display: none;
        /* Hide background shapes that cause overflow on mobile */
    }

    .experience-badge {
        padding: 1.5rem;
        bottom: -1rem;
        left: -1rem;
    }

    .experience-badge .years {
        font-size: 2rem;
    }
}

/* =========================================
   Phase 5: Animation Utilities
   ========================================= */

html {
    scroll-behavior: smooth;
}

/* Text Reveal Styles */
.text-reveal .reveal-word {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
    will-change: transform, opacity;
}

.text-reveal.visible .reveal-word {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays (Helper for other lists) */
.stagger-delay:nth-child(1) {
    transition-delay: 50ms;
}

.stagger-delay:nth-child(2) {
    transition-delay: 100ms;
}

.stagger-delay:nth-child(3) {
    transition-delay: 150ms;
}

/* Standardized Layout Components */
.profile-grid,
.story-section,
.mission-grid,
.service-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

/* dedicated profile-header padding */
.profile-header {
    padding-top: calc(var(--nav-height) + 6rem);
}

/* Redesigned Story Section */
.story-content h3 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
    line-height: 1.1;
    max-width: 540px;
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.story-content p:first-of-type {
    font-size: 1.25rem;
    color: var(--color-text-main);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.story-content p:last-of-type {
    margin-bottom: 0;
}

.story-image-wrapper {
    position: relative;
    padding: 2rem;
}

.story-image {
    position: relative;
    z-index: 2;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease-smooth);
}

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

.experience-badge {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    background: var(--color-primary);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-heading);
}

.experience-badge .text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
}

.decorative-shape {
    position: absolute;
    z-index: 1;
    filter: blur(40px);
    opacity: 0.2;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--color-primary);
    top: -50px;
    right: -50px;
    border-radius: 50%;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--color-secondary);
    bottom: -30px;
    left: 20px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.profile-grid {
    grid-template-columns: 350px 1fr;
    margin-top: 4rem;
}

.service-details {
    grid-template-columns: 2fr 1fr;
}

@media (max-width: 1024px) {

    .profile-grid,
    .story-section,
    .mission-grid,
    .service-details {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .profile-card {
        position: static !important;
        max-width: 400px;
        margin: 0 auto 3rem;
    }
}

@media (max-width: 768px) {
    .profile-card {
        max-width: 100%;
    }
}

/* Sidebar & Sticky Components */
.case-sidebar,
.profile-card,
.sidebar-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: sticky;
    top: 100px;
    z-index: 10;
}

/* =========================================
   Global Utilities & Layout Helpers
   ========================================= */
.hero-text {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.25rem;
    color: var(--color-text-muted);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

/* Spacing Utilities */
.section-spacing-md {
    margin-top: var(--spacing-lg);
}

.section-spacing-lg {
    margin-top: var(--spacing-xl);
}

.section-spacing-xl {
    margin-top: calc(var(--spacing-xl) * 1.5);
}

.section-spacing-bottom-xl {
    padding-bottom: calc(var(--spacing-xl) * 1.5);
}

/* =========================================
   About Page Components
   ========================================= */
.mv-card {
    background: var(--color-surface);
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all 0.5s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.mv-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.mv-card:hover::after {
    opacity: 1;
}

.mv-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.mv-card h3 {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-size: 1.75rem;
    position: relative;
    z-index: 1;
}

.mv-card p {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.why-us-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    margin-top: 5rem;
}

.wu-stat-number {
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 800;
    font-family: var(--font-heading);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.wu-stat-label {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.value-card {
    background: var(--color-bg-alt);
    padding: 3rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all 0.6s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.value-card:hover {
    background: var(--color-surface);
    border-color: var(--color-primary);
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.value-icon {
    width: 64px;
    height: 64px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.6s var(--ease-smooth);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--color-primary);
    color: #fff;
}

/* =========================================
   Team Profile Specific Components
   ========================================= */
.profile-image {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

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

.profile-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profile-role {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.profile-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.profile-socials a {
    color: var(--color-text-muted);
    font-size: 1.25rem;
    transition: var(--transition-base);
}

.profile-socials a:hover {
    color: var(--color-primary);
    transform: translateY(-3px);
}

.profile-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-bio h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-family: var(--font-heading);
}

.bio-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 4rem;
}

.skills-section {
    margin-bottom: 4rem;
}

.skill-tag {
    padding: 0.6rem 1.2rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 100px;
    font-size: 0.95rem;
    color: #fff;
    transition: all 0.3s var(--ease-smooth);
}

.skill-tag:hover {
    background: var(--color-primary);
    transform: scale(1.05);
}

.featured-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    text-decoration: none;
    display: block;
    position: relative;
}

.project-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-10px);
}

.project-image-container {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-smooth);
}

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

.project-card .project-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.project-info h4 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* =========================================
   Responsive Adjustments
   ========================================= */
@media (max-width: 1024px) {
    .why-us-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .profile-bio h1 {
        font-size: 3rem;
    }
}

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

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

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

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all var(--transition-base) var(--ease-smooth);
}

.faq-item:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

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

.faq-question i {
    transition: transform 0.4s var(--ease-elastic);
    color: var(--color-primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    color: var(--color-text-muted);
    transition: all 0.4s var(--ease-smooth);
    line-height: 1.7;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    /* Increased to accommodate content */
    padding-bottom: 1.5rem;
    opacity: 1;
}

/* =========================================
   Form Elements
   ========================================= */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--color-text-main);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-fast) var(--ease-smooth);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
    color: var(--color-text-dark);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Contact Page Specifics */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    text-align: left;
    /* Enforce left alignment */
}

.contact-info-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.contact-form-wrapper {
    background: var(--color-surface);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: left;
    /* Enforce left alignment */
}

/* 404 Page Specifics */
/* 404 Page Specifics */
.error-page-wrapper {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 1rem;
    position: relative;
    /* Moody background overlay */
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
}

.error-code {
    font-size: clamp(8rem, 25vw, 20rem);
    font-weight: 800;
    line-height: 0.8;
    font-family: var(--font-heading);
    color: var(--color-bg-alt);
    /* Darker base for the glitch */
    text-shadow: 2px 2px 0px var(--color-primary), -1px -1px 0 var(--color-secondary);
    opacity: 0.8;
    margin-bottom: -5rem;
    /* Dynamic overlap */
    position: relative;
    z-index: 0;
    user-select: none;
    animation: glitch 3s infinite;
}

.error-content {
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    /* Glassmorphism for the text container */
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 5, 7, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.error-title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
    background: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

@keyframes glitch {
    0% {
        transform: translate(0);
        text-shadow: 2px 2px 0px var(--color-primary), -1px -1px 0 var(--color-secondary);
    }

    2% {
        transform: translate(-2px, 2px);
        text-shadow: -2px 2px 0px var(--color-primary), 1px -1px 0 var(--color-secondary);
    }

    4% {
        transform: translate(2px, -2px);
        text-shadow: 2px -2px 0px var(--color-primary), -1px 1px 0 var(--color-secondary);
    }

    6% {
        transform: translate(0);
        text-shadow: 2px 2px 0px var(--color-primary), -1px -1px 0 var(--color-secondary);
    }

    100% {
        transform: translate(0);
        text-shadow: 2px 2px 0px var(--color-primary), -1px -1px 0 var(--color-secondary);
    }
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }
}

/* =========================================
   Standardized Component Styles (Blog, Portfolio, FAQ, Legal)
   ========================================= */

/* Blog Styles */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    margin-top: 4rem;
    align-items: start;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

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

.sidebar-widget {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    text-align: left;
}

.sidebar-widget h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

.search-form {
    position: relative;
}

.search-form input {
    width: 100%;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid var(--color-border);
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    color: white;
    padding-right: 3rem;
    outline: none;
}

.search-form button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
}

.widget-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.widget-links li a {
    color: var(--color-text-muted);
    transition: color 0.2s;
    display: flex;
    justify-content: space-between;
}

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

.recent-blog-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.recent-blog-item:last-child {
    margin-bottom: 0;
}

.recent-blog-thumb {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    background: #1f2937;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.recent-blog-info h5 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.recent-blog-info span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.blog-card {
    background: var(--color-surface);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    text-align: left;
    /* Enforce left alignment */
}

.blog-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.4);
}

.blog-img {
    height: 200px;
    background: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.1);
    font-size: 4rem;
}

.blog-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    gap: 1rem;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card h3 a {
    transition: color 0.2s;
}

.blog-card h3 a:hover {
    color: var(--color-primary);
}

.blog-card p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

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

    .sidebar {
        display: none;
    }
}

/* Legal Content Styles */
.legal-content {
    max-width: 800px;
    margin: 4rem auto;
    color: var(--color-text-muted);
    text-align: left;
    /* Enforce left alignment */
}

.legal-content h2 {
    color: white;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p,
.legal-content ul,
.legal-content li {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content ul {
    padding-left: 1.5rem;
}

/* FAQ Styles */
.faq-container {
    max-width: 800px;
    margin: 4rem auto;
}

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-question {
    padding: 1.5rem;
    width: 100%;
    text-align: left;
    /* Enforce left alignment */
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
}

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

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

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    color: var(--color-text-muted);
    transition: max-height 0.3s ease, padding 0.3s ease;
    line-height: 1.6;
    text-align: left;
    /* Enforce left alignment */
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1.5rem;
}

/* Portfolio Styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.portfolio-card {
    background: var(--color-surface);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
    text-align: left;
    /* Enforce left alignment */
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-image {
    height: 250px;
    background: #1f2937;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.portfolio-card:hover .card-overlay {
    opacity: 1;
}

.card-content {
    padding: 2rem;
    text-align: left;
}

.project-category {
    font-size: 0.85rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.project-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f2937, #111827);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
}

/* Careers Styles */
.jobs-container {
    max-width: 900px;
    margin: 4rem auto;
}

.job-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    /* Enforce left alignment */
}

.job-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.job-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.job-tags {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .job-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

/* Services Styles */
.services-layout {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 4rem 0;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card-lg {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: row;
    min-height: 350px;
    position: relative;
    text-align: left;
    /* Enforce left alignment */
}

/* Alternating Layout */
.service-card-lg:nth-child(even) {
    flex-direction: row-reverse;
}

.service-card-lg:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.service-img-lg {
    width: 45%;
    background: #1f2937;
    position: relative;
    overflow: hidden;
}

/* Premium image overlay */
.service-img-lg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
}

.service-img-lg i {
    transition: transform var(--transition-slow);
    z-index: 1;
}

.service-card-lg:hover .service-img-lg i {
    transform: scale(1.1) rotate(-5deg);
    color: rgba(255, 255, 255, 0.4);
}

.service-content-lg {
    padding: 3.5rem;
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    text-align: left;
    /* Enforce left alignment */
}

.service-content-lg h3 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-content-lg p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Responsive Services */
@media (max-width: 900px) {

    .service-card-lg,
    .service-card-lg:nth-child(even) {
        flex-direction: column;
        min-height: auto;
    }

    .service-img-lg {
        width: 100%;
        height: 250px;
    }

    .service-content-lg {
        width: 100%;
        padding: 2rem;
    }

    .service-content-lg h3 {
        font-size: 1.75rem;
    }
}

/* =========================================
   New Premium Footer Styles
   ========================================= */
.footer-modern {
    background: #000;
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Background Glow for Footer */
.footer-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.footer-cta-section {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 6rem;
    padding-bottom: 6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.footer-cta-text {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.footer-grid-modern {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    font-size: 1rem;
    max-width: 300px;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.footer-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 700;
}

.footer-links-modern {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: left;
}

.footer-links-modern li {
    margin: 0;
}

.footer-links-modern a {
    color: var(--color-text-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links-modern a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

.social-links-modern {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin-top: 2rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
}

.social-icon:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.footer-bottom {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    color: var(--color-text-dark);
    font-size: 0.9rem;
}

.footer-legal-links {
    display: flex;
    gap: 2rem;
}

.footer-legal-links a {
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: white;
}

@media (max-width: 900px) {
    .footer-modern {
        position: relative;
        overflow: hidden;
    }

    /* Background Glow for Footer */
    .footer-modern::before {
        content: '';
        position: absolute;
        top: -50%;
        left: 50%;
        transform: translateX(-50%);
        width: 1000px;
        height: 1000px;
        background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
        z-index: 0;
        pointer-events: none;
    }

    .footer-cta-section {
        position: relative;
        z-index: 2;
        text-align: center;
        margin-bottom: 6rem;
        padding-bottom: 6rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .footer-cta-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
        margin-bottom: 1.5rem;
        background: linear-gradient(to right, #fff, #cbd5e1);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 800;
    }

    .footer-cta-text {
        font-size: 1.25rem;
        color: var(--color-text-muted);
        max-width: 600px;
        margin: 0 auto 2.5rem;
    }

    .footer-grid-modern {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 4rem;
        position: relative;
        z-index: 2;
    }

    .footer-brand .logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 1.5rem;
        font-weight: 800;
        margin-bottom: 1rem;
    }

    .footer-brand p {
        margin-top: 1.5rem;
        font-size: 1rem;
        max-width: 300px;
        line-height: 1.8;
        color: var(--color-text-muted);
    }

    .footer-col h4 {
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: #fff;
        margin-bottom: 2rem;
        opacity: 0.9;
        font-weight: 700;
    }

    .footer-links-modern {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        text-align: left;
    }

    .footer-links-modern li {
        margin: 0;
    }

    .footer-links-modern a {
        color: var(--color-text-dark);
        font-size: 1rem;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-links-modern a:hover {
        color: var(--color-primary);
        transform: translateX(5px);
    }

    .social-links-modern {
        display: flex;
        gap: 1rem;
        list-style: none;
        margin-top: 2rem;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
    }

    .social-icon:hover {
        background: var(--color-primary);
        border-color: var(--color-primary);
        color: white;
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    }

    .footer-bottom {
        margin-top: 6rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        z-index: 2;
        color: var(--color-text-dark);
        font-size: 0.9rem;
    }

    .footer-legal-links {
        display: flex;
        gap: 2rem;
    }

    .footer-legal-links a {
        color: var(--color-text-muted);
        transition: color 0.3s ease;
    }

    .footer-legal-links a:hover {
        color: white;
    }

    @media (max-width: 900px) {
        .footer-modern {
            padding: 4rem 0 2rem;
        }

        .footer-grid-modern {
            grid-template-columns: 1fr;
            gap: 3rem;
            text-align: left;
        }

        .footer-cta-section {
            margin-bottom: 4rem;
            padding-bottom: 4rem;
        }

        .footer-bottom {
            flex-direction: column;
            gap: 1.5rem;
            text-align: center;
            margin-top: 4rem;
        }
    }