/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Color Palette - Modern Corporate Theme */
    --primary-color: #1e40af;
    /* Royal Blue */
    --primary-dark: #1e3a8a;
    /* Dark Blue */
    --secondary-color: #f97316;
    /* Vibrant Orange */
    --secondary-hover: #ea580c;

    --bg-body: #f8fafc;
    /* Light Grey/White */
    --bg-white: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);

    --text-dark: #0f172a;
    /* Almost Black */
    --text-body: #475569;
    /* Slate Grey */
    --text-light: #94a3b8;

    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 50px -10px rgba(30, 64, 175, 0.15);
    --border-light: 1px solid rgba(0, 0, 0, 0.05);

    --container-width: 1240px;
    --header-height: 90px;
    --radius-main: 16px;

    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-body);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4,
h5 {
    color: var(--text-dark);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4rem;
    letter-spacing: -1.5px;
}

h2 {
    font-size: 2.8rem;
    letter-spacing: -1px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-title span {
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}

/* =========================================
   3. COMPONENTS & BUTTONS
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background-color: var(--secondary-color);
    color: white;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--secondary-hover);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.btn-primary {
    background-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-primary::before {
    background-color: var(--primary-dark);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--primary-color);
    box-shadow: none;
    padding: 16px 0;
}

.btn-ghost::before {
    display: none;
}

.btn-ghost:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* =========================================
   4. HEADER
   ========================================= */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

header.scrolled {
    height: 70px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px;
    display: block;
    filter: invert(0);
    /* Ensure logo is visible on white */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

nav a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

/* Background Shapes */
.hero-bg-shape {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 0 0 0 200px;
    z-index: -1;
    transform: skewX(-10deg);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #eff6ff;
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-body);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    perspective: 1000px;
}

.hero-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.float-card {
    position: absolute;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 3;
    animation: float 8s ease-in-out infinite reverse;
}

.float-card.top-right {
    top: -30px;
    right: -20px;
}

.float-card.bottom-left {
    bottom: -30px;
    left: -40px;
}

.icon-box {
    width: 40px;
    height: 40px;
    background: #ecfdf5;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   6. SERVICES SECTION
   ========================================= */
.services {
    padding: 120px 0;
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-body);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-main);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.service-card:hover {
    background: white;
    box-shadow: var(--shadow-hover);
    transform: translateY(-10px);
    border-color: rgba(30, 64, 175, 0.1);
}

.s-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.service-card:hover .s-icon {
    transform: scale(1.1) rotate(-5deg);
    color: var(--secondary-color);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.service-features li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li i {
    color: #10b981;
    /* Green check */
    font-size: 0.8rem;
}

/* =========================================
   7. CALCULATOR SECTION
   ========================================= */
.calculator {
    padding: 100px 0;
    background: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Abstract circles for bg */
.circle-bg {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.c-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
}

.c-2 {
    width: 600px;
    height: 600px;
    bottom: -200px;
    right: -100px;
}

.calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.calc-content h2 {
    color: white;
}

.calc-content p {
    color: rgba(255, 255, 255, 0.8);
}

.calc-card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    color: var(--text-dark);
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.result-box {
    margin-top: 2rem;
    background: #eff6ff;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    display: flex;
    justify-content: space-around;
}

.res-item h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.res-item span {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

/* =========================================
   8. INTERACTIVE REPORT
   ========================================= */
.reports {
    padding: 120px 0;
}

.report-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.report-visual {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.bar-item {
    width: 100%;
}

.bar-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

.bar-track {
    width: 100%;
    height: 12px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0;
    border-radius: 10px;
    transition: width 1.5s ease-out;
}

/* =========================================
   9. TESTIMONIALS
   ========================================= */
.testimonials {
    background: #f1f5f9;
    padding: 120px 0;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.test-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-soft);
    position: relative;
    border-bottom: 4px solid transparent;
    transition: all 0.3s;
}

.test-card:hover {
    border-bottom-color: var(--secondary-color);
    transform: translateY(-5px);
}

.stars {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.test-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.test-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    background: #cbd5e1;
    border-radius: 50%;
}

.author-info h5 {
    margin: 0;
    font-size: 1rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* =========================================
   10. CONTACT PAGE
   ========================================= */
.contact-hero {
    background: var(--primary-dark);
    padding: 160px 0 80px;
    text-align: center;
    color: white;
}

.contact-hero h1 {
    color: white;
    margin-bottom: 1rem;
}

.contact-hero p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    padding: 80px 0;
}

.form-box {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.info-box {
    background: #eff6ff;
    padding: 3rem;
    border-radius: 20px;
}

.info-item {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* =========================================
   11. LEGAL PAGES
   ========================================= */
.legal-body {
    padding: 160px 0 80px;
    background: white;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    color: var(--text-dark);
}

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* =========================================
   12. FOOTER
   ========================================= */
footer {
    background: var(--text-dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
}

.footer-legal a {
    color: #64748b;
    margin-left: 20px;
}

.footer-legal a:hover {
    color: white;
}

/* =========================================
   13. ANIMATIONS
   ========================================= */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   14. RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {

    .hero-content,
    .calc-container,
    .report-wrapper,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .test-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav ul {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: white;
        flex-direction: column;
        align-items: center;
        padding-top: 3rem;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
    }

    nav ul.active {
        right: 0;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .test-grid,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .result-box {
        flex-direction: column;
        gap: 1.5rem;
    }
}