/* ===================================
   CodeBrewers Website - Main Styles
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===================================
   CSS Variables & Design System
   =================================== */

:root {
    /* Brand Colors */
    --color-primary: #154050;
    --color-gold: #DFA144;
    --color-secondary: #3B6675;
    --color-bg: #050505;
    --color-text: #ffffff;
    --color-text-dim: #9ca3af;

    /* Circuit Colors */
    --circuit-teal: rgba(59, 102, 117, 0.4);
    --circuit-teal-bright: rgba(59, 102, 117, 0.8);

    /* Glassmorphism - Premium */
    --glass-bg-primary: rgba(30, 41, 59, 0.3);
    /* Darker blue-grey tint */
    --glass-bg-secondary: rgba(30, 41, 59, 0.2);
    --glass-border: rgba(255, 255, 255, 0.08);
    /* More subtle white border */
    --glass-border-bright: rgba(223, 161, 68, 0.5);
    /* Gold highlight */
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


/* ===================================
   Global Resets & Base Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: transparent;
    /* Transparent to show circuit background */
    color: var(--color-text);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    overscroll-behavior: none;
    /* Prevent mobile bounce/overscroll effect */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

/* Circuit Background Container */
#circuit-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

#circuit-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.circuit-vignette {
    display: none;
    /* Removed circle highlight effect */
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, #020202 100%);
    pointer-events: none;
}

/* ===================================
   Typography
   =================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    /* Reduced from 700 default */
    line-height: 1.25;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
    /* Tighter tracking for modern look */
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    /* Complete white instead of gradient */
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--color-text);
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.glass-card h3 {
    margin-bottom: 0.5rem;
    /* Tighter spacing for cards */
}

p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-dim);
    margin-bottom: 1.5rem;
    max-width: 65ch;
    /* Optimal looking reading length */
}

/* ===================================
   Glassmorphism Components
   =================================== */

.glass-card {
    background: var(--glass-bg-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    /* Softer, more modern corners */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    /* Keeps content inside rounded corners */
}

.glass-card:hover {
    border-color: var(--glass-border-bright);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(30, 41, 59, 0.2));
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}


.glass-card-secondary {
    background: var(--glass-bg-secondary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-family);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-text);
    box-shadow: 0 4px 16px rgba(59, 102, 117, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(223, 161, 68, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-gold);
}

.btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-bg);
}

/* ===================================
   Navigation
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1000;
    padding: 1.5rem clamp(25px, 6vw, 120px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, width, padding, top, border-radius;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: none;
    /* Remove glow effect */
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.12);

    /* Floating positioning - using fixed width for smooth animation */
    top: 20px;
    width: 1100px;
    max-width: 95%;
    padding: 0.75rem clamp(1.5rem, 3vw, 4rem);
    white-space: nowrap;

    /* Fade in effect - refined */
    animation: navbarFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes navbarFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -10px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

/* Ensure container inside pill behaves as a flexible row */
.navbar.scrolled .nav-container {
    width: 100%;
    max-width: none;
    gap: 4rem;
}

/* Scale logo icon down slightly for the pill aesthetic */
.navbar.scrolled .logo img {
    height: 55px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo-white,
.logo-icon {
    display: none;
}

.navbar.scrolled .logo-colored {
    display: none;
}

.navbar.scrolled .logo-white {
    display: block;
}

.navbar.scrolled .logo-icon {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-gold);
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    /* Ensure above menu overlay */
    position: relative;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-lg) clamp(25px, 6vw, 120px);
    position: relative;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--glass-bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: var(--spacing-md);
    backdrop-filter: blur(10px);
}

.hero h1 {
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-text-dim);
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Statistics Section
   =================================== */

.statistics {
    padding: var(--spacing-xl) clamp(25px, 6vw, 120px);
    position: relative;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    /* Premium Glass Dashboard */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.stat-card {
    flex: 1;
    text-align: center;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Fully Static - No Animation */
    opacity: 1;
    /* Vertical Dividers */
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:last-child {
    border-right: none;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    color: var(--color-text);
}

.stat-unit {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-left: 2px;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-text-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ===================================
   Client Carousel
   =================================== */

.clients {
    padding: var(--spacing-lg) 2rem;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    display: inline-block;
}

.client-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 0 3rem 0;
    /* Clean container */
    background: transparent;
}

.client-track {
    display: flex;
    gap: 3.5rem;
    width: max-content;
    animation: scroll 40s linear infinite;
    padding: 1rem 0;
}

.client-logo-card {
    flex-shrink: 0;
    width: 280px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Solid White Card */
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem 2.5rem;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color-scheme: light;
    /* Force light mode for this element */
}

.client-logo-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.client-logo-card img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    opacity: 0.95;
    filter: none;
    transition: all 0.4s ease;
}

/* Balance visual weight - Wishu is very "heavy" so we scale it down slightly */
.client-logo-card img[alt*="Wishu"] {
    max-width: 80%;
}

/* The other logos have more white space in their files, so we scale them UP to match */
.client-logo-card img:not([alt*="Wishu"]) {
    transform: scale(1.15);
}

.client-logo-card:hover img {
    opacity: 1;
    transform: scale(1.18);
}

.client-logo-card:hover img[alt*="Wishu"] {
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Move by exactly half the track width (one set of logos) */
        transform: translateX(calc(-50% - 1.5rem));
        /* -50% of parent track + half the gap for perfect alignment */
    }
}

/* ===================================
   Services Section
   =================================== */

.services {
    padding: var(--spacing-xl) clamp(25px, 6vw, 120px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.service-card {
    padding: 3rem;
    height: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-gold) 0%, #c98a35 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
    /* White icon */
    box-shadow: 0 4px 16px rgba(223, 161, 68, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--color-text);
    width: auto;
    font-size: 1.5rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    background: transparent;
    padding: 0;
    border: none;
    width: auto;
}

.service-features {
    list-style: none;
    padding: 0;
    /* Reset padding */
    background: transparent;
    border: none;
    width: 100%;
    margin-top: 1.5rem;
    text-align: left;
}

.service-features li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--color-text-dim);
}

.service-features li:last-child {
    margin-bottom: 0;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    background-color: transparent;
    border-radius: 0;
    color: var(--color-gold);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===================================
   About Section
   =================================== */

.about {
    padding: var(--spacing-xl) clamp(25px, 6vw, 120px);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: var(--spacing-lg);
}

.about-text h2 {
    margin-bottom: var(--spacing-md);
}

.about-text p {
    margin-bottom: var(--spacing-sm);
}

.about-image {
    background: var(--glass-bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(10px);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   Why Choose Us Section
   =================================== */

.why-us {
    padding: var(--spacing-xl) clamp(25px, 6vw, 120px);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.why-card {
    padding: 2.5rem 2rem;
    text-align: center;
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.why-card h3 {
    margin-bottom: 1rem;
}

/* ===================================
   Portfolio Section
   =================================== */

.portfolio {
    padding: var(--spacing-xl) clamp(25px, 6vw, 120px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/10;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.portfolio-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 2, 2, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-category {
    font-size: 0.875rem;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-description {
    font-size: 0.95rem;
    color: var(--color-text-dim);
}

/* ===================================
   Footer
   =================================== */

/* ===================================
/* =================================== 
   Premium Footer Redesign (Alvarium Style)
   =================================== */

.footer {
    background: #020202;
    padding: 5rem clamp(25px, 6vw, 120px) 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 5rem;
    color: var(--color-text);
    position: relative;
}

.footer .container {
    max-width: 1400px;
    padding: 0;
    margin: 0 auto;
}

/* Row 1: Top Bar (Logo & Socials) */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo-link {
    display: inline-block;
}

.footer-logo {
    height: 65px;
    width: auto;
    opacity: 1;
    margin-left: 0;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-brand-text {
    margin-top: 1rem;
    color: var(--color-text-dim);
    font-size: 0.95rem;
    max-width: 400px;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 1.25rem;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    /* More modern rounded square */
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dim);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-5px);
    border-color: #ffffff;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.social-btn i {
    font-size: 1.25rem;
}

/* Row 2: Main Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.footer-links,
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-text-dim);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-gold);
    transform: translateX(5px);
}

/* Contact & Info */
.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--color-text-dim);
    font-size: 0.95rem;
}

.contact-list i {
    color: var(--color-text);
    font-size: 1.1rem;
}

/* Working Hours */
.working-hours p {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: var(--color-text-dim);
    margin-bottom: 1rem;
}

.working-hours span {
    color: #fff;
    font-weight: 500;
}

/* Row 3: Newsletter (Wide) */
.footer-newsletter-section {
    margin-bottom: 3rem;
    padding: 3.5rem 0;
    /* More balanced padding with the line */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    /* Sophisticated separator line */
}

.newsletter-text-content {
    margin-bottom: 2rem;
}

.newsletter-text-content h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.newsletter-text-content p {
    color: var(--color-text-dim);
    font-size: 1rem;
}

.newsletter-wide-form {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.newsletter-wide-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    /* Subtle dark background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem 1.75rem;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.newsletter-wide-form input:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px rgba(223, 161, 68, 0.1);
}

.newsletter-wide-form button {
    background: var(--color-gold);
    /* Brand Signature Gold */
    color: #000000;
    border: none;
    padding: 0 3.5rem;
    border-radius: 12px;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 1rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.newsletter-wide-form button:hover {
    background: #f5b041;
    /* Slightly brighter gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(223, 161, 68, 0.3);
}

/* Row 4: Copyright */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--color-text-dim);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .newsletter-wide-form {
        flex-direction: column;
    }

    .newsletter-wide-form button {
        width: 100%;
        padding: 1rem;
    }
}

/* ===================================
   Utility Classes
   =================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ===================================
   Value Comparison Section (Balanced)
   =================================== */

.value-comparison {
    padding: var(--spacing-xl) clamp(25px, 6vw, 120px);
    position: relative;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

.comparison-card {
    background: var(--glass-bg-secondary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.comparison-card:hover {
    transform: translateY(-5px);
    background: var(--glass-bg-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.comparison-card .comp-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Red / Risk Icon */
.comparison-card.risk-card .comp-icon {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
}

/* Green / Value Icon */
.comparison-card.value-card .comp-icon {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2);
}

.comparison-card h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--color-text);
}

/* Red Indicator Theme */
.comparison-card.risk-card {
    border-left: 4px solid rgba(239, 68, 68, 0.4);
}

/* Green Indicator Theme */
.comparison-card.value-card {
    border-left: 4px solid rgba(34, 197, 94, 0.4);
}

.comparison-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.comparison-list li {
    display: flex;
    gap: 1rem;
    align-items: start;
    font-size: 1.05rem;
    color: var(--color-text-dim);
    line-height: 1.5;
}

.comparison-list li i {
    font-size: 1.25rem;
    margin-top: 2px;
}

.comparison-card.risk-card .comparison-list li i {
    color: #ef4444;
}

.comparison-card.value-card .comparison-list li i {
    color: #22c55e;
}

.comparison-card.value-card .comparison-list li {
    color: var(--color-text);
}

/* Remove background glow to reduce noise */
.comparison-glow {
    display: none;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1300px) {

    .nav-container,
    .hero,
    .statistics,
    .clients,
    .services,
    .about,
    .footer,
    .why-us,
    .portfolio,
    .value-comparison {
        padding-left: 60px;
        padding-right: 60px;
    }

    .footer {
        padding-left: 60px;
        padding-right: 60px;
    }
}

@media (max-width: 1150px) {

    .nav-container,
    .hero,
    .statistics,
    .clients,
    .services,
    .about,
    .footer,
    .why-us,
    .portfolio,
    .value-comparison {
        padding-left: 25px;
        padding-right: 25px;
    }

    .footer {
        padding-left: 25px;
        padding-right: 25px;
    }

    .contact-wrapper {
        gap: 1.5rem;
    }

    .contact-form-container {
        padding: 2rem;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 400px;
        background: rgba(2, 2, 2, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 6rem 2rem;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar {
        padding: 1.5rem 25px;
    }

    .navbar.scrolled {
        padding: 0.75rem 2rem;
        width: 90%;
        /* Fluid width for tablet */
        max-width: 90%;
        top: 15px;
        /* Slightly higher than desktop */
        border-radius: 50px;
        /* Ensure centering is preserved */
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .services-grid,
    .why-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Wrap stats to 2 columns */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Stack comparison cards */
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    /* Global Padding for Tablet */
    .hero,
    .statistics,
    .clients,
    .services,
    .about,
    .footer,
    .why-us,
    .portfolio,
    .value-comparison {
        padding-left: 25px;
        padding-right: 25px;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .navbar {
        padding: 1.5rem 20px;
    }

    .navbar.scrolled {
        padding: 0.75rem 1rem;
        /* Compact padding */
        width: 92%;
        /* Fluid width for mobile - Keeps the floating look */
        max-width: 92%;
        top: 10px;
        /* Higher up to save screen real estate */
        border-radius: 30px;
        /* Ensure centering is preserved */
        left: 50%;
        transform: translateX(-50%);
    }

    .navbar.scrolled .logo img {
        height: 40px;
        /* Resize logo for mobile pill */
    }

    .nav-container {
        padding: 0;
        /* Remove padding to let items reach edges */
    }

    .hero,
    .statistics,
    .clients,
    .services,
    .about,
    .footer,
    .why-us,
    .portfolio,
    .value-comparison {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero {
        padding-top: 8rem;
        /* Extra spacing for mobile header/pill separation */
    }

    /* Fix Stats Grid Overflow on Mobile */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns for 2x2 grid */
        padding: 1.5rem 1rem;
        gap: 2rem 1rem;
        /* row gap, column gap */
    }

    .stat-card {
        padding: 1rem 0.5rem;
        /* Balanced padding for grid layout */
        border-right: none;
        /* Remove all borders for cleaner grid look */
        border-bottom: none;
    }

    .stat-number {
        font-size: 2.5rem;
        /* Optimized font size for mobile */
    }

    .stat-icon {
        font-size: 2rem;
        /* Slightly smaller icon on mobile */
        margin-bottom: 1rem;
    }

    .stat-label {
        font-size: 0.85rem;
        /* Slightly smaller label for better fit */
    }
}

/* ===================================
   Contact Section Redesign
   =================================== */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Form takes more space */
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Contact Form */
.contact-form-container {
    padding: 3rem;
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group select option {
    background: #0f172a;
    /* Dark background for options */
    color: var(--color-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(223, 161, 68, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Contact Info Side */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    /* Align top for better multiline handling */
    gap: 1.5rem;
}

.info-icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--glass-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-gold);
    flex-shrink: 0;
    margin-top: 0.25rem;
    /* Visual alignment with title */
}

.contact-info-card:hover .info-icon-wrapper {
    background: var(--color-primary);
    border-color: var(--color-gold);
}

.info-content {
    flex: 1;
}

.info-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.info-intro {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    max-width: 100%;
}

.info-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-links a,
.info-links span {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    width: fit-content;
}

.info-links a:hover {
    color: var(--color-gold);
}

/* ===================================
   Testimonial Section
   =================================== */

.testimonial {
    background: var(--glass-bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 3rem;
    margin: 3rem 0;
    backdrop-filter: blur(10px);
    text-align: center;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-gold);
}

.testimonial-role {
    font-size: 0.95rem;
    color: var(--color-text-dim);
}

/* ===================================
   Portfolio Coming Soon (Added)
   =================================== */

.portfolio-coming-soon {
    display: grid;
    place-items: center;
    min-height: 100vh;
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
}

.coming-soon-container {
    padding: 80px 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.coming-soon-title {
    font-size: clamp(3rem, 10vw, 7rem);
    margin: 0 0 1.5rem;
    color: var(--color-gold);
    line-height: 1;
}

.coming-soon-text {
    font-size: 1.5rem;
    color: var(--color-text-dim);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.coming-soon-btn {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    width: fit-content;
    margin: 0 auto;
}