/* =========================================
   1. CORE SETTINGS & VARIABLES
   ========================================= */
:root {
    /* Palette */
    --color-primary: #14b8a6;
    /* Teal */
    --color-primary-hover: #0f766e;
    /* Deep Teal */
    --color-secondary: #1e293b;
    /* Slate Blue-Grey */
    --color-dark: #020617;
    /* Near-black slate */
    --color-light: #f8fafc;
    /* Cool off-white */
    --color-white: #ffffff;
    --color-text: #0f172a;
    /* Dark slate text */
    --color-text-muted: #64748b;
    /* Muted slate */
    --color-border: #e2e8f0;
    /* Soft border */

    /* Spacing */
    --header-height: 90px;
    --section-spacing: 100px;
    --container-width: 1200px;

    /* Effects */
    --shadow-sm: 0 4px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 30px 70px rgba(15, 23, 42, 0.14);
    --radius: 10px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 15px;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.bg-light {
    background-color: var(--color-light);
}

.section-padding {
    padding: var(--section-spacing) 0;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* =========================================
   2. BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 10px 20px rgba(255, 87, 51, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 87, 51, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

/* =========================================
   3. HEADER (Dark Theme for White Logo)
   ========================================= */
header {
    background-color: var(--color-dark);
    /* Strict Requirement */
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

header.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 45px;
    /* Adjust based on logo aspect ratio */
    width: auto;
    filter: brightness(0) invert(1);
    /* Ensure it is white */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 0;
    /* Header is fixed overlay */
    padding-top: var(--header-height);
}

.hero-content h1 {
    color: white;
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.2s ease;
}

.hero-btns {
    animation: fadeInUp 1.4s ease;
}

.hero-metrics {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    animation: fadeInUp 1.6s ease;
}

.metric h3 {
    color: var(--color-primary);
    margin-bottom: 5px;
}

.metric span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* =========================================
   5. LOGO TICKER
   ========================================= */
.logo-ticker {
    background: var(--color-light);
    padding: 40px 0;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    gap: 50px;
    animation: scroll 20s linear infinite;
    width: max-content;
}

.client-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #cbd5e0;
    white-space: nowrap;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   6. SERVICES GRID
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border: 1px solid var(--color-border);
    padding: 40px 30px;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--color-primary);
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: transparent;
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover li {
    color: white;
}

.icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--color-primary);
    transition: var(--transition);
}

.service-card:hover .icon {
    color: white;
}

.service-card ul {
    margin-top: 20px;
}

.service-card li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.service-card li::before {
    content: '✓';
    margin-right: 10px;
    font-weight: bold;
}

/* =========================================
   7. PROCESS TIMELINE
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--color-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.step {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.step::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--color-primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
    text-align: right;
}

.right {
    left: 50%;
    text-align: left;
}

.right::after {
    left: -10px;
}

.step-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.step-content:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

/* =========================================
   8. ROI CALCULATOR
   ========================================= */
.calculator-wrap {
    background: var(--color-secondary);
    color: white;
    border-radius: 20px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    box-shadow: var(--shadow-lg);
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

input[type="range"] {
    width: 100%;
    cursor: pointer;
}

.calc-result-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.big-num {
    font-size: 3rem;
    font-weight: bold;
    color: var(--color-primary);
    display: block;
    margin: 10px 0;
}

/* =========================================
   9. COMPARISON TABLE
   ========================================= */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
    background: var(--color-secondary);
    color: white;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.comparison-table th.highlight {
    background: var(--color-primary);
    font-size: 1.1rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.check {
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.2rem;
}

.cross {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2rem;
}

/* =========================================
   10. FAQ ACCORDION
   ========================================= */
.accordion-item {
    background: white;
    border: 1px solid var(--color-border);
    margin-bottom: 10px;
    border-radius: var(--radius);
    overflow: hidden;
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    background: #fff;
    transition: var(--transition);
}

.accordion-header:hover {
    background: var(--color-light);
}

.accordion-header.active {
    color: var(--color-primary);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--color-light);
}

.accordion-body p {
    padding: 20px;
    margin: 0;
}

/* =========================================
   11. CONTACT PAGE STYLES
   ========================================= */
.contact-hero {
    background: var(--color-secondary);
    color: white;
    padding-top: 150px;
    padding-bottom: 80px;
    text-align: center;
}

.contact-hero h1 {
    color: white;
}

.contact-hero p {
    color: rgba(255, 255, 255, 0.7);
}

.form-container {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* =========================================
   12. FOOTER (Dark Theme)
   ========================================= */
footer {
    background-color: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
    margin-top: auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* =========================================
   13. ANIMATIONS & MEDIA QUERIES
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .calculator-wrap {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .step {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .step::after {
        left: 21px;
    }

    .left::after {
        left: 21px;
    }

    .right {
        left: 0%;
    }

    .left {
        text-align: left;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--color-dark);
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .nav-links.nav-active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .hero-metrics {
        flex-direction: column;
        gap: 20px;
    }
}