/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    /* Color Palette */
    --primary-color: #4f46e5;
    /* Indigo */
    --primary-dark: #3730a3;
    --secondary-color: #ec4899;
    /* Pink/Magenta */
    --accent-color: #06b6d4;
    /* Cyan */
    --dark-bg: #0f172a;
    /* Slate 900 */
    --darker-bg: #020617;
    /* Slate 950 */
    --light-bg: #f8fafc;
    --card-bg: #1e293b;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-neon: 0 0 15px rgba(79, 70, 229, 0.4);

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   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(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: var(--shadow-neon);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transition: var(--transition-fast);
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--primary-color);
    box-shadow: var(--shadow-neon);
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.main-header.scrolled {
    height: 70px;
    background-color: rgba(15, 23, 42, 0.95);
    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-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition-fast);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition-fast);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--darker-bg);
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-top: 60px;
}

.hero-subtitle {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(79, 70, 229, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.7s;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.9s;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 1s forwards 1.1s;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

/* =========================================
   5. SERVICES SECTION
   ========================================= */
.services-section {
    background: var(--dark-bg);
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.1), transparent);
    transition: var(--transition-fast);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-neon);
    border-color: var(--primary-color);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--accent-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-link:hover {
    gap: 10px;
    color: var(--secondary-color);
}

/* =========================================
   6. INTERACTIVE CALCULATOR
   ========================================= */
.calculator-section {
    background: linear-gradient(to bottom, var(--dark-bg), var(--darker-bg));
    position: relative;
}

.calc-wrapper {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.calc-inputs h3 {
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-main);
}

.range-slider {
    width: 100%;
    height: 8px;
    background: #334155;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    margin-top: 10px;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--white);
}

.calc-results {
    background: linear-gradient(135deg, var(--primary-dark), #1e1b4b);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.result-box {
    margin-bottom: 30px;
}

.result-box span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* =========================================
   7. INDUSTRY TABS & REPORT PREVIEW
   ========================================= */
.industry-section {
    background: var(--dark-bg);
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.tab-content {
    display: none;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 20px;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.report-preview {
    background: #0f172a;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #334155;
    position: relative;
}

.bar-graph {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 200px;
    padding-bottom: 20px;
    border-bottom: 2px solid #334155;
}

.bar-graph .bar {
    width: 100%;
    background: linear-gradient(to top, var(--primary-color), var(--accent-color));
    border-radius: 4px 4px 0 0;
    position: relative;
    animation: growUp 1s ease forwards;
    height: 0;
}

/* =========================================
   8. TESTIMONIALS
   ========================================= */
.testimonials-section {
    background: var(--darker-bg);
}

.testimonial-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 20px;
    right: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.client-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* =========================================
   9. FOOTER
   ========================================= */
.main-footer {
    background: #0b0f19;
    padding: 80px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-col h4 {
    margin-bottom: 25px;
    color: var(--white);
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact-info p {
    margin-bottom: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border-radius: 5px 0 0 5px;
    border: none;
    outline: none;
    background: var(--card-bg);
    color: var(--white);
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--primary-color);
    border: none;
    color: white;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.copyright {
    text-align: center;
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   10. PAGE SPECIFIC: CONTACT & LEGAL
   ========================================= */
.page-header {
    background: var(--darker-bg);
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--dark-bg);
    transform: skewY(-2deg);
}

.legal-content {
    background: var(--card-bg);
    padding: 60px;
    border-radius: 20px;
    margin-bottom: 100px;
    color: var(--text-muted);
}

.legal-content h2 {
    color: var(--white);
    margin-top: 30px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-top: -50px;
    position: relative;
    z-index: 5;
    margin-bottom: 100px;
}

.contact-info-card {
    background: var(--primary-dark);
    padding: 40px;
    border-radius: 20px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.contact-form-card {
    background: var(--card-bg);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font-body);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* =========================================
   11. ANIMATIONS & RESPONSIVE
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes scrollWheel {
    0% {
        top: 10px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

@keyframes growUp {
    from {
        height: 0;
    }

    to {
        height: var(--h);
    }
}

@media (max-width: 992px) {
    .calc-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tab-content.active {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--darker-bg);
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
    }

    .nav-links.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}