/* =========================================
   1. ROOT VARIABLES & THEME SETUP
   ========================================= */
:root {
    /* Brand Colors */
    --color-primary: #4f46e5;
    /* Indigo 600 */
    --color-primary-dark: #3730a3;
    /* Indigo 800 */
    --color-secondary: #06b6d4;
    /* Cyan 500 */
    --color-accent: #f43f5e;
    /* Rose 500 */

    /* Neutral Colors */
    --color-dark: #0f172a;
    /* Slate 900 */
    --color-dark-surface: #1e293b;
    /* Slate 800 */
    --color-light: #f8fafc;
    /* Slate 50 */
    --color-gray: #64748b;
    /* Slate 500 */
    --color-white: #ffffff;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-dark: linear-gradient(to bottom, #0f172a, #1e293b);
    --gradient-glow: radial-gradient(circle at center, rgba(79, 70, 229, 0.15) 0%, transparent 70%);

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.3);

    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s ease-in-out;
}

/* =========================================
   2. GLOBAL RESET & BASE STYLES
   ========================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--color-dark);
    background-color: var(--color-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   3. UTILITY CLASSES
   ========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.text-white {
    color: var(--color-white);
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.bg-dark {
    background-color: var(--color-dark);
    color: var(--color-light);
}

.bg-light {
    background-color: var(--color-light);
}

.bg-white {
    background-color: var(--color-white);
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--color-white);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
}

.btn-outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* =========================================
   4. HEADER & NAVIGATION (STICKY)
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.95);
    /* Dark background for white logo */
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: padding 0.3s ease, background-color 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(15, 23, 42, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 45px;
    width: auto;
    /* Ensure white logo pops */
    filter: brightness(0) invert(1);
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--color-light);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--color-secondary);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background-color: var(--color-dark);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Animated Background Mesh */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.25), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.25), transparent 25%);
    animation: bgPulse 10s infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 600px;
}

.hero-tagline {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.8s ease-out;
}

.hero-title {
    color: white;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--color-gray);
    margin-bottom: 2.5rem;
    animation: slideUp 0.8s ease-out 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: slideUp 0.8s ease-out 0.6s backwards;
}

/* Abstract Shape Animation in Hero */
.hero-visual {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 80%;
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.card-1 {
    top: 20%;
    right: 20%;
    width: 200px;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    bottom: 25%;
    right: 40%;
    width: 240px;
    animation: float 8s ease-in-out infinite reverse;
}

.card-3 {
    top: 40%;
    right: 5%;
    width: 180px;
    animation: float 7s ease-in-out infinite 1s;
}

/* =========================================
   6. SERVICES SECTION
   ========================================= */
.services-section {
    background-color: var(--color-white);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.sub-heading {
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 1rem;
}

.service-card {
    background: var(--color-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-icon {
    color: var(--color-white);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    transition: color 0.3s;
}

.service-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card:hover .service-link {
    color: var(--color-white);
}

/* =========================================
   7. INTERACTIVE CALCULATOR
   ========================================= */
.calculator-section {
    background: var(--color-dark-surface);
    color: var(--color-white);
}

.calc-container {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.calc-inputs label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-gray);
}

.range-wrap {
    margin-bottom: 2rem;
}

input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-secondary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.calc-results {
    background: var(--gradient-main);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.result-box {
    margin-bottom: 2rem;
}

.result-val {
    font-size: 3rem;
    font-weight: 800;
    display: block;
}

.result-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* =========================================
   8. CAMPAIGN REPORT DEMO (VISUAL)
   ========================================= */
.report-section {
    background-color: #f1f5f9;
}

.report-mockup {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.report-sidebar {
    border-right: 1px solid #e2e8f0;
}

.report-nav-item {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--color-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-nav-item.active {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--color-primary);
    font-weight: 600;
}

.report-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
}

.stat-card h4 {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-bottom: 0.5rem;
}

.stat-card .number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-dark);
}

.trend-up {
    color: #10b981;
    font-size: 0.8rem;
}

.trend-down {
    color: #ef4444;
    font-size: 0.8rem;
}

/* Visual Bars for "Chart" */
.chart-visual {
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 5px;
    padding-top: 2rem;
}

.bar {
    width: 100%;
    background-color: var(--color-primary);
    border-radius: 4px 4px 0 0;
    opacity: 0.7;
    animation: growBar 1.5s ease-out forwards;
}

/* =========================================
   9. TESTIMONIALS
   ========================================= */
.testimonial-section {
    background-color: var(--color-white);
}

.testimonial-slider {
    display: flex;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 2rem;
}

.testimonial-card {
    flex: 0 0 100%;
    /* Mobile first */
    scroll-snap-align: center;
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.quote-icon {
    font-size: 3rem;
    color: var(--color-primary);
    opacity: 0.2;
    margin-bottom: 1rem;
}

.client-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background-color: #cbd5e1;
    /* Placeholder color */
    object-fit: cover;
}

/* =========================================
   10. LEGAL PAGES & CONTACT SPECIFICS
   ========================================= */
.legal-content h2 {
    margin-top: 2rem;
    font-size: 1.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: #475569;
}

.legal-content ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contact-info {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-form {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    transition: border 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* =========================================
   11. FOOTER
   ========================================= */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-gray);
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand img {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* =========================================
   12. ANIMATIONS (KEYFRAMES)
   ========================================= */
@keyframes bgPulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes growBar {
    from {
        height: 0;
    }

    to {
        height: var(--height);
    }
}

/* =========================================
   13. MEDIA QUERIES
   ========================================= */
@media (min-width: 768px) {
    .testimonial-card {
        flex: 0 0 50%;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        flex: 0 0 33.333%;
    }
}

@media (max-width: 768px) {
    .hero-visual {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .calc-container {
        grid-template-columns: 1fr;
    }

    .report-mockup {
        grid-template-columns: 1fr;
    }

    .report-sidebar {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .mobile-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--color-dark);
        padding: 2rem;
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav.active {
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}