/* ---=== Table of Contents ===---
1.  GLOBAL RESET & VARIABLES
2.  BASE STYLES & TYPOGRAPHY
3.  REUSABLE COMPONENTS (Container, Buttons, Section Headers)
4.  HEADER & NAVIGATION
5.  MOBILE MENU
6.  HERO SECTION
7.  SERVICES SECTION
8.  ABOUT US SECTION
9.  PROCESS SECTION
10. TESTIMONIALS SECTION
11. CTA SECTION
12. FOOTER
13. PAGE-SPECIFIC STYLES (Contact, Legal)
14. INTERACTIVE ELEMENTS (Popup, Chat Widget)
15. ANIMATIONS & KEYFRAMES
16. RESPONSIVE MEDIA QUERIES
---=== End of Table of Contents ===--- */

/* 1. GLOBAL RESET & VARIABLES */
:root {
    --primary-color: #4A90E2;
    /* A strong, professional blue */
    --secondary-color: #50E3C2;
    /* A vibrant accent for CTAs */
    --dark-bg-1: #121828;
    /* Main background color */
    --dark-bg-2: #1A2238;
    /* Slightly lighter bg for cards */
    --dark-bg-3: #222E4A;
    /* Hover and active states */
    --text-light: #F0F5F9;
    /* Primary text color */
    --text-medium: #C9D6DF;
    /* Secondary text color */
    --text-dark: #9DA8B7;
    /* Subtle text, placeholders */
    --border-color: rgba(240, 245, 249, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.2);

    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
}

*,
*::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(--dark-bg-1);
    color: var(--text-medium);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* 2. BASE STYLES & TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-light);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--text-light);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 80px 0;
}

/* 3. REUSABLE COMPONENTS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-bg-1);
    background-size: 200% 100%;
    background-position: right bottom;
}

.btn-primary:hover {
    background-position: left bottom;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(80, 227, 194, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.section-header {
    margin-bottom: 40px;
}

.section-subtitle {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header.text-center {
    text-align: center;
}

.section-header.text-center p {
    max-width: 600px;
    margin: 0 auto;
}


/* 4. HEADER & NAVIGATION */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    background-color: transparent;
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.header.scrolled {
    background-color: rgba(18, 24, 40, 0.9);
    box-shadow: 0 4px 30px var(--shadow-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 80px;
    filter: brightness(0) invert(1);
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-medium);
    font-weight: 500;
    position: relative;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
}

/* 5. MOBILE MENU */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--dark-bg-2);
    padding: 20px;
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-nav-link {
    font-size: 1.2rem;
    color: var(--text-light);
    padding: 10px;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 9px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 18px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* 6. HERO SECTION */
.hero-section {
    padding: calc(var(--header-height) + 120px) 0 120px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
}

.hero-shape-1 {
    width: 500px;
    height: 500px;
    background-color: var(--primary-color);
    top: -100px;
    left: -150px;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background-color: var(--secondary-color);
    bottom: -50px;
    right: -100px;
}

.hero-shape-3 {
    width: 300px;
    height: 300px;
    background-color: #E24A7F;
    bottom: 20%;
    left: 40%;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-content h1 span {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-medium);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 7. SERVICES SECTION */
.services-section {
    background-color: rgba(0, 0, 0, 0.2);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--dark-bg-2);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 30%);
    transition: transform 0.6s ease;
    transform: translate(-100%, -100%) scale(0);
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--secondary-color);
}

.service-card:hover::before {
    transform: translate(0, 0) scale(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.service-card h3 {
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.service-card p {
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* 8. ABOUT US SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius);
}

.about-image-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0.3;
    border-radius: var(--border-radius);
    z-index: -1;
    filter: blur(20px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-number::after {
    content: '%';
    font-size: 1.5rem;
}

.stat-item:nth-child(2) .stat-number::after {
    content: '+';
}

.stat-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* 9. PROCESS SECTION */
.process-section {
    background-color: rgba(0, 0, 0, 0.2);
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 5%;
    width: 90%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.3;
}

.process-item {
    flex-basis: 23%;
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.process-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--dark-bg-2);
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--secondary-color);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: all var(--transition-speed);
}

.process-item:hover .process-icon {
    background-color: var(--secondary-color);
    color: var(--dark-bg-1);
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(80, 227, 194, 0.4);
}

.process-step {
    display: none;
}

.process-content h3 {
    font-size: 1.2rem;
}

/* 10. TESTIMONIALS SECTION */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    display: flex;
    overflow: hidden;
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 40px;
    background-color: var(--dark-bg-2);
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.5s ease;
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.5;
    margin-bottom: 20px;
}

.testimonial-slide p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-light);
}

.testimonial-author {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 110%;
    left: -5%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}

.slider-btn {
    background-color: var(--dark-bg-3);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.slider-btn:hover {
    background-color: var(--primary-color);
}

/* 11. CTA SECTION */
.cta-section {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 60px 0;
}

.cta-content h2 {
    color: var(--dark-bg-1);
    font-size: 2.2rem;
}

.cta-content p {
    color: var(--dark-bg-1);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-content .btn-primary {
    background: var(--dark-bg-1);
    color: var(--text-light);
    border: 2px solid var(--dark-bg-1);
}

.cta-content .btn-primary:hover {
    background: transparent;
    color: var(--dark-bg-1);
}

/* 12. FOOTER */
.footer {
    background-color: var(--dark-bg-2);
    padding-top: 80px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-col.about-col p {
    font-size: 0.9rem;
    margin-top: 20px;
}

.footer-logo img {
    height: 80px;
    filter: brightness(0) invert(1);
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-medium);
    transition: all var(--transition-speed);
}

.social-link:hover {
    color: var(--dark-bg-1);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.footer-col.links-col ul li {
    margin-bottom: 10px;
}

.footer-col.links-col ul a {
    color: var(--text-medium);
}

.footer-col.links-col ul a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* 13. PAGE-SPECIFIC STYLES */
/* Page Header */
.page-header {
    padding: calc(var(--header-height) + 80px) 0 80px;
    text-align: center;
    background: linear-gradient(rgba(18, 24, 40, 0.8), rgba(18, 24, 40, 0.8)), url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?q=80&w=2070') no-repeat center center/cover;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Page */
.contact-page-section {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background-color: var(--dark-bg-2);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: var(--dark-bg-3);
}

.contact-text h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-text p {
    margin: 0;
    color: var(--text-medium);
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
}

.contact-form .form-group {
    flex: 1;
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    background-color: var(--dark-bg-1);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-family: var(--font-family);
    transition: all var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
}

.btn-block {
    width: 100%;
}

/* Legal Pages */
.legal-content {
    padding: 80px 0;
}

.legal-content .container {
    max-width: 800px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.legal-section p {
    line-height: 1.8;
}

.legal-section strong {
    color: var(--secondary-color);
}

/* 14. INTERACTIVE ELEMENTS */
/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--dark-bg-2);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 400px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.popup.active .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    background: none;
    border: none;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
}

.chat-widget a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-bg-1);
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(80, 227, 194, 0.3);
    transition: all var(--transition-speed);
}

.chat-widget a:hover {
    transform: scale(1.1) rotate(10deg);
}

/* 15. ANIMATIONS & KEYFRAMES */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 16. RESPONSIVE MEDIA QUERIES */

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .main-nav,
    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-content {
        text-align: center;
    }

    .process-timeline {
        flex-direction: column;
        gap: 40px;
    }

    .process-timeline::before {
        display: none;
    }

    .process-item {
        padding-top: 80px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-col.about-col,
    .footer-col.contact-col {
        grid-column: 1 / -1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Mobile devices */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    section {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .slider-controls {
        width: 100%;
        left: 0;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-socials,
    .footer-contact {
        justify-content: center;
    }

    .footer-contact li {
        text-align: left;
    }

    .contact-wrapper {
        padding: 30px;
    }

    .contact-form .form-row {
        flex-direction: column;
    }

    .page-header {
        padding: calc(var(--header-height) + 60px) 0 60px;
    }
}