/*
  ============================================================
  Futuristic Digital Marketing Agency - Full Stylesheet
  Theme: "Digital Orbit"
  Version: 1.0
  ============================================================

  TABLE OF CONTENTS
  -----------------
  1.  CSS VARIABLES & GLOBAL RESET
  2.  HELPER CLASSES & UTILITIES
  3.  KEYFRAME ANIMATIONS
  4.  PRELOADER & SCROLL-FADE ANIMATIONS
  5.  HEADER & NAVIGATION
  6.  HERO SECTION (INCL. 3D PANEL)
  7.  SERVICES SECTION
  8.  ABOUT US SECTION
  9.  ROI CALCULATOR SECTION
  10. PRICING SECTION
  11. TESTIMONIALS SECTION
  12. CALL TO ACTION (CTA) SECTION
  13. FOOTER
  14. MOCK LIVE CHAT WIDGET
  15. CONTACT PAGE STYLES
  16. LEGAL & GENERIC PAGE STYLES
  17. RESPONSIVENESS (MEDIA QUERIES)

*/


/* ---------------------------------- */
/* 1. CSS VARIABLES & GLOBAL RESET    */
/* ---------------------------------- */
:root {
    --primary-color: #00aaff;
    /* Vibrant, techy blue */
    --secondary-color: #9f00ff;
    /* A futuristic purple */
    --accent-color: #00ffcc;
    /* A glowing cyan/mint accent */
    --bg-dark-1: #0a0f1e;
    /* Deep space blue */
    --bg-dark-2: #12182d;
    /* Slightly lighter surface color */
    --bg-dark-3: #1a223f;
    /* Card/panel background */
    --text-light: #e0e5f0;
    /* Light, readable text */
    --text-medium: #a0a8c0;
    /* Softer text for subtitles */
    --text-dark: #050810;
    --border-color: rgba(0, 170, 255, 0.2);
    --border-hover-color: rgba(0, 170, 255, 0.6);
    --glow-color-primary: rgba(0, 170, 255, 0.5);
    --glow-color-secondary: rgba(159, 0, 255, 0.5);
    --shadow-color: rgba(0, 0, 0, 0.3);

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --transition-smooth: all 0.3s ease-in-out;
    --transition-fast: all 0.2s ease-in-out;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-dark-2);
}

/* Custom Scrollbar for Webkit browsers */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark-2);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    border: 2px solid var(--bg-dark-2);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}


body {
    background-color: var(--bg-dark-1);
    color: var(--text-light);
    font-family: var(--font-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.3;
    text-wrap: balance;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ---------------------------------- */
/* 2. HELPER CLASSES & UTILITIES      */
/* ---------------------------------- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    color: var(--primary-color);
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-intro {
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-medium);
    font-size: 1.1rem;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    background-size: 200% auto;
    color: #fff;
    border: none;
    box-shadow: 0 5px 20px var(--glow-color-primary);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--glow-color-secondary);
    background-position: right center;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark-1);
    box-shadow: 0 5px 20px var(--glow-color-primary);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}


/* ---------------------------------- */
/* 3. KEYFRAME ANIMATIONS             */
/* ---------------------------------- */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes dot-bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

@keyframes rotate-hue {
    to {
        filter: hue-rotate(360deg);
    }
}

@keyframes rotate-glow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ---------------------------------- */
/* 4. PRELOADER & SCROLL-FADE         */
/* ---------------------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark-1);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease 0.3s, visibility 0.5s ease 0.3s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo img {
    width: 150px;
    filter: brightness(0) invert(1);
    animation: pulse 1.5s infinite ease-in-out;
}

.preloader-dots {
    display: flex;
    margin-top: 25px;
}

.dot {
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: dot-bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

.animate-in {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up {
    transform: translateY(50px);
}

.fade-in-left {
    transform: translateX(-50px);
}

.fade-in-right {
    transform: translateX(50px);
}

.zoom-in {
    transform: scale(0.9);
}

.animate-in.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}


/* ---------------------------------- */
/* 5. HEADER & NAVIGATION             */
/* ---------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.header.scrolled {
    background-color: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px var(--shadow-color);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px;
    filter: brightness(0) invert(1);
    transition: height 0.3s ease;
}


.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle,
.nav-close {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-light);
    background: none;
    border: none;
}


/* ---------------------------------- */
/* 6. HERO SECTION                    */
/* ---------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, var(--bg-dark-2) 0%, var(--bg-dark-1) 70%);
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    animation: float 15s infinite ease-in-out, rotate-hue 20s infinite linear alternate;
    will-change: transform;
}

.shape-1 {
    width: 450px;
    height: 450px;
    background-color: var(--glow-color-primary);
    top: 10%;
    left: 5%;
    animation-duration: 12s;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background-color: var(--glow-color-secondary);
    bottom: 5%;
    right: 10%;
    animation-duration: 18s;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background-color: var(--accent-color);
    opacity: 0.2;
    top: 50%;
    right: 25%;
    animation-duration: 16s;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: center;
    gap: 60px;
}

.hero-text {
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 25px;
    background: linear-gradient(90deg, #fff, var(--text-medium));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-visual {
    perspective: 1500px;
}

.hero-3d-panel {
    position: relative;
    background: linear-gradient(145deg, var(--bg-dark-3), var(--bg-dark-2));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 60px var(--shadow-color);
    transform-style: preserve-3d;
    transition: transform 0.1s linear;
    will-change: transform;
}

.panel-layer-1 {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    transform: translateZ(20px);
    position: absolute;
    top: 15px;
    left: 15px;
}

.panel-layer-2 img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    opacity: 0.9;
    object-fit: cover;
    transform: translateZ(50px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.panel-layer-3 {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-primary);
    transform: translateZ(80px);
    backdrop-filter: blur(5px);
}


/* ---------------------------------- */
/* 7. SERVICES SECTION                */
/* ---------------------------------- */
.services-section {
    background-color: var(--bg-dark-2);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-dark-3);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-color);
    border-color: var(--border-hover-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 170, 255, 0.15) 0%, transparent 40%);
    transition: opacity 0.5s ease;
    opacity: 0;
    transform-origin: center;
    animation: rotate-glow 8s infinite linear;
    z-index: -1;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    display: inline-block;
    transition: var(--transition-smooth);
}

.service-card:hover .service-card-icon {
    transform: scale(1.1);
    color: var(--accent-color);
}

.service-card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card-description {
    color: var(--text-medium);
    margin-bottom: 25px;
    min-height: 80px;
}

.service-card-link {
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--primary-color);
    display: inline-block;
}

.service-card-link i {
    transition: transform 0.3s ease;
    margin-left: 5px;
    vertical-align: middle;
}

.service-card:hover .service-card-link i {
    transform: translateX(5px);
}


/* ---------------------------------- */
/* 8. ABOUT US SECTION                */
/* ---------------------------------- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-image-panel {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about-image-panel img {
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.about-image-panel:hover img {
    transform: scale(1.05);
}

.about-image-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(18, 24, 45, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    border: 1px solid var(--border-color);
    animation: slide-in-up 0.6s ease-out;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.about-content-panel .section-title {
    font-size: 2.5rem;
}

.about-content-panel p {
    color: var(--text-medium);
    margin-bottom: 25px;
}

.about-checklist {
    margin: 30px 0;
}

.about-checklist li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.about-checklist li i {
    color: var(--accent-color);
    font-size: 1.2rem;
}


/* ---------------------------------- */
/* 9. ROI CALCULATOR SECTION          */
/* ---------------------------------- */
.roi-calculator-section {
    background: linear-gradient(180deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 100%);
}

.calculator-wrapper {
    background: var(--bg-dark-3);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    gap: 40px;
    box-shadow: 0 20px 50px var(--shadow-color);
    margin-top: 30px;
}

.calculator-inputs {
    flex: 2;
}

.calculator-inputs .form-group {
    margin-bottom: 30px;
}

.calculator-inputs label {
    display: block;
    color: var(--text-medium);
    margin-bottom: 10px;
}

.calculator-inputs input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--bg-dark-2);
    border-radius: 5px;
    outline: none;
}

.calculator-inputs input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--bg-dark-3);
    box-shadow: 0 0 10px var(--glow-color-primary);
    transition: var(--transition-fast);
}

.calculator-inputs input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.range-value {
    display: block;
    text-align: right;
    margin-top: 5px;
    font-weight: 600;
    color: var(--accent-color);
    font-family: var(--font-primary);
}

.calculator-results {
    flex: 1;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 20px;
}

.result-box {
    background: var(--bg-dark-2);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.result-label {
    display: block;
    color: var(--text-medium);
    margin-bottom: 10px;
}

.result-box h3 {
    font-size: 2rem;
    font-weight: 700;
}

.result-box.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.result-box.highlight .result-label,
.result-box.highlight h3 {
    color: #fff;
}

.disclaimer-text {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-medium);
}


/* ---------------------------------- */
/* 10. PRICING SECTION                */
/* ---------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background: var(--bg-dark-3);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 40px var(--glow-color-primary);
}

.pricing-card.popular:hover {
    transform: scale(1.08) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 30px;
}

.pricing-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.pricing-subtitle {
    color: var(--text-medium);
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.pricing-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 5px;
    color: var(--primary-color);
}

.pricing-price .period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-medium);
    margin-left: 5px;
}

.pricing-price span.currency:not(.period) {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
}

.pricing-features {
    text-align: left;
    margin-bottom: 40px;
}

.pricing-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li i {
    font-size: 1.2rem;
}

.pricing-features li .fa-check {
    color: var(--accent-color);
}

.pricing-features li .fa-times {
    color: #ff4d4d;
}


/* ---------------------------------- */
/* 11. TESTIMONIALS SECTION           */
/* ---------------------------------- */
.testimonials-section {
    background-color: var(--bg-dark-2);
    overflow: hidden;
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 40px;
    margin: 0 15px;
    /* Creates gap between slides */
    background: var(--bg-dark-3);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-slide::before {
    content: "\f10d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.1;
}

.testimonial-text {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-medium);
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.author-name {
    display: block;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--text-light);
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-dark-3);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}


/* ---------------------------------- */
/* 12. CALL TO ACTION (CTA) SECTION   */
/* ---------------------------------- */
.cta-section {
    padding: 80px 0;
}

.cta-container {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.cta-content {
    flex-basis: 60%;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.cta-text {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-action {
    flex-basis: 30%;
    text-align: right;
}

.cta-action .btn {
    background: #fff;
    color: var(--secondary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-action .btn:hover {
    background: var(--bg-dark-1);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
}


/* ---------------------------------- */
/* 13. FOOTER                         */
/* ---------------------------------- */
.footer {
    background-color: var(--bg-dark-2);
    padding: 80px 0 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col-title {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--text-light);
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-logo {
    height: 60px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-about-text {
    color: var(--text-medium);
    margin-bottom: 25px;
    line-height: 1.8;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-dark-3);
    color: var(--text-medium);
    margin-right: 10px;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: var(--text-medium);
    display: inline-block;
    position: relative;
}

.footer-links ul li a::before {
    content: '\f105';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
    opacity: 0;
    transition: var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links ul li a:hover::before {
    opacity: 1;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-medium);
}

.footer-contact ul li i {
    color: var(--primary-color);
    margin-top: 5px;
    width: 20px;
    text-align: center;
}

.footer-contact a {
    color: var(--text-medium);
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    text-align: center;
    color: var(--text-medium);
    font-size: 0.9rem;
}


/* ---------------------------------- */
/* 14. MOCK LIVE CHAT WIDGET          */
/* ---------------------------------- */
.live-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 20px var(--glow-color-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-bubble.hidden {
    transform: scale(0);
    opacity: 0;
}

.chat-window {
    width: 350px;
    background-color: var(--bg-dark-2);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px var(--shadow-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    position: absolute;
    bottom: 80px;
    right: 0;
}

.chat-window.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.chat-header {
    background-color: var(--bg-dark-3);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.chat-header-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-chat {
    background: none;
    border: none;
    color: var(--text-medium);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 15px;
    height: 250px;
    overflow-y: auto;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    margin-bottom: 10px;
    line-height: 1.4;
}

.chat-message.bot {
    background-color: var(--bg-dark-3);
    border-bottom-left-radius: 2px;
}

.chat-footer {
    padding: 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chat-footer input {
    flex: 1;
    background-color: var(--bg-dark-3);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 15px;
    color: var(--text-light);
    outline: none;
}

.chat-footer button {
    background: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
}


/* ---------------------------------- */
/* 15. CONTACT PAGE STYLES            */
/* ---------------------------------- */
.page-header {
    padding: 150px 0 80px;
    background: linear-gradient(rgba(10, 15, 30, 0.8), rgba(10, 15, 30, 0.8)), url('https://images.pexels.com/photos/3184465/pexels-photo-3184465.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.breadcrumbs a,
.breadcrumbs span {
    color: var(--text-medium);
    font-size: 1.1rem;
}

.breadcrumbs i {
    margin: 0 10px;
}

.breadcrumbs span {
    color: var(--text-light);
}

.contact-page-section {
    padding-top: 0;
}

.contact-wrapper {
    display: flex;
    background-color: var(--bg-dark-2);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-top: -50px;
    /* Overlap with header */
    position: relative;
    z-index: 2;
}

.contact-info-panel {
    flex-basis: 40%;
    background: var(--bg-dark-3);
    padding: 50px;
}

.contact-info-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-info-panel p {
    color: var(--text-medium);
    margin-bottom: 30px;
}

.contact-details-list li {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-details-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-dark-2);
    border-radius: 50%;
}

.contact-details-list h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-details-list a,
.contact-details-list p {
    color: var(--text-medium);
}

.contact-details-list a:hover {
    color: var(--primary-color);
}

.contact-form-wrapper {
    flex-basis: 60%;
    padding: 50px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-medium);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    background-color: var(--bg-dark-1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--glow-color-primary);
}

textarea {
    resize: vertical;
}

/* Success Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1002;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg-dark-2);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 450px;
    border: 1px solid var(--border-color);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.popup-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.popup-content p {
    color: var(--text-medium);
    margin-bottom: 30px;
}


/* ---------------------------------- */
/* 16. LEGAL & GENERIC PAGE STYLES    */
/* ---------------------------------- */
.main-content {
    padding: 80px 0;
}

.page-content {
    background: var(--bg-dark-2);
    padding: 50px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.page-content p,
.page-content li {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.page-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.page-content h2:first-of-type {
    margin-top: 1.5rem;
}

.page-content strong {
    color: var(--text-light);
    font-weight: 600;
}

.page-content ul {
    list-style: disc;
    padding-left: 25px;
}


/* ---------------------------------- */
/* 17. RESPONSIVENESS                 */
/* ---------------------------------- */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pricing-card:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 20px auto 0;
    }
}

@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin: 0 auto 50px;
        max-width: 400px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image-panel {
        margin: 0 auto 40px;
        max-width: 550px;
    }

    .calculator-wrapper {
        flex-direction: column;
    }

    .calculator-results {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .cta-container {
        flex-direction: column;
        text-align: center;
    }

    .cta-action {
        text-align: center;
        margin-top: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-col.footer-about,
    .footer-col.footer-contact {
        grid-column: 1 / -1;
    }

    .contact-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {

    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background-color: var(--bg-dark-2);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        z-index: 1001;
    }

    .nav-menu.show {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        font-size: 1.5rem;
        gap: 40px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 30px;
        right: 30px;
        font-size: 2rem;
    }

    .menu-toggle {
        display: block;
    }

    .header-actions .contactButton {
        display: none;
    }

    .section {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-description {
        min-height: auto;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        max-width: 450px;
        margin: 0 auto;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .calculator-results {
        grid-template-columns: 1fr;
    }

    .testimonial-slider-wrapper {
        padding: 0 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .page-content,
    .contact-info-panel,
    .contact-form-wrapper {
        padding: 30px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 80%;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-container {
        padding: 40px 20px;
    }

    .popup-content {
        width: 90%;
        padding: 30px 20px;
    }
}