/*
================================================
TABLE OF CONTENTS
================================================
1.  GLOBAL STYLES & VARIABLES
2.  PRELOADER
3.  HEADER & NAVIGATION
4.  BUTTONS & FORMS
5.  PAGE-SPECIFIC & REUSABLE COMPONENTS
    - Page Header (for subpages)
    - Section Styling
    - Cards (Service, Pricing, etc.)
6.  HOMEPAGE SECTIONS
    - Hero Section
    - Services Section
    - About Section
    - ROI Calculator Section
    - 3D Interactive Section
    - Pricing Section
    - Testimonials Section
    - CTA Section
7.  CONTACT PAGE
8.  LEGAL PAGES (Privacy, Terms, Disclaimer)
9.  FOOTER
10. ANIMATIONS & KEYFRAMES
11. UTILITY CLASSES
12. RESPONSIVE MEDIA QUERIES
    - Tablet (max-width: 1024px)
    - Mobile (max-width: 768px)
================================================
*/

/* 1. GLOBAL STYLES & VARIABLES
------------------------------------------------*/
:root {
    --primary-dark: #0a043c;
    --secondary-dark: #141c3a;
    --primary-accent: #03dac6;
    --secondary-accent: #ff6b6b;
    --light-bg: #f8f9fa;
    --text-light: #f0f0f0;
    --text-dark: #333;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --header-height: 80px;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    background-color: #fff;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: var(--primary-accent);
    transition: color 0.3s ease;
}

a:hover {
    color: #02b19b;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section {
    padding: 80px 0;
}

/* 2. PRELOADER
------------------------------------------------*/
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo img {
    width: 100px;
    animation: pulse 1.5s infinite ease-in-out;
}

.preloader-dots {
    display: flex;
    margin-top: 20px;
}

.preloader-dots .dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: var(--primary-accent);
    border-radius: 50%;
    animation: dot-bounce 1.4s infinite ease-in-out both;
}

.preloader-dots .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.preloader-dots .dot:nth-child(2) {
    animation-delay: -0.16s;
}

/* 3. HEADER & NAVIGATION
------------------------------------------------*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, height 0.4s ease;
}

.header.scrolled {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    height: 80px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-primary);
    color: var(--text-light);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-accent);
    transition: width 0.4s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-close {
    display: none;
    font-size: 2rem;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 4. BUTTONS & FORMS
------------------------------------------------*/
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-accent) 0%, #02b19b 100%);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(3, 218, 198, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(3, 218, 198, 0.4);
    color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-dark);
}

.header.scrolled .btn-secondary {
    border-color: var(--primary-accent);
    color: var(--primary-accent);
}

.header.scrolled .btn-secondary:hover {
    background-color: var(--primary-accent);
    color: var(--primary-dark);
}

.btn-full {
    width: 100%;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(3, 218, 198, 0.2);
}

textarea {
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

/* 5. PAGE-SPECIFIC & REUSABLE COMPONENTS
------------------------------------------------*/
/* Page Header for subpages */
.page-header {
    background: linear-gradient(rgba(10, 4, 60, 0.8), rgba(10, 4, 60, 0.8)), url('https://images.pexels.com/photos/5926382/pexels-photo-5926382.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    padding: 150px 0 80px;
    text-align: center;
    color: var(--text-light);
}

.page-header h1 {
    color: #fff;
    margin-bottom: 10px;
}

.breadcrumbs a {
    color: var(--text-light);
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: var(--primary-accent);
}

.breadcrumbs span {
    color: var(--primary-accent);
}

.breadcrumbs i {
    font-size: 0.8rem;
    margin: 0 10px;
}

/* Main Content Wrapper for Legal/Static Pages */
.main-content {
    padding: 80px 0;
}

.page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-accent);
    padding-left: 1rem;
}

.page-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.page-content p:last-child {
    margin-bottom: 0;
}

/* Section Header */
.section-header {
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(3, 218, 198, 0.1);
    color: var(--primary-accent);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-intro {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.text-center {
    text-align: center;
}

/* 6. HOMEPAGE SECTIONS
------------------------------------------------*/

/* Hero Section */
.hero {
    position: relative;
    padding: calc(var(--header-height) + 100px) 0 100px;
    background-color: var(--primary-dark);
    color: var(--text-light);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(3, 218, 198, 0.1), transparent 60%);
    animation: move-and-fade 20s infinite alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -10%;
    right: -15%;
    animation-duration: 25s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -15%;
    left: -10%;
    animation-duration: 30s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 30%;
    left: 20%;
    animation-duration: 20s;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    animation: slide-in-left 1s ease-out;
}

.hero-title {
    color: #fff;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-title .highlight-container {
    display: inline-block;
    position: relative;
}

.hero-title .highlight {
    color: var(--primary-accent);
    transition: opacity 0.3s ease-in-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    opacity: 0.9;
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fade-in 1.5s ease-out;
}

.hero-image-container {
    position: relative;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Services Section */
.services-section {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow-color);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-bottom-color: var(--primary-accent);
}

.service-card-icon {
    font-size: 2.5rem;
    color: var(--primary-accent);
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    border-radius: 50%;
    display: inline-block;
    color: #fff;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-icon {
    transform: rotateY(180deg);
}

.service-card-title {
    margin-bottom: 1rem;
}

.service-card-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-card-link {
    font-weight: 600;
    color: var(--primary-dark);
}

.service-card-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-link i {
    transform: translateX(5px);
}

/* About Section */
.about-section {
    background-color: #fff;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image-wrapper {
    flex: 1;
    position: relative;
}

.about-image-bg {
    position: absolute;
    width: 90%;
    height: 90%;
    top: -20px;
    left: -20px;
    background-color: var(--light-bg);
    border-radius: 12px;
    z-index: 0;
}

.about-image {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-content {
    flex: 1;
}

.about-features-list {
    margin: 2rem 0;
}

.about-features-list li {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.about-features-list i {
    color: var(--primary-accent);
    margin-right: 10px;
}

/* ROI Calculator Section */
.roi-calculator-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    color: #fff;
}

.roi-calculator-section .section-header .section-tag {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.roi-calculator-section .section-header .section-title {
    color: #fff;
}

.roi-calculator-section .section-header .section-intro {
    color: rgba(255, 255, 255, 0.8);
}

.roi-calculator-wrapper {
    display: flex;
    gap: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.roi-inputs {
    flex: 2;
}

.roi-inputs label {
    color: #fff;
    margin-bottom: 1rem;
}

.roi-inputs .form-group {
    position: relative;
}

.roi-inputs input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    padding: 0;
    margin: 0;
}

.roi-inputs input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-accent);
    cursor: pointer;
    border: 4px solid var(--primary-dark);
}

.roi-inputs input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-accent);
    cursor: pointer;
    border: 4px solid var(--primary-dark);
}

.roi-inputs .form-group span {
    position: absolute;
    right: 0;
    top: 0;
    font-weight: 700;
    color: var(--primary-accent);
}

.roi-results {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.roi-results-inner {
    background-color: var(--primary-dark);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    width: 100%;
}

.roi-results-inner h3 {
    color: #fff;
    margin-bottom: 2rem;
}

.result-metric {
    margin-bottom: 1.5rem;
}

.result-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.result-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-accent);
}

.disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* 3D Interactive Section */
.interactive-3d-section {
    background-color: var(--light-bg);
    overflow: hidden;
}

.scene {
    width: 200px;
    height: 200px;
    perspective: 800px;
    margin: 60px auto;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-100px) rotateX(0deg) rotateY(0deg);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    animation: rotate-cube 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-accent);
    box-shadow: 0 0 50px rgba(3, 218, 198, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.cube-face i {
    font-size: 3rem;
    color: var(--primary-accent);
}

.cube-face-front {
    transform: rotateY(0deg) translateZ(100px);
}

.cube-face-right {
    transform: rotateY(90deg) translateZ(100px);
}

.cube-face-back {
    transform: rotateY(180deg) translateZ(100px);
}

.cube-face-left {
    transform: rotateY(-90deg) translateZ(100px);
}

.cube-face-top {
    transform: rotateX(90deg) translateZ(100px);
}

.cube-face-bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

/* Pricing Section */
.pricing-section {
    background-color: #fff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.pricing-card.popular {
    transform: scale(1.05);
    background-color: #fff;
    border-color: var(--primary-accent);
    box-shadow: 0 10px 40px rgba(3, 218, 198, 0.2);
    position: relative;
}

.pricing-card:hover:not(.popular) {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--secondary-accent) 0%, #ff8a8a 100%);
    color: #fff;
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-card-header {
    margin-bottom: 2rem;
}

.pricing-card-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.pricing-card-subtitle {
    color: var(--text-muted);
}

.pricing-card-price {
    margin-bottom: 2rem;
}

.pricing-card-price .price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.pricing-card-price .period {
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-card-features {
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-card-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.pricing-card-features i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.pricing-card-features .fa-check {
    color: var(--primary-accent);
}

.pricing-card-features .fa-times {
    color: var(--text-muted);
}

.pricing-card .btn-secondary {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.pricing-card .btn-secondary:hover {
    background-color: var(--primary-dark);
    color: #fff;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--light-bg);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 0 40px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--primary-accent);
    margin-bottom: 1.5rem;
}

.testimonial-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.testimonial-quote::before {
    content: '“';
    font-size: 4rem;
    color: var(--primary-accent);
    position: absolute;
    left: 0px;
    top: 0px;
    opacity: 0.2;
}

.testimonial-quote::after {
    content: '”';
    font-size: 4rem;
    color: var(--primary-accent);
    position: absolute;
    right: 0px;
    bottom: -20px;
    opacity: 0.2;
}

.testimonial-author {
    margin-bottom: 0.25rem;
}

.testimonial-company {
    color: var(--text-muted);
    margin-bottom: 0;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0;
}

.slider-btn {
    background-color: #fff;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.slider-btn:hover {
    background-color: var(--primary-accent);
    color: var(--primary-dark);
    border-color: var(--primary-accent);
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

/* CTA Section */
.cta-section {
    background-color: #fff;
}

.cta-container {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    padding: 60px;
    border-radius: 15px;
    text-align: center;
    color: #fff;
}

.cta-title {
    color: #fff;
    margin-bottom: 1rem;
}

.cta-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* 7. CONTACT PAGE
------------------------------------------------*/
.contact-page-section {
    background-color: var(--light-bg);
}

.contact-wrapper {
    display: flex;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--shadow-color);
    overflow: hidden;
}

.contact-info-panel {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    padding: 40px;
    color: #fff;
}

.contact-info-panel h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.contact-info-panel p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.contact-details-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.contact-details-list i {
    font-size: 1.5rem;
    color: var(--primary-accent);
    margin-top: 5px;
}

.contact-details-list h4 {
    color: #fff;
    margin-bottom: 0.25rem;
}

.contact-details-list a,
.contact-details-list p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.contact-details-list a:hover {
    color: var(--primary-accent);
}

.contact-form-wrapper {
    flex: 1.5;
    padding: 40px;
}

/* Contact form success popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 4rem;
    color: var(--primary-accent);
    margin-bottom: 1rem;
}

.popup-content h3 {
    margin-bottom: 0.5rem;
}

.popup-content p {
    margin-bottom: 2rem;
}

/* 8. LEGAL PAGES
------------------------------------------------*/
.main-content .page-content {
    max-width: 800px;
    margin: 0 auto;
}


/* 9. FOOTER
------------------------------------------------*/
.footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 60px;
}

.footer-col-title {
    font-family: var(--font-primary);
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary-accent);
}

.footer-logo {
    height: 80px;
    margin-bottom: 1rem;
}

.footer-about-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-right: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul a {
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

.footer-links ul a:hover {
    color: var(--primary-accent);
    padding-left: 10px;
}

.footer-links ul a::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: -5px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links ul a:hover::before {
    opacity: 1;
    left: -15px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1rem;
}

.footer-contact ul i {
    color: var(--primary-accent);
    margin-top: 5px;
}

.footer-contact ul a,
.footer-contact ul span {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact ul a:hover {
    color: var(--primary-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 20px 0;
}

/* 10. ANIMATIONS & KEYFRAMES
------------------------------------------------*/
.animate-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
}

.animate-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-in[data-animation="fade-in-left"].is-visible {
    transform: translateX(0);
}

.animate-in[data-animation="fade-in-left"] {
    transform: translateX(-50px);
}

.animate-in[data-animation="fade-in-right"].is-visible {
    transform: translateX(0);
}

.animate-in[data-animation="fade-in-right"] {
    transform: translateX(50px);
}

.animate-in[data-animation="zoom-in"].is-visible {
    transform: scale(1);
}

.animate-in[data-animation="zoom-in"] {
    transform: scale(0.8);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes dot-bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes move-and-fade {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.1;
    }

    50% {
        opacity: 0.15;
    }

    100% {
        transform: translate(40px, -60px) scale(1.2);
        opacity: 0;
    }
}

@keyframes rotate-cube {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}


/* 11. UTILITY CLASSES
------------------------------------------------*/
.text-center {
    text-align: center;
}

/* 12. RESPONSIVE MEDIA QUERIES
------------------------------------------------*/
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image-wrapper {
        order: 1;
        margin-bottom: 2rem;
    }

    .hero-image-container {
        width: 350px;
        height: 350px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .about-container {
        flex-direction: column;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        max-width: 450px;
        margin: 0 auto;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .roi-calculator-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section {
        padding: 60px 0;
    }

    h1,
    .hero-title {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .contactButton {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background-color: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .nav-menu.show {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 2rem;
        right: 2rem;
    }

    .hero-image-container {
        width: 300px;
        height: 300px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        padding: 0 1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .testimonial-slide {
        padding: 0;
    }

    .slider-controls {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .cta-container {
        padding: 40px 20px;
    }

    .scene {
        width: 150px;
        height: 150px;
    }

    .cube-face {
        width: 150px;
        height: 150px;
        font-size: 1.2rem;
    }

    .cube-face i {
        font-size: 2.5rem;
    }

    .cube-face-front {
        transform: rotateY(0deg) translateZ(75px);
    }

    .cube-face-right {
        transform: rotateY(90deg) translateZ(75px);
    }

    .cube-face-back {
        transform: rotateY(180deg) translateZ(75px);
    }

    .cube-face-left {
        transform: rotateY(-90deg) translateZ(75px);
    }

    .cube-face-top {
        transform: rotateX(90deg) translateZ(75px);
    }

    .cube-face-bottom {
        transform: rotateX(-90deg) translateZ(75px);
    }
}