:root {
    --bg-primary: #E5E3D3;
    /* Beige from reference */
    --bg-secondary: #000000;
    /* Black from reference */
    --text-primary: #000000;
    --text-secondary: #E5E3D3;
    --accent: #FF5F1F;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: cubic-bezier(0.77, 0, 0.175, 1);
}

/* Texture Overlay */
.grain {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
    animation: noise 0.2s infinite;
}

@keyframes noise {

    0%,
    100% {
        transform: translate(0, 0)
    }

    10% {
        transform: translate(-1%, -1%)
    }

    20% {
        transform: translate(-2%, 1%)
    }

    30% {
        transform: translate(1%, -2%)
    }

    40% {
        transform: translate(-1%, 3%)
    }

    50% {
        transform: translate(-2%, 1%)
    }

    60% {
        transform: translate(3%, 0)
    }

    70% {
        transform: translate(0, 2%)
    }

    80% {
        transform: translate(-3%, 1%)
    }

    90% {
        transform: translate(1%, 2%)
    }
}

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

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}


/* Ensure sections have relative positioning for the grain */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;

}

main {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

body.page-loaded main {
    opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    gap: 2rem;
    animation: fadeOut 1s ease-in-out forwards 2.5s;
    /* Increased duration for longer animation */
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.loader-beetle {
    width: clamp(100px, 40vw, 150px);
    height: clamp(100px, 40vw, 150px);
}

.loader-text {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.5rem;
    animation: textBlur 2s ease-in-out infinite;
}

@keyframes textBlur {

    0%,
    100% {
        filter: blur(0);
        opacity: 1;
    }

    50% {
        filter: blur(4px);
        opacity: 0.5;
    }
}

/* Beetle Forming Animation */
.body-base {
    opacity: 0;
    transform: scale(0.5);
    animation: bodyForm 0.8s ease-out forwards 0.2s;
}

.head {
    opacity: 0;
    transform: translateY(-20px);
    animation: partIn 0.6s ease-out forwards 0.4s;
}

.antenna {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawLine 0.5s ease-out forwards 0.8s;
}

.wing {
    opacity: 0;
}

.wing-l {
    transform: translateX(-40px);
    animation: wingIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.6s;
}

.wing-r {
    transform: translateX(40px);
    animation: wingIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.6s;
}

.leg {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
}

.l-1,
.l-2,
.l-3 {
    animation: drawLine 0.4s ease-out forwards 1s;
}

.r-1,
.r-2,
.r-3 {
    animation: drawLine 0.4s ease-out forwards 1.2s;
}

@keyframes bodyForm {
    to {
        opacity: 0.2;
        transform: scale(1);
    }
}

@keyframes partIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wingIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    background: transparent;
    border-bottom: 1px solid transparent;
    opacity: 0;
    pointer-events: none;
}

nav.scrolled {
    padding: 1.2rem 5%;
    background: rgba(229, 227, 211);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

body.page-loaded nav {
    opacity: 1;
    pointer-events: all;
}

.header-logo-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
}

.logo-circle-btn {
    width: 45px;
    height: 45px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
   
    transition: all 0.4s var(--transition);
    
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
        
    }

    10% {
        transform: scale(1.1);

    }

    20% {
        transform: scale(1);

    }

    30% {
        transform: scale(1.1);
    }

    40% {
        transform: scale(1);
      
    }
}

.logo-circle-btn svg {
    width: 30px;
    height: 30px;
}

.btn-legs,
.btn-wings {
    opacity: 0;
    transition: all 0.5s var(--transition);
}

.btn-legs {
    transform: scale(0.7);
    transform-origin: center;
}

.btn-wing-l,
.btn-wing-r {
    transform-origin: 50px 40px;
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.5s ease;
}

.logo-circle-btn:hover .btn-legs,
.logo-circle-btn:hover .btn-wings {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Click Animation State - Top to Bottom Flight */
.logo-circle-btn.is-animating {
    position: fixed;
    pointer-events: none;
    background: black;
    border-color: black;
    z-index: 10000;
    transition: none;
    animation: beetleDive 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
}

.logo-circle-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: black;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: -2;
    pointer-events: none;
}

.logo-circle-btn.is-animating::after {
    animation: blackoutGrow 1s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes blackoutGrow {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    40% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(400);
        opacity: 1;
    }
}

@keyframes beetleDive {
    0% {
        top: var(--startY);
        left: var(--startX);
        transform: translate(0, 0) scale(1);
    }

    100% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(2.5);
    }
}

.logo-circle-btn.is-animating svg {
    overflow: visible;
}

.logo-circle-btn.is-animating .btn-legs,
.logo-circle-btn.is-animating .btn-antennas {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.logo-circle-btn.is-animating .btn-wings {
    opacity: 1;
}

.logo-circle-btn.is-animating .btn-wing-l {
    animation: wingExpandL 1s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.logo-circle-btn.is-animating .btn-wing-r {
    animation: wingExpandR 1s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes wingExpandL {
    0% {
        transform: rotate(0) scale(1);
    }

    30% {
        transform: rotate(-45deg) scale(2);
    }

    100% {
        transform: rotate(-160deg) scale(250);
    }
}

@keyframes wingExpandR {
    0% {
        transform: rotate(0) scale(1);
    }

    30% {
        transform: rotate(45deg) scale(2);
    }

    100% {
        transform: rotate(160deg) scale(250);
    }
}

.logo-circle-btn:hover {
    animation: none;
    transform: scale(1.15) rotate(5deg);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}




.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1rem, 4vw, 1.2rem);
    letter-spacing: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

.nav-toggle.active span:first-child {
    transform: rotate(45deg) translateY(6px);
}

.nav-toggle.active span:last-child {
    transform: rotate(-45deg) translateY(-6px);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    margin-left: clamp(1rem, 3vw, 2.5rem);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--text-primary);
    transition: width 0.4s var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: #444;
}

.nav-links a.active {
    color: var(--text-primary);
}

#navbar {
    transition: all 0.4s var(--transition);
}

#scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--text-primary);
    width: 0%;
    transition: width 0.1s linear;
}

/* Hero Split-Screen */
.hero-wrapper {
    height: 300vh;
    /* Scroll space for the animation */
    position: relative;
}

.hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: var(--bg-secondary);
    /* Dark background that gets revealed */
}

.hero-bg-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

.hero-cycle-wrapper {
    position: relative;
    overflow: hidden;
    text-align: center;
    /* height set by JS after measuring first phrase */
}

.cycle-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.cycle-phrase {
    flex-shrink: 0;
    width: 100%;
    text-align: center;
}

.reveal-h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 0.9;
    color: var(--text-secondary);
    text-transform: uppercase;
    transition: transform 0.1s linear;
}

/* Curtains */
.curtain-top,
.curtain-bottom {
    position: absolute;
    width: 100%;
    height: 50.5vh;
    /* Slight overlap to avoid gaps */
    background: var(--bg-primary);
    z-index: 2;
    overflow: hidden;
    transition: transform 0.1s linear;
    /* Responsive to scroll */
}

.curtain-top {
    top: 0;
}

.curtain-bottom {
    bottom: 0;
}

.curtain-content {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Full viewport height container for the text */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Position text correctly within curtains */
.curtain-top .curtain-content {
    top: 0;
}

.curtain-bottom .curtain-content {
    bottom: 0;
}

.split-text {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 13.5vw, 15rem);
    /* Match the reveal size */
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Page Entry Curtains for Subpages */
.page-curtain-top,
.page-curtain-bottom {
    position: fixed;
    left: 0;
    width: 100%;
    height: 50.5vh;
    background: var(--bg-primary);
    z-index: 9999;
    pointer-events: none;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
}

.page-curtain-top {
    top: 0;
}

.page-curtain-bottom {
    bottom: 0;
}

.page-loaded .page-curtain-top {
    transform: translateY(-100%);
}

.page-loaded .page-curtain-bottom {
    transform: translateY(100%);
}

/* Hero Label */
.hero-label {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(var(--accent-rgb), 0.1);
    border-left: 3px solid var(--accent);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 10rem 0;
    background: var(--bg-primary);
    position: relative;
    z-index: 5;
    overflow-x: hidden;
    /* clip horizontal bleed only — keeps card y-animations intact */
}

.subheading {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;

    opacity: 0.5;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.section-header .subheading {
    margin-bottom: 0;
}

.btn-text-arrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    transition: opacity 0.3s;
}

.btn-text-arrow svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s var(--transition);
}

.btn-text-arrow:hover {
    opacity: 0.6;
}

.btn-text-arrow:hover svg {
    transform: translateX(10px);
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        margin-bottom: 2rem;
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.2rem;
    max-width: 600px;
    opacity: 0.8;
}

.img-reveal-wrapper {
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 6px;
    perspective: 1500px;
    position: relative;
    /* Enable 3D Depth */
}

.img-reveal-wrapper:hover img {
    filter: brightness(0.5) grayscale(0.3);
}

.img-reveal-wrapper img {
    width: 105%;
    /* Slightly larger to allow parallax movement without edges */
    height: 105%;
    margin: -2.5%;
    /* Center the oversized image */
    object-fit: cover;

    transition: filter 0.8s ease;
    transform-style: preserve-3d;
    will-change: transform, filter;
}

.img-reveal-wrapper:hover .video-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.about-stats {
    display: flex;
    gap: 4rem;
    margin-top: 4rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
    margin-top: 0.5rem;
}



/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    padding: 2rem 1rem;
    
   border-radius: 6px;
  
     background: var(--bg-secondary);
    color: var(--text-secondary);
    transform: translateY(-10px);
  
    transition: all .6s ease-in-out;
}


.service-num {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Projects */
.projects-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.project-item {
    cursor: pointer;
}

.project-img {
    height: 500px;
    background: #000;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    perspective: 1500px;
    /* Enable 3D Depth */
}


.project-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.6s var(--transition);
    z-index: 2;
}

.project-img img {
    width: 115%;
    height: 115%;
    margin: -7.5%;
    object-fit: cover;
    filter: grayscale(.3) brightness(0.8);
    transition: transform 0.8s var(--transition), filter 0.8s var(--transition);
    transform-style: preserve-3d;
    will-change: transform;
}

.project-item:hover .project-img img {
    filter: grayscale(0) brightness(0.6);
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
    transition: transform 0.8s var(--transition), opacity 0.4s ease;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hover-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-item:hover .video-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.project-item:hover .project-img::after {
    opacity: 0.2;
}

.project-info {
    transform: translateY(0);
    transition: transform 0.6s var(--transition);
}

.project-item:hover .project-info {
    transform: translateY(10px);
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.4s;
}

.project-item:hover h3 {
    color: var(--accent);
}


/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.process-step {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
}

.process-step .step-num {
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.process-step h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.price-card {
    padding: 4rem 3rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    position: relative;
    background: transparent;
    transition: all 0.4s var(--transition);
}

.price-card.featured {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transform: scale(1.05);
    z-index: 10;
}

.price-card .badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.price-card .price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.price-card .price span {
    font-size: 1rem;
    opacity: 0.6;
}

.price-card ul {
    list-style: none;
    margin-bottom: 3rem;
}

.price-card ul li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
}

.price-card.featured ul li {
    border-color: rgba(255, 255, 255, 0.1);
}

.tick {
    color: var(--accent);
    margin-right: 0.8rem;
    font-weight: 900;
}

.price-actions {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-text-only {
    background: none;
    border: none;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 0;
    color: inherit;
    opacity: 0.6;
    transition: opacity 0.3s;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.btn-text-only:hover {
    opacity: 1;
}

.btn-outline,
.btn-solid {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-outline {
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-solid {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* Testimonials Slider */
.testimonial-slider {
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
}

.testimonial-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.testimonial-slide {
    min-width: 100%;
    padding-right: 2rem;
}

.testimonial-slide .quote {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 3rem;
    font-weight: 700;
}

.testimonial-slide .client {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.testimonial-slide .client strong {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.testimonial-slide .client span {
    opacity: 0.5;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
}

.t-arrow {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.t-arrow svg {
    width: 18px;
    height: 18px;
}

.t-arrow:hover {
    background: var(--bg-secondary);
    border-color: var(--bg-secondary);
    color: var(--text-secondary);
}

.t-dots {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.t-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.4s;
    padding: 0;
}

.t-dot.active {
    background: var(--bg-secondary);
    width: 24px;
    border-radius: 4px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.team-card {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}


.team-monogram {
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-monogram span {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.team-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.team-role {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.team-info p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.7;
}

.team-name-link {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.4s ease;
}

.team-name-link:hover {
    background-size: 100% 1px;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Projects Info Fix */
.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.project-info span {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Review Submission Form */
.review-submission-section {
    background: var(--bg-primary);
}

.review-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8rem;
    align-items: flex-start;
}

.review-intro {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.7;
    max-width: 500px;
}

.review-guidelines {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guide-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.guide-item p {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.6;
}

.review-form-container {
    background: var(--bg-secondary);
    padding: 4rem;
    color: var(--text-secondary);
    border-radius: 6px;
}

.modern-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}



.modern-form .form-group {
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.modern-form label {
    display: block;
    font-size: 0.65rem;
    font-weight: 900;
    margin-bottom: 0.2rem;
    letter-spacing: 3px;
    opacity: 0.4;
    transition: all 0.4s;
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    color: white;
    font-family: var(--font-main);
    font-size: 1.1rem;
    outline: none;
    transition: all 0.4s var(--transition);
}

.modern-form input:focus,
.modern-form textarea:focus {
    border-color: var(--accent);
    padding-left: 1rem;
}

.modern-form .form-group:focus-within label {
    color: var(--accent);
    opacity: 1;
    transform: translateX(5px);
}

/* Floating effect alternative if needed, but keeping it sharp now */
.modern-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Star Rating */
.rating-group {
    margin-bottom: 3rem;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: color 0.3s;
    opacity: 1 !important;
    margin-bottom: 0 !important;
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
    color: var(--accent);
}

.modern-form .submit-btn {
    width: 100%;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 1.5rem;
    border: none;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s var(--transition);
    border-radius: 0;
}

.modern-form .submit-btn .btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.modern-form .submit-btn .arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.4s var(--transition);
}

.modern-form .submit-btn:hover {
    transform: scale(1.02);
    background: var(--accent);
    color: white;
}

.modern-form .submit-btn:hover .arrow {
    transform: translateX(10px);
}

@media (max-width: 1024px) {
    .review-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .review-form-container {
        padding: 3rem 2rem;
    }

    .modern-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(229, 227, 211, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(229, 227, 211, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 20%, rgba(255, 122, 0, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(229, 227, 211, 0.08) 0%, transparent 40%);
    animation: footerAnimate 25s infinite alternate ease-in-out;
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

@keyframes footerAnimate {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(-5%, 10%) rotate(2deg) scale(1.1);
    }

    66% {
        transform: translate(10%, -5%) rotate(-2deg) scale(0.9);
    }

    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}


.footer-cta {
    padding: 10rem 0;
    border-bottom: 1px solid rgba(231, 228, 211, 0.1);
    text-align: center;
}

.payment-flex-teaser {
    margin: 3rem 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2.5rem;
    background: black;
    color: #E5E2D3;
    transform: rotate(-3deg);
    border-radius: 4px;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1), 0 0 0 5px rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 1s 0.5s ease-out both;
}

.payment-flex-teaser:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.15);
}

.payment-heading {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: #E5E2D3;
    margin: 0;
}

.new-tag {
    position: absolute;
    top: -55px;
    right: -55px;
    width: 100px;
    height: 100px;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    clip-path: polygon(50% 0%, 57% 18%, 75% 7%, 70% 25%, 93% 25%,
            75% 40%, 100% 50%, 75% 60%, 93% 75%,
            70% 75%, 75% 93%, 57% 82%, 50% 100%,
            43% 82%, 25% 93%, 30% 75%, 7% 75%,
            25% 60%, 0% 50%, 25% 40%, 7% 25%,
            30% 25%, 25% 7%, 43% 18%);
    transform: rotate(10deg);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    z-index: 10;
    pointer-events: none;
    line-height: 1;
}



.payment-info-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.payment-info-btn:hover {
    background: var(--text-secondary);
    color: var(--bg-secondary);
    border-color: var(--text-secondary);
}

/* Info Modal Variant */
.info-modal {
    max-width: 500px;
    text-align: left;
}

.info-modal h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.info-modal p {
    opacity: 0.7;
    margin-bottom: 2rem;
}

.payment-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.p-step {
    position: relative;
    padding-left: 3rem;
}

.p-num {
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.4;
}

.p-step h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.p-step p {
    font-size: 0.9rem;
    margin-bottom: 0;
}


/* Sleek Interactive Footer Portal */
.footer-cta-portal {
    position: relative;
    padding: 10rem 0;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-spotlight {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    mix-blend-mode: screen;
}

.footer-cta-portal:hover .cta-spotlight {
    opacity: 1;
}

.cta-marquee-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    pointer-events: none;
    opacity: 0.2;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cta-marquee {
    display: flex;
    white-space: nowrap;
    font-size: clamp(4rem, 15vw, 15rem);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    color: transparent;
    transition: all 0.5s ease;
}

.marquee-1 { animation: marquee-scroll 40s linear infinite; }
.marquee-2 { animation: marquee-scroll-reverse 60s linear infinite; -webkit-text-stroke: 1px var(--accent); opacity: 0.5; }
.marquee-3 { animation: marquee-scroll 50s linear infinite; }

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-scroll-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.cta-container {
    position: relative;
    z-index: 10;
}

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

.cta-sub {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: var(--accent);
    margin-bottom: 2rem;
    display: block;
}

.cta-title {
    font-size: clamp(3rem, 10vw, 8rem) !important;
    font-weight: 900 !important;
    line-height: 0.9 !important;
    letter-spacing: -0.04em !important;
    color: white !important;
    margin-bottom: 3rem !important;
}

.cta-action-box {
    display: flex;
    justify-content: center;
}

.cta-btn {
    display: inline-block;
    padding: 1.8rem 5rem;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 4px;
    background: white;
    color: black;
    border-radius: 100px;
    transition: all 0.4s var(--transition);
    text-decoration: none;
    z-index: 10;
}

.cta-btn:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
    z-index: 100;
}

.footer-top {
    padding: 8rem 0 6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
}

.brand-col .footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.footer-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.7;
    max-width: 400px;
    margin-bottom: 2.5rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(231, 228, 211, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.4s var(--transition);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s var(--transition);
}

.social-icon:hover {
    background: var(--text-secondary);
    color: var(--bg-secondary);
    border-color: var(--text-secondary);
}

.social-icon:hover svg {
    transform: rotate(10deg) scale(1.1);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    opacity: 0.5;
    letter-spacing: 2px;
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    text-align: left;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-trigger .chevron {
    display: none;
    width: 16px;
    height: 16px;
    transition: transform 0.4s var(--transition);
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    font-weight: 500;
}

.footer-links a,
.footer-contact a {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
    display: inline-block;
}

.footer-links a:hover,
.footer-contact a:hover {
    opacity: 1;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .accordion-col {
        border-bottom: 1px solid rgba(231, 228, 211, 0.1);
    }

    .footer-heading {
        margin-bottom: 0;
        padding: 1.5rem 0;
        cursor: pointer;
        opacity: 0.8;
    }

    .accordion-trigger .chevron {
        display: block;
    }

    .accordion-trigger[aria-expanded="true"] .chevron {
        transform: rotate(180deg);
    }

    .footer-content-wrapper {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.5s var(--transition);
        overflow: hidden;
    }

    .accordion-trigger[aria-expanded="true"]+.footer-content-wrapper {
        grid-template-rows: 1fr;
    }



    .footer-links,
    .footer-contact {
        padding-bottom: 2rem;
    }
}

.footer-bottom {
    padding: 3rem 0;
    border-top: 1px solid rgba(231, 228, 211, 0.1);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.5;
}

.footer-legal {
    display: flex;
    gap: 3rem;
}

.footer-legal a {
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.5;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-legal a:hover {
    opacity: 1;
}

.footer-bg-text {
    position: absolute;
    bottom: -10%;
    left: 0;
    width: 100%;
    font-size: clamp(10rem, 30vw, 40rem);
    font-weight: 950;
    color: rgba(231, 228, 211, 0.034);
    text-align: center;
    pointer-events: none;
    z-index: -1;
    line-height: 0.8;
    letter-spacing: -0.05em;
    user-select: none;
    animation: textWave 15s infinite ease-in-out;
}

@keyframes textWave {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1.05);
    }

    33% {
        transform: translateY(-30px) rotate(1deg) scale(1);
    }

    66% {
        transform: translateY(15px) rotate(-1deg) scale(1.02);
    }
}


/* Back to Top */
.back-to-top {
    position: absolute;
    right: 5%;
    bottom: 2rem;
    width: 60px;
    height: 60px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s var(--transition);
    z-index: 100;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.back-to-top:hover {
    background: var(--accent);
    color: white;
}

.back-to-top:hover svg {
    transform: translateY(-5px);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1.5fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-cta {
        padding: 6rem 0;
    }

    .footer-bottom-flex {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
        gap: 1.5rem;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 8%;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    clip-path: circle(0% at 100% 0%);
    transition: all 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    clip-path: circle(150% at 100% 0%);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

.mobile-close {
    position: absolute;
    top: 2rem;
    right: 5%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
    z-index: 1002;
}

.mobile-close span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    display: block;
}

.mobile-close span:first-child {
    transform: rotate(45deg) translateY(4px);
}

.mobile-close span:last-child {
    transform: rotate(-45deg) translateY(-4px);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -250px;
    gap: 1.5rem;
}

.mobile-links a {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 10vw, 4rem);
    font-weight: 900;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -1px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active .mobile-links a {
    transform: translateY(0);
    opacity: 1;
}

.mobile-links a:nth-child(1) { transition-delay: 0.2s; }
.mobile-links a:nth-child(2) { transition-delay: 0.3s; }
.mobile-links a:nth-child(3) { transition-delay: 0.4s; }
.mobile-links a:nth-child(4) { transition-delay: 0.5s; }
.mobile-links a:nth-child(5) { transition-delay: 0.6s; }

.mobile-links a:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* Responsive Updates */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    nav {
        padding: 1rem 5%;
    }

    .about-grid,
    .contact-split,
    .services-grid,
    .projects-list,
    .pricing-grid,
    .process-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .section {
        padding: 6rem 0;
    }

    .hero-wrapper {
        height: 250vh;
    }

    .price-card.featured {
        transform: scale(1);
    }

    .testimonial-content .quote {
        font-size: 1.8rem;
    }

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

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

    .img-reveal-wrapper {
        height: 400px;
    }

    .project-img {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .reveal-h1 {
        font-size: 13vw;
        /* Fluid scaling to fit mobile width */
        width: 100%;
        text-align: center;
    }

    .split-text {
        font-size: 13vw;
        /* Fluid scaling to fit mobile width */
    }

    .logo {
        font-size: 0.9rem;
    }

    

    .hero-bg-content {
        width: 100%;
        padding: 0 5%;
    }
}

/* Animations for Intersection Observer */
.section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.4, 0, 1), transform 1.2s cubic-bezier(0.2, 0.4, 0, 1);
}

.section.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Reveals */
.service-card,
.process-step,
.price-card,
.project-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.4, 0, 1), transform 0.8s cubic-bezier(0.2, 0.4, 0, 1);
}

.reveal-active .service-card,
.reveal-active .process-step,
.reveal-active .price-card,
.reveal-active .project-item {
    opacity: 1;
    transform: translateY(0);
}

.reveal-active .service-card:nth-child(2),
.reveal-active .process-step:nth-child(2),
.reveal-active .price-card:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal-active .service-card:nth-child(3),
.reveal-active .process-step:nth-child(3),
.reveal-active .price-card:nth-child(3) {
    transition-delay: 0.4s;
}

.reveal-active .process-step:nth-child(4) {
    transition-delay: 0.6s;
}

/* Heading Reveal */
.subheading,
h2 {
    overflow: hidden;
}

.subheading span,
h2 span {
    display: block;
    transform: translateY(100%);
    transition: transform 1s cubic-bezier(0.2, 0.4, 0, 1);
}

.reveal-active .subheading span,
.reveal-active h2 span {
    transform: translateY(0);
        margin-bottom: 40px;
}

/* Image Mask Reveal */
.img-reveal-wrapper,
.project-img {
    position: relative;
    overflow: hidden;
}

.img-reveal-wrapper::after,
.project-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    transform: translateX(0);
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 2;
}

.reveal-active .img-reveal-wrapper::after,
.reveal-active .project-img::after {
    transform: translateX(101%);
}

/* ---------- Per-element direction-aware reveals ---------- */
[class*="reveal-from"] {
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-from-left {
    opacity: 0;
    transform: translateX(-70px);
}

.reveal-from-right {
    opacity: 0;
    transform: translateX(70px);
}

.reveal-from-bottom {
    opacity: 0;
    transform: translateY(60px);
}

.reveal-scale-in {
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.in-view.reveal-from-left,
.in-view.reveal-from-right,
.in-view.reveal-from-bottom {
    opacity: 1;
    transform: translate(0);
}

.in-view.reveal-scale-in {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delay utilities */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.25s;
}

.delay-3 {
    transition-delay: 0.4s;
}

.delay-4 {
    transition-delay: 0.55s;
}

.delay-5 {
    transition-delay: 0.7s;
}

/* Team enhanced stagger */
.team-card {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-active .team-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-active .team-card:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal-active .team-card:nth-child(2) {
    transition-delay: 0.3s;
}

/* Animated line grow on elements */
.line-grow {
    position: relative;
}

.line-grow::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    opacity: 0.15;
    transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.in-view.line-grow::after {
    width: 100%;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9005;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-primary);
    width: 95%;
    max-width: 550px;
    padding: 3.5rem 3rem;
    position: relative;
    border-radius: 30px;
    transform: translateY(30px) scale(0.98);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 100px rgba(0,0,0,0.4);
    overflow: hidden;
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0,0,0,0.03);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-primary);
    line-height: 1;
    transition: 0.3s;
}

.modal-close:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: rotate(90deg);
}

.modal-body h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
}

.modal-body p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    opacity: 0.6;
    max-width: 100%;
}

.modal-list {
    list-style: none;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-list li {
    padding: 0.8rem 1.2rem;
    background: rgba(0,0,0,0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
}

.modal-list li:hover {
    background: rgba(0,0,0,0.05);
    transform: translateX(5px);
}

.modal-list li::before {
    content: '✓';
    margin-right: 1rem;
    color: var(--accent);
    font-weight: 900;
    font-size: 1rem;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.modal-cta {
    background: #000;
    color: #FFF !important;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.4s;
    text-decoration: none;
}

.modal-cta:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,92,0,0.2);
}

.modal-price-teaser {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 3rem 2rem;
    }
}

/* Inner Page Specifics */
.inner-page nav {
    background: rgba(229, 227, 211, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    padding: 1.5rem 5% !important;
}

.page-hero {
    padding: 15rem 0 10rem;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 1;
    font-weight: 900;
    margin-top: 2rem;
}

.accent-text {
    color: var(--accent);
}

.hero-subtext {
    font-size: 1.4rem;
    max-width: 600px;
    opacity: 0.6;
    margin-top: 3rem;
    line-height: 1.6;
}

.contact-section-bg {
    background: linear-gradient(to bottom, var(--bg-primary) 0%, #fdfbf5 100%);
}

/* About Detailed Grid */
.about-detailed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    overflow: auto;
    margin-top: 4rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.value-card {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 4rem 3rem;
    border-radius: 40px 10px 40px 10px;
    transition: transform 0.4s var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-num {
    display: block;
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 2rem;
}

.value-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Services Detailed List */
.service-item-detail {
    display: grid;
    grid-template-columns: 0.6fr 1.4fr;
    padding: 6rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.service-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-index {
    font-weight: 900;
    opacity: 0.3;
}

.service-desc p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 800px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
}

.feature-tags li {
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Projects Detailed Grid */
.project-card-full {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 6rem;
    margin-bottom: 12rem;
    align-items: center;
}

.project-card-full:nth-child(even) {
    direction: rtl;
}

.project-card-full:nth-child(even) .project-details {
    direction: ltr;
}

.p-category {
    display: block;
    font-size: 0.8rem;
    font-weight: 900;
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.project-details h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 2rem;
}

.view-project-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    font-weight: 900;
    margin-top: 3rem;
}

/* Visionary Contact Layout */
.contact-visionary-section {
    background: #050505;
    padding: 6rem 0 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.contact-main-header {
    text-align: center;
    padding-bottom: 5rem;
    position: relative;
    z-index: 5;
}

.contact-main-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 15vw, 12rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.8;
    color: white;
    margin: 0;
}

.contact-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    margin: 0 auto;
    width: 100vw;
}

/* Branding Column */
.contact-branding-column {
    padding: 10vh 12% 8vh;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #050505;
}

.contact-hero-image {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    opacity: 0.1;
    /* Very subtle */
    z-index: 1;
    pointer-events: none;
    filter: grayscale(1) contrast(1.2);
}

.contact-hero-image .img-reveal-wrapper,
.contact-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vertical-title {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%) rotate(-180deg);
    writing-mode: vertical-rl;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 15px;
    color: var(--accent);
    opacity: 0.15;
    /* Even more ghost-like */
    pointer-events: none;
}

.contact-branding-content {
    position: relative;
    z-index: 2;
}

.contact-branding-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.05em;
    margin: 1.5rem 0 3rem;
    color: white;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.branding-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.detail-label {
    display: block;
    font-size: 0.55rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.detail-link,
.detail-text {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: 700;
    color: white;
    text-decoration: none;
    line-height: 1.1;
    transition: opacity 0.3s;
}

.detail-link:hover {
    opacity: 0.5;
}

.social-mini-flex {
    display: flex;
    gap: 2.5rem;
}

.social-mini-flex a {
    font-size: 0.75rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    letter-spacing: 1px;
}

/* Visionary About Layout */
.about-visionary-section {
    background: #050505;
    padding: 6rem 0 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.about-main-header {
    text-align: center;
    padding-bottom: 5rem;
    position: relative;
    z-index: 5;
}

.about-main-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 15vw, 12rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.8;
    color: white;
    margin: 0;
}

.about-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 90vh;
    width: 100vw;
}

.about-visual-column {
    padding: 10vh 12% 8vh;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-hero-image {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    filter: grayscale(1) brightness(0.8);
}

.about-hero-image .img-reveal-wrapper,
.about-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-visual-content {
    position: relative;
    z-index: 2;
}

.about-visual-content h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.05em;
    margin: 1.5rem 0 3rem;
    color: white;
}

/* About Content Column */
.about-content-column {
    padding: 10vh 10% 8vh;
    background: #080808;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.philosophy-wrapper {
    max-width: 600px;
}

.about-body h2 {
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.about-body p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 5rem;
    padding-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
}



.stat-label {
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--bg-secondary);
}

/* Blueprint Section */
.blueprint-section {
    background: #080808;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.blueprint-header {
    margin-bottom: 3rem;
}

.blueprint-header h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-top: 1.5rem;
    color: white;
}

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

.blueprint-item {
    position: relative;
    padding-top: 4rem;
}

.blueprint-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.b-step {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.blueprint-item h3 {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: white;
    margin-bottom: 1.5rem;
}

.blueprint-item p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.4);
}

.blueprint-item:hover::before {
    background: var(--accent);
}

@media (max-width: 1024px) {
    .blueprint-grid {
        grid-template-columns: 1fr 1fr;
       
    }
}

@media (max-width: 600px) {
    .blueprint-grid {
        grid-template-columns: 1fr;
    }


}

.contact-scroll-hint {
    position: absolute;
    bottom: 5vh;
    left: 12%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scrollSlide 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scrollSlide {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

/* Form Column */
.contact-form-column {
    padding: 10vh 10% 8vh;
    background: #080808;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-instruction {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 450px;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

.form-instruction p {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.visionary-form {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.form-grid-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    row-gap: 2rem;
}

@media (max-width: 768px) {
    .form-grid-inputs {
        grid-template-columns: 1fr;
        row-gap: 2.5rem;
    }
}

.v-form-group {
    position: relative;
}

.v-form-group label {
    display: block;
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 0.8rem;
    transition: all 0.4s var(--transition);
    text-transform: uppercase;
}

.v-form-group input,
.v-form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem 0;
    color: white;
    font-family: var(--font-main);
    font-size: 1.05rem;
    outline: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.v-form-group input:focus,
.v-form-group textarea:focus {
    border-bottom-color: var(--accent);
    padding-left: 1.2rem;
}

.v-form-group:focus-within label {
    color: var(--accent);
    transform: translateX(10px);
}

.form-action-zone {
    margin-top: 3rem;
}

.transmit-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 5px;
    cursor: pointer;
    padding: 1.5rem 3.5rem;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    border-radius: 100px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.transmit-btn span {
    position: relative;
    z-index: 2;
}

.transmit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.transmit-btn:hover {
    border-color: var(--accent);
    gap: 2.5rem;
    padding-left: 4.5rem;
    padding-right: 2.5rem;
}

.transmit-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-arrow {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    transition: transform 0.5s var(--transition);
}

.btn-arrow svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.transmit-btn:hover .btn-arrow {
    transform: translateX(10px);
}

/* Responsive Optimizations */
@media (max-width: 1024px) {
    .contact-split-layout {
        grid-template-columns: 1fr;
    }

    .contact-branding-column {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 10rem 5% 6rem;
        min-height: auto;
    }

    .contact-form-column {
        padding: 6rem 5% 10rem;
        min-height: auto;
    }

    .vertical-title {
        display: none;
    }

    .contact-main-header {
        padding-top: 5rem;
        padding-bottom: 2rem;
    }

    .contact-main-header h1 {
        font-size: 5rem;
    }

    .contact-branding-content h1 {
        font-size: clamp(3rem, 10vw, 5rem);
        margin: 1.5rem 0 3rem;
    }

    .branding-details {
        gap: 2.5rem;
    }

    .form-instruction {
        margin-bottom: 4rem;
    }
}

@media (max-width: 768px) {
    .contact-main-header {
        padding-top: 4rem;
        padding-bottom: 1.5rem;
    }

    .contact-main-header h1 {
        font-size: 3.5rem;
    }

    .contact-branding-column {
        padding-top: 8rem;
    }

    .contact-branding-content h1 {
        font-size: 2.5rem;
        line-height: 1;
    }

    .detail-link,
    .detail-text {
        font-size: 1.2rem;
    }

    .visionary-form {
        gap: 3rem;
    }

    .v-form-group input,
    .v-form-group textarea {
        font-size: 1.1rem;
    }

    .form-instruction {
        gap: 1.5rem;
    }

    .step-num {
        font-size: 1.8rem;
    }
}

/* Editorial About Layout */
.about-editorial-hero {
    padding: 15rem 0 10rem;
    background: #050505;
}

.about-hero-branding h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-top: 2rem;
    color: white;
}

.editorial-story-section {
    background: #050505;
    padding-bottom: 15rem;
}

.story-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 8rem;
   
}

.story-image {
    position: relative;
   
}

.story-image::after {
    content: '';
    position: absolute;
    top: -3rem;
    right: 0;
    width: 80%;
    height: 120%;
    border: 1px solid rgba(255, 255, 255, 0.03);
    z-index: -1;
}

.story-image img {
    width: 100%;
    height: auto;
    filter: grayscale(1);
    transition: filter 0.6s var(--transition);
}

.story-image:hover img {
    filter: grayscale(0);
}

.story-content {
    max-width: 550px;
}

.about-stats-grid-simple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* High-Density Studio Grid (Dark Theme) */
.projects-asymmetric-section {
    padding: 6rem 0 8rem;
    background: #050505;
    color: white;
}

.projects-main-intro h1 {
    font-size: clamp(3rem, 13vw, 10rem);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.06em;
    color: white;
    margin-bottom: 3rem;
}

.projects-studio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.project-studio-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #080808;
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.studio-media-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #000;
}

.studio-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition);
}

.studio-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

.portfolio-video-studio {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-studio-card:hover .studio-video-overlay {
    opacity: 1;
}

.project-studio-card:hover .studio-main-img {
    transform: scale(1.05);
}

.studio-card-info {
    padding: 2.5rem;
    text-align: left;
}

.studio-card-info .p-tag {
    font-size: 0.55rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.studio-card-info h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 1rem 0 2rem;
    letter-spacing: -0.02em;
}

.view-link {
    font-size: 0.65rem;
    font-weight: 900;
    color: rgba(255,255,255,0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.view-link:hover {
    color: white;
}

@media (max-width: 1200px) {
    .projects-studio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .projects-studio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-main-header h1 {
        font-size: 2.8rem;
    }

    .contact-branding-content h1 {
        font-size: 2.2rem;
    }

    .social-mini-flex {
        gap: 1.5rem;
    }

    .transmit-btn {
        width: 100%;
        justify-content: space-between;
    }
}

/* Multi-Step Modal */
.multi-step-modal .modal-content {
    max-width: 600px;
    padding: 4rem;
    overflow: hidden;
}

.modal-progress {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent);
    width: 33.33%;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.step {
    display: none;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.step.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    gap: 1.5rem;
}

.next-btn,
.submit-btn {

    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: none;
    padding: 1.2rem;
    border-radius: 100px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s;
}

.back-btn {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    padding: 1.2rem;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.next-btn:hover,
.submit-btn:hover {
    background: var(--accent);
    color: white;
}

.back-btn:hover {
    border-color: var(--text-primary);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
    margin: 1.5rem 0;
}

.category-grid::-webkit-scrollbar {
    width: 4px;
}

.category-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.cat-item {
    position: relative;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.cat-item input {
    position: absolute;
    opacity: 0;
}

.cat-item:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

.cat-item.selected {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--bg-secondary);
}

.cat-icon {
    width: 20px;
    height: 20px;
    opacity: 0.5;
}

.selected .cat-icon {
    opacity: 1;
}

.source-header {
    font-size: 0.8rem;
    font-weight: 900;
    opacity: 0.5;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Step Form Inputs */
.multi-step-modal .form-group {
    margin-bottom: 2rem;
    text-align: left;
}

.multi-step-modal label {
    display: block;
    font-size: 0.7rem;
    font-weight: 950;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.6;
    color: var(--text-primary);
}

.multi-step-modal input,
.multi-step-modal textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.4s var(--transition);
}

.multi-step-modal input:focus,
.multi-step-modal textarea:focus {
    outline: none;
    background: white;
    border-color: var(--bg-secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding-left: 1.5rem;
}

.multi-step-modal input::placeholder,
.multi-step-modal textarea::placeholder {
    opacity: 0.3;
}

/* Category grid refinement */
.cat-item {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transform: translateZ(0);
    /* Hardware acceleration */
}

.cat-item .cat-icon {
    transition: transform 0.4s var(--transition);
}

.cat-item:hover .cat-icon {
    transform: scale(1.4) rotate(-10deg);
}

.cat-item.selected {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.cat-item.selected .cat-icon {
    transform: scale(1.2);
}

/* Form validation feedback */
.multi-step-modal input.invalid {
    border-color: #ff4d4d !important;
    background: rgba(255, 77, 77, 0.05);
}

/* Discovery Step Refinement */
.main-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.main-cat-item {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.main-cat-item:hover {
    background: rgba(0, 0, 0, 0.06);
}

.main-cat-item.active {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--bg-secondary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sub-options-container {
    min-height: 120px;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 15px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative;
}

.sub-options-group {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    animation: fadeIn 0.4s ease forwards;
}

.sub-options-group.active {
    display: grid;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-detail-field {
    grid-column: span 2;
    margin-top: 1rem;
    display: none;
}

.custom-detail-field.active {
    display: block;
}

.custom-detail-field label {
    font-size: 0.65rem;
    margin-bottom: 0.5rem;
}


/* Modal Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 0;
}

/* --- ADMIN DASHBOARD GLOBAL --- */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
}

.admin-layout * {
    cursor: auto !important;
}

.admin-layout main {
    opacity: 1 !important;
}

/* Sidebar */
.admin-sidebar {
    width: 250px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar nav {
    position: static;
    width: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.admin-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s;
}

.admin-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Main Content */
.admin-main {
    flex: 1;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.admin-page-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 5vw, 2rem);
    font-weight: 800;
}

.admin-user-badge {
    background: var(--bg-primary);
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* --- Admin Dashboard Layout & Responsive Nav --- */
.mobile-admin-bar {
    display: none; /* Hidden on desktop */
    padding: 1rem 1.5rem;
    background: #000;
    color: #fff;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.mobile-admin-logo {
    font-family: var(--font-heading);
    font-weight: 950;
    letter-spacing: 2px;
}

.admin-toggler {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.admin-sidebar {
    width: 280px;
    background: #000;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    color: #fff;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.5rem;
}

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

.admin-close-btn {
    display: none; /* Only mobile */
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.1rem;
    cursor: pointer;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 1.5rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s var(--transition);
    margin-bottom: 0.3rem;
}

.admin-nav-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.admin-nav-item.active i {
    color: var(--cms-accent);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 999;
}

/* --- Administrative Architecture: Responsive Logic --- */
@media (max-width: 1280px) {
    .admin-sidebar {
        width: 240px; /* Condensed for tablets */
        padding: 2rem 1rem;
    }
    .admin-nav-item {
        padding: 0.9rem 1.2rem;
        gap: 1rem;
    }
}

@media (max-width: 1024px) {
.admin-layout {
    display: flex;
   flex-direction: column;
}
    .mobile-admin-bar {
        display: flex;
    }

    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 280px;
        transform: translateX(-100%);
    }

    .admin-sidebar.mobile-active {
        transform: translateX(0);
        box-shadow: 20px 0 60px rgba(0,0,0,0.5);
    }

    .admin-close-btn {
        display: block;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .admin-main {
        padding: 1.5rem;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .admin-main {
        padding: 1rem;
    }
   
}

.admin-user-avatar {
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Base Cards */
.admin-card {
    background: var(--bg-primary);
    border-radius: 16px;
   padding: 1rem;
    box-shadow: 6px 6px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 0;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.admin-card-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-card:hover {
    transform: translateY(-3px);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;

    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.admin-stat-card {
    background: var(--bg-primary);
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.admin-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0.3rem 0;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    flex: 1;
    margin-top: 1.5rem;
}

.minimal-list {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
}

.minimal-item {
    padding: 0.8rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.minimal-item:last-child {
    border-bottom: none;
}

/* Alert Indicator */
.new-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.new-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #ff3b30;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 59, 48, 0.5);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 59, 48, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

/* Services: High-Contrast Blueprint */


.services-modern-hero {
    padding: 180px 0 100px;
    color: #000000;
}

.services-hero-branding h1 {
    font-size: clamp(3.5rem, 10vw, 7rem);
    line-height: 0.9;
    font-weight: 900;
    margin: 1.5rem 0 3rem;
    letter-spacing: -0.04em;
    color: #131313;
}

.hero-lead {
    font-size: 1.25rem;
    max-width: 600px;
    line-height: 1.6;
    opacity: 0.8; /* Increased opacity for visibility */
    font-weight: 500;
    color: #040404;
}

.blueprint-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 6rem;
}

.blueprint-card {
    padding: 3rem;
    background: rgba(255,255,255,0.03); /* Slightly lighter */
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 1px solid;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    color: #000000;
}

.blueprint-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--accent);
    transform: translateY(-10px);
}

.bp-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.bp-content h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #020202;
}

.bp-content p {
    font-size: 0.85rem;
    line-height: 1.7;
    opacity: 0.7; /* Increased opacity */
    color: #000000;
}

/* Service Stack Details */
.service-stack-details {
    background: #000000;
    padding: 150px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #363535;
}

.service-stack-grid {
    display: flex;
    flex-direction: column;
}

.stack-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    padding: 5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s ease;
    color: #ffffff;
}

.stack-item:hover {
    padding-left: 2rem;
}

.stack-numeric {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 2px;
    margin-top: 0.8rem;
}

.stack-info h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.stack-info p {
    font-size: 1.15rem;
    max-width: 800px;
    line-height: 1.7;
    opacity: 0.6;
    margin-bottom: 3rem;
    color: #ffffff;
}

.stack-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stack-tags span {
    padding: 0.6rem 1.2rem;
    background: rgba(255,255,255,0.08);
    border-radius: 100px;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
}

@media (max-width: 1024px) {
    .blueprint-capabilities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .stack-item {
        grid-template-columns: 1fr;
        padding: 3rem 0;
    }

    .stack-numeric {
        margin-bottom: 1.5rem;
    }

    .stack-info h2 {
        font-size: 1.8rem;
    }
}

/* Footer Spotlight UI */
.footer-cta {
    position: relative;
    padding: 180px 0;
    background: #000000;
    overflow: hidden;
    cursor: none !important;
}

.footer-marquee-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    pointer-events: none;
    z-index: 1;
}

.marquee-layer {
    display: flex;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 10vw;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
}

.marquee-layer span {
    padding-right: 4rem;
}

.marquee-1 { animation: marquee-anim 60s linear infinite; }
.marquee-2 { animation: marquee-anim 45s linear infinite reverse; }
.marquee-3 { animation: marquee-anim 75s linear infinite; }

@keyframes marquee-anim {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.spotlight-lens {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.footer-cta:hover .spotlight-lens {
    opacity: 1;
}

.footer-cta-content {
    position: relative;
    z-index: 5;
    text-align: center;
}

.cta-box {
    display: inline-block;
    padding: 4rem 6rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.cta-box span {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 4px;
    opacity: 0.5;
    display: block;
    margin-bottom: 2rem;
}

.cta-box h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-family: var(--font-heading);
    margin-bottom: 3rem;
    letter-spacing: -2px;
}

.transmit-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 3rem;
    background: white;
    color: black;
    border-radius: 100px;
    font-weight: 950;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.4s var(--transition);
}

.transmit-btn:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
}

.footer-bg-text {
    position: absolute;
    bottom: -5%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 25vw;
    font-weight: 950;
    color: rgba(255, 255, 255, 0.02);
    line-height: 0.8;
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .cta-box {
        padding: 3rem 2rem;
    }
}

/* Feedback Modal */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    z-index: 11000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s var(--transition);
}

.feedback-modal.active {
    display: flex;
    opacity: 1;
}

.feedback-modal-content {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    transform: translateY(40px) scale(0.9);
    transition: transform 0.6s var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.feedback-modal.active .feedback-modal-content {
    transform: translateY(0) scale(1);
}

.feedback-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feedback-icon.error {
    background: #ff4444;
}

.feedback-modal h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.feedback-modal p {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.feedback-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: none;
    border-radius: 4px;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.feedback-btn:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

/* --- YOUR VOICE SECTION --- */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.8rem;
    font-size: 2rem;
    /* Massive stars */
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    color: #ccc;
    font-size: 2rem;
    /* Ensuring inheritance */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Default Orange for 1.5 stars logic:
   Since we use flex-direction: row-reverse, the first labels in DOM are the highest stars.
   We want the last labels (star 1 and 2) to be colored.
*/
/* Advanced 1.5 star default state */
.star-rating label[for="star1"] {
    color: var(--accent);
}



.star-rating input:checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
    color: var(--accent);
}

