/*
* Digital Marketing Agency Stylesheet
*
* Table of Contents:
* 1.  CSS Variables
* 2.  Reset & Base Styles
* 3.  Global Components (Buttons, Forms, etc.)
* 4.  Preloader
* 5.  Header & Navigation
* 6.  Hero Section
* 7.  Partners Section
* 8.  Services Section
* 9.  About Section
* 10. Process Section
* 11. Quote Calculator Section
* 12. Testimonials Section
* 13. FAQ Section
* 14. CTA Section
* 15. Footer
* 16. Page-Specific Styles (Contact, Legal)
* 17. Helper Classes & Utility
* 18. Animations & Keyframes
* 19. Media Queries (Responsiveness)
*/

/* 1. CSS Variables */
:root {
    --primary-dark: #03001C;
    --secondary-dark: #0a043c;
    --accent-blue: #1e88e5;
    --accent-pink: #ff4081;
    --light-gray: #f4f4f4;
    --medium-gray: #a9a9a9;
    --dark-gray: #333;
    --bg-card: #0c064a;
    --border-color: rgba(255, 255, 255, 0.1);

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.4);
    --border-radius: 8px;
}

/* 2. Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-dark);
    color: var(--light-gray);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
    color: var(--medium-gray);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-pink);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    color: var(--accent-pink);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    position: relative;
}

.section-header .subtitle::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--accent-pink);
    left: 50%;
    transform: translateX(-50%);
    bottom: -5px;
}

.section-header h2 {
    margin-bottom: 20px;
}

.section-header p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 3. Global Components */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
    color: #fff;
    border: none;
    box-shadow: 0 5px 15px rgba(255, 64, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 136, 229, 0.4);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-dark);
}

/* 4. Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-logo {
    margin-bottom: 20px;
}

.loader-logo img {
    width: 80px;
    animation: pulse 1.5s infinite ease-in-out;
}

.loader-bar {
    width: 150px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
    border-radius: 2px;
    animation: loading-bar 2s infinite;
}

/* 5. Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-fast);
    padding: 15px 0;
}

.header.scrolled {
    background-color: rgba(3, 0, 28, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    width: 130px;
    height: auto;
    filter: brightness(0) invert(1) ;
    transition: var(--transition-fast);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-family: var(--font-heading);
    color: var(--light-gray);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
    transition: var(--transition-slow);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.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: #fff;
    transition: all 0.3s ease-in-out;
}

/* 6. Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0 20px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3') no-repeat center center/cover;
    filter: brightness(0.3);
    z-index: -2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--primary-dark) 5%, transparent 50%);
    z-index: -1;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(30, 136, 229, 0.1);
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    animation-duration: 25s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    bottom: 15%;
    right: 10%;
    animation-duration: 30s;
    background: rgba(255, 64, 129, 0.1);
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 25%;
    animation-duration: 15s;
}

.hero-content {
    z-index: 1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.typing-element {
    color: var(--accent-blue);
    display: inline-block;
    border-right: 3px solid var(--accent-pink);
    animation: blink-caret 0.75s step-end infinite;
    min-width: 5px;
    /* So the cursor is visible when empty */
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--light-gray);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-buttons .btn {
    padding: 15px 40px;
}


/* 7. Partners Section */
.partners-section {
    padding: 40px 0;
    background-color: var(--secondary-dark);
}

.partners-section p {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--medium-gray);
}

.partner-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.partner-logos i {
    font-size: 2.5rem;
    color: var(--medium-gray);
    transition: var(--transition-fast);
}

.partner-logos i:hover {
    color: #fff;
    transform: scale(1.1);
}

/* 8. Services Section */
.services-section {
    background-color: var(--secondary-dark);
}

.services-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-blue);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 136, 229, 0.15), transparent 40%);
    transition: opacity 0.8s ease;
    opacity: 0;
    transform: translate(-50%, -50%);
    animation: rotate 10s linear infinite;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-3d-display {
    text-align: center;
    padding: 40px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.scene {
    width: 150px;
    height: 150px;
    perspective: 800px;
    margin: 0 auto 30px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-75px);
    animation: spin 20s infinite linear;
}

.face {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(30, 136, 229, 0.2);
    border: 1px solid var(--accent-blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: #fff;
}

.face span {
    font-size: 1rem;
    font-family: var(--font-heading);
    margin-top: 10px;
}

.front {
    transform: rotateY(0deg) translateZ(75px);
}

.back {
    transform: rotateY(180deg) translateZ(75px);
}

.right {
    transform: rotateY(90deg) translateZ(75px);
}

.left {
    transform: rotateY(-90deg) translateZ(75px);
}

.top {
    transform: rotateX(90deg) translateZ(75px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(75px);
}

.service-3d-display h3 {
    margin-bottom: 15px;
}

.service-3d-display p {
    margin-bottom: 25px;
}

/* 9. About Section */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
}

.about-content .subtitle {
    text-align: left;
}

.about-content .subtitle::after {
    left: 0;
    transform: none;
}

.stats-counter {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 5px;
}

.stat-item h3 span {
    font-size: 1.5rem;
    margin-left: -5px;
}

.stat-item p {
    margin: 0;
    color: var(--medium-gray);
    font-weight: 500;
}

/* 10. Process Section */
.process-section {
    background-color: var(--secondary-dark);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 120px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    padding-top: 70px;
}

.process-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 2px solid var(--accent-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
    font-size: 2.5rem;
    color: var(--accent-blue);
    position: relative;
    z-index: 1;
    transition: var(--transition-slow);
}

.process-step:hover .process-icon {
    background: var(--accent-blue);
    color: #fff;
    transform: scale(1.1);
}

.process-content span {
    display: block;
    font-weight: 700;
    color: var(--accent-pink);
    margin-bottom: 10px;
}

.process-content h3 {
    margin-bottom: 10px;
}

/* 11. Quote Calculator Section */
.calculator-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 50px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.calculator-form h4,
.calculator-result h4 {
    margin-bottom: 25px;
    color: #fff;
    font-size: 1.3rem;
}

.service-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.option label {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: var(--secondary-dark);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.option input[type="checkbox"] {
    display: none;
}

.option label::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--medium-gray);
    border-radius: 4px;
    margin-right: 15px;
    transition: var(--transition-fast);
}

.option input:checked+label {
    border-color: var(--accent-blue);
    background-color: rgba(30, 136, 229, 0.1);
}

.option input:checked+label::before {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

.scale-slider {
    display: flex;
    align-items: center;
    gap: 15px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--secondary-dark);
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent-pink);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid #fff;
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--accent-pink);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid #fff;
}

.calculator-result {
    background: var(--secondary-dark);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-display {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.price-display span:first-child {
    font-size: 2rem;
    color: var(--accent-pink);
    vertical-align: super;
    margin-right: 5px;
}

.calculator-result p {
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* 12. Testimonials Section */
.testimonials-section {
    background-color: var(--secondary-dark);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: 40px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border-left: 5px solid var(--accent-blue);
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.8s;
}

.testimonial-slide i {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.testimonial-quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--light-gray);
}

.testimonial-author {
    font-weight: 700;
    font-family: var(--font-heading);
    color: #fff;
}

.testimonial-author span {
    display: block;
    font-weight: 400;
    font-style: normal;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 110%;
    left: -5%;
    display: flex;
    justify-content: space-between;
}

.slider-nav button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-nav button:hover {
    background: var(--accent-pink);
}

/* 13. FAQ Section */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 25px 20px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.faq-answer p {
    padding: 0 20px 25px;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    /* Adjust as needed */
}

/* 14. CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-pink));
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: #fff;
    opacity: 0.9;
}

.cta-section .btn {
    background: #fff;
    color: var(--accent-pink);
    border-color: #fff;
    box-shadow: var(--shadow-light);
}

.cta-section .btn:hover {
    background: transparent;
    color: #fff;
}


/* 15. Footer */
.footer {
    background-color: var(--secondary-dark);
    padding: 80px 0 0;
    font-size: 0.9rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-about .footer-logo img {
    width: 130px;
    filter: brightness(0) invert(1) ;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--medium-gray);
}

.footer-social a:hover {
    background-color: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 15px;
}

.footer-links ul li a,
.footer-contact ul li a {
    color: var(--medium-gray);
}

.footer-links ul li a:hover,
.footer-contact ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--medium-gray);
}

.footer-contact i {
    color: var(--accent-blue);
    margin-top: 4px;
}

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal a {
    margin: 0 10px;
    color: var(--medium-gray);
}

.footer-legal span {
    color: var(--medium-gray);
}

/* 16. Page-Specific Styles */

/* Page Header */
.page-header {
    padding: 180px 0 100px;
    text-align: center;
    background: linear-gradient(rgba(3, 0, 28, 0.7), rgba(3, 0, 28, 0.7)), url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?q=80&w=2015&auto=format&fit=crop&ixlib=rb-4.0.3') center/cover;
    position: relative;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Contact Page */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-info-block {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(30, 136, 229, 0.1);
    color: var(--accent-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.info-text h4 {
    margin-bottom: 5px;
}

.info-text p,
.info-text a {
    margin: 0;
    color: var(--medium-gray);
}

.contact-form-block {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    background-color: var(--secondary-dark);
    border: 1px solid var(--border-color);
    color: #fff;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.3);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--secondary-dark);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-fast);
}

.popup.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--medium-gray);
}

.popup-icon {
    font-size: 4rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.popup-content h3 {
    margin-bottom: 10px;
}

.popup-content .btn {
    margin-top: 20px;
}

/* Legal Pages */
.legal-content .content-wrapper {
    background: var(--bg-card);
    padding: 40px 50px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: var(--accent-blue);
}

.legal-content h3 {
    margin-top: 30px;
    margin-bottom: 10px;
}

.legal-content p,
.legal-content li {
    color: var(--medium-gray);
    line-height: 1.8;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.legal-content strong {
    color: #fff;
    font-weight: 600;
}

.last-updated {
    font-style: italic;
    color: var(--medium-gray);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

/* 17. Helper Classes & Utility */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-pink));
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-fast);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 18. Animations & Keyframes */
@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(300%);
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--accent-pink);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }

    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

@keyframes spin {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* 19. Media Queries (Responsiveness) */

/* Tablets and smaller desktops */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        justify-content: center;
        background-color: var(--secondary-dark);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
        /* Above nav menu */
    }

    .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);
    }

    .services-wrapper {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-3d-display {
        margin-top: 40px;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-content .subtitle::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .stats-counter {
        justify-content: center;
    }

    .process-timeline {
        grid-template-columns: 1fr 1fr;
    }

    .process-timeline::before {
        display: none;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .calculator-result {
        margin-top: 30px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info-block {
        margin-bottom: 30px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .header-actions .btn {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .service-options {
        grid-template-columns: 1fr;
    }

    .slider-nav {
        width: 100%;
        left: 0;
    }

    .slider-nav button {
        width: 40px;
        height: 40px;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-about,
    .footer-contact,
    .footer-links {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .legal-content .content-wrapper {
        padding: 30px 20px;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}