/*
    Theme Name: Zero-G Stack
    Description: A modern, dark theme with 3D elements and vibrant accents for a digital marketing agency.
*/

/* ===== VARIABLES & ROOT ===== */
:root {
    /* Colors */
    --primary-color: #00F5C4;
    /* Vibrant Teal/Cyan */
    --secondary-color: #FF007A;
    /* Vibrant Magenta */
    --bg-dark-1: #0B0F29;
    /* Deep Space Blue */
    --bg-dark-2: #10163A;
    /* Slightly Lighter Space Blue */
    --bg-dark-3: #1B224E;
    /* Card and Panel Background */
    --text-light-1: #FFFFFF;
    --text-light-2: #E0E0E0;
    --text-light-3: #a8b2d1;
    --border-color: rgba(0, 245, 196, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.5);

    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    /* Spacing & Sizing */
    --header-height: 80px;
    --border-radius: 12px;
    --container-width: 1200px;
    --section-padding: 100px 0;

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-med: 0.4s ease-in-out;
    --transition-slow: 0.6s ease-in-out;
}

/* ===== BASE & RESET ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--bg-dark-1);
    color: var(--text-light-2);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-primary);
    color: var(--text-light-1);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light-3);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-light-1);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding);
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-med);
    text-align: center;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width var(--transition-med);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-dark-1);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light-1);
    border-color: var(--text-light-3);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-dark-1);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.section-header {
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    color: var(--primary-color);
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 1rem;
}

.section-intro {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-light-3);
}


/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-med);
    height: var(--header-height);
    background: transparent;
}

.header.scrolled {
    background: rgba(11, 15, 41, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 80px;
    filter: brightness(0) invert(1);
    transition: transform var(--transition-med);
}

.logo:hover img {
    transform: rotate(15deg) scale(1.1);
}

.logo-text {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-light-1);
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--text-light-2);
    font-family: var(--font-primary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-med);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light-1);
}

.nav-close {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light-1);
}


/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark-1);
}

.hero-bg-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, var(--bg-dark-2) 30%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 245, 196, 0.1), transparent 70%);
    filter: blur(100px);
    animation: glow-pulse 10s infinite alternate;
}

@keyframes glow-pulse {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.2) translate(50px, -30px);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-title {
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--text-light-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-animation-area {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
}

.hero-anchor {
    position: relative;
    width: 120px;
    height: 120px;
    background: var(--bg-dark-3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(0, 245, 196, 0.3);
    z-index: 10;
}

.hero-anchor img {
    width: 60px;
    height: auto;
}

.orbit-card {
    position: absolute;
    width: 120px;
    height: 50px;
    background: var(--bg-dark-3);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light-2);
    box-shadow: 0 10px 20px var(--shadow-color);
    transform-style: preserve-3d;
    transition: transform 0.1s linear;
}

.orbit-card i {
    color: var(--primary-color);
}

.orbit-card-1 {
    animation: orbit1 20s linear infinite;
}

.orbit-card-2 {
    animation: orbit2 22s linear infinite;
}

.orbit-card-3 {
    animation: orbit3 25s linear infinite;
}

.orbit-card-4 {
    animation: orbit4 18s linear infinite;
}

.orbit-card-5 {
    animation: orbit5 28s linear infinite;
}

@keyframes orbit1 {
    0% {
        transform: rotate(0deg) translateX(180px) rotate(0deg) translateZ(30px);
    }

    100% {
        transform: rotate(360deg) translateX(180px) rotate(-360deg) translateZ(30px);
    }
}

@keyframes orbit2 {
    0% {
        transform: rotate(0deg) translateX(220px) rotateY(45deg) rotate(0deg) translateZ(-20px);
    }

    100% {
        transform: rotate(-360deg) translateX(220px) rotateY(45deg) rotate(360deg) translateZ(-20px);
    }
}

@keyframes orbit3 {
    0% {
        transform: rotate(0deg) translateY(200px) rotateX(60deg) rotate(0deg) translateZ(50px);
    }

    100% {
        transform: rotate(360deg) translateY(200px) rotateX(60deg) rotate(-360deg) translateZ(50px);
    }
}

@keyframes orbit4 {
    0% {
        transform: rotate(0deg) translateX(-190px) rotateY(-30deg) rotate(0deg) translateZ(0px);
    }

    100% {
        transform: rotate(360deg) translateX(-190px) rotateY(-30deg) rotate(-360deg) translateZ(0px);
    }
}

@keyframes orbit5 {
    0% {
        transform: rotate(0deg) translateY(-230px) rotateX(-50deg) rotate(0deg) translateZ(-40px);
    }

    100% {
        transform: rotate(-360deg) translateY(-230px) rotateX(-50deg) rotate(360deg) translateZ(-40px);
    }
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background-color: var(--bg-dark-2);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-dark-3);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-med), box-shadow var(--transition-med);
    z-index: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 245, 196, 0.1), transparent 40%);
    transition: opacity var(--transition-slow);
    opacity: 0;
    z-index: -1;
    animation: rotate-glow 10s linear infinite;
}

.service-card:hover::before {
    opacity: 1;
}

@keyframes rotate-glow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.service-title {
    margin-bottom: 15px;
}

.service-description {
    margin-bottom: 20px;
    color: var(--text-light-3);
}

.service-link {
    font-weight: 600;
    font-family: var(--font-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link i {
    transition: transform var(--transition-fast);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ===== ABOUT SECTION ===== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image-content {
    position: relative;
    perspective: 1000px;
}

.about-image-content img {
    border-radius: var(--border-radius);
    transform: rotateY(-10deg) rotateX(5deg);
    box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-slow);
}

.about-image-content:hover img {
    transform: rotateY(0) rotateX(0);
}

.about-image-overlay {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--bg-dark-3);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
    display: flex;
    gap: 20px;
    backdrop-filter: blur(5px);
}

.about-stat h4 {
    font-size: 2rem;
    color: var(--primary-color);
}

.about-stat p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light-3);
}

.about-features-list {
    margin-top: 30px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.about-features-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-features-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.about-features-list h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.about-features-list p {
    margin: 0;
}


/* ===== INDUSTRIES SECTION ===== */
.industries-section {
    background-color: var(--bg-dark-2);
}

.industries-tabs-wrapper {
    background: var(--bg-dark-3);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.industries-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.industry-tab {
    padding: 12px 25px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-light-2);
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-med);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.industry-tab:hover,
.industry-tab.active {
    background: var(--primary-color);
    color: var(--bg-dark-1);
    border-color: var(--primary-color);
}

.industry-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 20px;
}

.industry-panel.active {
    display: grid;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-content h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.panel-content ul {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel-content li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-content li i {
    color: var(--primary-color);
}

.panel-image {
    border-radius: var(--border-radius);
    object-fit: cover;
    height: 100%;
    max-height: 350px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonial-slider-wrapper {
    position: relative;
    padding: 0 50px;
    cursor: grab;
}

.testimonial-slider-wrapper:active {
    cursor: grabbing;
}

.testimonial-slider {
    display: flex;
    gap: 30px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.testimonial-card {
    flex: 0 0 31%;
    /* Shows 3 cards with gaps */
    background: var(--bg-dark-3);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    min-width: 300px;
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.author-name {
    display: block;
    font-weight: 600;
    color: var(--text-light-1);
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-light-3);
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 40px);
    left: 20px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-dark-3);
    border: 1px solid var(--border-color);
    color: var(--text-light-1);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-med);
}

.slider-btn:hover {
    background: var(--primary-color);
    color: var(--bg-dark-1);
}

/* ===== INTERACTIVE TOOLS SECTION ===== */
.interactive-tools-section {
    background-color: var(--bg-dark-2);
}

.interactive-tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.tool-card {
    background: linear-gradient(145deg, var(--bg-dark-3), var(--bg-dark-2));
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.tool-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.tool-card h3 {
    margin-bottom: 10px;
}

#roi-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#roi-form .form-group {
    display: flex;
    flex-direction: column;
}

#roi-form label {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--text-light-3);
}

#roi-form input {
    background: var(--bg-dark-1);
    border: 1px solid var(--border-color);
    color: var(--text-light-1);
    padding: 10px;
    border-radius: 8px;
    font-size: 1rem;
}

.roi-result {
    margin-top: 25px;
    background: var(--bg-dark-1);
    padding: 20px;
    border-radius: 8px;
}

.roi-result p {
    margin: 0 0 5px 0;
    color: var(--text-light-3);
}

.roi-result h4 {
    color: var(--primary-color);
    font-size: 2rem;
}

.roi-result h4:not(:last-child) {
    margin-bottom: 10px;
}

.sample-report {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sample-report .btn-secondary {
    margin-top: 20px;
    align-self: flex-start;
}

.report-bg-image {
    position: absolute;
    bottom: -50px;
    right: -80px;
    width: 300px;
    height: 300px;
    background-image: url("https://i.ibb.co/L9gH3zJ/sample-report-mockup.png");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    transform: rotate(-15deg);
    pointer-events: none;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark-1);
}

.cta-container {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

.cta-glow-1,
.cta-glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none;
}

.cta-glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(0, 245, 196, 0.15);
    top: -100px;
    left: -100px;
}

.cta-glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(255, 0, 122, 0.15);
    bottom: -150px;
    right: -150px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark-2);
    padding: 80px 0 0 0;
    border-top: 1px solid var(--border-color);
}

.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: 20px;
    color: var(--text-light-1);
}

.footer-about .logo {
    height: 80px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-about-text {
    max-width: 300px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light-3);
    transition: all var(--transition-med);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--bg-dark-1);
    transform: translateY(-3px);
}

.footer-links ul li a {
    color: var(--text-light-3);
    padding: 5px 0;
    display: block;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact ul li i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-contact a,
.footer-contact span {
    color: var(--text-light-3);
}

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-light-3);
}

/* ===== MODALS & WIDGETS ===== */
/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg-dark-3);
    padding: 40px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 800px;
    border-radius: var(--border-radius);
    position: relative;
    animation: slideInUp 0.4s;
}

.modal-close {
    color: var(--text-light-3);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-light-1);
}

.modal-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.modal-content p {
    margin-bottom: 20px;
}

.modal-image-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

/* Live Chat */
#live-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bg-dark-1);
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 245, 196, 0.4);
    transition: transform var(--transition-med);
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--bg-dark-3);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px var(--shadow-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-med);
    pointer-events: none;
}

.chat-window.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.chat-header {
    padding: 15px 20px;
    background: var(--bg-dark-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-chat {
    background: none;
    border: none;
    color: var(--text-light-2);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 20px;
    height: 300px;
    overflow-y: auto;
}

.chat-message.agent p {
    background: var(--bg-dark-2);
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    display: inline-block;
    max-width: 80%;
}

.chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--border-color);
}

.chat-footer input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light-1);
    padding: 0 10px;
    outline: none;
}

.chat-footer button {
    background: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--bg-dark-1);
    font-size: 1.2rem;
    cursor: pointer;
}

/* ===== SCROLL-TRIGGERED ANIMATIONS ===== */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in.fade-in-up {
    transform: translateY(30px);
}

.animate-in.fade-in-left {
    transform: translateX(-30px);
}

.animate-in.fade-in-right {
    transform: translateX(30px);
}

.animate-in.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

[data-delay] {
    transition-delay: calc(var(--delay, 0) * 1ms);
}

/* ===== LEGAL PAGES STYLES ===== */
.page-header-section {
    padding: 160px 0 80px;
    text-align: center;
    background: var(--bg-dark-2);
    position: relative;
    overflow: hidden;
}

.page-header-section h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.breadcrumbs {
    color: var(--text-light-3);
}

.breadcrumbs a {
    color: var(--text-light-2);
}

.breadcrumbs i {
    font-size: 0.8rem;
    margin: 0 10px;
    color: var(--primary-color);
}

.legal-content-wrapper {
    background: var(--bg-dark-1);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-dark-3);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.legal-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-content p,
.legal-content li {
    line-height: 1.8;
    color: var(--text-light-3);
}

.legal-content strong {
    color: var(--text-light-2);
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-page-section {
    background-color: var(--bg-dark-2);
}

.page-header-desc {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--bg-dark-3);
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-info-panel h3 {
    margin-bottom: 1rem;
}

.contact-details-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-details-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-details-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-details-list h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light-2);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    background: var(--bg-dark-1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light-1);
    font-family: var(--font-secondary);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 245, 196, 0.3);
}

.contact-form .btn-full {
    width: 100%;
    padding: 18px;
    margin-top: 10px;
}

.popup {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.popup.active {
    display: flex;
}

.popup-content {
    background: var(--bg-dark-3);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    animation: slideInUp 0.4s;
    max-width: 500px;
}

.popup-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.popup-content h3 {
    margin-bottom: 10px;
}

.popup-content p {
    margin-bottom: 25px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .testimonial-card {
        flex: 0 0 48%;
        /* 2 cards */
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .section-padding {
        padding: 80px 0;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-dark-2);
        flex-direction: column;
        padding: 100px 40px 40px;
        transition: right var(--transition-med);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 30px;
        font-size: 2rem;
        color: var(--text-light-1);
        background: none;
        border: none;
        cursor: pointer;
    }

    .nav-toggle {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-animation-area {
        order: 1;
        margin-bottom: 40px;
        height: 400px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image-content {
        max-width: 500px;
        margin: 0 auto 60px;
    }

    .industry-panel {
        grid-template-columns: 1fr;
    }

    .panel-image {
        order: 1;
    }

    .panel-content {
        order: 2;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 98%;
        /* 1 card */
    }

    .testimonial-slider-wrapper {
        padding: 0;
    }

    .slider-controls {
        display: none;
        /* Rely on touch/drag */
    }

    .interactive-tools-container {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 24px;
    }

    .btn-lg {
        padding: 14px 28px;
    }

    .hero-section {
        padding-bottom: 60px;
    }

    .hero-animation-area {
        transform: scale(0.8);
    }

    .nav-menu {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .legal-content,
    .contact-wrapper {
        padding: 30px;
    }

    #live-chat-widget {
        bottom: 20px;
        right: 20px;
    }

    .chat-window {
        width: calc(100vw - 40px);
    }
}


/* Keyframes for animations */
@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}