/* --- Global Resets & 5 Page Websites Token Ecosystem --- */
:root {
    --clr-bg: #ffffff;
    --clr-dark: #0f172a;           /* Deep tech navy background */
    --clr-light: #f8fafc;          /* Sleek off-white base */
    --clr-accent: #2563eb;         /* High-vibrancy focus royal blue/indigo */
    --clr-accent-hover: #1d4ed8;   /* Darker blue for smooth button hover states */
    --clr-card-blue: #f0fdf4;      /* Will be updated to match the light layout wash below */
    --clr-blue-wash: #f0f4f8;      /* Clean ice-blue wash for service card blocks */
    --clr-text-dark: #1e293b;      /* Sharp charcoal text color for perfect readability */
    --clr-text-muted: #64748b;     /* Slate gray for secondary subtitles */
    --clr-border: #e2e8f0;         /* Soft platinum border line break splits */
    
    /* OVERHAULED BRAND BLUE COLOR */
    --clr-placeholder-lilac: rgba(56, 155, 197, 1.0); 

    --ff-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ff-serif: 'Playfair Display', Georgia, serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Sticky Navigation Anchor Link Scroll Offsets --- */
section[id] {
    /* Creates a dynamic safety buffer zone above sections when jumping via nav links */
    scroll-margin-top: 220px; 
}

/* Optional: Fine tune for desktop layouts where the menu bar is thinner */
@media (min-width: 969px) {
    section[id] {
        scroll-margin-top: 140px;
    }
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--ff-sans);
    background-color: var(--clr-bg);
    color: var(--clr-text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Layout Containers --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2-equal { grid-template-columns: repeat(2, 1fr); align-items: center; }

/* --- Reusable Spacing & Components --- */
.sections-spaced {
    padding: 4rem 0;
}

.bg-light { background-color: var(--clr-blue-wash); }
.bg-dark { background-color: var(--clr-dark); }

/* This target block isolates where you can apply custom graphic backgrounds later */
.bg-graphic-placeholder { 
    background-color: var(--clr-placeholder-lilac); 
}

.text-light h1, .text-light h2, .text-light h3, .text-light h4, .text-light p {
    color: #ffffff !important;
}

.tagline {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff; /* This line makes it white */
    margin-bottom: 1rem;
}

.tagline-light {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--clr-dark);
}

h1 { font-family: var(--ff-serif); font-size: 3.75rem; letter-spacing: -0.01em; }
h2 { font-family: var(--ff-serif); font-size: 2.75rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

.section-header { max-width: 600px; margin-bottom: 4rem; }
.section-header-center { text-align: center; max-width: 600px; margin: 0 auto 4rem; }
.subtitle { font-size: 1.25rem; color: var(--clr-text-muted); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.15);
}

/* --- High-Performance Desktop Header / Navigation Bar --- */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--clr-border);
    z-index: 1000;
    padding: 1.25rem 0;
    width: 100%;
}

/* Constrains desktop layout safely inside your grid width lines */
.nav-container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo img {
    max-height: 125px;
    width: auto;
    display: block;
}

.nav-scroll-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--clr-text-dark);
    font-weight: 600;
    margin: 0 1.25rem;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.nav-links a:hover { 
    color: var(--clr-accent); 
}

/* --- Hero Frame with Particle Constraints --- */
.hero {
    position: relative;
    padding: 10rem 0 7rem;
    background: var(--clr-dark);
    overflow: hidden;
    min-height: 75vh;
    display: flex;
    align-items: center;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1; 
}

.hero-container { 
    position: relative;
    max-width: 900px; 
    text-align: left; 
    z-index: 2;
}

.hero h1 { 
    color: #ffffff; 
    margin-bottom: 1.5rem; 
}

.hero-subtext { 
    font-size: 1.25rem; 
    color: #cbd5e1;
    margin-bottom: 2.5rem; 
    max-width: 750px; 
}

.hero-badges {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.badge-item { 
    font-size: 0.95rem; 
    font-weight: 500; 
    color: #94a3b8;
}

/* --- Cards UI Block --- */
.card {
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--clr-border);
    background-color: #ffffff;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

/* --- Stats Box Setup --- */
.stat-box-wrapper { margin-top: 2rem; }
.stat-card {
    border-left: 2px solid var(--clr-accent);
    padding: 1rem 0 1rem 1.5rem;
}
.stat-number { font-family: var(--ff-serif); font-size: 2.75rem; font-weight: 700; color: #ffffff; display: block; }

/* --- Step Timeline --- */
.step-card { position: relative; }
.step-num { font-family: var(--ff-serif); font-size: 3rem; font-weight: 700; color: var(--clr-border); opacity: 0.8; line-height: 1; margin-bottom: 0.5rem; }

/* --- Case Study / Lookbook Visual Layout --- */
.case-study-visual {
    position: relative;
    height: 450px;
    background: var(--clr-blue-wash);
    border-radius: 16px;
    overflow: hidden;
}

.mockup-window {
    position: absolute;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.desktop-mockup {
    width: 75%;
    left: 5%;
    top: 15%;
}

.mobile-mockup {
    width: 32%;
    right: 5%;
    bottom: 10%;
    border: 4px solid var(--clr-dark);
}

.mockup-window img { width: 100%; height: auto; display: block; }
.case-study-stats { display: flex; gap: 2rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--clr-border); }
.cs-stat strong { font-family: var(--ff-serif); font-size: 2rem; display: block; color: var(--clr-accent); }
.cs-stat span { font-size: 0.85rem; color: var(--clr-text-muted); }

/* --- FAQ Interaction Elements --- */
.faq-item {
    border-bottom: 1px solid var(--clr-border);
    padding: 1.5rem 0;
}
.faq-item summary { font-size: 1.15rem; font-weight: 600; color: var(--clr-dark); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin-top: 1rem; color: var(--clr-text-muted); }

/* --- Booking Request Form --- */
.contact-form-wrapper {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.875rem; margin-bottom: 0.5rem; font-weight: 500; color: #ffffff; }

/* RECONFIGURED FORM BOXES: Forced to solid white backgrounds with dark text */
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #ffffff !important; 
    border: 1px solid var(--clr-border);
    border-radius: 6px;
    color: #1e293b !important; /* Visitor typed text runs in charcoal/black */
    font-family: var(--ff-sans);
}

/* FORCED DARK PLACEHOLDER HINTS */
.form-group input::placeholder, .form-group textarea::placeholder {
    color: #1e293b !important; 
    opacity: 0.65; /* Elegant transparency so it retains a native hint aesthetic */
}

.form-group input:focus, .form-group textarea:focus {
    outline: 2px solid var(--clr-accent);
    background: #ffffff !important;
}

/* --- Footer Area --- */
.footer {
    background-color: #0b1329;
    padding: 5rem 0 3rem;
    color: #94a3b8;
    border-top: 1px solid var(--clr-border);
}
.footer h4 { color: #ffffff; margin-bottom: 1rem; font-size: 1.2rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: var(--transition-smooth); }
.footer-links a:hover { color: #ffffff; }

/* --- UNIFIED SINGLE RESPONSIVE BREAKPOINT FOR MOBILE & TABLET --- */
@media (max-width: 968px) {
    /* Layout structural collapse resets */
    .grid-2, .grid-3, .grid-4, .grid-2-equal {
        grid-template-columns: 1fr !important;
    }

    /* Stacks columns vertically on mobile screens */
    .navbar .nav-container-fluid {
        display: flex !important;
        flex-direction: column !important; 
        gap: 1rem !important;
        padding: 0 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .navbar {
        padding: 1rem 0 !important;
        height: auto !important;
    }

    /* Safely contains and downscales your logo asset so it cannot cut off */
    .logo {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    .logo img {
        max-width: 100% !important;
        height: auto !important;
        max-height: 125px !important;
        object-fit: contain !important;
    }

    /* TURNS OFF SIDEWAYS SCROLL: Allows navigation items to wrap into clean rows */
    .nav-scroll-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        display: block !important;
    }

    /* Arranges your links into an even, wrapping grid format */
    .nav-links {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        padding: 0 !important; 
        width: 100% !important;
    }

    .nav-links a {
        margin: 0 !important;
        font-size: 0.85rem !important;
        padding: 0.4rem 0.85rem !important;
        background: var(--clr-blue-wash) !important; 
        border-radius: 20px !important;
        border: 1px solid var(--clr-border) !important;
        display: inline-block !important;
        white-space: nowrap !important;
    }
    
    .nav-cta {
        width: 100% !important;
        padding: 0 !important;
        margin-top: 0.25rem !important;
    }
    
    .nav-cta .btn {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        padding: 0.75rem 1.5rem !important;
    }

    /* General responsive padding updates */
    .sections-spaced {
        padding: 5rem 0 !important;
    }
    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 2rem !important; }
    .hero-badges { flex-direction: column !important; gap: 1rem !important; }
}

/* --- About Section Custom Image Background (No Tint) --- */
.about-banner {
    background: url('hitech.webp') no-repeat center center / cover !important;
}