/* =========================================
   1. ROOT VARIABLES & RESET
   ========================================= */
:root {
    /* Brand Colors - Royal Blue & Cyan Gradient */
    --primary-color: #2563eb;
    /* Royal Blue */
    --primary-dark: #1e40af;
    --secondary-color: #06b6d4;
    /* Cyan */
    --accent-color: #f59e0b;
    /* Amber (Call to actions) */

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-hover: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);

    /* Backgrounds */
    --bg-body: #ffffff;
    --bg-off-white: #f8fafc;
    --bg-dark: #0f172a;
    /* Slate 900 */

    /* Typography */
    --font-main: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --text-heading: #1e293b;
    --text-body: #475569;
    --text-light: #94a3b8;
    --text-white: #ffffff;

    /* Measurements & Effects */
    --header-height: 80px;
    --container-max: 1200px;
    --radius-card: 24px;
    --radius-btn: 50px;

    /* Soft Shadows */
    --shadow-card: 0 20px 40px -5px rgba(37, 99, 235, 0.1);
    --shadow-hover: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   2. REUSABLE COMPONENTS
   ========================================= */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
    position: relative;
}

.bg-light {
    background-color: var(--bg-off-white);
}

.bg-gradient {
    background: var(--gradient-brand);
    color: white;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Curved Divider (Wave) */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-divider .shape-fill {
    fill: var(--bg-body);
}

.wave-top {
    top: -1px;
    bottom: auto;
    transform: rotate(0deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    border: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.btn-white {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn-white:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* =========================================
   3. HEADER
   ========================================= */
.header {
    height: var(--header-height);
    background: var(--bg-dark);
    /* Dark bg for white logo */
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: 0.3s ease;
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Ensure logo is white */
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-item {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary-color);
    transition: 0.3s;
}

.nav-item:hover,
.nav-item.active {
    color: white;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.mobile-btn {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    background-color: var(--bg-off-white);
    position: relative;
    overflow: hidden;
}

/* Abstract Background Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: floatBlob 10s infinite alternate;
    z-index: 0;
}

.blob-1 {
    top: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: rgba(37, 99, 235, 0.15);
}

.blob-2 {
    bottom: 10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.15);
    animation-delay: 2s;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--text-heading);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-body);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-image {
    position: relative;
}

/* 3D-style CSS Illustration */
.marketing-dashboard {
    background: white;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 30px;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.marketing-dashboard:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.db-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.db-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    display: inline-block;
    margin-right: 5px;
}

.db-chart {
    height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 10px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.bar {
    width: 12%;
    background: var(--gradient-brand);
    border-radius: 5px 5px 0 0;
    opacity: 0.8;
    animation: growBar 2s ease-out forwards;
}

.float-card {
    position: absolute;
    background: white;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: bounce 4s infinite;
}

.fc-icon {
    width: 40px;
    height: 40px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-1 {
    top: 40px;
    left: -30px;
}

.fc-2 {
    bottom: 40px;
    right: -30px;
    animation-delay: 1.5s;
}

/* =========================================
   5. SERVICES SECTION
   ========================================= */
.services-section {
    background: white;
}

.section-title span {
    display: block;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-card);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
    border-color: transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.s-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-off-white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 24px;
    transition: 0.3s;
}

.service-card:hover .s-icon {
    background: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.service-card p {
    color: var(--text-body);
    font-size: 0.95rem;
}

/* =========================================
   6. CALCULATOR SECTION
   ========================================= */
.calc-section {
    background: var(--bg-off-white);
    padding: 120px 0;
}

.calc-box {
    background: white;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
}

.calc-inputs {
    padding: 50px;
}

.calc-results {
    background: var(--gradient-brand);
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Background pattern for calc results */
.calc-results::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.range-container {
    margin-bottom: 30px;
}

.range-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
}

.range-val {
    color: var(--primary-color);
}

input[type=range] {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 5px;
    -webkit-appearance: none;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border: 4px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.roi-display {
    font-size: 4rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
}

.roi-label {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* =========================================
   7. TESTIMONIALS (Cards Grid)
   ========================================= */
.testimonials-section {
    position: relative;
    background: white;
}

.t-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.t-card {
    background: var(--bg-off-white);
    padding: 40px;
    border-radius: var(--radius-card);
    position: relative;
}

.t-quote {
    font-size: 4rem;
    color: #cbd5e1;
    font-family: serif;
    position: absolute;
    top: 20px;
    left: 20px;
    line-height: 1;
    opacity: 0.5;
}

.t-text {
    position: relative;
    z-index: 1;
    font-style: italic;
    color: var(--text-body);
    margin: 20px 0;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.t-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #94a3b8;
    background-size: cover;
}

.t-info h5 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary-color);
}

.t-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* =========================================
   8. CONTACT PAGE STYLES
   ========================================= */
.contact-hero {
    background: var(--gradient-brand);
    color: white;
    padding: 180px 0 100px 0;
    text-align: center;
    position: relative;
}

.contact-hero h1 {
    color: white;
}

.contact-wrapper {
    margin-top: -60px;
    background: white;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    position: relative;
    z-index: 10;
}

.contact-info-list .c-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.c-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-off-white);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-off-white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    transition: 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* =========================================
   9. LEGAL PAGES
   ========================================= */
.legal-container {
    max-width: 900px;
    margin: 50px auto 100px;
}

.legal-card {
    background: white;
    padding: 60px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-inset);
    border: 1px solid #f1f5f9;
}

.legal-card h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.legal-card h2 {
    margin-top: 40px;
    font-size: 1.5rem;
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
}

.legal-card ul {
    margin-left: 20px;
    list-style-type: disc;
    margin-bottom: 20px;
    color: var(--text-body);
}

.legal-card li {
    margin-bottom: 10px;
}

/* =========================================
   10. FOOTER
   ========================================= */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* =========================================
   11. ANIMATION & QUERIES
   ========================================= */
@keyframes floatBlob {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

@keyframes growBar {
    from {
        height: 0;
    }

    to {
        height: 70%;
    }
}

/* Height varies via inline style */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 968px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 40px;
    }

    .hero-image {
        display: none;
    }

    /* Simplify for mobile */
    .calc-box {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-btn {
        display: block;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .legal-card {
        padding: 30px;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}