/* styles.css */

/* --- TABLE OF CONTENTS ---
1.  Root Variables & Global Styles
2.  Preloader & Utility Classes
3.  Header & Navigation
4.  Buttons & Forms
5.  Hero Section
6.  Why Choose Us (3D Flip Cards)
7.  Services Section
8.  Stats Counter Section
9.  Process Timeline Section
10. ROI Calculator Section
11. Testimonials Slider
12. CTA (Call to Action) Section
13. Footer
14. Page-Specific Styles (Contact, Legal)
15. Interactive Components (Chat, Back-to-Top, Popup)
16. Animations & Keyframes
17. Responsive Design (Media Queries)
--------------------------- */

/* 1. Root Variables & Global Styles
-------------------------------------- */
:root {
    --primary-color: #4A90E2;
    /* A professional blue */
    --secondary-color: #50E3C2;
    /* A vibrant teal/mint accent */
    --dark-blue: #0A192F;
    /* Deep navy for backgrounds */
    --light-blue: #112240;
    /* Lighter navy for cards */
    --slate: #8892B0;
    /* For body text */
    --light-slate: #CCD6F6;
    /* For headings and lighter text */
    --white: #FFFFFF;
    --font-primary: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    --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-primary);
    background-color: var(--dark-blue);
    color: var(--slate);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    color: var(--light-slate);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition-speed);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 100px 0;
}

.section-padding-top {
    padding-top: 100px;
}

.section-header {
    margin-bottom: 60px;
}

.section-header .subtitle {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-left: 30px;
}

.section-header .subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--secondary-color);
}

.text-center {
    text-align: center;
}

/* 2. Preloader & Utility Classes
-------------------------------------- */
.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.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-blue);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 3. Header & Navigation
-------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
    padding: 20px 0;
}

.header.scrolled {
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 75px;
    transition: var(--transition-speed);
}


.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--light-slate);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--light-slate);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* 4. Buttons & Forms
-------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--dark-blue);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--dark-blue);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--light-slate);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    background-color: var(--light-blue);
    border: 1px solid #233554;
    color: var(--light-slate);
    font-family: var(--font-primary);
    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 2px rgba(80, 227, 194, 0.3);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* 5. Hero Section
-------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--header-height) 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.8), rgba(17, 34, 64, 0.9)), url('https://source.unsplash.com/random/1600x900/?digital,marketing') no-repeat center center/cover;
    z-index: -1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
}

.hero-subtitle {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 6. Why Choose Us (3D Flip Cards)
-------------------------------------- */
.why-choose-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    perspective: 1000px;
}

.flip-card-container {
    background-color: transparent;
    width: 100%;
    height: 350px;
}

.flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card-container:hover .flip-card {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background-color: var(--light-blue);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-dark);
    border: 1px solid #233554;
}

.card-back {
    transform: rotateY(180deg);
}

.card-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.card-front h3 {
    margin-bottom: 15px;
}

.card-back h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.flip-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--slate);
    font-weight: 500;
    opacity: 0.7;
}

/* 7. Services Section
-------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--light-blue);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #233554;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    display: inline-block;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* 8. Stats Counter Section
-------------------------------------- */
.stats-section {
    background: linear-gradient(rgba(17, 34, 64, 0.95), rgba(17, 34, 64, 0.95)), url('https://source.unsplash.com/random/1600x900/?stats,data') no-repeat center center/cover;
    padding: 80px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
}

.stat-item p {
    font-size: 1rem;
    color: var(--light-slate);
    margin-bottom: 0;
}

/* 9. Process Timeline Section
-------------------------------------- */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--light-blue);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 20px 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-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--dark-blue);
    border: 4px solid var(--secondary-color);
    top: 35px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--light-blue);
    position: relative;
    border-radius: var(--border-radius);
    border: 1px solid #233554;
}

.timeline-step {
    position: absolute;
    top: -20px;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(80, 227, 194, 0.1);
    z-index: -1;
}

.timeline-item:nth-child(odd) .timeline-step {
    right: 20px;
}

.timeline-item:nth-child(even) .timeline-step {
    left: 20px;
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* 10. ROI Calculator Section
-------------------------------------- */
.roi-calculator-section {
    background-color: var(--light-blue);
}

.roi-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background-color: var(--dark-blue);
    padding: 60px;
    border-radius: var(--border-radius);
}

.roi-content h2 {
    margin-bottom: 20px;
}

.roi-form .form-group label {
    display: flex;
    justify-content: space-between;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #233554;
    border-radius: 5px;
    outline: none;
    padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    cursor: pointer;
    border-radius: 50%;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    cursor: pointer;
    border-radius: 50%;
}

.roi-results {
    margin-top: 30px;
    background-color: var(--light-blue);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
}

.roi-results h4 {
    margin-bottom: 10px;
    color: var(--slate);
}

#roi-result {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* 11. Testimonials Slider
-------------------------------------- */
.testimonial-slider-container {
    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%;
    padding: 40px;
    text-align: center;
    display: none;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--secondary-color);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--light-slate);
    margin-bottom: 20px;
}

.testimonial-author {
    color: var(--white);
    margin-bottom: 5px;
}

.testimonial-company {
    color: var(--secondary-color);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--light-blue);
    border: 1px solid #233554;
    color: var(--light-slate);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-speed);
    font-size: 1.2rem;
}

.slider-btn:hover {
    background: var(--secondary-color);
    color: var(--dark-blue);
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}


/* 12. CTA (Call to Action) Section
-------------------------------------- */
.cta-section {
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 20px;
}

.cta-content p {
    max-width: 600px;
    margin: 0 auto 30px;
}

/* 13. Footer
-------------------------------------- */
.footer {
    background-color: var(--light-blue);
    padding: 80px 0 30px;
    border-top: 1px solid #233554;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: var(--slate);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--slate);
    border-radius: 50%;
}

.footer-social a:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
    color: var(--light-slate);
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--slate);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--slate);
}

.footer-contact ul li i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.footer-contact ul li a {
    color: var(--slate);
}

.footer-contact ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #233554;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-legal a {
    color: var(--slate);
    margin: 0 10px;
}

.footer-legal a:hover {
    color: var(--secondary-color);
}

.footer-legal span {
    color: #233554;
}

/* 14. Page-Specific Styles (Contact, Legal)
-------------------------------------- */
.page-header {
    padding: 180px 0 100px;
    text-align: center;
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(17, 34, 64, 1));
}

.page-header p {
    max-width: 600px;
    margin: 10px auto 0;
}

.breadcrumbs a {
    color: var(--slate);
}

.breadcrumbs span {
    color: var(--secondary-color);
}

.legal-content .content-wrapper {
    background-color: var(--light-blue);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-bottom: 20px;
}

.legal-content h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
}

.legal-content ul li {
    margin-bottom: 10px;
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: flex-start;
}

.contact-info-block {
    background-color: var(--light-blue);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    align-items: center;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--dark-blue);
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-text h4 {
    margin-bottom: 5px;
    color: var(--light-slate);
}

.info-text p,
.info-text a {
    margin-bottom: 0;
    color: var(--slate);
}

.contact-form-block {
    background-color: var(--light-blue);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-form-block h3 {
    margin-bottom: 20px;
}

/* 15. Interactive Components (Chat, Back-to-Top, Popup)
-------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--secondary-color);
    color: var(--dark-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.2rem;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.chat-button {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    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;
    left: 0;
    width: 350px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-dark);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-widget.open .chat-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    color: var(--white);
    font-size: 1.1rem;
}

.close-chat {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    background-color: #f4f7f9;
}

.chat-message {
    margin-bottom: 15px;
}

.chat-message p {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    display: inline-block;
}

.chat-message.received p {
    background: #e9eef2;
    color: #333;
    border-bottom-left-radius: 2px;
}

.chat-message.sent {
    text-align: right;
}

.chat-message.sent p {
    background: var(--primary-color);
    border-bottom-right-radius: 2px;
}


.chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.chat-footer input {
    flex: 1;
    border: none;
    padding: 10px;
    border-radius: var(--border-radius);
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    border-radius: var(--border-radius);
    margin-left: 10px;
    cursor: pointer;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.8);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--light-blue);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 450px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--slate);
}

.popup-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.popup-content h3 {
    margin-bottom: 10px;
}

.popup-content button {
    margin-top: 20px;
}

/* 16. Animations & Keyframes
-------------------------------------- */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

[class*="animate-"] {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--delay, 0s);
}

.animate-up {
    transform: translateY(50px);
}

.animate-fade-in {
    transform: translateY(0);
}

.animate-card {
    transform: translateY(50px);
}

.animate-from-left {
    transform: translateX(-50px);
}

.animate-from-right {
    transform: translateX(50px);
}

.in-view {
    opacity: 1;
    transform: translate(0, 0);
}

/* 17. Responsive Design (Media Queries)
-------------------------------------- */

/* Tablets and smaller desktops */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .section-padding {
        padding: 80px 0;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 60%;
        max-width: 300px;
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        background-color: var(--light-blue);
        box-shadow: -10px 0 30px -15px rgba(2, 12, 27, 0.7);
        transition: right 0.4s ease-in-out;
    }

    .nav-menu.active {
        right: 0;
    }

    .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);
    }

    .why-choose-us-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }
}


/* Mobile devices */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    body {
        font-size: 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .why-choose-us-grid,
    .services-grid,
    .stats-grid,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .flip-card-container {
        height: auto;
        min-height: 300px;
    }

    .process-timeline::after {
        left: 10px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 20px;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-step,
    .timeline-item:nth-child(even) .timeline-step {
        left: 20px;
    }

    .roi-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .slider-btn {
        display: none;
    }

    /* On smaller screens, swipe might be better, for now hiding */

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .chat-widget {
        bottom: 20px;
        left: 20px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}