/* ==========================================================================
   1. RESET & VARIABLES
   ========================================================================== */
:root {
    /* Brand Palette - "Ocean Slate" Theme */
    --brand-primary: #0EA5E9;
    /* Sky Blue */
    --brand-secondary: #14B8A6;
    /* Teal */
    --brand-accent: #6366F1;
    /* Indigo */

    /* Dark/Light Modes */
    --header-bg: #0F172A;
    /* Deep slate */
    --body-bg: #FFFFFF;
    --section-bg-alt: #F1F5F9;
    /* Cool light gray */
    --card-bg: #FFFFFF;

    /* Typography Colors */
    --text-main: #0F172A;
    --text-muted: #64748B;
    --text-light: #F8FAFC;

    /* Layout Dimensions */
    --max-width: 1200px;
    --header-height: 90px;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: 1px solid rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 36px -12px rgba(15, 23, 42, 0.12);
    --shadow-hover: 0 24px 56px -14px rgba(14, 165, 233, 0.3);

    /* Animations */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}


*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /* Clean, modern sans */
    background-color: var(--body-bg);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Scale */
h1,
h2,
h3,
h4,
h5 {
    color: var(--text-main);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4rem;
    letter-spacing: -2px;
}

h2 {
    font-size: 2.8rem;
    letter-spacing: -1px;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--section-bg-alt);
}

.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ==========================================================================
   2. BUTTONS & INTERACTIONS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, var(--brand-secondary), var(--brand-primary));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
    color: #fff;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: white;
    color: var(--brand-primary);
    border: 2px solid rgba(79, 70, 229, 0.1);
}

.btn-secondary:hover {
    border-color: var(--brand-primary);
    background: rgba(79, 70, 229, 0.05);
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    height: var(--header-height);
    background-color: var(--header-bg);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header.scrolled {
    height: 70px;
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--brand-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 100px;
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.1) 0%, transparent 40%),
        radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.1) 0%, transparent 40%);
    overflow: hidden;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand-primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.hero-visual {
    position: relative;
    height: 500px;
}

/* CSS 3D Floating Elements */
.float-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 2;
    animation: float-y 6s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    right: 10%;
    width: 260px;
    z-index: 3;
}

.card-2 {
    bottom: 15%;
    left: 10%;
    width: 220px;
    animation-delay: 1s;
    z-index: 4;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--brand-primary), var(--brand-accent));
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ==========================================================================
   5. SERVICES SECTION
   ========================================================================== */
.services-section {
    position: relative;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--section-bg-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 24px;
    color: var(--brand-primary);
}

.service-list {
    list-style: none;
    margin-top: 20px;
}

.service-list li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: var(--text-muted);
}

.service-list li::before {
    content: '•';
    color: var(--brand-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ==========================================================================
   6. INTERACTIVE CALCULATOR
   ========================================================================== */
.calculator-section {
    background-color: #111827;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Abstract Tech Background */
.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.2;
}

.calc-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    position: relative;
    z-index: 10;
}

.calc-controls label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
}

.range-slider {
    width: 100%;
    margin-bottom: 30px;
    -webkit-appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--brand-accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--brand-accent);
}

.result-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(236, 72, 153, 0.2));
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-metric {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--brand-accent);
    margin: 10px 0;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

/* ==========================================================================
   7. LIVE REPORT SECTION (Interactive)
   ========================================================================== */
.report-container {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 40px;
    margin-top: 40px;
    overflow: hidden;
}

.ticker-wrap {
    width: 100%;
    background: var(--section-bg-alt);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    border-radius: 8px;
    margin-bottom: 30px;
}

.ticker-content {
    display: inline-block;
    animation: ticker 20s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    color: var(--text-muted);
    font-family: monospace;
}

.ticker-item span {
    color: #10B981;
    /* Green for positive */
    font-weight: bold;
}

.chart-visual {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    padding-top: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.chart-bar {
    width: 40px;
    background: var(--brand-primary);
    border-radius: 6px 6px 0 0;
    position: relative;
    opacity: 0.8;
    transition: height 1s ease;
}

.chart-bar:hover {
    opacity: 1;
    background: var(--brand-secondary);
}

/* ==========================================================================
   8. TESTIMONIALS
   ========================================================================== */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stars {
    color: #F59E0B;
    margin-bottom: 15px;
}

.author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.avatar {
    width: 45px;
    height: 45px;
    background-color: #ddd;
    border-radius: 50%;
    margin-right: 15px;
}

/* ==========================================================================
   9. CONTACT PAGE
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.contact-sidebar {
    background: var(--header-bg);
    color: white;
    padding: 50px;
}

.contact-main {
    background: white;
    padding: 50px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #F9FAFB;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* ==========================================================================
   10. LEGAL PAGES
   ========================================================================== */
.legal-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0;
}

.legal-content h1 {
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.legal-content h2 {
    margin-top: 40px;
    font-size: 1.5rem;
    color: var(--brand-primary);
}

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.legal-content li {
    margin-bottom: 10px;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--header-bg);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 80px;
    font-size: 0.95rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--brand-accent);
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ==========================================================================
   12. ANIMATIONS & RESPONSIVE
   ========================================================================== */
@keyframes float-y {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    animation-fill-mode: forwards;
    /* JS triggers animation */
}

.reveal.active {
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

/* Media Queries */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    /* Hide 3D elements on tablet to save space */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* Mobile menu hidden by default */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--header-bg);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .calc-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
}