/* ==========================================================================
   COLOR PALETTES (Easily change themes right here)
   ========================================================================== */
:root {
    /* Global Base Settings */
    --font-primary: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-sm: 6px;
    --border-radius-lg: 16px;

    /* Theme 1: Deep Dark (Used for Hero & Case Studies) */
    --dark-bg: #0b0f19;
    --dark-text-main: #ffffff;
    --dark-text-muted: #94a3b8;
    --dark-accent: #38bdf8; /* Sky Blue accent */
    --dark-card-bg: rgba(255, 255, 255, 0.03);
    --dark-card-border: rgba(255, 255, 255, 0.08);

    /* Theme 2: Crisp Light (Used for Philosophy/Value Statement) */
    --light-bg: #ffffff;
    --light-text-main: #0f172a;
    --light-text-muted: #475569;
    --light-accent: #0284c7;
    
    /* Theme 3: Soft Neutral (Used for Services Grid) */
    --neutral-bg: #f8fafc;
    --neutral-text-main: #0f172a;
    --neutral-text-muted: #64748b;
    --neutral-accent: #0f172a;
    --neutral-card-bg: #ffffff;
    --neutral-card-border: rgba(15, 23, 42, 0.05);
}

/* ==========================================================================
   Global Resets & Base Styles
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--dark-bg);
    color: var(--dark-text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Structural Layout Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.max-width-md { max-width: 750px; }
.text-center { text-align: center; }

.section {
    padding: 8rem 0;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Sticky Transparent Navigation Toolbar
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(11, 15, 25, 0.7); /* Match dark-bg with alpha */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--dark-text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--dark-accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--dark-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-menu a:hover {
    color: var(--dark-text-main);
}

/* ==========================================================================
   Dynamic Theme Configurations (Morphs backgrounds as you scroll)
   ========================================================================== */

/* Dark Theme Sections */
.theme-dark {
    background-color: var(--dark-bg);
    color: var(--dark-text-main);
}
.theme-dark p { color: var(--dark-text-muted); }
.theme-dark h1, .theme-dark h2 { color: var(--dark-text-main); }
.theme-dark .subtitle { color: var(--dark-accent); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1.5px; display: block; margin-bottom: 1rem;}

/* Light Theme Sections */
.theme-light {
    background-color: var(--light-bg);
    color: var(--light-text-main);
}
.theme-light p { color: var(--light-text-muted); font-size: 1.15rem; }
.theme-light h2 { color: var(--light-text-main); font-size: 2.5rem; margin-bottom: 1.5rem; font-weight: 700; letter-spacing: -0.5px;}
.theme-light .subtitle { color: var(--light-accent); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1.5px; display: block; margin-bottom: 1rem;}

/* Neutral Theme Sections */
.theme-neutral {
    background-color: var(--neutral-bg);
    color: var(--neutral-text-main);
}
.theme-neutral p { color: var(--neutral-text-muted); }
.theme-neutral h2 { color: var(--neutral-text-main); font-size: 2.5rem; margin-bottom: 1rem;}
.theme-neutral .section-header { margin-bottom: 4rem; }

/* ==========================================================================
   Component Modules (Hero, Cards, Buttons)
   ========================================================================== */

/* Hero Specifics */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    padding-top: 4rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   Hero Navigation Flow Ecosystem Layout
   ========================================================================== */
.hero-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flow-ecosystem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.flow-step {
    flex: 1;
}

/* Interactive Card Buttons */
.flow-btn {
    display: flex;
    flex-direction: column;
    background-color: var(--dark-card-bg);
    border: 1px solid var(--dark-card-border);
    padding: 1.5rem 1.2rem;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    transition: var(--transition-smooth);
    text-align: left;
}

.flow-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--dark-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(56, 189, 248, 0.05);
}

.step-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark-accent);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* Update the button headers to use your bright sky-blue accent shade */
.flow-btn h3 {
    color: var(--dark-accent); /* Changed from main-text to high-contrast accent */
    font-size: 1.15rem;
    font-weight: 700; /* Made slightly thicker to complement the color shift */
    margin-bottom: 0.4rem;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

/* Enhances button text interactions when a user hovers over the button */
.flow-btn:hover h3 {
    color: var(--dark-text-main); /* Flips cleanly to crisp white on hover */
}

/* Enlarged and bolded directional flow arrows */
.flow-arrow {
    color: var(--dark-accent);
    font-size: 2.2rem; /* Increased size significantly for better presence */
    font-weight: 800;  /* Thick, structural weighting */
    opacity: 0.8;      /* Higher opacity to stand out clearly */
    user-select: none;
}

/* Ensures the mobile rotated arrow retains its increased size scale */
@media (max-width: 768px) {
    .flow-arrow {
        transform: rotate(90deg);
        font-size: 1.8rem; /* Keeps it perfectly proportioned for smaller devices */
        margin: -0.2rem 0;
    }
}


/* ==========================================================================
   Responsive Modifiers (Desktop Grid to Mobile Stack Transition)
   ========================================================================== */
@media (max-width: 1200px) {
    /* For smaller desktop screen bounds, adjust grid proportions layout smoothly */
    /* ==========================================================================
   Centered Vertical Hero Stack Modifications
   ========================================================================== */
.hero-vertical-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.5rem; /* Balanced spacing between the text, diagram, and buttons */
    padding-top: 5rem;
}

.hero-text-block {
    max-width: 850px; /* Limits width to keep typography punchy and readable */
    margin: 0 auto;
}

.hero-text-block h1 {
    font-size: 3.2rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-text-block p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.hero-flow-diagram {
    width: 100%;
    max-width: 1000px; /* Gives the horizontal buttons room to breathe */
}

.style-centered-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Adjust layout rules inside the older media query to prevent style conflicts */
@media (max-width: 1200px) {
    .hero-text-block h1 {
        font-size: 2.5rem;
    }
}

    .hero-content {
        max-width: 750px;
        margin: 0 auto;
    }
    .cta-group {
        justify-content: center;
    }
    .flow-btn h3 {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    /* Force full column stacking behavior on smaller tablet/smartphone viewports */
    .flow-ecosystem {
        flex-direction: column;
        gap: 1.5rem;
        max-width: 320px;
        margin: 2rem auto 0 auto;
    }
    
    .flow-step {
        width: 100%;
    }
    
    .flow-btn {
        text-align: center;
        align-items: center;
    }

    /* Change horizontal arrow code into a downward-pointing chevron arrow layout */
    .flow-arrow {
        transform: rotate(90deg);
        font-size: 1.2rem;
        margin: -0.5rem 0;
    }
}


/* Modern Abstract Shape Placeholder */
.abstract-shape {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(15, 23, 42, 0) 100%);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--dark-card-border);
}

/* Interactive Buttons */
.cta-group {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--dark-text-main);
    color: var(--dark-bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.05);
}

.btn-secondary {
    border: 1px solid var(--dark-card-border);
    color: var(--dark-text-main);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.02);
}

.btn-nav {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1.2rem;
    border-radius: var(--border-radius-sm);
    color: var(--dark-text-main) !important;
}
.btn-nav:hover {
    background-color: var(--dark-text-main);
    color: var(--dark-bg) !important;
}

/* Service Pillar Cards Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--neutral-card-bg);
    border: 1px solid var(--neutral-card-border);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Interactive Service Pillars Custom Modifications
   ========================================================================== */
.service-card-link {
    text-decoration: none; /* Deletes default link lines from your text paragraph */
    color: inherit;       /* Forces titles and text to respect your dark/light themes */
    display: block;
}

/* Enhances the hover effect to create a premium card response */
.service-card-link:hover .service-card {
    transform: translateY(-8px); /* Elevates slightly more than previous version */
    border-color: rgba(56, 189, 248, 0.3); /* Adds a subtle hint of your blue brand accent to the edge */
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.06);
}

/* Subtle accent color pop for titles when card container is hovered */
.service-card-link:hover h3 {
    color: #0284c7; /* Switches to a sharp blue contrast color to indicate clicking */
}

/* Elegant, muted inline textual call-to-action inside cards */
.card-learn-more {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0284c7;
    opacity: 0; /* Invisibly tucked away until interaction */
    transform: translateX(-5px);
    transition: var(--transition-smooth);
}

/* Reveals and slides the text prompt smoothly rightward on card hover */
.service-card-link:hover .card-learn-more {
    opacity: 1;
    transform: translateX(0);
}


.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.03);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--neutral-text-main);
}

/* Case Study Grid & Mockup styling */
.case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.browser-mockup {
    background-color: #1e293b;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--dark-card-border);
    height: 300px;
    display: flex;
    flex-direction: column;
}

.mockup-dots {
    padding: 1rem;
    display: flex;
    gap: 0.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2);
}

.mockup-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-text-muted);
    font-size: 0.9rem;
    font-family: monospace;
}

.text-link {
    color: var(--dark-accent);
    text-decoration: none;
    font-weight: 500;
    margin-top: 1.5rem;
    display: inline-block;
}

/* ==========================================================================
   Responsive Breakpoints & Pure-CSS Mobile Dropdown
   ========================================================================== */

/* ==========================================================================
   Desktop / Wide View Settings (Forces normal view above 968px)
   ========================================================================== */
.menu-checkbox, .menu-button {
    display: none !important; /* Forces the hamburger icon to hide completely on wide screens */
}

.nav-menu {
    display: flex !important; /* Forces the links to stay in a horizontal line on wide screens */
    flex-direction: row;
    opacity: 1 !important;
    visibility: visible !important;
    position: static;
    transform: none !important;
    background-color: transparent;
    padding: 0;
    width: auto;
}

/* ==========================================================================
   Responsive Mobile View Dropdown (Only applies BELOW 968px)
   ========================================================================== */
@media (max-width: 968px) {
    .menu-button {
        display: flex !important; /* Shows the hamburger on mobile screens */
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        cursor: pointer;
        z-index: 1002;
    }

    .menu-button span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: var(--dark-text-main);
        border-radius: 2px;
        transition: var(--transition-smooth);
    }

    .menu-checkbox {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    /* Convert the menu to a hidden dropdown stack on mobile */
    .nav-menu {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(11, 15, 25, 0.98);
        padding: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        
        /* Hidden state settings for mobile */
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-10px);
        transition: var(--transition-smooth);
    }

    /* Shows the dropdown menu when the hamburger is clicked */
    .menu-checkbox:checked ~ .nav-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0);
    }

    /* Animation: Transforms hamburger into an 'X' button when open */
    .menu-checkbox:checked + .menu-button span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-checkbox:checked + .menu-button span:nth-child(2) {
        opacity: 0;
    }
    .menu-checkbox:checked + .menu-button span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .section { 
        padding: 6rem 0; 
    }
}

/* ==========================================================================
   Universal Footer Module
   ========================================================================== */
.main-footer {
    padding: 5rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #060911; /* A touch darker than dark-bg for elegant depth */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.95rem;
    max-width: 320px;
    line-height: 1.6;
}

.footer-links, .footer-socials {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links h4, .footer-socials h4 {
    color: var(--dark-text-main);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.footer-links a {
    color: var(--dark-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--dark-accent);
    transform: translateX(4px);
}

/* Premium LinkedIn Button Custom Styling */
.btn-linkedin {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--dark-text-main) !important;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    width: fit-content;
}

.btn-linkedin:hover {
    background-color: #0077b5; /* Official LinkedIn Blue */
    border-color: #0077b5;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 119, 181, 0.15);
}

/* Styles the official SVG logo size and spacing */
.linkedin-icon {
    width: 18px;
    height: 18px;
    fill: var(--dark-text-main); /* Makes the logo matches your white text */
    margin-right: 10px;
    transition: var(--transition-smooth);
}


.social-icon {
    margin-right: 8px;
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.5);
}

/* Responsive Footer adjustments for tablets and mobile phones */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .footer-brand p {
        margin: 1rem auto 0 auto;
    }
    .footer-links a {
        justify-content: center;
    }
    .footer-links a:hover {
        transform: translateY(-2px);
    }
    .btn-linkedin {
        margin: 0 auto;
    }
}


/* --- Base Styling & Layout --- */
.section.theme-dark {
    background-color: #0b0f19; /* Deep dark morph color background */
    color: #ffffff;
    padding: 60px 20px;
}

.container.case-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Equal 2-column split for Web */
    gap: 40px; /* Space between text and mockup */
    align-items: center; /* Vertical alignment centered */
}

/* --- Browser Mockup & Image Handling --- */
.browser-mockup {
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-dots {
    padding: 10px;
    background: #111827;
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
}
.mockup-dots span:nth-child(2) { background: #eab308; }
.mockup-dots span:nth-child(3) { background: #22c55e; }

.mockup-content {
    width: 100%;
    line-height: 0; /* Prevents tiny alignment gaps underneath images */
}

.mockup-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Content Typography --- */
.case-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.case-content .subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #38bdf8; /* Accent pop color */
}

.case-content h2 {
    font-size: 2.25rem;
    margin: 0;
    line-height: 1.2;
}

.case-content p {
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.case-content .text-link {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    margin-top: 8px;
    transition: color 0.2s ease;
}

.case-content .text-link:hover {
    color: #7dd3fc;
}

/* --- Mobile Responsiveness Media Query --- */
@media (max-width: 768px) {
    .container.case-grid {
        grid-template-columns: 1fr; /* Switch to single column for Mobile */
        gap: 30px;
    }
    
    .case-image {
        order: 1; /* Puts the mockup image on top */
    }
    
    .case-content {
        order: 2; /* Puts text underneath */
        text-align: center; /* Centered alignment for clean reading on mobile */
        align-items: center;
    }

    .case-content h2 {
        font-size: 1.75rem; /* Slightly smaller header text for mobile screens */
    }
}
/* --- Hero Section Background Image Override --- */
#hero {
    position: relative; /* Hooks the background image strictly inside this section */
    overflow: hidden;   /* Prevents the image from spilling into sections below it */
    z-index: 1;         /* Groups the layout correctly */
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* ADD YOUR IMAGE FILE NAME HERE */
    background-image: url("Top hero.webp"); 
    
    background-size: cover;       /* Spreads image across the full width and height */
    background-position: center;   /* Keeps the graphic centered on the screen */
    background-repeat: no-repeat;
    
    /* CONTROL THE TRANSPARENCY HERE */
    opacity: 0.12; /* 0.12 = 12% visible. Adjust between 0.05 and 0.25 to find the sweet spot */
    
    z-index: -1;  /* Forces the graphic behind all the text blocks and buttons */
    pointer-events: none; /* Allows users to still click the "Book a Call" buttons right over the image */
}
/* --- Fix for Top Toolbar Layer Overlap --- */
header, 
.top-toolbar, 
.navbar { 
    position: fixed !important; /* Or absolute, depending on how your navbar is built */
    z-index: 9999 !important;   /* Forces the toolbar to always stay safely on top of the hero section */
}

/* Adds a safe padding to the top of the hero text so the menu doesn't block it */
#hero {
    padding-top: 100px !important; /* Adjust this number to match the exact height of your toolbar */
}
