/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    /* Color Palette - Theme: "Ocean Pulse" */

    /* Backgrounds: Deep Navy */
    --color-bg-dark: #070a12;
    --color-bg-card: #0e1628;
    --color-bg-card-hover: #14203a;

    /* Primary: Electric Blue */
    --color-primary: #3b82f6;
    --color-primary-dark: #1d4ed8;

    /* Secondary: Bright Mint */
    --color-secondary: #34d399;

    /* Accent: Neon Magenta */
    --color-accent: #f472b6;

    /* Text & Borders */
    --color-text-main: #f8fafc;
    --color-text-muted: #a3b2c7;
    --color-border: rgba(255, 255, 255, 0.12);
    --color-success: #22c55e;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Inter', system-ui, sans-serif;

    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --border-radius: 16px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

/* =========================================
   2. UTILITY CLASSES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.grid {
    display: grid;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: 0 10px 20px -10px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -10px rgba(99, 102, 241, 0.7);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    background-color: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

header.scrolled {
    height: 70px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    font-size: 16px;
    position: relative;
    color: var(--color-text-muted);
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* =========================================
   4. HERO SECTION (Index)
   ========================================= */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 100px;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: floatShape 10s infinite alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--color-secondary);
    bottom: 0;
    left: -50px;
    animation-delay: 2s;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-visual {
    position: relative;
    height: 400px;
    perspective: 1000px;
}

/* 3D Dashboard representation in CSS */
.dashboard-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
}

.card-main {
    width: 90%;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(-10deg) rotateX(5deg);
    z-index: 2;
}

.card-float-1 {
    width: 180px;
    height: 120px;
    top: 20px;
    right: 0;
    transform: translate(20px, -20px) rotateY(-10deg);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.card-float-2 {
    width: 200px;
    height: 100px;
    bottom: 40px;
    left: -20px;
    transform: translate(-20px, 20px) rotateY(-10deg);
    background: var(--color-bg-card);
    z-index: 3;
    animation: float 8s ease-in-out infinite reverse;
}

/* =========================================
   5. SERVICES SECTION
   ========================================= */
.services {
    background: var(--color-bg-dark);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--color-bg-card-hover);
    border-color: var(--color-primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--color-primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* =========================================
   6. CALCULATOR SECTION (Interactive)
   ========================================= */
.calculator-section {
    background: linear-gradient(to bottom, var(--color-bg-dark), #111827);
    position: relative;
}

.calc-container {
    background: var(--color-bg-card);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    border: 1px solid var(--color-border);
}

.calc-inputs h3 {
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.input-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--color-border);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.range-value {
    display: block;
    margin-top: 10px;
    font-size: 1.2rem;
    color: var(--color-accent);
    font-weight: bold;
}

.calc-results {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.calc-results::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--color-secondary);
    filter: blur(60px);
    opacity: 0.3;
}

.result-item {
    margin-bottom: 30px;
    text-align: center;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-label {
    display: block;
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 5px;
}

.result-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

/* =========================================
   7. SAMPLE REPORT SECTION
   ========================================= */
.report-section {
    padding: 100px 0;
}

.report-interface {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--color-border);
    margin-top: 40px;
}

.report-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.chart-container {
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.chart-bar {
    width: 8%;
    background: linear-gradient(to top, var(--color-primary-dark), var(--color-primary));
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 1s ease;
    height: 0;
    /* Animated via JS */
}

.chart-bar::after {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.chart-bar:hover::after {
    opacity: 1;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.stat-card h4 {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.stat-card p {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-success);
}

/* =========================================
   8. TESTIMONIALS
   ========================================= */
.testimonials {
    background: #0f1320;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: 30px;
    padding: 40px 0;
    animation: scroll 30s linear infinite;
}

.testimonial-card {
    min-width: 350px;
    background: var(--color-bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.client-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: var(--color-border);
    border-radius: 50%;
    margin-right: 15px;
    background-size: cover;
}

.client-details h4 {
    font-size: 1rem;
    color: white;
}

.client-details span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.stars {
    color: #F59E0B;
    margin-bottom: 15px;
}

/* =========================================
   9. CONTACT PAGE
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--color-bg-card);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 40px;
}

.contact-info {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-bg-dark));
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-item {
    margin-bottom: 30px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 18px;
}

.contact-form {
    padding: 50px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 0;
    font-size: 16px;
    color: white;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--color-border);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--color-text-muted);
    transition: 0.3s ease;
    pointer-events: none;
}

.form-group input:focus~label,
.form-group input:valid~label,
.form-group textarea:focus~label,
.form-group textarea:valid~label {
    top: -10px;
    font-size: 12px;
    color: var(--color-primary);
}

/* =========================================
   10. LEGAL PAGES
   ========================================= */
.legal-content {
    background: var(--color-bg-card);
    padding: 60px;
    border-radius: 12px;
    margin-top: 40px;
    border: 1px solid var(--color-border);
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.legal-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: white;
}

.legal-content p {
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.legal-content ul {
    list-style: disc;
    margin-left: 20px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

/* =========================================
   11. FOOTER
   ========================================= */
footer {
    background: #05080f;
    padding: 80px 0 40px;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-about p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border-radius: 8px 0 0 8px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.newsletter-form button {
    border-radius: 0 8px 8px 0;
    padding: 0 20px;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* =========================================
   12. ANIMATIONS
   ========================================= */
@keyframes floatShape {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateY(-10deg);
    }

    50% {
        transform: translateY(-20px) rotateY(-10deg);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-1000px);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   13. MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 40px;
    }

    .hero-visual {
        display: none;
    }

    /* Hide 3D element on tablet for simplicity */
    .calc-container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--color-bg-dark);
        flex-direction: column;
        padding: 40px;
        transition: 0.4s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: block;
        color: white;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .report-grid {
        grid-template-columns: 1fr;
    }
}