/*
* ===================================================================
* File: styles.css
* Description: Main stylesheet for the Performance Digital Digital Marketing website.
* Version: 1.0
* ===================================================================
*/

/* -------------------------------------------------------------------
 * ## 1. Variables & Global Styles
 * ------------------------------------------------------------------- */
:root {
    --primary-color: #64FFDA;
    /* Bright Teal/Mint */
    --secondary-color: #CCD6F6;
    /* Light Slate */
    --dark-blue: #0A192F;
    /* Very Dark Blue (for backgrounds) */
    --navy-blue: #112240;
    /* Lighter Navy (for cards/elements) */
    --slate-gray: #8892B0;
    /* Slate Gray (for text) */
    --white: #FFFFFF;
    --black: #000000;
    --success-color: #28a745;
    --error-color: #dc3545;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;

    --header-height: 80px;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    --transition-speed: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--dark-blue);
    color: var(--slate-gray);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--secondary-color);
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--white);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    color: var(--primary-color);
    font-family: var(--font-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* -------------------------------------------------------------------
 * ## 2. UI Components (Buttons, Forms, etc.)
 * ------------------------------------------------------------------- */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-blue);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--dark-blue);
    border: 1px solid var(--slate-gray);
    border-radius: var(--border-radius);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.2);
}

.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364FFDA' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}


/* -------------------------------------------------------------------
 * ## 3. Preloader
 * ------------------------------------------------------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-blue);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    animation: pulse 1.5s infinite ease-in-out;
}

.loader-logo img {
    height: 80px;
}

.loader-bar {
    width: 150px;
    height: 4px;
    background-color: var(--navy-blue);
    margin-top: 20px;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background-color: var(--primary-color);
    border-radius: 2px;
    animation: loading-bar 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes loading-bar {
    0% {
        left: -50%;
        width: 50%;
    }

    50% {
        left: 0;
        width: 100%;
    }

    100% {
        left: 100%;
        width: 50%;
    }
}

/* -------------------------------------------------------------------
 * ## 4. Header & Navigation
 * ------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    padding: 15px 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all var(--transition-speed);
    background-color: rgba(10, 25, 47, 0.85);
}

.header.scrolled {
    box-shadow: var(--box-shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
}

.nav-logo img {
    height: 80px;
    margin-right: 10px;
    transition: transform var(--transition-speed);
}

.nav-logo:hover img {
    transform: rotate(360deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--secondary-color);
    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-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: all 0.3s ease-in-out;
}


/* -------------------------------------------------------------------
 * ## 5. Hero Section
 * ------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, rgba(100, 255, 218, 0) 70%);
    animation: float 10s infinite ease-in-out alternate;
}

.hero-bg-shape.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    animation-duration: 12s;
}

.hero-bg-shape.shape-2 {
    width: 300px;
    height: 300px;
    bottom: 15%;
    right: 10%;
    animation-duration: 8s;
}

.hero-bg-shape.shape-3 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 30%;
    animation-duration: 15s;
}

@keyframes float {
    0% {
        transform: translateY(0px) scale(1);
    }

    100% {
        transform: translateY(-30px) scale(1.05);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-content .subtitle {
    color: var(--primary-color);
    font-family: var(--font-secondary);
    font-weight: 500;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 550px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* 3D Visualizer */
.hero-3d-visualizer {
    perspective: 1000px;
}

.scene {
    width: 300px;
    height: 300px;
    margin: auto;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-150px);
    animation: rotate-cube 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: rgba(17, 34, 64, 0.7);
    border: 1px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--primary-color);
    backdrop-filter: blur(5px);
}

.cube-face-front {
    transform: rotateY(0deg) translateZ(150px);
}

.cube-face-back {
    transform: rotateY(180deg) translateZ(150px);
}

.cube-face-right {
    transform: rotateY(90deg) translateZ(150px);
}

.cube-face-left {
    transform: rotateY(-90deg) translateZ(150px);
}

.cube-face-top {
    transform: rotateX(90deg) translateZ(150px);
}

.cube-face-bottom {
    transform: rotateX(-90deg) translateZ(150px);
}

@keyframes rotate-cube {
    from {
        transform: rotateY(0deg) rotateX(0deg);
    }

    to {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

/* -------------------------------------------------------------------
 * ## 6. Services Section
 * ------------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--navy-blue);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px rgba(2, 12, 27, 0.8);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--white);
}

.service-card p {
    margin-bottom: 1.5rem;
}

.service-link {
    font-family: var(--font-secondary);
    font-weight: 500;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link i {
    transition: transform var(--transition-speed);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* -------------------------------------------------------------------
 * ## 7. About Section
 * ------------------------------------------------------------------- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image-block {
    position: relative;
}

.about-image-block img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
}

.about-image-experience {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--dark-blue);
    padding: 10px;
    border-radius: 50%;
}

.year-circle {
    width: 140px;
    height: 140px;
    background-color: var(--navy-blue);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: spin 10s linear infinite;
}

.year-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.year-text {
    font-size: 0.8rem;
    color: var(--secondary-color);
    line-height: 1.2;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.about-content-block .subtitle {
    text-align: left;
}

.about-content-block h2 {
    margin-bottom: 1.5rem;
}

.about-features-list {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    padding-left: 0;
}

.about-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1rem;
}

.about-features-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 4px;
}

/* -------------------------------------------------------------------
 * ## 8. ROI Calculator Section
 * ------------------------------------------------------------------- */
.roi-calculator-section {
    background-color: var(--navy-blue);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    background-color: var(--dark-blue);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.calculator-form .form-group input {
    background-color: var(--navy-blue);
}

.calculator-results {
    background: linear-gradient(145deg, var(--navy-blue), var(--dark-blue));
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
    display: flex;
    flex-direction: column;
}

.calculator-results h3 {
    margin-bottom: 2rem;
    text-align: center;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(136, 146, 176, 0.2);
}

.result-item span {
    color: var(--secondary-color);
}

.result-item strong {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
}

.result-item.result-total strong {
    color: var(--primary-color);
    font-size: 2rem;
}

.calculator-results .disclaimer {
    font-size: 0.8rem;
    text-align: center;
    margin-top: auto;
    margin-bottom: 0;
    opacity: 0.7;
}

/* -------------------------------------------------------------------
 * ## 9. Pricing Section
 * ------------------------------------------------------------------- */
.pricing-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    color: var(--secondary-color);
    font-weight: 500;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--navy-blue);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--white);
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background-color: var(--navy-blue);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
}

.pricing-card.featured {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 40px rgba(100, 255, 218, 0.2);
}

.pricing-card:not(.featured):hover {
    transform: translateY(-10px);
}

.pricing-header h3 {
    font-size: 1.8rem;
    color: var(--white);
}

.pricing-header p {
    min-height: 48px;
}

.price {
    margin: 20px 0;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
}

.price-currency {
    font-size: 1.5rem;
    color: var(--primary-color);
    align-self: flex-start;
    margin-right: 5px;
}

.price-period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--slate-gray);
    margin-left: 5px;
}

.price-custom {
    font-size: 2.5rem;
}

.pricing-body ul {
    text-align: left;
    margin-bottom: 30px;
}

.pricing-body li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.pricing-body li i {
    font-size: 1.2rem;
}

.pricing-body li .fa-check {
    color: var(--primary-color);
}

.pricing-body li .fa-times {
    color: var(--slate-gray);
    opacity: 0.5;
}

.popular-badge {
    background-color: var(--primary-color);
    color: var(--dark-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

/* -------------------------------------------------------------------
 * ## 10. Testimonials Section
 * ------------------------------------------------------------------- */
.testimonials-section {
    background-color: var(--navy-blue);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform var(--transition-speed);
}

.testimonial-slide {
    flex: 0 0 100%;
    opacity: 0;
    transition: opacity var(--transition-speed);
    visibility: hidden;
    position: absolute;
    width: 100%;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.testimonial-quote {
    background-color: var(--dark-blue);
    padding: 40px;
    border-radius: var(--border-radius);
    position: relative;
    margin-bottom: 20px;
    text-align: center;
}

.testimonial-quote i.fa-quote-left {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.testimonial-quote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--secondary-color);
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.author-info h4 {
    color: var(--white);
    margin: 0;
    font-size: 1.1rem;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--slate-gray);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.slider-btn {
    background-color: rgba(17, 34, 64, 0.5);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    pointer-events: all;
}

.slider-btn:hover {
    background-color: var(--primary-color);
    color: var(--dark-blue);
}

/* -------------------------------------------------------------------
 * ## 11. CTA Section
 * ------------------------------------------------------------------- */
.cta-section {
    padding: 80px 0;
}

.cta-container {
    background-color: var(--navy-blue);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    background-image: radial-gradient(circle at top left, rgba(100, 255, 218, 0.1), transparent 40%),
        radial-gradient(circle at bottom right, rgba(100, 255, 218, 0.1), transparent 40%);
}

.cta-container h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-container p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
}

/* -------------------------------------------------------------------
 * ## 12. Footer
 * ------------------------------------------------------------------- */
.footer {
    background-color: var(--navy-blue);
    padding-top: 60px;
    color: var(--slate-gray);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-about .footer-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 80px;
    margin-right: 10px;
}

.footer-about p {
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: var(--dark-blue);
    color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all var(--transition-speed);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    color: var(--dark-blue);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 1rem;
}

.footer-links a,
.footer-contact a {
    color: var(--slate-gray);
    transition: all var(--transition-speed);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(136, 146, 176, 0.2);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal a {
    color: var(--slate-gray);
    margin: 0 10px;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

.footer-legal span {
    color: var(--slate-gray);
}

/* -------------------------------------------------------------------
 * ## 13. Other Components (Back to Top, Live Chat)
 * ------------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--dark-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--white);
}

.live-chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--primary-color);
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed);
}

.live-chat-widget:hover {
    transform: scale(1.05);
}

.chat-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.chat-text {
    font-weight: 600;
    font-family: var(--font-secondary);
}

/* -------------------------------------------------------------------
 * ## 14. Inner Pages (Contact, Legal)
 * ------------------------------------------------------------------- */
.page-header {
    padding: 140px 0 60px 0;
    text-align: center;
    background-color: var(--navy-blue);
    background-image: radial-gradient(circle at 50% 0%, rgba(100, 255, 218, 0.05), transparent 40%);
}

.page-header h1 {
    font-size: 3rem;
    color: var(--white);
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info-block {
    background-color: var(--navy-blue);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-info-block h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 30px;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 5px;
}

.info-text h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.contact-form-block {
    background-color: var(--navy-blue);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-form-block h3 {
    color: var(--white);
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.legal-content .content-wrapper {
    background-color: var(--navy-blue);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

.last-updated {
    font-style: italic;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* -------------------------------------------------------------------
 * ## 15. Pop-up Modal
 * ------------------------------------------------------------------- */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--navy-blue);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--box-shadow);
    transform: scale(0.9);
    transition: transform var(--transition-speed);
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--slate-gray);
    cursor: pointer;
    transition: color var(--transition-speed);
}

.popup-close:hover {
    color: var(--white);
}

.popup-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.popup-content h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

/* -------------------------------------------------------------------
 * ## 16. Reveal on Scroll Animation
 * ------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Add staggered delays for children */
.reveal.active>* {
    transition-delay: 0.2s;
}

.reveal.active .service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal.active .service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal.active .service-card:nth-child(3) {
    transition-delay: 0.3s;
}

.reveal.active .service-card:nth-child(4) {
    transition-delay: 0.4s;
}

.reveal.active .service-card:nth-child(5) {
    transition-delay: 0.5s;
}

.reveal.active .service-card:nth-child(6) {
    transition-delay: 0.6s;
}


/* -------------------------------------------------------------------
 * ## 17. Responsive Design (Media Queries)
 * ------------------------------------------------------------------- */

/* -- Tablet (max-width: 992px) -- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--dark-blue);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 0;
        padding-top: 40px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
        width: 100%;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-3d-visualizer {
        order: 1;
        margin-bottom: 40px;
    }

    .hero-content p {
        margin: 0 auto 2.5rem auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-block {
        max-width: 450px;
        margin: 0 auto;
    }

    .about-content-block {
        text-align: center;
    }

    .about-content-block .subtitle {
        text-align: center;
    }

    .about-features-list {
        text-align: left;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }
}

/* -- Mobile (max-width: 768px) -- */
@media (max-width: 768px) {
    .header.scrolled {
        height: var(--header-height);
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .scene {
        width: 250px;
        height: 250px;
    }

    .cube-face {
        width: 250px;
        height: 250px;
    }

    .cube-face-front {
        transform: rotateY(0deg) translateZ(125px);
    }

    .cube-face-back {
        transform: rotateY(180deg) translateZ(125px);
    }

    .cube-face-right {
        transform: rotateY(90deg) translateZ(125px);
    }

    .cube-face-left {
        transform: rotateY(-90deg) translateZ(125px);
    }

    .cube-face-top {
        transform: rotateX(90deg) translateZ(125px);
    }

    .cube-face-bottom {
        transform: rotateX(-90deg) translateZ(125px);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .slider-controls {
        display: none;
    }

    /* On mobile, users can swipe (conceptual) */

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo,
    .footer-social {
        justify-content: center;
    }

    .footer-links ul,
    .footer-contact ul {
        padding-left: 0;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .live-chat-widget {
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }

    .contact-form-block,
    .calculator-wrapper,
    .legal-content .content-wrapper {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}