/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* The "Premium Education" Identity - Blends perfectly with your 3D images */
    --bg-dark: #0A1128; /* Deep Navy Blue (Matches your image backgrounds) */
    --bg-panel: #111C3A; /* Slightly lighter navy for cards to create depth */
    --primary-white: #FFFFFF;
    --text-grey: #E5E7EB; /* Crisp, highly readable light silver/grey */
    --accent-cyan: #00E5FF; /* Your tech highlight color */
    --accent-cyan-hover: #00B3CC;
    
    /* Subtler, more professional borders and shadows (Less "hacker", more "premium glass") */
    --border-glow: 1px solid rgba(255, 255, 255, 0.1); 
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 25px rgba(0, 229, 255, 0.15);
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-grey);
    background-color: var(--bg-dark); /* Flips the entire site to Deep Navy */
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary-white);
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation Overrides */
.header {
    background: rgba(10, 17, 40, 0.85); /* Frosted Navy Header */
    backdrop-filter: blur(12px);
    border-bottom: var(--border-glow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-grey);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-cyan);
}

/* Professional B2B Button Styling */
.btn-demo, .btn-primary {
    background: var(--accent-cyan);
    color: var(--bg-dark) !important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2);
}

.btn-demo:hover, .btn-primary:hover {
    background: var(--accent-cyan-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-purple);
    color: var(--primary-white);
}

.btn-primary:hover {
    background: var(--accent-purple-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3a5c 100%);
    color: var(--primary-white);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 35px, rgba(255, 255, 255, 0.05) 35px, rgba(255, 255, 255, 0.05) 70px),
        repeating-linear-gradient(90deg, transparent, transparent 35px, rgba(255, 255, 255, 0.05) 35px, rgba(255, 255, 255, 0.05) 70px);
    opacity: 0.5;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Section Styling */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-dark);
}

/* Problem Section */
.problem {
    background: var(--light-grey);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.problem-card {
    background: var(--primary-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.icon-badge {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.problem-card h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.problem-statement {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-grey);
    margin-bottom: 1.5rem;
}

.solution-highlight {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-purple);
    margin-top: 1.5rem;
}

.solution-highlight strong {
    color: var(--accent-purple);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.solution-highlight p {
    margin: 0;
    line-height: 1.6;
}

/* Philosophy Section */
.philosophy {
    background: var(--primary-white);
}

.philosophy-intro {
    text-align: center;
    font-size: 1.2rem;
    max-width: 850px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

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

.pillar {
    padding: 2.5rem;
    border-left: 5px solid var(--accent-purple);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    position: relative;
}

.pillar-number {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--accent-purple);
    color: var(--primary-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
}

.pillar h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    line-height: 1.4;
}

.pillar em {
    color: var(--accent-purple);
    font-style: normal;
    font-weight: 600;
}

.pillar p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.pillar-result {
    background: rgba(124, 58, 237, 0.1);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1.5rem;
    font-style: italic;
}

.citation {
    font-size: 0.85rem;
    opacity: 0.8;
    font-style: normal;
}

/* Solution Section */
.solution {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3a5c 100%);
    color: var(--primary-white);
    position: relative;
}

.solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.6;
    pointer-events: none;
}

.solution .section-title {
    color: var(--primary-white);
    position: relative;
    z-index: 1;
}

.solution-intro {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 4rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.solution-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.solution-point {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.solution-point:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
}

.solution-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.solution-point h4 {
    color: var(--primary-white);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.solution-point p {
    line-height: 1.7;
}

.solution-point strong {
    color: #c4b5fd;
}

/* Services Section */
.services {
    background: var(--light-grey);
}

.services-intro {
    text-align: center;
    font-size: 1.15rem;
    max-width: 700px;
    margin: -1rem auto 4rem;
    color: var(--text-grey);
}

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

.service-card {
    background: var(--primary-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: var(--accent-blue);
    color: var(--primary-white);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.service-badge.coming {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.service-card.featured {
    border: 3px solid var(--accent-purple);
}

.service-card.coming-soon {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed var(--border-grey);
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card h4 {
    color: var(--accent-blue);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.service-tagline {
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-grey);
}

.service-features, .service-details {
    margin: 2rem 0;
}

.service-features h5, .service-details h5 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.service-card li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.8rem;
    line-height: 1.6;
}

.service-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

.service-ideal {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--light-grey);
    font-size: 0.95rem;
    line-height: 1.6;
}

.pilot-cta {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--accent-purple);
}

.pilot-cta a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-purple);
}

.pilot-cta a:hover {
    border-bottom-color: var(--accent-purple-hover);
}

/* About Section */
.about {
    background: var(--primary-white);
}

.about-intro {
    text-align: center;
    font-size: 1.2rem;
    max-width: 850px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

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

.benefit {
    text-align: center;
    padding: 2rem;
    background: var(--light-grey);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.benefit:hover {
    background: #f5f3ff;
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.benefit p {
    color: var(--text-grey);
    line-height: 1.6;
    font-size: 0.95rem;
}

.tech-guarantee {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-radius: 12px;
    border: 2px solid var(--accent-purple);
    text-align: center;
}

.tech-guarantee h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.tech-guarantee p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-grey);
}

.tech-guarantee strong {
    color: var(--accent-purple);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3a5c 100%);
    color: var(--primary-white);
}

.contact .section-title {
    color: var(--primary-white);
}

.contact-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hidden {
    display: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-grey);
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--primary-white);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    text-align: center;
    opacity: 0.9;
}

/* Email option styling */
.email-option {
    text-align: center;
    font-size: 0.95rem;
    color: #555;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.email-link {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.email-link:hover {
    color: var(--accent-purple-hover);
    text-decoration: underline;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: var(--primary-white);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.contact-steps {
    margin-bottom: 2.5rem;
}

.contact-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.step-number {
    background: var(--accent-blue);
    color: var(--primary-white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.contact-step p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-step strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #4dabf7;
}

.contact-cta {
    margin-top: 2.5rem;
    padding: 2rem;
    background: rgba(0, 123, 255, 0.15);
    border-radius: 10px;
    border-left: 4px solid var(--accent-blue);
}

.contact-cta h4 {
    color: var(--primary-white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-cta p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.contact-cta strong {
    color: #4dabf7;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--primary-white);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.footer-email {
    color: var(--primary-white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-email:hover {
    color: var(--accent-purple);
    border-bottom: 1px solid var(--accent-purple);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .problem-grid {
        grid-template-columns: 1fr;
    }
    
    .icon-badge {
        font-size: 2.5rem;
    }
    
    .problem-card {
        padding: 2rem;
    }
    
    .pillars {
        grid-template-columns: 1fr;
    }
    
    .pillar {
        padding: 2rem;
    }
    
    .pillar-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .solution-points {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .benefits {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .benefit {
        padding: 1.5rem;
    }
    
    .tech-guarantee {
        padding: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .problem-card,
    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .pillar {
        padding: 1.5rem;
    }
    
    .tech-guarantee {
        padding: 1.5rem;
    }
    
    .tech-guarantee h3 {
        font-size: 1.4rem;
    }
    
    .tech-guarantee p {
        font-size: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* =========================================
   PHASE 2: DARK MODE CARDS & PILLARS 
   ========================================= */

/* The Problem Section */
.problem {
    background-color: var(--bg-panel);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.problem-card {
    background-color: var(--bg-dark); /* Matches image backgrounds perfectly */
    border: var(--border-glow);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 229, 255, 0.3);
}

.problem-card h3 {
    color: var(--accent-cyan);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.problem-statement {
    color: var(--text-grey);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* The Philosophy / Solution Section */
.philosophy {
    background-color: var(--bg-dark);
}

.pillar {
    background-color: var(--bg-dark);
    border: var(--border-glow);
    padding: 0; /* Removing padding so images go edge-to-edge */
    border-radius: 12px;
    overflow: hidden; /* Keeps image corners rounded */
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease;
}

.pillar:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.3);
}

.pillar-content {
    padding: 2.5rem;
}

.pillar h3 {
    color: var(--primary-white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pillar p {
    color: var(--text-grey);
    font-size: 1.05rem;
}

/* =========================================
   EMERGENCY OVERRIDES: KILLING THE WHITE BACKGROUNDS
   ========================================= */

/* Force all remaining sections into Deep Navy */
.solution, 
.services, 
.about, 
.contact {
    background: var(--bg-dark) !important;
    background-image: none !important;
}

/* Force the pillar cards to be dark and remove old white gradients */
.pillar {
    background: var(--bg-panel) !important;
    background-image: none !important;
    border-left: 5px solid var(--accent-cyan) !important;
}

/* Force all old white service cards to dark mode so text is visible */
.service-card, 
.problem-card, 
.benefit {
    background: var(--bg-panel) !important;
    background-image: none !important;
}

/* Emergency Fix: Scale up Problem Section Images */
.problem-card img {
    width: 100% !important;
    max-width: 220px !important; /* Forces the images to be large and visible */
    height: auto !important;
    margin: 0 auto 1.5rem auto !important;
    object-fit: contain;
}

/* High-Contrast B2B Form Styling */
#contact input[type="text"],
#contact input[type="email"] {
    background-color: #111C3A !important; /* Distinct dark panel color */
    border: 1px solid rgba(0, 229, 255, 0.4) !important; /* Subtle cyan border */
    color: #FFFFFF !important; /* Crisp white text when typing */
    font-size: 1rem !important;
    padding: 14px 16px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

#contact input[type="text"]:focus,
#contact input[type="email"]:focus {
    outline: none !important;
    border-color: #00E5FF !important; /* Bright cyan glow on focus */
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.3) !important;
}

#contact label {
    color: #E5E7EB !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

/* =========================================
   HIGH-CONTRAST B2B FORM STYLING 
   ========================================= */

.high-contrast-input {
    width: 100%;
    padding: 16px !important;
    background-color: #0A1128 !important; /* Deep navy inside the input */
    border: 1px solid rgba(255, 255, 255, 0.2) !important; /* Visible light border */
    color: #FFFFFF !important; /* White text when they type */
    font-size: 1.05rem !important;
    font-family: 'Lato', sans-serif !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

/* Subtle placeholder text */
.high-contrast-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* The neon glow when they click on the input box */
.high-contrast-input:focus {
    outline: none !important;
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.25) !important;
    background-color: #050914 !important; /* Slightly darker on focus */
}

/* =========================================
   MOBILE RESPONSIVENESS FIXES 
   ========================================= */

@media (max-width: 768px) {
    /* 1. Fix the Mobile Menu (Dark Mode & Visibility) */
    .nav-menu {
        background-color: #0A1128 !important; /* Forces deep navy */
        border-bottom: 2px solid var(--accent-cyan) !important; /* Cool cyan border at the bottom */
        box-shadow: 0 20px 50px rgba(0,0,0,0.8) !important;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .nav-menu .nav-link {
        color: #FFFFFF !important; /* Crisp white text */
        font-size: 1.25rem !important; /* Larger text for tapping */
    }
    
    .nav-menu .nav-link:hover {
        color: var(--accent-cyan) !important;
    }

    /* 2. Fix the Hamburger Icon Color (Ensure it's cyan, not dark grey) */
    .hamburger span {
        background: var(--accent-cyan) !important;
    }

    /* 3. Fix the Form Squeeze (Force City and Phone to stack on mobile) */
    #contact div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
}

/* =========================================
   1. GLOBAL FIX: KILL HORIZONTAL SCROLLING
   ========================================= */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* =========================================
   2. BULLETPROOF FORM STYLING (ALL FIELDS)
   ========================================= */
/* Target every single input type and textarea to ensure matching colors */
.high-contrast-input, 
#contact input[type="text"], 
#contact input[type="email"], 
#contact input[type="tel"], 
#contact textarea {
    background-color: #0A1128 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
    -webkit-appearance: none; /* Strips Apple/iOS default styling */
    appearance: none;
}

/* Stop Browser Autofill from turning boxes yellow/white */
.high-contrast-input:-webkit-autofill,
.high-contrast-input:-webkit-autofill:hover, 
.high-contrast-input:-webkit-autofill:focus, 
.high-contrast-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0A1128 inset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* =========================================
   3. MOBILE-ONLY STRUCTURAL FIXES
   ========================================= */
@media (max-width: 768px) {
    
    /* Fix the Horizontal Stretching causing the empty space */
    .problem-grid, 
    .pillars, 
    .services-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Ensure the 2-column contact grid stacks perfectly */
    #contact div[style*="grid-template-columns: repeat"] {
        grid-template-columns: 1fr !important;
    }

    /* Center and shrink the Hero Box so it doesn't get cut off */
    .hero .container {
        justify-content: center !important;
    }
    
    .hero-content {
        padding: 35px 25px !important; /* Smaller padding fits better on phones */
        text-align: center !important;
        margin-left: 10px;
        margin-right: 10px;
    }

    /* Force the Mission Loop to a 2x2 grid on mobile */
    #solution div[style*="grid-template-columns: repeat"] {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* =========================================
   4. ULTRA-NARROW MOBILE FIXES (Phones under 480px)
   ========================================= */
@media (max-width: 480px) {
    
    /* 1. Fix the Sequence: Force the Learning Cycle to stack 1-by-1 vertically */
    #solution div[style*="grid-template-columns: repeat"] {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important; /* Gives breathing room between steps */
    }

    /* 2. Fix Side Cutting: Reduce massive paddings inside all cards */
    .problem-card, 
    .pillar-content, 
    .service-card, 
    .tech-guarantee,
    #contact div[style*="padding: 3rem"] {
        padding: 1.5rem !important; 
    }

    /* 3. Fix Hero Section: Shrink text and box so it doesn't break the screen */
    .hero-title {
        font-size: 2.2rem !important;
        word-wrap: break-word !important;
    }
    
    .hero-content {
        padding: 25px 15px !important;
        width: 95% !important; /* Ensures it stays strictly within screen bounds */
    }

    /* 4. Fix Global Spacing: Reduce outer container padding */
    .container {
        padding: 0 15px !important;
    }
    
    /* 5. Ensure long section titles don't stretch the screen */
    .section-title {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }
}