/* ---
   NeuraVerse Command Hub Theme
   Designed for DW Bailey Construction Digital Marketing
--- */

/* ------------------- */
/* 0. ROOT & RESET
/* ------------------- */
:root {
    --cyan-glow: #00FFF7;
    --magenta-energy: #FF61A6;
    --jet-shadow: #0C0C0C;
    --dark-bg-transparent: rgba(12, 12, 12, 0.8);
    --dark-secondary: #1a1a1a;
    --light-text: #E0E0E0;
    --medium-text: #a0a0a0;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Orbitron', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --glow-shadow-cyan: 0 0 5px var(--cyan-glow), 0 0 10px var(--cyan-glow), 0 0 15px var(--cyan-glow);
    --glow-shadow-magenta: 0 0 5px var(--magenta-energy), 0 0 10px var(--magenta-energy), 0 0 15px var(--magenta-energy);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--jet-shadow);
    color: var(--light-text);
    font-family: var(--font-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -2;
    pointer-events: none;
}

#blob {
    background: linear-gradient(to right, var(--cyan-glow), var(--magenta-energy));
    height: 300px;
    width: 300px;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: rotate 20s infinite;
    opacity: 0.8;
    z-index: -1;
}

#blur {
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    backdrop-filter: blur(100px);
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


h1,
h2,
h3,
h4 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

a {
    color: var(--cyan-glow);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--magenta-energy);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan-glow), var(--magenta-energy));
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-text);
    max-width: 600px;
    margin: 0 auto;
}

/* ------------------- */
/* 1. HEADER & NAV
/* ------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: transparent;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.header.scrolled {
    background-color: var(--dark-bg-transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 247, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(15deg);
}

.logo-text {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.nav-list {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--light-text);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--cyan-glow);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--cyan-glow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ------------------- */
/* 2. BUTTONS & CTA
/* ------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn-primary {
    background-color: var(--cyan-glow);
    color: var(--jet-shadow);
    border-color: var(--cyan-glow);
}

.btn-primary:hover {
    color: var(--jet-shadow);
    box-shadow: var(--glow-shadow-cyan);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--magenta-energy);
    border-color: var(--magenta-energy);
}

.btn-secondary:hover {
    background-color: var(--magenta-energy);
    color: #fff;
    box-shadow: var(--glow-shadow-magenta);
    transform: translateY(-3px);
}

/* ------------------- */
/* 3. MOBILE NAV
/* ------------------- */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.4s ease;
}

.bar-middle {
    margin: 5px 0;
}

.mobile-nav.open .bar-top {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-nav.open .bar-middle {
    opacity: 0;
}

.mobile-nav.open .bar-bottom {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--dark-bg-transparent);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 999;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav nav ul {
    text-align: center;
}

.mobile-nav nav li {
    margin: 20px 0;
}

.mobile-nav nav a {
    font-size: 1.8rem;
    color: #fff;
    font-family: var(--font-secondary);
}

/* ------------------- */
/* 4. HERO SECTION
/* ------------------- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 20px;
}

.highlight-cyan {
    color: var(--cyan-glow);
    text-shadow: var(--glow-shadow-cyan);
}

.highlight-magenta {
    color: var(--magenta-energy);
    text-shadow: var(--glow-shadow-magenta);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--medium-text);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ------------------- */
/* 5. SERVICES SECTION
/* ------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(0, 255, 247, 0.1);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--cyan-glow), transparent 30%);
    animation: rotate-border 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 247, 0.5);
}

.service-card-inner {
    position: relative;
    z-index: 2;
    background: var(--dark-secondary);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: -2px;
    /* to cover the border width */
    height: calc(100% + 4px);
    display: flex;
    flex-direction: column;
}

.service-icon {
    font-size: 3rem;
    color: var(--cyan-glow);
    margin-bottom: 20px;
    text-shadow: var(--glow-shadow-cyan);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.service-description {
    color: var(--medium-text);
    flex-grow: 1;
    margin-bottom: 20px;
}

.service-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

@keyframes rotate-border {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ------------------- */
/* 6. ABOUT SECTION
/* ------------------- */
.about-section {
    background-color: rgba(0, 0, 0, 0.2);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content .section-title {
    text-align: left;
    display: block;
}

.about-content .section-title::after {
    left: 0;
    transform: translateX(0);
}

.about-content p {
    margin-bottom: 20px;
}

.about-features {
    margin-bottom: 30px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.about-features i {
    color: var(--cyan-glow);
    font-size: 1.2rem;
}

.about-image-wrapper {
    position: relative;
    min-height: 400px;
}

#about-3d-object {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.tech-icon {
    position: absolute;
    background: rgba(26, 26, 26, 0.7);
    border: 1px solid rgba(0, 255, 247, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    backdrop-filter: blur(5px);
    animation: float 6s ease-in-out infinite;
}

.icon1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.icon2 {
    top: 20%;
    right: 0%;
    animation-delay: 1.5s;
}

.icon3 {
    bottom: 20%;
    left: 0%;
    animation-delay: 3s;
}

.icon4 {
    bottom: 10%;
    right: 10%;
    animation-delay: 4.5s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ------------------- */
/* 7. INDUSTRIES SECTION
/* ------------------- */
.industry-tabs {
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(0, 255, 247, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light-text);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab-button:hover {
    background: rgba(0, 255, 247, 0.1);
    border-color: var(--cyan-glow);
}

.tab-button.active {
    background: var(--cyan-glow);
    color: var(--jet-shadow);
    border-color: var(--cyan-glow);
    font-weight: 700;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: var(--magenta-energy);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* ------------------- */
/* 8. TESTIMONIALS SECTION
/* ------------------- */
.testimonials-section {
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48cGF0aCBkPSJNMCA1MEwxMDAgNTBNNT AgMEw1MCAxMDAiIHN0cm9rZT0icmdiYSgwLCAyNTUsIDI0NywgMC4wNSkiLz48L3N2Zz4=') center/50px 50px;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    position: relative;
    border-left: 4px solid var(--magenta-energy);
}

.testimonial-text {
    color: var(--medium-text);
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--cyan-glow);
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: rgba(255, 97, 166, 0.1);
}

/* ------------------- */
/* 9. ROI CALCULATOR
/* ------------------- */
.roi-calculator-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background: var(--dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--border-radius);
    align-items: center;
}

.roi-inputs .form-group {
    margin-bottom: 25px;
}

.roi-inputs label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.roi-inputs input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
}

/* Range Styles */
input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cyan-glow);
    margin-top: -6px;
    border: 2px solid var(--jet-shadow);
    box-shadow: var(--glow-shadow-cyan);
}

.roi-inputs span {
    display: block;
    text-align: right;
    font-family: var(--font-secondary);
    color: var(--cyan-glow);
    font-size: 1.2rem;
    margin-top: 5px;
}

.roi-results {
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 40px;
}

.roi-results h4 {
    font-size: 1.2rem;
    color: var(--medium-text);
    margin-bottom: 15px;
}

.result-value {
    font-size: 3rem;
    font-family: var(--font-secondary);
    color: var(--magenta-energy);
    text-shadow: var(--glow-shadow-magenta);
    margin-bottom: 15px;
}

.roi-results p {
    font-size: 0.9rem;
    color: var(--medium-text);
}


/* ------------------- */
/* 10. FOOTER
/* ------------------- */
.footer {
    background-color: var(--dark-secondary);
    padding: 80px 0 0;
    border-top: 1px solid rgba(0, 255, 247, 0.1);
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo {
    height: 40px;
}

.footer-about-text {
    color: var(--medium-text);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--light-text);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--cyan-glow);
    border-color: var(--cyan-glow);
    color: var(--jet-shadow);
    transform: translateY(-3px);
}

.footer-col-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--medium-text);
}

.footer-links a:hover {
    color: var(--cyan-glow);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--medium-text);
}

.contact-info i {
    color: var(--cyan-glow);
    margin-top: 5px;
}

.contact-info a {
    color: var(--medium-text);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    color: var(--medium-text);
    font-size: 0.9rem;
}

/* ------------------- */
/* 11. SUBPAGES (Contact, Legal)
/* ------------------- */
body.subpage {
    padding-top: var(--header-height);
}

.page-header {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(rgba(12, 12, 12, 0.8), rgba(12, 12, 12, 0.8)),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48ZyBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMCwyNTUsMjQ3LDAuMSkiIHN0cm9rZS13aWR0aD0iMSI+PHBhdGggZD0iTTAgMGw1MCA1MG0wIDBsNTAgNTBNMTAwIDBsLTUwIDUwbTAgMGwtNTAgNTAiLz48L2c+PC9zdmc+');
    background-size: cover, 50px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--medium-text);
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--cyan-glow);
}

.breadcrumbs i {
    font-size: 0.8rem;
}

.page-header-subtitle {
    max-width: 700px;
    margin: 0 auto;
    color: var(--medium-text);
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    background: var(--dark-secondary);
    border: 1px solid rgba(0, 255, 247, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.contact-info-panel {
    padding: 40px;
    background: linear-gradient(135deg, rgba(0, 255, 247, 0.05), rgba(255, 97, 166, 0.05));
}

.contact-info-panel h2 {
    margin-bottom: 15px;
    color: var(--cyan-glow);
}

.contact-methods {
    margin-top: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--cyan-glow);
    color: var(--jet-shadow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.method-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.method-details p,
.method-details a {
    color: var(--medium-text);
}

.contact-form-wrapper {
    padding: 40px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--light-text);
    font-family: var(--font-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--cyan-glow);
    box-shadow: 0 0 10px rgba(0, 255, 247, 0.3);
}

textarea {
    resize: vertical;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='%2300FFF7'%3E%3Cpath%20d='M7%2010l5%205%205-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 1.2em;
}

/* Legal Pages */
.legal-content .content-wrapper {
    background: var(--dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--border-radius);
}

.legal-content h2 {
    font-size: 1.8rem;
    color: var(--cyan-glow);
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 3px solid var(--magenta-energy);
    padding-left: 15px;
}

.legal-content p,
.legal-content li {
    color: var(--medium-text);
    margin-bottom: 15px;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
}

/* ------------------- */
/* 12. POPUP
/* ------------------- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--dark-secondary);
    border: 1px solid var(--cyan-glow);
    border-radius: var(--border-radius);
    padding: 40px;
    z-index: 1002;
    text-align: center;
    width: 90%;
    max-width: 450px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.popup.active,
.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup.active {
    transform: translate(-50%, -50%) scale(1);
}

.popup-content .fa-check-circle {
    font-size: 4rem;
    color: var(--cyan-glow);
    margin-bottom: 20px;
}

.popup-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.popup-content p {
    color: var(--medium-text);
    margin-bottom: 30px;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ------------------- */
/* 13. ANIMATIONS
/* ------------------- */
.animate-on-load {
    animation: fadeInSlideUp 1s ease-out forwards;
    opacity: 0;
}

.hero-title.animate-on-load {
    animation-delay: 0.2s;
}

.hero-subtitle.animate-on-load {
    animation-delay: 0.4s;
}

.hero-cta.animate-on-load {
    animation-delay: 0.6s;
}

.page-header h1.animate-on-load {
    animation-delay: 0.2s;
}

.breadcrumbs.animate-on-load {
    animation-delay: 0.4s;
}

.page-header-subtitle.animate-on-load {
    animation-delay: 0.6s;
}


@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card.animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.service-card.animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.service-card.animate-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}

.service-card.animate-on-scroll:nth-child(5) {
    transition-delay: 0.4s;
}

.service-card.animate-on-scroll:nth-child(6) {
    transition-delay: 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ------------------- */
/* 14. RESPONSIVENESS
/* ------------------- */
@media (max-width: 1024px) {
    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        order: -1;
    }

    .testimonial-slider {
        grid-template-columns: 1fr 1fr;
    }

    .testimonial-card:last-child {
        grid-column: 1 / -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .roi-calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .roi-results {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .section-title {
        font-size: 2rem;
    }

    .section-padding {
        padding: 80px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-slider {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-cta {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }
}