/* TABLE OF CONTENTS
---
1.  :root Variables
2.  Global Styles & Reset
3.  Typography
4.  Layout & Container
5.  Buttons & Links
6.  Header & Navigation
7.  Footer
8.  Hero Section
9.  Section Styles (General)
10. Services Section
11. About Section
12. Process Section
13. Stats Section
14. Testimonials Section
15. CTA Section
16. Page Header (for inner pages)
17. Legal Content Page
18. Contact Page
19. Interactive Components (Preloader, Back to Top, Chat Widget, Popup)
20. Animations & Effects (Reveal, Keyframes)
21. Responsive Design (Media Queries)
--- */

/* 1. :root Variables */
:root {
    --primary-color: #0B4C5F;
    /* Deep Teal/Blue */
    --secondary-color: #04A7A7;
    /* Bright Teal */
    --accent-color: #FF6700;
    /* Vibrant Orange */
    --dark-color: #121212;
    --dark-blue: #0A2239;
    --body-bg-color: #F8F9FA;
    --section-bg-color: #FFFFFF;
    --text-color: #555;
    --heading-color: #222;
    --light-gray-color: #E9ECEF;
    --white-color: #FFFFFF;
    --border-color: #DEE2E6;

    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --transition-speed: 0.3s ease;
}

/* 2. Global Styles & Reset */
*,
*::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(--body-bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition-speed);
}

a:hover {
    color: var(--accent-color);
}

/* 3. Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

/* 4. Layout & Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 100px 0;
}

/* 5. Buttons & Links */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-speed);
    text-transform: capitalize;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--white-color);
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 103, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white-color);
    border-color: var(--white-color);
}

.btn-secondary:hover {
    background-color: var(--white-color);
    color: var(--dark-blue);
    transform: translateY(-3px);
}

.btn-tertiary {
    background-color: var(--white-color);
    color: var(--primary-color);
    font-size: 0.9rem;
    padding: 10px 20px;
}

.btn-tertiary:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* 6. 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);
}

.header.scrolled {
    background-color: var(--white-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    height: calc(var(--header-height) - 10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 80px;
}

.nav-logo img {
    height: 45px;
    transition: var(--transition-speed);
}

.header.scrolled .nav-logo img {
    height: 40px;
    filter: invert(1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: var(--white-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.header.scrolled .nav-link {
    color: var(--heading-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header.scrolled .nav-link.active,
.header.scrolled .nav-link:hover {
    color: var(--accent-color);
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white-color);
    transition: all 0.3s ease-in-out;
}

.header.scrolled .bar {
    background-color: var(--dark-blue);
}


/* 7. Footer */
.footer {
    background-color: var(--dark-blue);
    color: var(--light-gray-color);
    padding: 80px 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .footer-logo img {
    height: 50px;
    margin-bottom: 1.5rem;
}

.footer-about p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    border-radius: 50%;
    font-size: 1rem;
}

.footer-social a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
    color: var(--white-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul a,
.footer-contact ul a {
    color: var(--light-gray-color);
    font-size: 0.95rem;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.footer-contact ul li i {
    margin-top: 5px;
    color: var(--secondary-color);
}

.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-legal a {
    color: var(--light-gray-color);
    margin: 0 0.5rem;
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.5);
}

/* 8. Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(45deg, var(--primary-color), var(--dark-blue));
    color: var(--white-color);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(4, 167, 167, 0.2), rgba(255, 103, 0, 0.2));
    animation: float 15s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -10%;
    right: -5%;
}

.shape-2 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 5%;
    animation-duration: 20s;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 20%;
    animation-duration: 12s;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white-color);
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 9. Section Styles (General) */
.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header .subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* 10. Services Section */
.services-section {
    background-color: var(--section-bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    cursor: pointer;
    perspective: 1000px;
    min-height: 320px;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition-speed);
}

.card-front {
    background-color: var(--body-bg-color);
    border: 1px solid var(--border-color);
}

.card-back {
    background: linear-gradient(45deg, var(--primary-color), var(--dark-blue));
    color: var(--white-color);
    transform: rotateY(180deg);
}

.service-card:hover {
    transform: rotateY(180deg);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--white-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.card-front h3 {
    font-size: 1.5rem;
}

.card-back h3 {
    color: var(--white-color);
}

.card-back p,
.card-front p {
    margin-bottom: 0;
}

.card-back ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    text-align: left;
}

.card-back ul li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.card-back ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: -1.5rem;
}

/* 11. About Section */
.about-section {
    background-color: var(--body-bg-color);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.about-image img {
    border-radius: var(--border-radius);
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-image-overlay {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 80%;
    height: 80%;
    border: 10px solid var(--secondary-color);
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0.5;
}

.about-content .subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.about-content h2 {
    font-size: 2.8rem;
}

.about-features {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.about-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.about-features i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* 12. Process Section */
.process-section {
    background-color: var(--section-bg-color);
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--light-gray-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 70px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 70px;
    text-align: left;
}

.timeline-item:nth-child(odd) .timeline-content {
    align-items: flex-end;
}

.timeline-item:nth-child(even) .timeline-content {
    align-items: flex-start;
}

.timeline-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--white-color);
    border: 4px solid var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    z-index: 1;
    transition: all var(--transition-speed);
}

.timeline-item:hover .timeline-icon {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-50%) scale(1.1);
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -30px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -30px;
}

.timeline-content {
    background-color: var(--body-bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.timeline-step {
    font-size: 3rem;
    font-weight: 800;
    color: var(--light-gray-color);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    margin-bottom: 0;
}

/* 13. Stats Section */
.stats-section {
    background: linear-gradient(rgba(10, 34, 57, 0.9), rgba(10, 34, 57, 0.9)), url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?q=80&w=2015&auto=format&fit=crop') no-repeat center center/cover;
    background-attachment: fixed;
    color: var(--white-color);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item h3,
.stat-item p {
    color: var(--white-color);
}

.stat-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 14. Testimonials Section */
.testimonials-section {
    background-color: var(--body-bg-color);
}

.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%;
    background-color: var(--white-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-text::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 2rem;
    color: var(--secondary-color);
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
}

.author-info h4 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-color);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0;
    left: 0;
}

.slider-controls button {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--heading-color);
    transition: var(--transition-speed);
}

.prev-btn {
    margin-left: -22px;
}

.next-btn {
    margin-right: -22px;
}

.slider-controls button:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
    border-color: var(--accent-color);
}

/* 15. CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--body-bg-color);
}

.cta-wrapper {
    background: linear-gradient(45deg, var(--primary-color), var(--dark-blue));
    padding: 4rem;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white-color);
    flex-wrap: wrap;
    gap: 2rem;
}

.cta-content h2 {
    color: var(--white-color);
    font-size: 2.2rem;
}

.cta-content p {
    color: var(--light-gray-color);
    max-width: 500px;
    margin-bottom: 0;
}

.cta-action {
    flex-shrink: 0;
}

/* 16. Page Header (for inner pages) */
.page-header {
    padding: 180px 0 100px;
    background: linear-gradient(45deg, var(--primary-color), var(--dark-blue));
    text-align: center;
    color: var(--white-color);
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--white-color);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.breadcrumbs {
    margin-top: 1rem;
}

.breadcrumbs a {
    color: var(--light-gray-color);
}

.breadcrumbs a:hover {
    color: var(--secondary-color);
}

.breadcrumbs span {
    color: var(--secondary-color);
}

/* 17. Legal Content Page */
.legal-content .content-wrapper {
    background-color: var(--section-bg-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h3 {
    margin-top: 2rem;
    font-size: 1.5rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

/* 18. Contact Page */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 4rem;
}

.contact-info-block,
.contact-form-block {
    background: var(--section-bg-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: var(--body-bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.info-text p {
    margin-bottom: 0;
}

.contact-form .form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(4, 167, 167, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 19. Interactive Components */
/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-blue);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--secondary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--accent-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-speed);
    z-index: 998;
}

.back-to-top.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 999;
}

.chat-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.chat-button:hover {
    transform: scale(1.1);
}

.chat-button .fa-times {
    display: none;
}

.chat-widget.open .fa-comments {
    display: none;
}

.chat-widget.open .fa-times {
    display: block;
}

.chat-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8);
    opacity: 0;
    visibility: hidden;
    transform-origin: bottom right;
    transition: all 0.3s ease;
}

.chat-widget.open .chat-popup {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 1rem 1.5rem;
}

.chat-header h3 {
    color: var(--white-color);
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.chat-header p {
    color: var(--light-gray-color);
    font-size: 0.9rem;
    margin: 0;
}

.chat-body {
    padding: 1.5rem;
    flex-grow: 1;
    height: 300px;
    overflow-y: auto;
}

.chat-message.received p {
    background-color: var(--body-bg-color);
    padding: 0.8rem 1rem;
    border-radius: 15px 15px 15px 0;
    display: inline-block;
    max-width: 80%;
    margin-bottom: 1rem;
}

.chat-footer {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 0.5rem;
    font-size: 1rem;
}

.chat-footer button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Success Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--white-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 450px;
    transform: scale(0.9);
    transition: all var(--transition-speed);
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
}

.popup-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.popup-content h3 {
    font-size: 1.8rem;
}

.popup-content p {
    margin-bottom: 2rem;
}

/* 20. Animations & Effects */
/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframes */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

/* 21. Responsive Design */
@media (max-width: 992px) {

    h1,
    .hero-title {
        font-size: 2.8rem;
    }

    h2,
    .section-header h2,
    .about-content h2 {
        font-size: 2.2rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--dark-blue);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: var(--header-height);
        justify-content: flex-start;
        gap: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-link {
        color: var(--white-color);
    }

    .header.scrolled .nav-link {
        color: var(--white-color);
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .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.scrolled .hamburger.active .bar,
    .hamburger.active .bar {
        background-color: var(--white-color);
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image {
        margin-bottom: 2rem;
    }

    .process-timeline::after {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        align-items: flex-start;
    }

    .timeline-icon {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 0;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }

    .cta-wrapper {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    h1,
    .hero-title {
        font-size: 2.5rem;
    }

    h2,
    .section-header h2,
    .about-content h2 {
        font-size: 2rem;
    }

    .hero {
        min-height: 600px;
        height: auto;
        padding: 150px 0;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-about,
    .footer-links,
    .footer-contact {
        text-align: center;
    }

    .footer-social,
    .footer-contact ul li {
        justify-content: center;
    }

    .footer-links h3::after,
    .footer-contact h3::after {
        left: 50%;
        margin-left: -15px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .slider-controls {
        display: none;
    }

    .testimonial-slide {
        padding: 2rem;
    }

    .chat-popup {
        width: calc(100vw - 40px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 12px 28px;
    }

    .header-actions .btn {
        display: none;
    }
}