/*
================================================
TABLE OF CONTENTS
================================================
1.  :root VARIABLES
2.  GENERAL RESETS & BODY STYLES
3.  TYPOGRAPHY
4.  LAYOUT & HELPERS (Container, Grid)
5.  COMPONENTS
    5.1  Header & Navigation
    5.2  Buttons
    5.3  Cards (Service, Testimonial)
    5.4  Forms
    5.5  Footer
    5.6  Popups
6.  PAGE-SPECIFIC STYLES
    6.1  Home - Hero Section
    6.2  Home - Services Section
    6.3  Home - Process Section
    6.4  Home - Stats Section
    6.5  Home - Testimonials Section
    6.6  Home - FAQ Section
    6.7  Home - CTA Section
    6.8  Legal & Contact Pages
7.  ANIMATIONS
    7.1  Keyframes
    7.2  Scroll Animation Classes
8.  RESPONSIVE MEDIA QUERIES
    8.1  Max-width: 1024px (Tablets)
    8.2  Max-width: 768px (Mobile)
================================================
*/

/* 1. :root VARIABLES */
:root {
    --primary-color: #00d4ff;
    /* Vibrant Cyan */
    --secondary-color: #ff3b76;
    /* Bright Pink/Magenta */
    --dark-blue: #0A2540;
    /* For text and dark elements */
    --light-bg: #F6F9FC;
    /* Very light, cool gray */
    --surface-color: #FFFFFF;
    /* White for cards, etc. */
    --border-color: #E6E6E6;
    --gray-text: #525f7f;
    --success-color: #2dce89;
    --error-color: #f5365c;

    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;

    --shadow-sm: 0 4px 6px rgba(10, 37, 64, 0.04);
    --shadow-md: 0 7px 14px rgba(10, 37, 64, 0.07), 0 3px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 15px 35px rgba(10, 37, 64, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

    --border-radius: 8px;
    --transition-fast: 0.2s ease-in-out;
    --transition-med: 0.4s ease-in-out;
}

/* 2. GENERAL RESETS & BODY STYLES */
*,
*::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(--light-bg);
    color: var(--gray-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
}

/* 3. TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark-blue);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 4. LAYOUT & HELPERS */
.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

section {
    padding: 6rem 0;
}

/* 5. COMPONENTS */

/* 5.1 Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    transition: background-color var(--transition-med), box-shadow var(--transition-med), padding var(--transition-med);
    padding: 1rem 0;
}

.header.scrolled {
    background-color: var(--surface-color);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    transition: height var(--transition-med);
}

.header.scrolled .header-wrapper {
    height: calc(var(--header-height) - 20px);
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.logo img {
    height: 80px;
    margin-right: 0.75rem;
    transition: height var(--transition-med);
}


.header.scrolled .logo a span {
    color: var(--dark-blue);
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-list a {
    color: var(--dark-blue);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-med);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-blue);
    margin: 5px 0;
    transition: all 0.4s ease;
    border-radius: 3px;
}

.mobile-menu {
    display: none;
}

/* 5.2 Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    border: 2px solid transparent;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-med);
    transform-style: preserve-3d;
}

.btn:active {
    transform: translateY(2px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-blue);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--surface-color);
    box-shadow: 0 4px 20px rgba(255, 59, 118, 0.4);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--surface-color);
    color: var(--dark-blue);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--dark-blue);
    color: var(--surface-color);
    border-color: var(--dark-blue);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* 5.3 Cards */
.service-card {
    background: var(--surface-color);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-med), box-shadow var(--transition-med);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: var(--shadow-lg);
}

.service-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--surface-color);
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.learn-more-link {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-block;
    margin-top: 1rem;
}

.learn-more-link i {
    transition: transform var(--transition-fast);
    margin-left: 0.25rem;
}

.learn-more-link:hover i {
    transform: translateX(5px);
}

/* 5.4 Forms (for contact page) */
.contact-form {
    background-color: var(--surface-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* 5.5 Footer */
.footer {
    background-color: var(--dark-blue);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h3 {
    color: var(--surface-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--surface-color);
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 80px;
    margin-right: 0.75rem;
    filter: brightness(0) invert(1);
}

.footer-about p {
    font-size: 0.9rem;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-blue);
    transform: translateY(-3px);
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul a,
.footer-contact ul a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links ul a:hover {
    color: var(--surface-color);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 5px;
    width: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* 5.6 Popups (for contact form) */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 37, 64, 0.8);
    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-overlay.visible {
    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%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.visible .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--gray-text);
    line-height: 1;
}

.popup-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.popup-content h3 {
    margin-bottom: 1rem;
}


/* 6. PAGE-SPECIFIC STYLES */

/* 6.1 Home - Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-color: var(--light-bg);
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: left;
}

.hero-content h1 {
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 650px;
    margin-bottom: 2.5rem;
    color: var(--gray-text);
}

.hero-content .highlight {
    color: var(--primary-color);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-background-shapes .shape {
    position: absolute;
    border-radius: 20%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    left: -150px;
    animation-duration: 25s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    bottom: -100px;
    right: 40%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 10%;
    right: 5%;
    animation-duration: 20s;
    animation-delay: -10s;
}

.shape-4 {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 10%;
    animation-duration: 18s;
    animation-delay: -2s;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

.shape-5 {
    width: 500px;
    height: 500px;
    bottom: -200px;
    right: -200px;
    opacity: 0.05;
    animation-duration: 35s;
    animation-delay: -15s;
}


/* 6.2 Home - Services Section */
.services-section {
    background-color: var(--surface-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* 6.3 Home - Process Section */
.process-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 35px;
    bottom: 35px;
    width: 4px;
    background-color: var(--border-color);
    z-index: 0;
}

.process-step {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 90px;
}

.process-step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 74px;
    height: 74px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background-color: var(--light-bg);
    z-index: 1;
}

.process-step-content {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    flex: 1;
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.process-step:hover .process-step-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.process-step-content i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* 6.4 Home - Stats Section */
.stats-section {
    background-color: var(--dark-blue);
    background-image: linear-gradient(45deg, var(--dark-blue), #0d315a);
    color: var(--surface-color);
    padding: 5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--surface-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}


/* 6.5 Home - Testimonials Section */
.testimonials-section {
    background-color: var(--surface-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--light-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.testimonial-quote-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--dark-blue);
}

.author-info span {
    font-size: 0.9rem;
    color: var(--gray-text);
}

/* 6.6 Home - FAQ Section */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: transform var(--transition-med);
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-med), padding var(--transition-med);
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
}

/* 6.7 Home - CTA Section */
.cta-section {
    background-color: var(--primary-color);
    background-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 6rem 0;
    text-align: center;
}

.cta-content h2 {
    color: var(--surface-color);
    font-size: 2.2rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-section .btn-primary {
    background-color: var(--surface-color);
    color: var(--dark-blue);
    box-shadow: 0 4px 20px rgba(10, 37, 64, 0.2);
}

.cta-section .btn-primary:hover {
    background-color: var(--dark-blue);
    color: var(--surface-color);
}

/* 6.8 Legal & Contact Pages */
.page-header-section {
    padding: 10rem 0 5rem;
    background-color: var(--dark-blue);
    color: var(--surface-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--light-bg), transparent);
}

.page-header-section h1 {
    color: var(--surface-color);
}

.page-header-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.main-content.legal-page,
.contact-page-section {
    padding: 4rem 0 6rem;
}

.page-content {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.legal-page h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-page h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
}

.legal-page ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.legal-page ul li {
    margin-bottom: 0.5rem;
}

.last-updated {
    font-style: italic;
    color: var(--gray-text);
    text-align: right;
    margin-bottom: 2rem;
}

.page-actions {
    text-align: center;
    margin-top: 3rem;
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info-block h2,
.contact-form-wrapper h2 {
    margin-bottom: 1.5rem;
}

.contact-details-list {
    margin-top: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-detail-item .icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1.5rem;
}

.contact-detail-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-detail-item p,
.contact-detail-item a {
    margin: 0;
    color: var(--gray-text);
}

.contact-detail-item a:hover {
    color: var(--primary-color);
}

/* 7. ANIMATIONS */

/* 7.1 Keyframes */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* 7.2 Scroll Animation Classes */
.animate-on-load,
.animate-on-scroll {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-load.fade-in-up,
.animate-on-scroll.visible.fade-in-up {
    animation: fade-in-up 0.8s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll.visible.slide-in-left {
    animation: slide-in-left 0.8s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll.visible.slide-in-right {
    animation: slide-in-right 0.8s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* 8. RESPONSIVE MEDIA QUERIES */

/* 8.1 Max-width: 1024px (Tablets) */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--surface-color);
        padding-top: calc(var(--header-height) + 2rem);
        transform: translateX(100%);
        transition: transform var(--transition-med);
        z-index: 999;
    }

    .mobile-menu.active {
        transform: translateX(0);
    }

    .mobile-menu ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .mobile-menu a {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--dark-blue);
        padding: 0.5rem 1rem;
    }

    .mobile-menu .btn-mobile {
        margin-top: 2rem;
        background-color: var(--primary-color);
        color: var(--dark-blue);
    }

    /* Animate hamburger icon */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .process-timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .process-step {
        padding-left: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .process-step-number {
        position: static;
        margin-bottom: 1.5rem;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }
}

/* 8.2 Max-width: 768px (Mobile) */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 4rem 0;
    }

    .logo a span {
        display: none;
    }

    .hero-section {
        min-height: auto;
        height: auto;
        padding: 8rem 0 4rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-content>div {
        margin-bottom: 2rem;
    }

    .footer-links ul {
        padding: 0;
    }

    .footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact ul li {
        justify-content: center;
        text-align: left;
    }

    .page-content,
    .contact-form {
        padding: 2rem;
    }
}

/* 7. ANIMATIONS (REVISED & SIMPLIFIED) */

/* 7.1 Keyframes (Only for background shapes) */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

/* 7.2 Scroll Animation Setup */
/* This is the base class for all elements that will animate on scroll.
   By default, they are invisible and ready for transition. */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Define the "before" state for different animation types */
.animate-on-scroll.fade-in-up {
    transform: translateY(40px);
}

.animate-on-scroll.slide-in-left {
    transform: translateX(-50px);
}

.animate-on-scroll.slide-in-right {
    transform: translateX(50px);
}

/* When the '.visible' class is added by JavaScript, the elements
   transition to their final, "visible" state. */
.animate-on-scroll.visible {
    opacity: 1;
    transform: none;
    /* or translateY(0), translateX(0) */
}