/*
================================================
TABLE OF CONTENTS
================================================
1.  :ROOT & CSS VARIABLES
2.  GLOBAL STYLES & RESETS
3.  UTILITY CLASSES
4.  KEYFRAME ANIMATIONS
5.  HEADER & NAVIGATION
6.  MOBILE NAVIGATION
7.  FOOTER
8.  BUTTONS & FORMS
9.  HERO SECTION
10. SERVICES SECTION (3D Cards)
11. ABOUT US SECTION (Stats Counter)
12. INDUSTRIES SECTION
13. TESTIMONIALS SECTION (Slider)
14. INTERACTIVE DASHBOARD SECTION
15. CALL TO ACTION (CTA) SECTION
16. SUBPAGE STYLES (Contact, Legal Pages)
    - Page Header
    - Breadcrumbs
    - Contact Page
    - Legal Content
    - Popup
17. MISCELLANEOUS (Chat Widget, Scrollbar)
18. RESPONSIVE DESIGN (Media Queries)
================================================
*/


/* 1. :ROOT & CSS VARIABLES */
:root {
    --primary-color: #0A2540;
    --secondary-color: #00C49A;
    --accent-color: #0088f8;
    --background-light: #F6F9FC;
    --background-dark: #061A2E;
    --text-dark: #333;
    --text-light: #f1f5f9;
    --text-muted: #6b7280;
    --border-color: #e2e8f0;
    --white-color: #FFFFFF;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

/* 2. GLOBAL STYLES & RESETS */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--white-color);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-header {
    margin-bottom: 3rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    background-color: rgba(0, 196, 154, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.text-center {
    text-align: center;
}

.text-center p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 3. UTILITY CLASSES */
.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);
}

.animate-on-load {
    opacity: 0;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

.fade-in-down {
    animation-name: fadeInDown;
}

.fade-in-up {
    animation-name: fadeInUp;
}

.fade-in-left {
    animation-name: fadeInLeft;
}

.fade-in-right {
    animation-name: fadeInRight;
}

.zoom-in {
    animation-name: zoomIn;
}

/* Delay classes */
.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s !important;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s !important;
}

.delay-3 {
    animation-delay: 0.6s;
    transition-delay: 0.6s !important;
}

.delay-4 {
    animation-delay: 0.8s;
    transition-delay: 0.8s !important;
}

/* 4. KEYFRAME ANIMATIONS */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 196, 154, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 196, 154, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 196, 154, 0);
    }
}


/* 5. HEADER & NAVIGATION */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all var(--transition-speed) ease;
}

.header.scrolled,
.subpage .header {
    background-color: var(--background-dark);
    box-shadow: var(--shadow-sm);
    height: 70px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.header.scrolled .logo-link,
.subpage .header .logo-link {
    color: var(--white-color);
}

body:not(.subpage) .header:not(.scrolled) .logo-link {
    color: var(--white-color);
}

.logo {
    height: 80px;
    filter: invert(1);
    transition: height var(--transition-speed) ease;
}


.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--text-light);
    padding: 0.5rem 0;
}

body:not(.subpage) .header:not(.scrolled) .nav-link {
    color: var(--white-color);
}

.header.scrolled .nav-link,
.subpage .header .nav-link {
    color: var(--white-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1001;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    left: 0;
    border-radius: 2px;
    transition: all 0.35s ease;
}

body:not(.subpage) .header:not(.scrolled) .bar {
    background-color: var(--white-color);
}

.bar-top {
    top: 0;
}

.bar-middle {
    top: 50%;
    transform: translateY(-50%);
}

.bar-bottom {
    bottom: 0;
}

.mobile-toggle.is-active .bar-top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-toggle.is-active .bar-middle {
    opacity: 0;
}

.mobile-toggle.is-active .bar-bottom {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.mobile-toggle.is-active .bar {
    background-color: var(--white-color);
}

/* 6. MOBILE NAVIGATION */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 37, 64, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.is-active {
    transform: translateX(0);
}

.mobile-nav nav ul {
    text-align: center;
}

.mobile-nav nav li {
    margin: 2rem 0;
}

.mobile-nav nav a {
    color: var(--white-color);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
}

/* 7. FOOTER */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding-top: 6rem;
    position: relative;
    overflow: hidden;
}

.footer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.footer-shape {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.footer-shape.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}

.footer-shape.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white-color);
}

.footer-logo-link {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.footer-logo {
    height: 80px;
    filter: invert(1);
}

.footer-about-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul a {
    color: var(--text-muted);
    position: relative;
}

.footer-links ul a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    display: block;
    margin-top: 2px;
    right: 0;
    background: var(--secondary-color);
    transition: width var(--transition-speed) ease;
}

.footer-links ul a:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}

.footer-links ul a:hover {
    color: var(--white-color);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.contact-info i {
    color: var(--secondary-color);
    margin-top: 4px;
}

.contact-info a {
    color: var(--text-muted);
}

.contact-info a:hover {
    color: var(--white-color);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-muted);
}

/* 8. BUTTONS & FORMS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #00a37e;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white-color);
    border-color: var(--white-color);
}

.btn-secondary:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.btn-link {
    font-weight: 600;
    color: var(--white-color);
}

/* Form Styles */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--background-light);
    font-family: var(--font-family);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 196, 154, 0.2);
}

.contact-form .optional {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
}

.contact-form button {
    width: 100%;
    padding: 1rem 1.8rem;
}


/* 9. HERO SECTION */
.hero {
    background: linear-gradient(45deg, var(--primary-color), var(--background-dark));
    color: var(--white-color);
    padding: calc(var(--header-height) + 6rem) 0 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 196, 154, 0.1) 0%, rgba(0, 196, 154, 0) 70%);
}

.hero-shape.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
}

.hero-shape.shape-2 {
    width: 300px;
    height: 300px;
    bottom: 20%;
    right: 10%;
}

.hero-shape.shape-3 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 30%;
}


.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white-color);
}

.hero-content .highlight {
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 1.5rem 0 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.hero-floater {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    color: var(--primary-color);
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.hero-floater i {
    color: var(--secondary-color);
}

.floater-1 {
    top: 10%;
    left: -10%;
}

.floater-2 {
    bottom: 15%;
    left: 5%;
    animation-delay: 1s;
}

.floater-3 {
    top: 40%;
    right: -15%;
    animation-delay: 0.5s;
}


/* 10. SERVICES SECTION (3D Cards) */
.services-section {
    background-color: var(--background-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: transparent;
    aspect-ratio: 4 / 3;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.card-front {
    background-color: var(--white-color);
}

.card-back {
    background: linear-gradient(45deg, var(--primary-color), var(--background-dark));
    color: white;
    transform: rotateY(180deg);
}

.card-back h3 {
    color: var(--white-color);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1;
}

.card-front h3 {
    margin-bottom: 0.5rem;
}

.card-back ul {
    margin: 1rem 0;
    text-align: left;
}

.card-back li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.card-back li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* 11. ABOUT US SECTION (Stats Counter) */
.about-section {
    background-color: var(--white-color);
}

.about-section .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.about-content .section-header {
    margin-bottom: 2rem;
}

.stats-counter {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    border-left: 3px solid var(--secondary-color);
    padding-left: 2rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}


/* 12. INDUSTRIES SECTION */
.industries-section {
    background-color: var(--background-light);
}

.industries-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.industry-item {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    min-width: 180px;
}

.industry-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.industry-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.industry-item h4 {
    font-weight: 600;
    margin: 0;
}

/* 13. TESTIMONIALS SECTION (Slider) */
.testimonials-section {
    background-color: var(--white-color);
    position: relative;
    padding: 6rem 0;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background-color: var(--background-light);
    z-index: -1;
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 2rem;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 2rem;
    position: relative;
    padding-left: 2rem;
}

.testimonial-content p::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
}

.author-info h4 {
    margin: 0;
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0;
    pointer-events: none;
}

.slider-controls button {
    pointer-events: all;
    background-color: var(--white-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    color: var(--primary-color);
}

.slider-controls .prev-btn {
    transform: translateX(-50%);
}

.slider-controls .next-btn {
    transform: translateX(50%);
}

.slider-controls button:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}


/* 14. INTERACTIVE DASHBOARD SECTION */
.dashboard-section {
    background-color: var(--background-light);
}

.dashboard-mockup {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.dashboard-header {
    background-color: #e8e8e8;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red {
    background-color: #ff5f57;
}

.dot.yellow {
    background-color: #ffbd2e;
}

.dot.green {
    background-color: #28c940;
}

.dash-title {
    text-align: center;
    flex-grow: 1;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.dashboard-body {
    display: flex;
}

.dash-sidebar {
    background-color: var(--primary-color);
    padding: 1.5rem 1rem;
    width: 200px;
    color: var(--white-color);
}

.dash-sidebar ul li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.dash-sidebar ul li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dash-sidebar ul li.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.dash-sidebar ul li i {
    width: 20px;
    text-align: center;
}

.dash-main {
    flex-grow: 1;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.dash-widget {
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.dash-widget.kpi h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.kpi .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.kpi .change {
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.change.positive {
    color: #28c940;
}

.change.negative {
    color: #ff5f57;
}

.dash-widget.chart {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-widget.chart img {
    width: 100%;
    object-fit: contain;
}

/* 15. CALL TO ACTION (CTA) SECTION */
.cta-section {
    background: linear-gradient(rgba(10, 37, 64, 0.9), rgba(10, 37, 64, 0.9)), url('https://picsum.photos/seed/cta-bg/1920/500') no-repeat center center/cover;
    padding: 6rem 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white-color);
    font-size: 2.5rem;
}

.cta-content p {
    color: var(--text-light);
    margin: 1rem 0 2rem;
}

.cta-content .btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* 16. SUBPAGE STYLES */
.subpage main {
    padding-top: var(--header-height);
}

/* Page Header */
.page-header {
    background: linear-gradient(45deg, var(--primary-color), var(--background-dark));
    color: var(--white-color);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white-color);
}

.page-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0.5rem auto 1.5rem;
    color: var(--text-muted);
}

.breadcrumbs {
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--secondary-color);
}

.breadcrumbs i {
    font-size: 0.7rem;
    margin: 0 0.5rem;
}

.breadcrumbs span {
    color: var(--white-color);
}

.page-content {
    padding: 4rem 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Page */
.contact-section {
    padding: 6rem 0;
    background-color: var(--background-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contact-info-panel {
    background: linear-gradient(45deg, var(--primary-color), var(--background-dark));
    padding: 3rem;
    color: var(--white-color);
}

.contact-info-panel h2 {
    color: var(--white-color);
}

.contact-info-panel p {
    color: var(--text-muted);
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.method-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.method-details h3 {
    color: var(--white-color);
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
}

.method-details p,
.method-details a {
    color: var(--text-muted);
    margin: 0;
}

.method-details a:hover {
    color: var(--secondary-color);
}

.contact-form-wrapper {
    padding: 3rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Legal Content */
.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed), visibility var(--transition-speed);
    z-index: 2000;
}

.popup:target {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 450px;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-speed);
}

.popup:target .popup-content {
    transform: scale(1);
}

.popup-close,
.popup-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
}

.popup-close-btn {
    position: static;
    margin-top: 1rem;
}

.popup-icon {
    font-size: 4rem;
    color: #28c940;
    margin-bottom: 1rem;
}

.popup-content h3 {
    margin-bottom: 0.5rem;
}

/* 17. MISCELLANEOUS */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 998;
    animation: pulse 2s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00a37e;
}

/* 18. RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 4rem 0;
    }

    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image-wrapper {
        grid-row: 1;
        margin-bottom: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-section .container {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        text-align: center;
        margin-bottom: 2rem;
    }

    .about-image-wrapper img {
        max-width: 80%;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .dash-main {
        grid-template-columns: 1fr 1fr;
    }

    .dash-widget.chart {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .header-cta {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-floater {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        aspect-ratio: auto;
        min-height: 250px;
    }

    .stats-counter {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .slider-controls {
        display: none;
    }

    /* Simpler for mobile */
    .testimonial-slide {
        padding: 1.5rem;
    }

    .dashboard-body {
        flex-direction: column;
    }

    .dash-sidebar {
        width: 100%;
    }

    .dash-sidebar ul {
        display: flex;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .dash-sidebar ul li {
        flex-shrink: 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-col {
        text-align: center;
    }

    .social-links,
    .contact-info li {
        justify-content: center;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }
}