/* Table of Contents
--- 1. Global Styles & Variables
--- 2. Typography
--- 3. Layout & Container
--- 4. Header & Navigation
--- 5. Hero Section
--- 6. Buttons & CTAs
--- 7. Section Styling
--- 8. Stats Section
--- 9. Services Section
--- 10. Calculator Section
--- 11. Industry Tabs Section
--- 12. Testimonials Section
--- 13. Call to Action Section (Bottom)
--- 14. Footer
--- 15. Page Specific: Contact Page
--- 16. Page Specific: Legal Pages
--- 17. Animations & Keyframes
--- 18. Responsive Design (Media Queries)
*/


/* --- 1. Global Styles & Variables --- */
:root {
    --primary-dark: #0A192F; /* Deep Navy Blue */
    --secondary-dark: #112240;
    --primary-light: #F8F9FA;
    --accent-color: #3fe9ff; /* Bright Teal/Mint */
    --accent-hover: #525bd8;
    --text-light: #CCD6F6; /* Light Grey/Blue for text on dark bg */
    --text-dark: #333333;
    --text-muted: #8892B0;
    --border-color: #233554;
    --card-bg: #112240;
    --font-family-sans: 'Poppins', sans-serif;
    --font-family-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    --header-height: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-sans);
    background-color: var(--primary-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

ul {
    list-style: none;
}


/* --- 2. Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

.section-header h2, .section-header p {
    text-align: center;
}


/* --- 3. Layout & Container --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}


/* --- 4. Header & Navigation --- */
.site-header {
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: top 0.3s ease-in-out, box-shadow 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
}

.nav-logo a {
    display: block;
}

.nav-logo img {
    height: 45px;
    transition: transform 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: all 0.3s ease-in-out;
}


/* --- 5. Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    background-image: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?q=80&w=2670&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.8);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: #fff;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title .typed-text {
    color: var(--accent-color);
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent-color);
    animation: blink 1s infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
}


/* --- 6. Buttons & CTAs --- */
.cta-button {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--accent-color);
    background-color: transparent;
    color: var(--accent-color);
}

.cta-button:hover {
    background-color: var(--accent-hover);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(100, 255, 218, 0.5);
}

.header-cta {
    padding: 10px 20px;
    font-size: 0.9rem;
}


/* --- 7. Section Styling --- */
.section-header {
    margin-bottom: 60px;
}

.section-tagline {
    display: block;
    text-align: center;
    color: var(--accent-color);
    font-family: var(--font-family-mono);
    margin-bottom: 10px;
}

.section-title {
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    color: #666;
}

/* Alternate dark background for some sections */
.calculator-section, .cta-section {
    background-color: var(--primary-dark);
}

.calculator-section .section-title,
.calculator-section .section-description,
.cta-section .cta-title,
.cta-section .cta-text {
    color: var(--text-light);
}

.calculator-section .section-tagline,
.cta-section .section-tagline {
    color: var(--accent-color);
}


/* --- 8. Stats Section --- */
.stats-section {
    background-color: var(--secondary-dark);
    padding: 50px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    color: var(--text-light);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* --- 9. Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.2);
    border-color: var(--accent-color);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon svg {
    width: 48px;
    height: 48px;
    color: var(--accent-color);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.service-description {
    color: #555;
}


/* --- 10. Calculator Section --- */
.calculator-section {
    padding: 100px 0;
}

.calculator-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
}

.calculator-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.service-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 1.1rem;
    user-select: none;
    color: var(--text-light);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: var(--primary-dark);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--accent-color);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid var(--primary-dark);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.estimate-result {
    text-align: center;
    background-color: var(--primary-dark);
    padding: 30px;
    border-radius: 8px;
    min-width: 250px;
}

.estimate-result p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

#total-estimate {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}


/* --- 11. Industry Tabs Section --- */
.industry-tabs-wrapper {
    max-width: 900px;
    margin: auto;
}

.industry-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.tab-link {
    padding: 15px 30px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    transition: color 0.3s ease;
}

.tab-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.tab-link:hover {
    color: var(--text-dark);
}
.tab-link.active {
    color: var(--accent-color);
}
.tab-link.active::after {
    width: 100%;
}

.tab-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

/* --- 12. Testimonials Section --- */
.testimonials-section {
    background-color: #f1f5f9;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.1);
    border-left: 5px solid var(--accent-color);
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-name {
    margin-bottom: 2px;
    color: var(--primary-dark);
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-muted);
}


/* --- 13. Call to Action Section (Bottom) --- */
.cta-section {
    padding: 80px 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.cta-text {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}


/* --- 14. Footer --- */
.site-footer {
    background-color: var(--primary-dark);
    color: var(--text-muted);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-heading {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a, .footer-contact a {
    color: var(--text-muted);
}

.footer-links ul li a:hover, .footer-contact a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-legal a {
    color: var(--text-muted);
    margin: 0 5px;
}
.footer-legal a:hover {
    color: var(--accent-color);
}


/* --- 15. Page Specific: Contact Page --- */
.page-header {
    background-color: var(--secondary-dark);
    padding: 140px 0 60px;
    text-align: center;
    color: #fff;
}

.page-title {
    color: #fff;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-heading {
    margin-bottom: 15px;
}

.contact-text {
    margin-bottom: 30px;
    color: #555;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-icon {
    flex-shrink: 0;
    margin-right: 15px;
    color: var(--accent-color);
}
.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-text strong {
    color: var(--primary-dark);
}

.contact-form-wrapper {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-family-sans);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.3);
}

textarea {
    resize: vertical;
}

.form-submit-btn {
    width: 100%;
}


/* --- 16. Page Specific: Legal Pages --- */
.legal-content {
    max-width: 800px;
    margin: auto;
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.legal-content p, .legal-content ul {
    margin-bottom: 15px;
    color: #444;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
}


/* --- 17. Animations & Keyframes --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in-right {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes blink {
    50% { opacity: 0; }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.fade-in {
    transform: translateY(20px);
}
.animate-on-scroll.fade-in-up {
    transform: translateY(30px);
}
.animate-on-scroll.fade-in-left {
    transform: translateX(-30px);
}
.animate-on-scroll.fade-in-right {
    transform: translateX(30px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}


/* --- 18. Responsive Design (Media Queries) --- */

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    .section-padding { padding: 80px 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}


/* Mobile devices */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--secondary-dark);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 0;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        margin: 16px 0;
        width: 100%;
    }
    .nav-link {
        font-size: 1.2rem;
        width: 100%;
        display: block;
        padding: 10px 0;
    }
    .nav-link::after { display: none; }
    
    .hamburger {
        display: block;
    }
    .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);
    }

    .header-cta { display: none; }
    
    .hero { text-align: center; }
    .hero-content {
        padding: 0 20px;
    }
    .hero-subtitle { margin: 0 auto 30px auto; }
    
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    
    .calculator-form { flex-direction: column; }
    .estimate-result { min-width: 100%; }

    .industry-tabs { flex-wrap: wrap; }
    .tab-link { padding: 10px 15px; font-size: 1rem; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-about { align-items: center; display: flex; flex-direction: column; }
    .footer-bottom { flex-direction: column; gap: 10px; }
    .copyright { order: 2; }
    .footer-legal { order: 1; }

    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .stats-grid { grid-template-columns: 1fr; }
}