/* ---------------------------------- */
/*          1. Global Styles          */
/* ---------------------------------- */
:root {
    --primary-color: #007BFF;
    /* A vibrant blue for CTAs and highlights */
    --secondary-color: #0D253F;
    /* Dark navy for backgrounds */
    --accent-color: #04E2B4;
    /* A bright teal/green for accents */
    --light-color: #FFFFFF;
    --text-color: #D0DFFF;
    /* A light, soft blue for body text on dark backgrounds */
    --heading-color: #FFFFFF;
    --dark-grey: #1a1a2e;
    /* A very dark blue/purple for deep backgrounds */
    --light-grey: #f8f9fa;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --font-family: 'Poppins', sans-serif;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--primary-color);
}

/* ---------------------------------- */
/*         2. Utility Classes         */
/* ---------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--light-color);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.btn-primary:hover {
    background: #0069d9;
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--light-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    text-align: center;
}

.section-title {
    margin-bottom: 60px;
}

.section-title span {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.section-title .subtitle {
    max-width: 700px;
    margin: 15px auto 0;
    color: var(--text-color);
    opacity: 0.9;
}


/* ---------------------------------- */
/*        3. Header & Navigation      */
/* ---------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: rgba(13, 37, 63, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed) ease;
}

.site-header.scrolled {
    padding: 10px 0;
    background-color: rgba(13, 37, 63, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    filter: invert(1);
    transition: transform var(--transition-speed) ease;
}

.logo:hover {
    transform: rotate(-10deg) scale(1.1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-color);
    margin-left: 10px;
}

.main-nav ul {
    display: flex;
    gap: 35px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--light-color);
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light-color);
    margin: 5px 0;
    transition: all var(--transition-speed) ease;
}

/* Mobile Nav Styles */
.mobile-nav-open .hamburger-menu span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-nav-open .hamburger-menu span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-open .hamburger-menu span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ---------------------------------- */
/*           4. Hero Section          */
/* ---------------------------------- */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1552664730-d307ca884978?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(13, 37, 63, 0.4) 0%, var(--secondary-color) 85%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.8;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-down a {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-color);
    border-radius: 20px;
    position: relative;
}

.hero-scroll-down a::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--text-color);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, 10px);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* ---------------------------------- */
/*        5. About / Why Choose Us    */
/* ---------------------------------- */
.about-section {
    background-color: var(--dark-grey);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed) ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.about-card .icon-wrapper {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

.about-card:hover .icon-wrapper {
    transform: rotate(15deg) scale(1.1);
}

.about-card .icon-wrapper svg {
    width: 40px;
    height: 40px;
    color: var(--light-color);
}

.about-card h3 {
    margin-bottom: 15px;
    color: var(--heading-color);
}

/* ---------------------------------- */
/*         6. Services Section        */
/* ---------------------------------- */
.services-section {
    background-color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: linear-gradient(145deg, #102d4a, #0b2238);
    padding: 35px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(4, 226, 180, 0.1), transparent 40%);
    transition: opacity var(--transition-speed) ease;
    opacity: 0;
    transform: rotate(0deg);
}

.service-card:hover::before {
    opacity: 1;
    animation: rotate-glow 4s linear infinite;
}

@keyframes rotate-glow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon svg {
    width: 45px;
    height: 45px;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    margin-bottom: 20px;
}

.service-link {
    font-weight: 600;
    color: var(--accent-color);
}

/* ---------------------------------- */
/*    7. Interactive ROI Calculator   */
/* ---------------------------------- */
.roi-calculator-section {
    background: var(--dark-grey);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-form .form-group {
    margin-bottom: 30px;
}

.calculator-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.calculator-form input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #0d345a;
    border-radius: 5px;
    outline: none;
}

.calculator-form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--light-color);
}

.calculator-form input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--light-color);
}

.range-value {
    text-align: right;
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 5px;
}

.calculator-results {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-card {
    background-color: var(--dark-grey);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    text-align: center;
}

.result-card h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-color);
}

.result-card p {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0;
}

.result-disclaimer {
    margin-top: auto;
}

.result-disclaimer p {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 15px;
}

/* ---------------------------------- */
/*      8. Industry Expertise         */
/* ---------------------------------- */
.industries-section {
    background-color: var(--secondary-color);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.industry-card {
    height: 350px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

/* Using pseudo elements for backgrounds to improve performance and control */
.industry-card:nth-child(1) {
    background-image: url('https://images.unsplash.com/photo-1522204523234-8729aa6e3d5f?q=80&w=2070&auto=format&fit=crop');
}

.industry-card:nth-child(2) {
    background-image: url('https://images.unsplash.com/photo-1556742502-ec7c0e9f34b1?q=80&w=1974&auto=format&fit=crop');
}

.industry-card:nth-child(3) {
    background-image: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?q=80&w=2070&auto=format&fit=crop');
}

.industry-card:nth-child(4) {
    background-image: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?q=80&w=1973&auto=format&fit=crop');
}

.industry-card:nth-child(5) {
    background-image: url('https://images.unsplash.com/photo-1517061493169-7c2d2a2fb443?q=80&w=1932&auto=format&fit=crop');
}

.industry-card:nth-child(6) {
    background-image: url('https://images.unsplash.com/photo-1543286386-713bdd548da4?q=80&w=2070&auto=format&fit=crop');
}

.industry-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 37, 63, 0.95) 10%, rgba(13, 37, 63, 0.2) 100%);
    transition: background var(--transition-speed) ease;
}

.industry-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 30px;
    z-index: 2;
    transform: translateY(calc(100% - 80px));
    transition: transform var(--transition-speed) ease;
}

.industry-card:hover .industry-content {
    transform: translateY(0);
}

.industry-card:hover::after {
    background: linear-gradient(to top, rgba(13, 37, 63, 0.98) 30%, rgba(13, 37, 63, 0.1) 100%);
}

.industry-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.industry-content p {
    margin: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    transition-delay: 0.1s;
}

.industry-card:hover .industry-content p {
    opacity: 1;
}

/* ---------------------------------- */
/*        9. Sample Report Section    */
/* ---------------------------------- */
.sample-report-section {
    background: var(--dark-grey);
}


/* ---------------------------------- */
/*        10. Testimonials Section    */
/* ---------------------------------- */
.testimonials-section {
    background-color: var(--secondary-color);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 50px;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    height: 250px;
    /* Adjust as needed */
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-quote {
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 25px;
    position: relative;
    padding: 0 20px;
}

.testimonial-quote::before,
.testimonial-quote::after {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    opacity: 0.3;
}

.testimonial-quote::before {
    top: -10px;
    left: -10px;
}

.testimonial-quote::after {
    bottom: -30px;
    right: -10px;
}


.testimonial-author {
    margin-top: 15px;
}

.author-name {
    display: block;
    font-weight: 700;
    color: var(--heading-color);
}

.author-title {
    color: var(--text-color);
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.slider-controls button {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all var(--transition-speed) ease;
}

.slider-controls button:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #0d345a;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.slider-dots .dot.active {
    background-color: var(--primary-color);
}


/* ---------------------------------- */
/*       11. Call to Action (CTA)     */
/* ---------------------------------- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: var(--light-color);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-content p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-content .btn-primary {
    background: var(--light-color);
    color: var(--primary-color);
}

.cta-content .btn-primary:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
}

/* ---------------------------------- */
/*        12. Footer Section          */
/* ---------------------------------- */
.site-footer {
    background-color: var(--dark-grey);
    padding: 60px 0 0;
    border-top: 3px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .logo-link {
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--heading-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-color);
}

.footer-links a:hover {
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-contact a {
    color: var(--text-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

.social-icons a svg {
    fill: var(--light-color);
    width: 20px;
    height: 20px;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: var(--text-color);
}

/* ---------------------------------- */
/*      13. Animations on Scroll      */
/* ---------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-card.animate-on-scroll:nth-child(1),
.service-card.animate-on-scroll:nth-child(1),
.service-card.animate-on-scroll:nth-child(4),
.industry-card.animate-on-scroll:nth-child(1),
.industry-card.animate-on-scroll:nth-child(4) {
    transition-delay: 0.1s;
}

.about-card.animate-on-scroll:nth-child(2),
.service-card.animate-on-scroll:nth-child(2),
.service-card.animate-on-scroll:nth-child(5),
.industry-card.animate-on-scroll:nth-child(2),
.industry-card.animate-on-scroll:nth-child(5) {
    transition-delay: 0.2s;
}

.about-card.animate-on-scroll:nth-child(3),
.service-card.animate-on-scroll:nth-child(3),
.service-card.animate-on-scroll:nth-child(6),
.industry-card.animate-on-scroll:nth-child(3),
.industry-card.animate-on-scroll:nth-child(6) {
    transition-delay: 0.3s;
}

/* ---------------------------------- */
/*        14. Modal Styles            */
/* ---------------------------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: var(--secondary-color);
    margin: 5% auto;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 800px;
    border-radius: var(--border-radius);
    position: relative;
    animation: slide-down 0.5s ease-out;
}

@keyframes slide-down {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--light-color);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.report-section {
    margin-bottom: 30px;
}

.report-section h4 {
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.report-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background-color: var(--dark-grey);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
}

.metric-card h5 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-color);
    display: block;
}

.metric-change {
    font-size: 0.9rem;
    font-weight: 600;
}

.metric-change.positive {
    color: var(--accent-color);
}

.metric-change.negative {
    color: #ff4d4d;
}

.chart-placeholder {
    background-color: var(--dark-grey);
    padding: 20px;
    border-radius: var(--border-radius);
}

.bar-chart {
    height: 200px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 10px;
}

.bar-item {
    width: 15%;
    background: linear-gradient(to top, var(--primary-color), #00aaff);
    border-radius: 5px 5px 0 0;
    position: relative;
    animation: grow-bar 1s ease-out;
}

@keyframes grow-bar {
    from {
        height: 0;
    }

    to {
        /* height is set via inline style */
    }
}

.bar-item .label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    white-space: nowrap;
}

.chart-caption {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.report-section ul {
    list-style: disc;
    padding-left: 20px;
}

.report-section li {
    margin-bottom: 10px;
}

/* ---------------------------------- */
/*       15. Inner Page Styles        */
/* ---------------------------------- */
.page-header {
    padding: 150px 0 80px;
    background: linear-gradient(rgba(13, 37, 63, 0.8), var(--secondary-color) 80%);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Legal & Contact Pages */
.legal-content,
.contact-section {
    background-color: var(--dark-grey);
}

.legal-content .container,
.contact-section .container {
    max-width: 900px;
}

.legal-content h2 {
    margin: 40px 0 15px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.legal-content li {
    margin-bottom: 8px;
}

/* Contact Page Specific */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    background-color: var(--secondary-color);
    padding: 50px;
    border-radius: var(--border-radius);
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    margin-bottom: 25px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    border: 1px solid #0d345a;
    background-color: var(--dark-grey);
    color: var(--light-color);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-details {
    list-style: none;
    margin-top: 20px;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-details .icon-wrapper {
    background: var(--dark-grey);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-details .icon-wrapper svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.contact-details strong {
    display: block;
    color: var(--heading-color);
}

.contact-details a {
    color: var(--text-color);
}

.contact-details a:hover {
    color: var(--primary-color);
}

/* ---------------------------------- */
/*       16. Responsive Design        */
/* ---------------------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .main-nav {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .main-nav.mobile-nav {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--secondary-color);
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    }

    .main-nav.mobile-nav.open {
        max-height: 500px;
        /* Large enough to fit links */
    }

    .main-nav.mobile-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .main-nav.mobile-nav li {
        width: 100%;
        text-align: center;
    }

    .main-nav.mobile-nav a {
        display: block;
        padding: 15px 20px;
    }

    .main-nav.mobile-nav a::after {
        display: none;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .calculator-results {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 0;
        padding-top: 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .testimonial-slider-wrapper {
        padding: 0;
    }

    .testimonial-quote {
        font-size: 1.1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about .logo-link,
    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .contact-info-wrapper {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .btn {
        padding: 10px 22px;
        font-size: 0.8rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .modal-content {
        padding: 20px;
        margin: 10% auto;
    }

    .report-metrics {
        grid-template-columns: 1fr 1fr;
    }

}