/*
================================================
TABLE OF CONTENTS
================================================
1.  :ROOT VARIABLES & GLOBAL STYLES
2.  HELPER CLASSES & UTILITIES
3.  ANIMATIONS
4.  HEADER & NAVIGATION
5.  FOOTER
6.  BUTTONS & FORMS
7.  HERO SECTION
8.  PAGE HEADER (FOR SUB-PAGES)
9.  SERVICES SECTION
10. ABOUT US SECTION
11. STATS SECTION
12. PRICING SECTION
13. TESTIMONIALS SECTION
14. CTA (CALL TO ACTION) SECTION
15. CONTACT PAGE
16. LEGAL PAGES (PRIVACY, TERMS, DISCLAIMER)
17. POPUP STYLES
18. RESPONSIVE DESIGN (MEDIA QUERIES)
================================================
*/

/* 1. :ROOT VARIABLES & GLOBAL STYLES
/* =============================================== */
:root {
    --primary-color: #16a085;
    --primary-color-dark: #117a65;
    --secondary-color: #34495e;
    --background-color: #1c2833;
    --surface-color: #2c3e50;
    --text-color: #ecf0f1;
    --text-color-muted: #bdc3c7;
    --border-color: #34495e;
    --white-color: #ffffff;
    --success-color: #2ecc71;
    --error-color: #e74c3c;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    --header-height: 5rem;
    --border-radius: 8px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --transition-speed: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-secondary);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--white-color);
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 0.5em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-color-muted);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-speed);
}

a:hover {
    color: var(--primary-color-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. HELPER CLASSES & UTILITIES
/* =============================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tagline {
    display: inline-block;
    color: var(--primary-color);
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-color-muted);
}

/* 3. ANIMATIONS
/* =============================================== */
.animate-in {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-in.visible {
    opacity: 1;
    transform: none !important;
}

[data-animation="fade-in"] {
    opacity: 0;
}

[data-animation="fade-in-up"] {
    transform: translateY(50px);
}

[data-animation="fade-in-down"] {
    transform: translateY(-50px);
}

[data-animation="fade-in-left"] {
    transform: translateX(-50px);
}

[data-animation="fade-in-right"] {
    transform: translateX(50px);
}

[data-delay="100"] {
    transition-delay: 100ms;
}

[data-delay="200"] {
    transition-delay: 200ms;
}

[data-delay="300"] {
    transition-delay: 300ms;
}

[data-delay="400"] {
    transition-delay: 400ms;
}

[data-delay="500"] {
    transition-delay: 500ms;
}

/* 4. HEADER & NAVIGATION
/* =============================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.header.scrolled {
    background-color: rgba(44, 62, 80, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white-color);
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-sub {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color-muted);
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-color);
    font-family: var(--font-primary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--white-color);
    cursor: pointer;
}

.nav-close {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--white-color);
    background: none;
    border: none;
    cursor: pointer;
}

/* 5. FOOTER
/* =============================================== */
.footer {
    background-color: var(--surface-color);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--white-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-about-text {
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--border-color);
    color: var(--text-color);
    border-radius: 50%;
    transition: var(--transition-speed);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    color: var(--white-color);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-color-muted);
    position: relative;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact ul li i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-contact ul li a,
.footer-contact ul li span {
    color: var(--text-color-muted);
}

.footer-contact ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-color-muted);
}

.footer-bottom p {
    margin: 0;
}

/* 6. BUTTONS & FORMS
/* =============================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-speed);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(22, 160, 133, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: var(--font-secondary);
    transition: var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.2);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* 7. HERO SECTION
/* =============================================== */
.hero-section {
    position: relative;
    padding: calc(var(--header-height) + 6rem) 0 8rem;
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    top: -150px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-color) 0%, rgba(22, 160, 133, 0) 70%);
    opacity: 0.15;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 2rem 0;
    max-width: 550px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 500px;
    width: 100%;
}


/* 8. PAGE HEADER (FOR SUB-PAGES)
/* =============================================== */
.page-header-section {
    position: relative;
    padding: calc(var(--header-height) + 4rem) 0 5rem;
    background-color: var(--surface-color);
    overflow: hidden;
}

.page-header-desc {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

.breadcrumbs {
    margin-top: 1.5rem;
    color: var(--text-color-muted);
}

.breadcrumbs a {
    color: var(--text-color-muted);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs i {
    font-size: 0.8rem;
    margin: 0 0.5rem;
}

/* 9. SERVICES SECTION
/* =============================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--surface-color);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
    border-color: var(--primary-color);
}

.service-card .service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-title {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-color-muted);
    margin-bottom: 1.5rem;
}

.service-link {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.service-link i {
    margin-left: 0.25rem;
    transition: transform var(--transition-speed);
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

/* 10. ABOUT US SECTION
/* =============================================== */
.about-section {
    background-color: var(--surface-color);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 4rem;
}

.about-image {
    border-radius: var(--border-radius);
}

.about-features {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.about-features i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* 11. STATS SECTION
/* =============================================== */
.stats-section {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), url('assets/stats-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white-color);
    margin: 0;
}

/* 12. PRICING SECTION
/* =============================================== */
.pricing-section {
    background-color: var(--background-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-speed);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(22, 160, 133, 0.3);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.pricing-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pricing-title {
    font-size: 1.8rem;
    margin: 0;
}

.pricing-subtitle {
    color: var(--text-color-muted);
    margin: 0.5rem 0 0;
}

.pricing-price {
    margin-top: 1.5rem;
}

.pricing-price .price-currency {
    font-size: 1.5rem;
    vertical-align: super;
    margin-right: 0.2rem;
}

.pricing-price .price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white-color);
    line-height: 1;
}

.pricing-price .price-period {
    color: var(--text-color-muted);
}

.pricing-body {
    padding: 2rem;
    flex-grow: 1;
}

.pricing-features {
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pricing-features i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.pricing-features li .fa-times {
    color: var(--error-color);
    opacity: 0.5;
}

.pricing-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}

/* 13. TESTIMONIALS SECTION
/* =============================================== */
.testimonials-section {
    background-color: var(--surface-color);
}

.testimonial-card {
    background-color: var(--background-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
}

.testimonial-quote {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    margin: 0;
    font-size: 1.1rem;
    color: var(--white-color);
}

.author-title {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color-muted);
}

.splide__pagination__page {
    background: var(--border-color);
    opacity: 1;
}

.splide__pagination__page.is-active {
    background: var(--primary-color);
    transform: scale(1.3);
}

.splide__arrow {
    background-color: var(--surface-color);
    opacity: 1;
}

.splide__arrow svg {
    fill: var(--white-color);
}

.splide__arrow:hover {
    background-color: var(--primary-color);
}

/* 14. CTA (CALL TO ACTION) SECTION
/* =============================================== */
.cta-section {
    background: var(--primary-color);
    padding: 5rem 0;
}

.cta-title {
    color: var(--white-color);
}

.cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem auto 2rem;
}

.cta-section .btn-primary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border-color: var(--white-color);
}

.cta-section .btn-primary:hover {
    background-color: var(--text-color);
    border-color: var(--text-color);
    color: var(--primary-color-dark);
}

/* 15. CONTACT PAGE
/* =============================================== */
.contact-page-section {
    padding-bottom: 6rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: var(--surface-color);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.contact-info-panel h3 {
    margin-bottom: 1.5rem;
}

.contact-info-panel p {
    margin-bottom: 2rem;
}

.contact-details-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-details-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-details-list h4 {
    margin: 0 0 0.25rem;
    color: var(--white-color);
    font-size: 1.1rem;
}

.contact-details-list p,
.contact-details-list a {
    margin: 0;
    color: var(--text-color-muted);
}

.contact-details-list a:hover {
    color: var(--primary-color);
}

/* 16. LEGAL PAGES
/* =============================================== */
.legal-content h2 {
    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-color-muted);
}

.legal-content strong {
    color: var(--white-color);
}

/* 17. POPUP STYLES
/* =============================================== */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-speed);
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--surface-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease-out;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.popup-content h3 {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.popup-content p {
    color: var(--text-color-muted);
    margin-bottom: 2rem;
}

/* 18. RESPONSIVE DESIGN (MEDIA QUERIES)
/* =============================================== */

/* Tablets and larger phones (up to 1024px) */
@media (max-width: 1024px) {
    .header-actions .btn {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--surface-color);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right 0.4s ease-out;
    }

    .nav-menu.show-menu {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-close {
        display: block;
    }

    .hero-container,
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content,
    .about-content {
        order: 2;
    }

    .hero-image-wrapper,
    .about-image-wrapper {
        order: 1;
        margin-bottom: 3rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .about-features {
        text-align: left;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info-panel {
        padding-bottom: 3rem;
        border-bottom: 1px solid var(--border-color);
    }
}

/* Small tablets and mobile phones (up to 768px) */
@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact ul li {
        justify-content: center;
        text-align: left;
    }
}

/* Small mobile phones (up to 480px) */
@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .contact-wrapper {
        padding: 1.5rem;
    }

    .popup-content {
        padding: 2rem 1.5rem;
    }
}