/*
================================================
DIGITAL MARKETING WEBSITE STYLESHEET
================================================
Author: AI Assistant
Version: 1.0
------------------------------------------------
TABLE OF CONTENTS
------------------------------------------------
1.  :root & CSS Variables
2.  Global Styles & Resets
3.  Typography & Base Elements
4.  Utility Classes
5.  Animations & Keyframes
6.  Header & Navigation
7.  Footer
8.  Hero Section
9.  About / Stats Section
10. Services Section (3D Flip Cards)
11. Why Choose Us Section (Accordion)
12. Pricing Section
13. ROI Calculator Section
14. Testimonials Section (Slider)
15. CTA Section
16. Page-Specific Styles (Contact, Legal)
17. Interactive Elements (Popup, Live Chat)
18. Responsive Design (Media Queries)
================================================
*/

/* 1. :root & CSS Variables
------------------------------------------------ */
:root {
    --dark-navy: #020c1b;
    --navy: #0a192f;
    --light-navy: #112240;
    --lightest-navy: #233554;
    --navy-shadow: rgba(2, 12, 27, 0.7);
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --teal: #00A78E;
    /* Primary Accent */
    --teal-light: #00c4a7;
    --teal-dark: #008a74;
    --teal-tint: rgba(0, 167, 142, 0.1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    --border-radius: 4px;
    --header-height: 100px;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* 2. Global Styles & Resets
------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--slate) var(--navy);
}

body {
    background-color: var(--navy);
    color: var(--light-slate);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* 3. Typography & Base Elements
------------------------------------------------ */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0.75rem;
    color: var(--lightest-slate);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(40px, 8vw, 80px);
}

h2 {
    font-size: clamp(32px, 5vw, 48px);
}

h3 {
    font-size: clamp(24px, 4vw, 32px);
}

h4 {
    font-size: clamp(20px, 3vw, 24px);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: var(--transition);
}

a:hover,
a:focus {
    color: var(--teal-light);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

ul,
ol {
    list-style: none;
}

img,
svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

section {
    padding: 100px 0;
    overflow: hidden;
}

/* 4. Utility Classes
------------------------------------------------ */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    font-size: clamp(26px, 5vw, 32px);
    width: 100%;
    white-space: nowrap;
}

.section-heading::after {
    content: '';
    display: block;
    position: relative;
    top: -2px;
    width: 100%;
    max-width: 300px;
    height: 1px;
    background-color: var(--lightest-navy);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-mono);
    font-size: 14px;
    text-decoration: none !important;
}

.btn-primary {
    background-color: transparent;
    color: var(--teal);
    border: 1px solid var(--teal);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--teal-tint);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 167, 142, 0.1);
}

.btn-secondary {
    background-color: var(--teal);
    color: var(--navy);
    border: 1px solid var(--teal);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--teal-light);
    border-color: var(--teal-light);
    transform: translateY(-3px);
    color: var(--navy);
    box-shadow: 0 5px 15px rgba(0, 167, 142, 0.2);
}

/* 5. Animations & Keyframes
------------------------------------------------ */
.fade-in {
    opacity: 0;
    animation: fadeInAnimation 1s ease-in-out forwards;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInAnimation {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--teal);
    }
}

@keyframes slide-in-left {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-right {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 var(--teal-tint);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 167, 142, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 167, 142, 0);
    }
}

/* 6. Header & Navigation
------------------------------------------------ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(10px);
    background-color: rgba(10, 25, 47, 0.85);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.header.scrolled {
    box-shadow: 0 10px 30px -10px var(--navy-shadow);
}

.header.hidden {
    transform: translateY(-100%);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    z-index: 10;
}

.logo img,
.logo object {
    height: 80px;
    transition: var(--transition);
    filter: brightness(0) invert(1);
}

.logo a:hover img,
.logo a:hover object {
    filter: brightness(1.2);
}

.nav {
    display: block;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-list li {
    font-family: var(--font-mono);
    font-size: 14px;
    counter-increment: item 1;
}

.nav-list li a {
    color: var(--lightest-slate);
    padding: 10px;
    position: relative;
}

.nav-list li a::before {
    content: '0' counter(item) '.';
    color: var(--teal);
    margin-right: 5px;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--teal);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--teal);
    transition: all 0.3s ease-in-out;
}

.mobile-menu {
    display: none;
}

/* 7. Footer
------------------------------------------------ */
.footer {
    background-color: var(--dark-navy);
    color: var(--slate);
    padding: 50px 0 20px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-about .footer-logo img,
.footer-about .footer-logo object {
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-about p {
    font-size: 14px;
    line-height: 1.7;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--slate);
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid var(--lightest-navy);
}

.social-links a:hover {
    color: var(--teal);
    background-color: var(--lightest-navy);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
    color: var(--lightest-slate);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background-color: var(--teal);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--slate);
    font-size: 14px;
}

.footer-links ul li a:hover {
    color: var(--teal);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-contact ul li i {
    color: var(--teal);
    margin-top: 4px;
}

.footer-contact ul li a {
    color: var(--slate);
}

.footer-contact ul li a:hover {
    color: var(--teal);
}

.footer-bottom {
    border-top: 1px solid var(--lightest-navy);
    padding-top: 20px;
    font-size: 12px;
    font-family: var(--font-mono);
}

.footer-bottom p {
    margin: 0;
}

/* 8. Hero Section
------------------------------------------------ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
}

.hero-content {
    max-width: 800px;
}

.hero-content .subtitle {
    font-family: var(--font-mono);
    color: var(--teal);
    font-size: clamp(14px, 3vw, 16px);
    margin-bottom: 20px;
}

.hero-content h1 {
    margin: 0;
}

.hero-content .big-heading {
    color: var(--slate);
    margin-top: 10px;
}

.hero-content p {
    margin-top: 25px;
    max-width: 540px;
    font-size: 18px;
}

.hero-content .btn {
    margin-top: 40px;
    padding: 1.2rem 2.5rem;
    font-size: 16px;
    animation: pulse 2s infinite;
}

.typed-text {
    display: inline-block;
    color: var(--lightest-slate);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--teal);
    animation: typing 2.5s steps(30, end) forwards, blink-caret .75s step-end infinite;
}

.hero-3d-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    perspective: 1000px;
}

.shape {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--teal-tint);
    border: 1px solid var(--teal);
    transform-style: preserve-3d;
}

.shape.s1 {
    top: 15%;
    right: 10%;
    animation: rotate3d 20s linear infinite;
}

.shape.s2 {
    top: 70%;
    right: 25%;
    width: 80px;
    height: 80px;
    animation: rotate3d 25s linear infinite reverse;
}

.shape.s3 {
    top: 40%;
    left: 10%;
    width: 30px;
    height: 30px;
    animation: rotate3d 15s linear infinite;
}

.shape.s4 {
    top: 80%;
    left: 5%;
    width: 60px;
    height: 60px;
    animation: rotate3d 30s linear infinite reverse;
}

@keyframes rotate3d {
    from {
        transform: rotateX(0) rotateY(0) rotateZ(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}


/* 9. About / Stats Section
------------------------------------------------ */
.stats-section {
    background-color: var(--dark-navy);
}

.stats-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    background-color: var(--light-navy);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--lightest-navy);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px -10px var(--navy-shadow);
}

.stat-item i {
    font-size: 40px;
    color: var(--teal);
    margin-bottom: 15px;
}

.stat-item .stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--lightest-slate);
    margin-bottom: 5px;
}

.stat-item .stat-label {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--slate);
}

/* 10. Services Section (3D Flip Cards)
------------------------------------------------ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 350px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--lightest-navy);
    background-color: var(--light-navy);
}

.flip-card-front {
    color: var(--lightest-slate);
}

.flip-card-front i {
    font-size: 50px;
    color: var(--teal);
    margin-bottom: 20px;
}

.flip-card-front h3 {
    color: var(--lightest-slate);
}

.flip-card-back {
    background-color: var(--lightest-navy);
    color: var(--navy);
    transform: rotateY(180deg);
}

.flip-card-back h3 {
    color: var(--navy);
}

.flip-card-back p {
    font-size: 14px;
    margin-bottom: 20px;
}

.flip-card-back .btn {
    border-color: var(--navy);
    color: var(--navy);
}

.flip-card-back .btn:hover {
    background-color: var(--navy);
    color: var(--white);
}

/* 11. Why Choose Us Section (Accordion)
------------------------------------------------ */
.why-us-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.why-us-image {
    position: relative;
}

.why-us-image img {
    border-radius: var(--border-radius);
    position: relative;
    z-index: 1;
}

.why-us-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 20px;
    left: 20px;
    border: 2px solid var(--teal);
    border-radius: var(--border-radius);
    z-index: 0;
    transition: var(--transition);
}

.why-us-image:hover::before {
    top: 15px;
    left: 15px;
}

.accordion-item {
    background-color: var(--light-navy);
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    border: 1px solid var(--lightest-navy);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    text-align: left;
    color: var(--lightest-slate);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: var(--lightest-navy);
}

.accordion-header.active {
    background-color: var(--lightest-navy);
}

.accordion-icon {
    transition: transform 0.3s ease-in-out;
    color: var(--teal);
}

.accordion-header.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.accordion-content p {
    padding: 0 20px 20px;
    margin: 0;
    font-size: 15px;
}

/* 12. Pricing Section
------------------------------------------------ */
.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    font-family: var(--font-mono);
}

.toggle-switch {
    width: 60px;
    height: 30px;
    background-color: var(--light-navy);
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--lightest-navy);
}

.toggle-slider {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: var(--white);
    border-radius: 50%;
    top: 2px;
    left: 3px;
    transition: transform 0.3s;
}

#pricing-toggle-checkbox:checked+.toggle-switch .toggle-slider {
    transform: translateX(30px);
}

.pricing-toggle label {
    color: var(--slate);
    transition: color 0.3s;
}

.pricing-toggle .monthly-label.active,
.pricing-toggle .yearly-label.active {
    color: var(--teal);
}

#pricing-toggle-checkbox {
    display: none;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background-color: var(--light-navy);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--lightest-navy);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -15px var(--navy-shadow);
}

.pricing-card.popular {
    border-color: var(--teal);
    border-width: 2px;
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: -45px;
    background-color: var(--teal);
    color: var(--navy);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
}

.pricing-card .plan-name {
    font-family: var(--font-mono);
    color: var(--teal);
    font-size: 16px;
}

.pricing-card .price {
    font-size: 48px;
    font-weight: 700;
    color: var(--lightest-slate);
    margin: 10px 0;
}

.pricing-card .price .period {
    font-size: 16px;
    color: var(--slate);
}

.pricing-card .plan-description {
    font-size: 14px;
    height: 40px;
    margin-bottom: 20px;
}

.pricing-card .features {
    margin-top: 30px;
    margin-bottom: 30px;
}

.pricing-card .features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.pricing-card .features li i {
    color: var(--teal);
}

.pricing-card .btn {
    width: 100%;
}

.monthly-price,
.yearly-price {
    display: none;
}

.monthly-price.active,
.yearly-price.active {
    display: inline;
}

.save-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--teal);
    background-color: var(--teal-tint);
    padding: 3px 8px;
    border-radius: var(--border-radius);
    margin-left: 10px;
}

/* 13. ROI Calculator Section
------------------------------------------------ */
.roi-section {
    background: var(--dark-navy);
}

.roi-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--light-navy);
    padding: 50px;
    border-radius: var(--border-radius);
}

.roi-form .form-group {
    margin-bottom: 20px;
}

.roi-form label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    color: var(--light-slate);
}

.roi-form input,
.roi-form select {
    width: 100%;
    padding: 12px;
    background-color: var(--navy);
    border: 1px solid var(--lightest-navy);
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 16px;
}

.roi-form input:focus,
.roi-form select:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 2px var(--teal-tint);
}

.roi-results-content {
    text-align: center;
}

.roi-results-content h3 {
    color: var(--teal);
}

.roi-value {
    font-size: 72px;
    font-weight: 700;
    color: var(--lightest-slate);
    margin: 20px 0;
}

.roi-value sup {
    font-size: 32px;
    color: var(--teal);
}

.roi-explanation {
    font-size: 14px;
    color: var(--slate);
}

#calculate-roi-btn {
    width: 100%;
    margin-top: 10px;
}

/* 14. Testimonials Section (Slider)
------------------------------------------------ */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 40px;
    background: var(--light-navy);
    border-radius: var(--border-radius);
    text-align: center;
    box-sizing: border-box;
}

.testimonial-slide i {
    font-size: 40px;
    color: var(--teal);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 18px;
    font-style: italic;
    color: var(--lightest-slate);
    line-height: 1.7;
}

.testimonial-author {
    margin-top: 20px;
    font-weight: 700;
    color: var(--white);
}

.testimonial-author span {
    display: block;
    font-weight: 400;
    font-size: 14px;
    color: var(--slate);
    margin-top: 5px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--slate);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
}

.slider-btn:hover {
    background-color: var(--teal);
    border-color: var(--teal);
}

#prev-slide {
    margin-left: -50px;
}

#next-slide {
    margin-right: -50px;
}

.slider-dots {
    text-align: center;
    margin-top: 30px;
}

.slider-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--light-navy);
    border: 1px solid var(--slate);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--teal);
    border-color: var(--teal);
}


/* 15. CTA Section
------------------------------------------------ */
.cta-section {
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)), url('https://picsum.photos/1200/400?grayscale&blur=2') no-repeat center center/cover;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: clamp(30px, 5vw, 40px);
}

.cta-section p {
    max-width: 600px;
    margin: 20px auto 30px;
    font-size: 18px;
}

.cta-section .btn {
    padding: 1rem 2.2rem;
    font-size: 16px;
}


/* 16. Page-Specific Styles (Contact, Legal)
------------------------------------------------ */
/* Page Header */
.page-header-section {
    padding-top: 150px;
    padding-bottom: 50px;
    background: var(--dark-navy);
    text-align: center;
}

.page-header-section h1 {
    color: var(--teal);
}

/* Legal Pages */
.legal-page .page-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--light-navy);
    padding: 40px;
    border-radius: var(--border-radius);
}

.legal-page h2 {
    color: var(--teal);
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--lightest-navy);
    padding-bottom: 10px;
}

.legal-page .last-updated {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--slate);
    text-align: right;
    margin-bottom: 20px;
}

.legal-page ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.legal-page ul li {
    margin-bottom: 0.5rem;
}

.legal-page strong {
    color: var(--lightest-slate);
}

.legal-page .page-actions {
    margin-top: 40px;
    text-align: center;
}

/* Contact Page */
.contact-page-section {
    background: var(--dark-navy);
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    background-color: var(--light-navy);
    padding: 50px;
    border-radius: var(--border-radius);
}

.contact-info-block h2 {
    color: var(--teal);
}

.contact-details-list {
    margin-top: 30px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-detail-item .icon {
    font-size: 24px;
    color: var(--teal);
    width: 50px;
    height: 50px;
    background: var(--navy);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.contact-detail-item .info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--lightest-slate);
}

.contact-detail-item .info p,
.contact-detail-item .info a {
    color: var(--slate);
    margin: 0;
}

.contact-form-wrapper {
    background: var(--navy);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-form h2 {
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: none;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: var(--light-navy);
    border: 1px solid var(--lightest-navy);
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 16px;
    font-family: var(--font-sans);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-tint);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 15px;
}

.form-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--slate);
}

.form-group textarea~.form-icon {
    top: 22px;
    transform: translateY(0);
}

.btn-block {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

/* 17. Interactive Elements (Popup, Live Chat)
------------------------------------------------ */
/* Success Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--light-navy);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 450px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: var(--slate);
    text-decoration: none !important;
}

.popup-icon {
    font-size: 60px;
    color: var(--teal);
    margin-bottom: 20px;
}

.popup-content h3 {
    color: var(--lightest-slate);
}

.popup-content p {
    color: var(--slate);
    margin-bottom: 30px;
}

/* Live Chat Widget */
.live-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.chat-button {
    width: 60px;
    height: 60px;
    background-color: var(--teal);
    border-radius: 50%;
    border: none;
    color: var(--navy);
    font-size: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 167, 142, 0.4);
    transition: var(--transition);
}

.chat-button:hover {
    transform: scale(1.1);
    background-color: var(--teal-light);
}

/* Back to Top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--teal-tint);
    color: var(--teal);
    border: 1px solid var(--teal);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--teal);
    color: var(--navy);
}

/* 18. Responsive Design (Media Queries)
------------------------------------------------ */

/* Tablets and small desktops */
@media (max-width: 1080px) {
    .why-us-wrapper {
        grid-template-columns: 1fr;
    }

    .why-us-image {
        max-width: 500px;
        margin: 0 auto 40px;
    }

    .roi-wrapper {
        grid-template-columns: 1fr;
    }

    .roi-results {
        margin-top: 40px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    section {
        padding: 80px 0;
    }

    .container {
        width: 95%;
    }

    /* Header */
    .header {
        height: 80px;
        --header-height: 80px;
    }

    .nav,
    .header-actions .btn {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.open .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .mobile-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--light-navy);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .mobile-menu.open {
        transform: translateX(0);
    }

    .mobile-menu ul {
        text-align: center;
    }

    .mobile-menu ul li {
        margin-bottom: 30px;
        font-size: 20px;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s, transform 0.3s;
    }

    .mobile-menu.open ul li {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-menu.open ul li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .mobile-menu.open ul li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .mobile-menu.open ul li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .mobile-menu.open ul li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .mobile-menu.open ul li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .mobile-menu.open ul li:nth-child(6) {
        transition-delay: 0.6s;
    }

    .mobile-menu .btn-mobile {
        margin-top: 20px;
        padding: 1rem 2rem;
        font-size: 18px;
    }

    .mobile-menu li a {
        color: var(--lightest-slate);
        padding: 10px;
    }

    .mobile-menu li a.active,
    .mobile-menu li a:hover {
        color: var(--teal);
    }

    /* Hero */
    .hero {
        text-align: center;
    }

    .hero-content p {
        margin: 25px auto 0;
    }

    .hero-3d-shapes {
        display: none;
    }

    /* Section Headings */
    .section-heading {
        justify-content: center;
    }

    .section-heading::after {
        display: none;
    }

    /* Contact Page */
    .contact-page-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about .footer-logo,
    .social-links,
    .footer-links ul,
    .footer-contact ul {
        justify-content: center;
    }

    .footer-links h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Slider Nav */
    .slider-nav {
        display: none;
    }
}