:root {
    --bg-color: #08080a;
    /* Very dark void */
    --card-bg: rgba(18, 18, 22, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-red: #ea1b3b;
    --accent-red-hover: #c91430;
    --white: #ffffff;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Removes native CSS smooth scroll to prevent lag/conflict with JS easing */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    background-image: radial-gradient(ellipse at center, transparent 60%, rgba(234, 27, 59, 0.05) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

#preloader.loaded {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-content .logo {
    font-size: 2.8rem;
    margin-bottom: 20px;
    animation: loaderPulse 1.5s infinite;
}

.loading-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loading-bar .progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
    animation: loadingSweep 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes loadingSweep {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(300%);
    }
}

@keyframes loaderPulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    }

    100% {
        opacity: 0.5;
    }
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.section-title span,
.logo span {
    color: var(--accent-red);
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.text-center {
    text-align: center;
}

/* Utilities */
.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 6rem 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-red);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(234, 27, 59, 0.4);
    border: 2px solid var(--accent-red);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-red);
    box-shadow: 0 4px 25px rgba(234, 27, 59, 0.6);
    transform: translateY(-2px);
}

.btn-laser {
    display: inline-block;
    position: relative;
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(234, 27, 59, 0.4);
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
    transition: var(--transition);
}

.btn-laser:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 25px rgba(234, 27, 59, 0.6);
}

.btn-laser .btn-text {
    display: block;
    padding: 1rem 2.5rem;
    position: relative;
    z-index: 2;
}

.btn-laser .btn-mask {
    position: absolute;
    inset: 2px;
    border-radius: 48px;
    background: var(--accent-red);
    transition: background 0.3s ease;
    z-index: -1;
}

.btn-laser:hover .btn-mask {
    background: var(--accent-red-hover);
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 4px 15px rgba(234, 27, 59, 0.4);
    }

    100% {
        box-shadow: 0 4px 30px rgba(234, 27, 59, 0.9), 0 0 10px rgba(234, 27, 59, 0.5) inset;
    }
}

.hero .btn-primary {
    animation: buttonPulse 1.5s infinite alternate;
}

.btn-sm {
    background-color: var(--white);
    color: var(--bg-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.btn-sm:hover {
    background-color: var(--text-secondary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: padding 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(8, 8, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-social-icon:hover {
    color: var(--accent-red) !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.mobile-contact {
    display: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:not(.btn-sm):hover,
.nav-links a:not(.btn-sm).active-nav {
    color: var(--accent-red);
    transition: color var(--transition);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--white);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-color);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    opacity: 0;
}

.hero-video.play-fade {
    animation: videoFadeIn 2s ease-in-out forwards;
}

@keyframes videoFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 0.6;
    }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(8, 8, 10, 0.1) 0%, var(--bg-color) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: clamp(1.2rem, 4vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    white-space: nowrap;
    filter: drop-shadow(0 0 20px rgba(234, 27, 59, 0.5));
    background: linear-gradient(to right, #ffffff, #ffe6e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Services */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 3.5rem 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(234, 27, 59, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card:hover::before {
    transform: scaleX(1);
}

.icon {
    margin-bottom: 1.5rem;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.transparent-svg {
    stroke: var(--accent-red);
    filter: drop-shadow(0 0 8px rgba(234, 27, 59, 0.4));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.card:hover .transparent-svg {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 0 15px rgba(234, 27, 59, 0.8));
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* About */
.flex-row {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.check-list {
    margin-top: 2rem;
}

.check-list li {
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-list li::before {
    content: '✓';
    color: var(--accent-red);
    font-weight: bold;
    font-size: 1.2rem;
}

.about .flex-row {
    flex-direction: row-reverse;
}

.about-image {
    flex: 1;
    display: flex;
    gap: 2rem;
    align-items: stretch;
    min-height: 40vh;
}

/* Proof Image styling */
.proof-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1200px;
}

.morph-slider-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    width: 100%;
    justify-content: center;
}

.morph-image-wrapper {
    position: relative;
    width: 320px;
    height: 550px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transform: rotateY(-8deg) scale(1);
    transition: width 0.8s cubic-bezier(0.77, 0, 0.175, 1), height 0.8s cubic-bezier(0.77, 0, 0.175, 1), border-radius 0.8s cubic-bezier(0.77, 0, 0.175, 1), transform 0.6s ease, box-shadow 0.6s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(234, 27, 59, 0.15);
}

.morph-image-wrapper:hover {
    transform: rotateY(0deg) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(234, 27, 59, 0.3);
}

.morph-image-wrapper.state-2 {
    width: 450px;
    height: 450px;
    border-radius: 8px;
}

.morph-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.8s ease, filter 0.8s ease;
}

.morph-img.img-1 {
    opacity: 1;
    filter: blur(0);
}

.morph-image-wrapper.state-2 .morph-img.img-1 {
    opacity: 0;
    filter: blur(10px);
}

.morph-img.img-2 {
    opacity: 0;
    filter: blur(10px);
}

.morph-image-wrapper.state-2 .morph-img.img-2 {
    opacity: 1;
    filter: blur(0);
}

.morph-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s ease, background 0.3s ease;
}

.morph-arrow:hover {
    background: var(--accent-red);
}

.morph-arrow.flipped {
    transform: rotate(180deg);
}

.morph-arrow.flipped:hover {
    background: var(--accent-red);
    transform: rotate(180deg);
}

/* Stats Section under Testimonials */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}


.stat-card {
    position: relative;
    overflow: hidden;
    background: rgba(18, 18, 22, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    flex: 1;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(234, 27, 59, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(234, 27, 59, 0.15);
}

.stat-number {
    font-size: 3.5rem;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-heading);
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 3rem;
    text-align: left;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .faq-item:hover {
        border-color: rgba(234, 27, 59, 0.4);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        background: rgba(18, 18, 22, 0.95);
    }
}

.faq-item.active {
    border-color: rgba(234, 27, 59, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: rgba(18, 18, 22, 0.95);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--white);
    margin: 0;
    padding-right: 20px;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-red);
    font-weight: 400;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-answer {
    max-height: 0;
    padding: 0 2rem;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Hover effect exclusively rotates the icon to indicate it's clickable */
@media (hover: hover) {
    .faq-item:hover .faq-icon {
        transform: rotate(45deg);
        /* Turns the '+' into an 'x' */
    }
}

/* Explicit Active Class for tapping */
.faq-item.active .faq-answer {
    max-height: 1000px;
    /* Fallback max-height. Javascript inline styles reliably overwrite this dynamically for precise animation easing */
    padding: 0.5rem 2rem 1.5rem;
    opacity: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Contact */
.contact {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid rgba(234, 27, 59, 0.2);
    border-radius: 20px;
    padding: 4rem 2rem;
    max-width: 650px;
    margin: 2rem auto 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.contact-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.email-link {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-red);
    margin: 1.5rem 0;
    word-break: break-all;
}

.email-link:hover {
    color: var(--white);
    text-shadow: 0 0 15px rgba(234, 27, 59, 0.8);
}

.response-time {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 1rem;
    font-weight: 300;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #050506;
}

footer .logo {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations & Responsive */
.fade-in {
    opacity: 0;
    will-change: opacity;
    animation: fadeIn 1.2s forwards ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Multi-step Form */
.form-wrapper {
    position: relative;
    border-radius: 20px;
    padding: 3rem 2rem;
    max-width: 700px;
    margin: 2rem auto 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 45px rgba(234, 27, 59, 0.15);
    /* Soft outer static glow */
    overflow: hidden;
    z-index: 1;
    /* Creates context to keep pseudo-elements behind content */
}

/* The dark block that hides the massive lasers */
.laser-mask {
    position: absolute;
    inset: 2px;
    background: #0e0e12;
    border-radius: 18px;
    z-index: -1;
}

/* Linear Constant-Speed SVG Border */
.form-border-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.form-bg-rect {
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    x: 1px;
    y: 1px;
    rx: 19px;
    ry: 19px;
    fill: #0e0e12;
}

.laser-trace {
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    x: 1px;
    y: 1px;
    rx: 19px;
    ry: 19px;
    fill: none;
    stroke: var(--accent-red);
    stroke-linecap: round;
    stroke-dasharray: var(--laser-length, 150px) var(--laser-perimeter, 3000px);
}

.l-head-sym {
    animation: sweepSync 2s linear infinite;
    stroke-width: 3px; 
    filter: drop-shadow(0 0 4px var(--accent-red)) drop-shadow(0 0 12px var(--accent-red)); 
}

@keyframes sweepSync {
    0% { 
        stroke-dasharray: 0 var(--laser-perimeter);
        stroke-dashoffset: calc(-1 * var(--laser-top-center)); 
        opacity: 0;
    }
    1% {
        opacity: 1;
    }
    14% {
        stroke-dasharray: var(--laser-length, 150px) var(--laser-perimeter);
        stroke-dashoffset: calc(-1 * var(--laser-top-center)); 
    }
    85% { 
        stroke-dasharray: var(--laser-length, 150px) var(--laser-perimeter);
        opacity: 1;
    }
    98% {
        opacity: 0;
    }
    100% { 
        stroke-dasharray: var(--laser-length, 150px) var(--laser-perimeter);
        stroke-dashoffset: calc(-1 * (var(--laser-top-center) + var(--laser-perimeter) / 2 - var(--laser-length))); 
        opacity: 0;
    }
}


/* The shared laser logic */
.laser {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2000px;
    height: 2000px;
    z-index: -2;
}

.right-laser {
    background: conic-gradient(from 0deg,
            #ffffff 0deg,
            transparent 1deg,
            transparent 270deg,
            rgba(234, 27, 59, 0.2) 330deg,
            rgba(234, 27, 59, 1) 358deg,
            #ffffff 360deg);
    animation: traceContinuous 4s linear infinite;
}

.left-laser {
    background: conic-gradient(from 0deg,
            #ffffff 0deg,
            transparent 1deg,
            transparent 270deg,
            rgba(234, 27, 59, 0.2) 330deg,
            rgba(234, 27, 59, 1) 358deg,
            #ffffff 360deg);
    animation: traceContinuous 4s linear infinite;
    animation-delay: -2s;
}

@keyframes traceContinuous {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.form-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step.active {
    background: var(--accent-red);
    color: var(--white);
    border-color: var(--accent-red);
    box-shadow: 0 0 15px rgba(234, 27, 59, 0.6);
}

.step.completed {
    background: var(--accent-red);
    color: var(--white);
    border-color: var(--accent-red);
}

.step-line {
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 10px;
    transition: var(--transition);
}

.step-line.active {
    background: var(--accent-red);
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out forwards;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--white);
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.option-card input,
.social-btn input {
    display: none;
}

.option-card,
.social-btn {
    display: block;
    cursor: pointer;
}

.option-content,
.social-content {
    display: block;
    background: rgba(18, 18, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-secondary);
}

.option-content .main-text {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.option-content .sub-text {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.option-card input:checked+.option-content,
.social-btn input:checked+.social-content {
    background: rgba(234, 27, 59, 0.1);
    border-color: var(--accent-red);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(234, 27, 59, 0.2);
}

.option-card:hover .option-content,
.social-btn:hover .social-content {
    border-color: rgba(234, 27, 59, 0.5);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

/* Inputs */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-label {
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.social-content {
    padding: 1rem;
    text-align: center;
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(18, 18, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(234, 27, 59, 0.2);
}

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem top 50%;
    background-size: 0.8rem auto;
    cursor: pointer;
}

.custom-select option {
    background-color: #121216;
    /* Matches the input background */
    color: var(--white);
    padding: 15px;
}

/* Buttons */
.button-group {
    display: flex;
    margin-top: 2rem;
    gap: 1rem;
}

.button-group.right {
    justify-content: flex-end;
}

.button-group.space-between {
    justify-content: space-between;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

/* Testimonials Slider */
.testimonials-slider-container {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto 0;
    padding: 0 4rem;
}

.testimonials-viewport {
    overflow: hidden;
    width: 100%;
    perspective: 1000px;
    padding: 2rem 0;
    /* buffer for box-shadows */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.testimonials-track {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(18, 18, 22, 0.8);
    color: var(--accent-red);
    border: 1px solid rgba(234, 27, 59, 0.3);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--accent-red);
    color: var(--white);
    box-shadow: 0 0 15px rgba(234, 27, 59, 0.4);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.testimonial-card {
    position: absolute;
    width: 100%;
    max-width: 550px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 3rem 2rem;
    border-radius: 16px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    backface-visibility: hidden;
    will-change: transform, opacity;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s, filter 0.6s, box-shadow 0.6s;
    text-align: left;
    user-select: none;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transform: scale(0.8) translateZ(0);
}

.testimonial-card.active {
    transform: translateX(0) scale(1) translateZ(0);
    filter: blur(0);
    opacity: 1;
    z-index: 5;
    pointer-events: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(234, 27, 59, 0.3);
}

.testimonial-card.prev {
    transform: translateX(-70%) scale(0.85) translateZ(0);
    filter: blur(4px);
    opacity: 0.5;
    z-index: 4;
}

.testimonial-card.next {
    transform: translateX(70%) scale(0.85) translateZ(0);
    filter: blur(4px);
    opacity: 0.5;
    z-index: 4;
}

.testimonial-card.far-prev {
    transform: translateX(-140%) scale(0.75) translateZ(0);
    opacity: 0;
    z-index: 1;
}

.testimonial-card.far-next {
    transform: translateX(140%) scale(0.75) translateZ(0);
    opacity: 0;
    z-index: 1;
}

.testimonial-card.active:hover {
    transform: translateY(-5px) scale(1) translateZ(0);
    box-shadow: 0 20px 50px rgba(234, 27, 59, 0.2);
}

.stars {
    color: var(--accent-red);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-quote {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(234, 27, 59, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--accent-red);
    border: 1px solid rgba(234, 27, 59, 0.3);
    font-size: 1.2rem;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .testimonial-card.active {
        transform: translateX(0) scale(1) translateZ(0);
    }

    .testimonial-card.prev {
        transform: translateX(0) scale(0.9) translateZ(0);
        opacity: 0;
        filter: blur(5px);
        z-index: 1;
    }

    .testimonial-card.next {
        transform: translateX(0) scale(0.9) translateZ(0);
        opacity: 0;
        filter: blur(5px);
        z-index: 1;
    }

    .testimonial-card.far-prev,
    .testimonial-card.far-next {
        transform: translateX(0) scale(0.8) translateZ(0);
        opacity: 0;
    }

    .testimonials-slider-container {
        padding: 0 1.5rem;
    }

    .prev-btn {
        left: -5px;
    }

    .next-btn {
        right: -5px;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        flex-direction: column;
    }

    /* Ensure normal text-on-top layout for mobile */
    .about .flex-row {
        flex-direction: column;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .form-wrapper {
        padding: 2rem 1rem;
    }

    .step-line {
        width: 30px;
    }

    .button-group,
    .button-group.space-between,
    .button-group.right {
        flex-direction: column;
    }

    .button-group button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        white-space: normal;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .flex-row {
        flex-direction: column;
        gap: 3rem;
    }

    .morph-image-wrapper {
        width: 300px;
        height: 450px;
        max-width: none;
    }

    .morph-image-wrapper.state-2 {
        width: 340px;
        height: 340px;
        max-width: none;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 72px;
        gap: 0;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.4s ease-in-out;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 2rem 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .desktop-contact {
        display: none !important;
    }

    .mobile-contact {
        display: list-item !important;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}