/*
    ==============================
    TABLE OF CONTENTS
    ==============================
    1.  VARIABLES & GLOBAL STYLES
    2.  HELPER & UTILITY CLASSES
    3.  KEYFRAME ANIMATIONS
    4.  HEADER & NAVIGATION
    5.  FOOTER
    6.  HERO SECTION
    7.  SERVICES SECTION
    8.  ABOUT SECTION
    9.  INDUSTRY SECTION
    10. CALCULATOR SECTION
    11. REPORT SECTION
    12. TESTIMONIALS SECTION
    13. CTA (CALL TO ACTION) SECTION
    14. CONTACT PAGE
    15. LEGAL PAGES
    16. RESPONSIVENESS (MEDIA QUERIES)
    ==============================
*/

/* 1. VARIABLES & GLOBAL STYLES */
:root {
    --primary-color: #0d1b2a;
    /* Dark Blue */
    --secondary-color: #1b263b;
    /* Slightly Lighter Dark Blue */
    --accent-color: #415a77;
    /* Muted Blue */
    --highlight-color: #00aaff;
    /* Vibrant Blue for CTAs */
    --text-color: #e0e1dd;
    /* Off-white text */
    --text-muted: #a9a9a9;
    /* Grey for subtitles */
    --bg-color: #040f1a;
    /* Very dark background */
    --white: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Roboto:wght@400;500&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    font-family: var(--font-secondary);
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--highlight-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--white);
}

ul {
    list-style: none;
}

section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* 2. HELPER & UTILITY CLASSES */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(90deg, var(--highlight-color), #0077cc);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.2);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 170, 255, 0.4);
    color: var(--white);
}

.cta-button-secondary {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.cta-button-secondary:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

.fade-in {
    transform: translateY(20px);
}

.slide-in-up {
    transform: translateY(50px);
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-right {
    transform: translateX(50px);
}

/* Animation Delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* 3. KEYFRAME ANIMATIONS */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes gradient-bg {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes bar-fill {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

/* 4. HEADER & NAVIGATION */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(4, 15, 26, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-speed);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    filter: invert(1);
    transition: transform var(--transition-speed);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--highlight-color);
    transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-cta {
    display: block;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
    transition: all 0.3s ease-in-out;
}

/* 5. FOOTER */
footer.site-footer {
    background-color: var(--primary-color);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column .footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
}

.footer-column .footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--highlight-color);
}

.footer-about-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.footer-nav li {
    margin-bottom: 0.75rem;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-column.contact p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-column.contact a {
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}


/* 6. HERO SECTION */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(45deg, var(--bg-color), var(--primary-color));
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-color);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Animated shapes */
.hero-background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(65, 90, 119, 0.1);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    animation: float 15s ease-in-out infinite;
}

.shape-2 {
    width: 250px;
    height: 250px;
    bottom: 15%;
    right: 10%;
    animation: float 12s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 25%;
    animation: float 18s ease-in-out infinite;
}

/* 7. SERVICES SECTION */
.services-section {
    background-color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--primary-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--highlight-color);
    box-shadow: 0 10px 30px rgba(0, 170, 255, 0.1);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 50px;
    height: 50px;
    color: var(--highlight-color);
}

.service-title {
    margin-bottom: 1rem;
    color: var(--white);
}

.service-description {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 8. ABOUT SECTION */
.about-section {
    background-color: var(--bg-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
}

.stats-counter {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--highlight-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.image-placeholder {
    height: 450px;
    border-radius: var(--border-radius);
    background-size: cover;
    background-position: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--highlight-color);
    border-radius: var(--border-radius);
    z-index: -1;
    transition: all 0.4s ease;
}

.about-image:hover .image-placeholder::before {
    top: 0;
    left: 0;
}

/* 9. INDUSTRY SECTION */
.industry-section {
    background-color: var(--secondary-color);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.industry-item {
    background: var(--primary-color);
    padding: 2rem 1rem;
    text-align: center;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed);
}

.industry-item:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

.industry-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.industry-name {
    font-size: 1rem;
    font-weight: 600;
}

/* 10. CALCULATOR SECTION */
.calculator-section {
    background-color: var(--bg-color);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    background: var(--primary-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.calculator-form .form-group {
    margin-bottom: 1.5rem;
}

.calculator-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.calculator-form input {
    width: 100%;
    padding: 12px;
    background-color: var(--secondary-color);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 1rem;
}

.calculator-form input::placeholder {
    color: var(--text-muted);
}

.calculator-form button {
    width: 100%;
    padding: 15px;
}

.calculator-results {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.result-box h4 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.result-box p {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0;
}

.result-box.roi-highlight p {
    color: var(--highlight-color);
    font-size: 2.5rem;
}

.calculator-disclaimer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
}

/* 11. REPORT SECTION */
.report-section {
    background-color: var(--secondary-color);
}

.report-mockup {
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.report-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.report-header h3 {
    color: var(--white);
}

.report-header p {
    color: var(--text-muted);
    margin: 0;
}

.report-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.report-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.kpi-card {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.kpi-card h5 {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.kpi-card p {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.kpi-change {
    font-size: 0.85rem;
}

.kpi-change.positive {
    color: #39e75f;
}

.report-chart h4 {
    margin-bottom: 1.5rem;
}

.chart-container {
    height: 200px;
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    border-left: 1px solid var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
    padding-left: 1rem;
}

.bar {
    width: 50px;
    background: linear-gradient(to top, var(--highlight-color), #00c6ff);
    border-radius: 4px 4px 0 0;
    position: relative;
    transform-origin: bottom;
    animation: bar-fill 1s ease-out forwards;
}

.bar-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
}


/* 12. TESTIMONIALS SECTION */
.testimonials-section {
    background-color: var(--bg-color);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--primary-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    text-align: center;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.author-name {
    font-weight: 600;
    color: var(--white);
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.slider-nav:hover {
    background-color: var(--highlight-color);
}

.slider-nav.prev {
    left: -20px;
}

.slider-nav.next {
    right: -20px;
}

/* 13. CTA (CALL TO ACTION) SECTION */
.cta-section {
    background: linear-gradient(45deg, var(--highlight-color), #0077b6);
    padding: 5rem 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: auto;
}

.cta-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--white);
    opacity: 0.9;
}

.cta-section .cta-button {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: none;
}

.cta-section .cta-button:hover {
    background: var(--bg-color);
    color: var(--white);
}

/* 14. CONTACT PAGE */
.contact-page-section {
    padding-top: calc(var(--header-height) + 4rem);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form-container {
    background-color: var(--primary-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    background-color: var(--secondary-color);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-secondary);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.form-submit-btn {
    width: auto;
    margin-top: 1rem;
}

.contact-info-container h3 {
    margin-bottom: 1rem;
}

.contact-details {
    list-style: none;
    margin-top: 2rem;
}

.contact-details li {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.contact-details li strong {
    display: block;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.contact-details li span,
.contact-details li a {
    color: var(--text-muted);
}

.map-placeholder {
    height: 200px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* 15. LEGAL PAGES */
.legal-page-section {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
}

.legal-page-section .container {
    max-width: 800px;
}

.legal-title {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
    line-height: 1.8;
    color: var(--text-muted);
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

/* 16. RESPONSIVENESS (MEDIA QUERIES) */

/* Tablets and larger mobile devices */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    .header-cta {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        grid-row: 1;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .report-body {
        grid-template-columns: 1fr;
    }

    .chart-container {
        height: 250px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Smaller tablets and mobile devices */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-column.about,
    .footer-column.contact {
        grid-column: 1 / -1;
    }

    .slider-nav {
        top: auto;
        bottom: -60px;
        transform: translateY(0);
    }

    .slider-nav.prev {
        left: 35%;
        transform: translateX(-50%);
    }

    .slider-nav.next {
        right: 35%;
        transform: translateX(50%);
    }

    .testimonial-slider-wrapper {
        padding-bottom: 4rem;
    }

    .testimonial-slider {
        height: 280px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .services-grid,
    .industry-grid {
        grid-template-columns: 1fr;
    }

    .stats-counter {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .calculator-wrapper,
    .contact-form-container {
        padding: 2rem;
    }

    .report-kpis {
        grid-template-columns: 1fr;
    }
}