/* Table of Contents
---
1.  Global Styles & Variables
2.  Typography
3.  Layout & Helpers (Container)
4.  Buttons
5.  Header & Navigation
6.  Footer
7.  Hero Section
8.  Services Section
9.  Interactive ROI Calculator Section
10. Industry Expertise Section
11. Testimonials Section
12. CTA Section
13. Page Header (for inner pages)
14. Contact Page Styles
15. Legal Page Styles
16. Modal Styles
17. Animations & Keyframes
18. Responsive Design (Media Queries)
--- */

/* 1. Global Styles & Variables */
:root {
    --primary-bg: #0A192F;
    --secondary-bg: #172A45;
    --accent-color: #e064ff;
    --accent-hover: #d952d9;
    --primary-text: #CCD6F6;
    --secondary-text: #8892B0;
    --headings-text: #FFFFFF;
    --border-color: #233554;
    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--headings-text);
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
    color: var(--secondary-text);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

ul {
    list-style: none;
}

/* 3. Layout & Helpers */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.text-center {
    text-align: center;
}

/* 4. Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--primary-bg);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* 5. Header & Navigation */
.site-header {
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    padding: 0 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.site-header.scrolled {
    height: 70px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 45px;
    filter: invert(1);
    transition: transform 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: var(--primary-text);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--headings-text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 6. Footer */
.site-footer {
    background-color: var(--secondary-bg);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .logo img {
    height: 45px;
    margin-bottom: 15px;
}

.footer-about p {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.footer-grid h4 {
    color: var(--headings-text);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-legal ul li a {
    color: var(--secondary-text);
}

.footer-links ul li a:hover,
.footer-legal ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--secondary-text);
    margin-bottom: 10px;
}

.footer-contact p a {
    color: var(--secondary-text);
}
.footer-contact p a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--secondary-text);
}

/* 7. Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: left;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-content .highlight {
    color: var(--accent-color);
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.05);
    animation: pulse 10s infinite alternate ease-in-out;
}

.hero-bg-shapes .shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: 5%;
}

.hero-bg-shapes .shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 25%;
    animation-delay: 2s;
}

.hero-bg-shapes .shape-3 {
    width: 100px;
    height: 100px;
    top: 25%;
    left: 10%;
    animation-delay: 4s;
}

/* 8. Services Section */
.services-section {
    background-color: var(--secondary-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--primary-bg);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon svg {
    width: 48px;
    height: 48px;
    color: var(--accent-color);
}

.service-card h3 {
    color: var(--headings-text);
}

/* 9. Interactive ROI Calculator Section */
.roi-calculator-section {
    background-color: var(--primary-bg);
}

.interactive-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background-color: var(--secondary-bg);
    padding: 50px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.interactive-text p {
    margin-bottom: 30px;
}

.calculator-form .form-group {
    margin-bottom: 20px;
}

.calculator-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-text);
}

.calculator-form input {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--primary-text);
    font-size: 1rem;
}

.calculator-form input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.roi-result {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--primary-bg);
    border-radius: 4px;
    border-left: 4px solid var(--accent-color);
    transition: opacity 0.3s ease;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.roi-result.visible {
    opacity: 1;
    max-height: 100px;
}

.roi-result p {
    margin: 0;
    color: var(--primary-text);
}

/* 10. Industry Expertise Section */
.industries-section {
    background-color: var(--primary-bg);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.industry-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 350px;
    cursor: pointer;
}

.industry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.industry-item:hover img {
    transform: scale(1.1);
}

.industry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.1));
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: background 0.3s ease;
}

.industry-item:hover .industry-overlay {
    background: linear-gradient(to top, rgba(10, 25, 47, 0.95), rgba(10, 25, 47, 0));
}

.industry-overlay h3 {
    color: var(--headings-text);
    font-size: 1.4rem;
    margin: 0;
    transform: translateY(10px);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.industry-item:hover .industry-overlay h3 {
    transform: translateY(0);
    opacity: 1;
}

/* 11. Testimonials Section */
.testimonials-section {
    background-color: var(--secondary-bg);
}

.testimonial-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    background-color: var(--primary-bg);
    padding: 50px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateX(20px);
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--primary-text);
    margin-bottom: 20px;
}

.testimonial-author h4 {
    color: var(--accent-color);
    margin: 0;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.slider-nav button {
    background-color: var(--border-color);
    border: none;
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.slider-nav button:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
}

/* 12. CTA Section */
.cta-section {
    background-color: var(--secondary-bg);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--primary-bg);
    padding: 50px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cta-content p {
    margin: 20px 0 30px;
}

/* 13. Page Header (for inner pages) */
.page-header {
    padding: 140px 0 60px;
    background-color: var(--secondary-bg);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
}

/* 14. Contact Page Styles */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-info .info-item {
    margin-bottom: 25px;
}
.contact-info h3 {
    color: var(--accent-color);
}

.contact-form-container {
    background-color: var(--secondary-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.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;
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--primary-text);
    font-size: 1rem;
    font-family: var(--font-family);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* 15. Legal Page Styles */
.legal-content {
    padding: 80px 0;
}

.legal-content h2 {
    color: var(--accent-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}
.legal-content ul li {
    margin-bottom: 0.5rem;
}

.legal-content .container {
    max-width: 800px;
}

/* 16. Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--secondary-bg);
    margin: 10% auto;
    padding: 40px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    position: relative;
    animation: slideIn 0.4s ease;
}

.close-btn {
    color: var(--secondary-text);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--headings-text);
}

.report-summary {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    text-align: center;
    flex-wrap: wrap;
    gap: 15px;
}
.summary-metric h4 {
    color: var(--secondary-text);
    font-size: 0.9rem;
    font-weight: 400;
}
.summary-metric p {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--headings-text);
    margin: 0;
}
.summary-metric p.positive {
    color: var(--accent-color);
}
.report-chart h4 {
    text-align: center;
    margin-bottom: 20px;
}
.chart-container {
    height: 200px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    background-color: var(--primary-bg);
    padding: 20px;
    border-radius: 4px;
}
.chart-container .bar {
    width: 15%;
    background-color: var(--accent-color);
    animation: growBar 1s ease-out;
    position: relative;
    text-align: center;
}
.chart-container .bar span {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
}
.report-disclaimer {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 30px;
    color: var(--secondary-text);
}

/* 17. Animations & Keyframes */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.reveal-text {
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp 0.8s forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
    from {
        transform: scale(0.9);
        opacity: 0.7;
    }
    to {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes growBar {
    from { height: 0; }
    to { /* height is set inline */ }
}

/* 18. Responsive Design (Media Queries) */

/* Tablets */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }

    .interactive-content, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    body { font-size: 15px; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    section { padding: 60px 0; }

    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--secondary-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    
    .nav-links.open {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.2rem;
    }

    .hero {
        text-align: center;
        min-height: 80vh;
    }
    
    .hero-content {
        margin: 0 auto;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .testimonial-slider {
        height: 280px;
    }
    
    .contact-grid {
        gap: 30px;
    }

    .modal-content {
        margin: 20% auto;
    }
    .report-summary {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    .hero-bg-shapes {
        display: none;
    }
    
    .testimonial-slider-container {
        padding: 30px;
    }
    .slider-nav {
        position: static;
        margin-top: 20px;
        justify-content: center;
    }
    .testimonial-slider {
        height: 320px;
    }
    
    .contact-form-container {
        padding: 25px;
    }

    .footer-grid {
        text-align: center;
    }

    .footer-about .logo {
        margin: 0 auto 15px;
    }
}