/*
================================================
TABLE OF CONTENTS
------------------------------------------------
1.  Root Variables & Global Styles
2.  Preloader & Utility Classes
3.  Header & Navigation
4.  Buttons & Forms
5.  Hero Section & 3D Cube
6.  Services Section
7.  About Section
8.  Pricing Section
9.  Testimonials Section
10. ROI Calculator Section
11. CTA Section
12. Footer
13. Legal Pages Content
14. Contact Page Specifics
15. Popup & Chat Widget
16. Animations & Keyframes
17. Media Queries (Responsiveness)
================================================
*/

/* 1. Root Variables & Global Styles
------------------------------------------------ */
:root {
    --primary-color: #00aaff;
    --primary-color-dark: #0088cc;
    --secondary-color: #e6f7ff;
    --secondary-color-dark: #bde7ff;
    --accent-color: #ffaa00;
    --dark-blue: #0d1b2a;
    --mid-blue: #1b263b;
    --light-blue: #415a77;
    --text-light: #e0e1dd;
    --text-dark: #0d1b2a;
    --bg-color: #040f1a;
    --card-bg: #0d1b2a;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --transition-speed: 0.3s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-light);
    font-family: var(--font-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    opacity: 0.9;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

main {
    overflow: hidden;
}

section {
    position: relative;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.text-center {
    text-align: center;
}

.subtitle {
    display: inline-block;
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 10px;
}

/* 2. Preloader & Utility Classes
------------------------------------------------ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.preloader .loader-logo {
    width: 120px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    animation: pulse 1.5s infinite ease-in-out;
}

.preloader .loader-bar {
    width: 150px;
    height: 4px;
    background-color: var(--card-bg);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--primary-color);
    animation: loading-bar 2s ease-in-out forwards;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed) ease;
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.4);
}

.back-to-top:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-5px);
    color: #fff;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 3. Header & Navigation
------------------------------------------------ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-speed) ease;
}

.header.scrolled {
    background-color: rgba(4, 15, 26, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 80px;
    filter: brightness(0) invert(1);
    transition: transform var(--transition-speed) ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-family: var(--font-secondary);
    font-weight: 500;
    color: var(--text-light);
    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) ease;
}

.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;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: all var(--transition-speed) ease-in-out;
}

/* 4. Buttons & Forms
------------------------------------------------ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 170, 255, 0.4);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--mid-blue);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-primary);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.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(0, 170, 255, 0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}


/* 5. Hero Section & 3D Cube
------------------------------------------------ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background-color: var(--primary-color);
    top: -10%;
    left: -10%;
    animation: float 10s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background-color: var(--accent-color);
    bottom: -15%;
    right: -5%;
    animation: float 12s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background-color: var(--light-blue);
    top: 30%;
    right: 15%;
    animation: float 8s ease-in-out infinite;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 550px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-visual {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-3d-cube {
    width: 250px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 30s infinite linear;
}

.hero-3d-cube .face {
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(13, 27, 42, 0.7);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
}

.hero-3d-cube .face:hover {
    background: rgba(0, 170, 255, 0.2);
}

.hero-3d-cube .face span {
    font-size: 1rem;
    font-family: var(--font-secondary);
    margin-top: 10px;
    color: var(--text-light);
}

.face.front {
    transform: rotateY(0deg) translateZ(125px);
}

.face.back {
    transform: rotateY(180deg) translateZ(125px);
}

.face.right {
    transform: rotateY(90deg) translateZ(125px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(125px);
}

.face.top {
    transform: rotateX(90deg) translateZ(125px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(125px);
}


/* 6. Services Section
------------------------------------------------ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(0, 170, 255, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.learn-more {
    font-weight: 600;
    color: var(--primary-color);
}

.learn-more i {
    margin-left: 5px;
    transition: transform var(--transition-speed) ease;
}

.learn-more:hover i {
    transform: translateX(5px);
}

/* 7. About Section
------------------------------------------------ */
.about-section {
    background-color: var(--card-bg);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 12px;
}

.about-image img {
    border-radius: 12px;
}

.about-experience-badge {
    position: absolute;
    bottom: -30px;
    right: -20px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 170, 255, 0.3);
}

.about-experience-badge h3 {
    font-size: 2.5rem;
    color: #fff;
    line-height: 1;
}

.about-experience-badge p {
    margin: 0;
    font-weight: 500;
    color: #fff;
    opacity: 1;
}

.about-features {
    margin-top: 30px;
    margin-bottom: 30px;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.about-features i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

/* 8. Pricing Section
------------------------------------------------ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.pricing-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header p {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 15px 0;
    color: var(--primary-color);
}

.price sup {
    font-size: 1.5rem;
    font-weight: 500;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

.pricing-body {
    padding: 30px;
    flex-grow: 1;
}

.pricing-body ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.pricing-body ul li i.fa-check {
    color: #28a745;
}

.pricing-body ul li i.fa-times {
    color: #dc3545;
}

.pricing-footer {
    padding: 30px;
    text-align: center;
}

.pricing-footer .btn {
    width: 100%;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    position: relative;
    z-index: 10;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* 9. Testimonials Section
------------------------------------------------ */
.testimonials-section {
    background: linear-gradient(rgba(4, 15, 26, 0.9), rgba(4, 15, 26, 0.9)), url('https://images.pexels.com/photos/1595391/pexels-photo-1595391.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    background-attachment: fixed;
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform var(--transition-speed) ease-in-out;
}

.testimonial-card {
    min-width: 100%;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
}

.testimonial-content {
    margin-bottom: 30px;
    position: relative;
}

.testimonial-content i.fa-quote-left {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.1;
    position: absolute;
    top: -10px;
    left: -20px;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.author-info h4 {
    margin-bottom: 0;
    color: #fff;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 110%;
    left: -5%;
    display: flex;
    justify-content: space-between;
}

.slider-nav button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.slider-nav button:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 10. ROI Calculator Section
------------------------------------------------ */
.roi-calculator-section {
    background-color: var(--card-bg);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.calculator-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.calculator-form .form-group:last-child {
    grid-column: 1 / -1;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--mid-blue);
    outline: none;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity .2s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
}

#traffic-increase-value {
    display: inline-block;
    margin-left: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.calculator-results {
    background-color: var(--mid-blue);
    padding: 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calculator-results h4 {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.result-item {
    margin-bottom: 20px;
}

.result-item span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

.result-item strong {
    font-size: 2rem;
    font-weight: 700;
}

.result-item strong.positive {
    color: #28a745;
}

.calculator-results .disclaimer {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: auto;
}


/* 11. CTA Section
------------------------------------------------ */
.cta-section {
    padding: 80px 0;
}

.cta-wrapper {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    padding: 60px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 30px rgba(0, 170, 255, 0.3);
}

.cta-content h2 {
    color: #fff;
    margin-bottom: 10px;
}

.cta-content p {
    color: #fff;
    opacity: 0.9;
    max-width: 600px;
    margin: 0;
}

.cta-action .btn-primary {
    background: #fff;
    color: var(--primary-color);
}

.cta-action .btn-primary:hover {
    background: var(--secondary-color);
    color: var(--primary-color-dark);
}


/* 12. Footer
------------------------------------------------ */
.footer {
    background-color: var(--card-bg);
    padding: 80px 0 0;
    font-size: 0.95rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about .footer-logo img {
    height: 80px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: var(--mid-blue);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 12px;
}

.footer-links ul li a:hover,
.footer-contact ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact ul li i {
    margin-top: 5px;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-legal a {
    margin: 0 10px;
}

.footer-legal span {
    opacity: 0.5;
}

/* 13. Legal Pages Content
------------------------------------------------ */
.page-header-section {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-content {
    background-color: var(--card-bg);
}

.legal-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-color);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.legal-content-wrapper .last-updated {
    font-style: italic;
    opacity: 0.7;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.legal-content-wrapper h2 {
    margin: 40px 0 20px;
}

.legal-content-wrapper ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.legal-content-wrapper h3 {
    margin-top: 30px;
}

/* 14. Contact Page Specifics
------------------------------------------------ */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--card-bg);
    padding: 50px;
    border-radius: 15px;
}

.contact-info-block h3 {
    margin-bottom: 20px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: var(--mid-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.info-text h4 {
    margin-bottom: 5px;
}

.info-text p {
    margin: 0;
}

.contact-form-block .form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* 15. Popup & Chat Widget
------------------------------------------------ */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
}

.popup.visible {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 450px;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-speed) ease;
}

.popup.visible .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-light);
}

.popup-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.4);
    transition: transform var(--transition-speed) ease;
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    transform-origin: bottom right;
}

.chat-window.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: var(--mid-blue);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.close-chat-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
}

.chat-message.bot {
    background: var(--mid-blue);
    padding: 10px 15px;
    border-radius: 10px 10px 10px 0;
    max-width: 80%;
    align-self: flex-start;
}

.chat-footer {
    padding: 10px;
    display: flex;
    border-top: 1px solid var(--border-color);
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 10px;
    color: #fff;
}

.chat-footer input:focus {
    outline: none;
}

.chat-footer button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 10px;
}


/* 16. Animations & Keyframes
------------------------------------------------ */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fade-in-up 0.8s ease forwards;
    animation-delay: var(--delay, 0s);
}

.animate-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: fade-in-left 0.8s ease forwards;
    animation-delay: var(--delay, 0s);
}

.animate-right {
    opacity: 0;
    transform: translateX(50px);
    animation: fade-in-right 0.8s ease forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-left {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in-right {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }

    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

@keyframes rotate-cube {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

@keyframes loading-bar {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}


/* 17. Media Queries (Responsiveness)
------------------------------------------------ */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pricing-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 20px auto 0;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .section-padding {
        padding: 80px 0;
    }

    .hamburger {
        display: block;
        z-index: 100;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        text-align: center;
        transition: 0.4s;
        gap: 25px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .header-actions .btn {
        display: none;
    }

    .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);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card:nth-child(3) {
        margin: 0;
        max-width: 100%;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .cta-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 30px;
    }

    .slider-nav {
        display: none;
    }

    .calculator-wrapper,
    .calculator-form {
        grid-template-columns: 1fr;
    }

    .contact-form-block .form-row {
        flex-direction: column;
        gap: 0;
    }
}