/* ===================================
   CSS Variables & Reset - Corporate Theme
   =================================== */
:root {
    /* Corporate Palette - User Selected Blue */
    --primary: #003366;
    /* Deep Navy Blue (The specific color requested) */
    --primary-dark: #002244;
    /* Darker Navy for hovers */
    --primary-light: #4D7298;
    /* Muted Blue for accents (not neon) */
    --secondary: #64748B;
    /* Slate Gray remains */

    /* Backgrounds */
    --bg-header: #000000;
    --bg-body: #F4F6F9;
    --bg-dark: #0A1625;
    /* Very Dark Blue-Black for footer/sections */
    --bg-white: #FFFFFF;

    /* Text */
    --text-main: #111827;
    /* Near Black */
    --text-light: #4B5563;
    /* Cool Gray */
    --text-on-dark: #F8FAFC;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Fonts */
    --font-main: 'Inter', sans-serif;
    /* Clean, modern, standard */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Header / Navigation
   =================================== */
.navbar {
    background-color: var(--bg-header);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    height: 100%;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo Fix: Seamless integration with black header */
/* Logo Styles - Ultra Labs Factory */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    height: 100%;
}

.logo-icon svg {
    filter: drop-shadow(0 0 5px rgba(0, 153, 255, 0.3));
}

.logo-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-ultra {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: #0099FF;
    /* Vibrant Blue for Logo */
    letter-spacing: -1px;
}

.text-stack {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-stack span {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: #FFFFFF;
    line-height: 0.9;
    letter-spacing: 1px;
}

.logo-tagline {
    font-size: 0.45rem;
    /* Small tagline execution */
    color: #BBBBBB;
    letter-spacing: 1.5px;
    margin-top: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
}

.cta-button {
    background: transparent;
    border: 1px solid #0099FF;
    /* Vibrant Blue */
    color: #0099FF;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 15px;
}

.cta-button:hover {
    background: #0099FF;
    color: white;
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.4);
    /* Glow effect */
}

.mobile-menu-toggle {
    display: none;
    color: white;
    background: none;
    border: none;
    font-size: 24px;
}

/* ===================================
   Hero Section - Corporate Style
   =================================== */
.hero {
    position: relative;
    height: 90vh;
    /* Full impactful height */
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: #000;
    /* Fallback */
    overflow: hidden;
    margin-top: 0;
    /* Reset */
}

/* Background Image with Overlay */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Simulate the office image as background */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/office-team.png');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    /* Darken image for readability */
}

/* Gradient Overlay for Text Readability */
.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    /* Increased width to fix squeezed layout */
    color: white;
    text-align: left;
    padding-top: var(--header-height);
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 51, 102, 0.4);
    color: var(--primary-light);
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border-left: 3px solid var(--primary-light);
}

.hero-title {
    font-size: 3.5rem;
    /* Restored size */
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

.hero-title span {
    color: var(--primary-light);
    /* Reverted color */
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    max-width: 900px;
    /* Increased width */
    font-weight: 400;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 14px 32px;
    border-radius: 4px;
    /* Square edges */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--text-main);
}

/* ===================================
   Stats Bar - Floating
   =================================== */
.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 20;
    padding: 24px 0;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    max-width: var(--container-width);
    margin: 0 auto;
    color: white;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   Services Section (White Background)
   =================================== */
.services {
    background-color: var(--bg-white);
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    color: var(--text-main);
    font-size: 2.5rem;
    font-weight: 700;
}

.section-title span {
    color: var(--primary);
}

.section-description {
    color: var(--text-light);
    max-width: 700px;
    margin: 20px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    padding: 40px;
    border-radius: 8px;
    /* Slight radius */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* Service line hover effect */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.service-card:hover::after {
    width: 100%;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 16px;
}

.service-features {
    list-style: none;
    margin-top: 20px;
}

.service-features li {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.service-features li::before {
    content: '•';
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ===================================
   Scalability Section (Elasticity)
   =================================== */
.scalability {
    background-color: var(--primary);
    /* Corporate Navy Base */
    padding: 100px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern for texture */
.scalability::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.scalability-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.scalability-content .section-tag {
    color: var(--primary-light);
}

.scalability-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    line-height: 1.7;
}

.scalability-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.s-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.s-icon {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.1);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.s-feature strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.s-feature p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Visual Graph */
.scalability-visual {
    display: flex;
    justify-content: center;
}

.graph-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.bar-group {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.graph-bar {
    width: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.5s ease;
}

.graph-bar span {
    position: absolute;
    bottom: -30px;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.graph-bar.active {
    background: var(--primary-light);
    box-shadow: 0 0 20px rgba(77, 114, 152, 0.4);
}

.pulse-indicator {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #4ADE80;
    /* Success Green */
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    animation: pulser 2s infinite;
}

@keyframes pulser {
    0% {
        transform: translateX(-50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }

    70% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }

    100% {
        transform: translateX(-50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.graph-caption {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-style: italic;
}

/* ===================================
   Differentials (Dark Section)
   =================================== */
.differentials {
    background-color: var(--bg-dark);
    /* Dark Navy */
    color: white;
    padding: 100px 0;
}

.differentials .section-title {
    color: white;
}

.differentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.differential-item {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 30px;
}

.differential-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    margin-bottom: -20px;
    display: block;
}

.differential-item h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--secondary);
}

.differential-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: 100px 0;
    background-color: var(--bg-body);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    /* Increased gap */
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 24px;
    line-height: 1.2;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
    /* Better readability */
    line-height: 1.7;
}

.about-img-real {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    width: 100%;
    height: 100%;
    max-height: 450px;
    /* Limit height so it doesn't dominate */
    object-fit: cover;
    /* Maintain aspect ratio */
}

/* ===================================
   Contact Section - Modern Layout
   =================================== */
.contact {
    background: #FFFFFF;
    padding: 100px 0;
    border-top: 1px solid #E5E7EB;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Info takes less space, form takes more */
    gap: 80px;
    align-items: flex-start;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 136, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-detail-item h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.contact-detail-item a,
.contact-detail-item p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-detail-item a:hover {
    color: var(--primary);
}

.contact-form {
    background: #FFFFFF;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #F3F4F6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.1);
}

.btn-full {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* ===================================
   Footer - Corporate Dark
   =================================== */
.footer {
    background-color: #050505;
    /* Deep black */
    color: #9CA3AF;
    padding: 80px 0 30px;
    border-top: 1px solid #1F2937;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-column h4 {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--primary);
    padding-left: 4px;
    /* Subtle movement */
}

.footer-bottom {
    border-top: 1px solid #1F2937;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: #6B7280;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #FFFFFF;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    .contact-wrapper {
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--bg-header);
        flex-direction: column;
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 15px 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--secondary);
    }

    .mobile-menu-toggle {
        display: block;
        cursor: pointer;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .differentials-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        position: relative;
        background: #111;
        margin-top: 0;
    }

    .stats-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .scalability-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .scalability-features {
        grid-template-columns: 1fr;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding-bottom: 0;
        display: block;
    }

    .hero-content {
        padding-top: 120px;
        padding-bottom: 60px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}