/* CSS Reset & Variables */
:root {
    --primary-accent: #d8f259;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --font-main: 'Inter', sans-serif;
    --card-gradient: linear-gradient(180deg, rgba(20, 20, 20, 0.85) 0%, rgba(20, 20, 20, 0.4) 60%, rgba(20, 20, 20, 0) 100%);
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: clip; 
    width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: #f4f4f4;
    padding: 0; 
    -webkit-font-smoothing: antialiased;
}

.hero-wrapper {
    position: -webkit-sticky; 
    position: sticky; 
    top: 0;
    background-color: #000000; 
    min-height: 100vh; 
    min-height: max(100svh, 650px); 
    border-radius: 0; 
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 5px 40px 20px 40px; 
    z-index: 1;
    perspective: 1000px; 
}

.hero-content-layer {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1; 
}

.navbar {
    position: relative; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    padding: 10px 0;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo-img {
    max-height: 65px; 
    width: auto;
    object-fit: contain;
    display: block;
    transform: scale(1.65); 
    transform-origin: left center; 
    margin-top: 5px;
    margin-left: -14px; 
}

.logo:focus {
    outline: none !important;
    box-shadow: none !important;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 100;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-accent);
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
    transition: transform 0.2s ease;
}

/* =========================================
   MOBILE DROPDOWN MENU (Curtain Pop-down)
   ========================================= */
.mobile-dropdown-menu {
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%; 
    background: #ffffff;
    border-radius: 0 0 16px 16px; 
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    gap: 5px;
    
    /* Curtain Drop Animation */
    max-height: 0;
    padding: 0 15px; 
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding 0.4s ease, opacity 0.3s ease, visibility 0.4s;
    z-index: 9999;
}

.mobile-dropdown-menu.active {
    max-height: 400px; 
    padding: 15px; 
    opacity: 1;
    visibility: visible;
}

.mobile-dropdown-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-family: 'inter', sans-serif;
    font-weight: 500; 
    padding: 12px 15px;
    border-radius: 8px;
    letter-spacing: -0.5px;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-dropdown-menu a:hover {
    background: #f4f4f4;
    color: #444;
}

.mobile-menu-email {
    padding: 15px;
    margin-top: 5px;
    border-top: 1px solid #eaeaea;
    font-size: 0.9rem;
    color: #444;
    font-family: var(--font-main);
}

.mobile-menu-email a {
    display: inline;
    padding: 0;
    font-weight: 500;
    letter-spacing: 0;
    font-family: var(--font-main);
}

.mobile-menu-email a:hover {
    background: transparent;
}

/* --- Main Hero Content --- */
.hero-top {
    text-align: left;
    flex: 1; 
    display: flex;
    flex-direction: row;
    justify-content: space-between; 
    align-items: center; 
    color: #ffffff;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto; 
    position: relative;
    z-index: 2; 
    gap: 40px;
}

.hero-interactive-title {
    flex: 1;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

/* --- NEW HERO VIDEO BOX --- */
.hero-video-box {
    flex: 1;
    max-width: 720px; 
    height: 420px; 
    border-radius: 30px; 
    position: relative; 
    overflow: hidden;
    margin-left: auto; 
}

.hero-video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Cutout specifically for the Hero Video (Matches White background) */
.hero-video-cutout {
    position: absolute;
    top: -2px; 
    right: -2px; 
    width: 74px; 
    height: 74px; 
    background-color: #fff;
    border-bottom-left-radius: 30px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    z-index: 4;
}

/* Smooth inverse curves with rigid 2px overlap */
.hero-video-cutout::before {
    content: '';
    position: absolute;
    top: 2px;
    left: -26px; 
    width: 28px;
    height: 28px;
    background-color: transparent;
    border-top-right-radius: 25px;
    box-shadow: 15px -15px 0 15px #fff; 
}

.hero-video-cutout::after {
    content: '';
    position: absolute;
    bottom: -26px; 
    right: 2px;
    width: 28px;
    height: 28px;
    background-color: transparent;
    border-top-right-radius: 25px;
    box-shadow: 15px -15px 0 15px #fff; 
}

/* Arrow icon inside the hero video cutout */
.hero-video-icon {
    width: 45px;
    height: 45px;
    background-color: var(--primary-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px; 
    margin-right: 15px; 
    color: var(--text-dark);
    position: relative;
    z-index: 5;
}

.hero-top h1 {
    font-size: clamp(2.2rem, 6vw, 8rem);
    font-weight: 800; 
    line-height: 1.0;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero-top h1 span.highlight {
    color: var(--primary-accent);
    background-color: transparent;
    padding: 0;
    white-space: nowrap;
}

.desktop-br {
    display: block;
}

.hero-top p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 100;
    color: #eaeaea;
    max-width: 700px;
    line-height: 1.6;
}

/* --- Middle Section (Text & Button) --- */
.hero-middle {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto; 
    margin-inline: auto; 
    padding-bottom: 0px; 
    padding-top: 40px;
    color: #ffffff;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
}

.hero-middle h2 {
    font-weight: 100;
    max-width: 600px;
    line-height: 1.4;
    font-size: 26px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-secondary .arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #000000;
}

.btn-secondary:hover .arrow {
    transform: translateX(4px);
}

/* =========================================
   UPDATED CODE STARS CANVAS STYLING
   ========================================= */
#codeStarsCanvas {
    position: absolute;
    top: 0; 
    right: 0;
    width: 65%; 
    height: 100%; 
    pointer-events: none;
    z-index: 1; 
    
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
    mask-image: linear-gradient(to right, transparent 0%, black 25%);
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section {
    background-color: #ffffff;
    padding: 120px 40px;
    color: var(--text-dark);
    position: relative; 
    z-index: 10; 
    perspective: 1000px; 
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.about-title {
    flex: 1;
    position: sticky;
    top: 40px;
}

.about-eyebrow {
    display: block;
    font-family: var(--font-main);
    font-size: 23px;
    font-weight: 100;
    letter-spacing: 1px;
    color: #1a1a1a; 
    margin-bottom: 12px;
}

.about-title h2 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    font-size: 65px;
}

.about-title h2 .highlight-box {
    display: inline-block;
    background-color: var(--primary-accent);
    padding: 4px 12px;
    margin-top: 5px;
    line-height: 1;
}

/* =========================================
   ABOUT IMAGE/VIDEO
   ========================================= */
.about-image-wrapper {
    margin-top: 50px;
    width: 100%; 
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 5;
    overflow: hidden; 
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-accent);
    opacity: 0.25; 
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: multiply; 
}

.about-image-wrapper img {
    width: 100%;
    height: 300px;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

.about-content {
    flex: 1.2;
    font-size: 16.5px;
    line-height: 1.8;
    color: #000;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 40px;
}

.about-content p {
    font-weight: 400;
}

.about-content p strong {
    color: var(--text-dark);
    font-weight: 700;
}

.about-interactive-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-section {
    background-color: #f4f4f4;
    padding: 120px 40px;
    position: relative;
    z-index: 9;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

.services-main-title {
    text-align: center;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 80px;
    color: var(--text-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.service-card {
    background-color: #ffffff;
    border-radius: 30px;
    position: relative;
    height: 480px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: none;
}

.service-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--primary-accent);
    opacity: 0;
    z-index: 2;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-overlay {
    opacity: 0.95;
}

.service-content {
    padding: 40px;
    position: relative;
    z-index: 3;
}

.service-title {
    font-family: var(--font-main);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

/* Cutout Effect */
.service-icon-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    background-color: #f4f4f4;
    border-bottom-left-radius: 30px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    z-index: 4;
}

/* Smooth inverse curves for the cutout */
.service-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -25px;
    width: 25px;
    height: 25px;
    background-color: transparent;
    border-top-right-radius: 25px;
    box-shadow: 10px -10px 0 10px #f4f4f4;
}

.service-icon-wrapper::after {
    content: '';
    position: absolute;
    bottom: -25px;
    right: 0;
    width: 25px;
    height: 25px;
    background-color: transparent;
    border-top-right-radius: 25px;
    box-shadow: 10px -10px 0 10px #f4f4f4;
}

.service-icon {
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    margin-right: 12px;
    color: var(--text-dark);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 5;
}

.service-card:hover .service-icon {
    transform: translate(3px, -3px);
}

.service-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    margin-top: auto;
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.service-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: bottom;
}

/* =========================================
   VIDEO BANNER SECTION
   ========================================= */
.video-banner-section {
    width: 100%;
    position: relative;
    z-index: 9;
    background-color: #f4f4f4;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1;
    pointer-events: none;
}

.banner-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 3.5rem); 
    font-weight: 800;
    letter-spacing: -2px;
    text-align: center;
    width: 90%;
    z-index: 2;
    font-family: var(--font-main);
}

.video-banner-section video {
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-height: 800px;
    object-fit: cover;
    display: block;
}


@media (min-width: 1367px) {
    .nav-links { gap: 25px; }
}

@media (max-width: 1366px) {
    body { padding: 0; }
    .hero-wrapper { padding: 15px; position: -webkit-sticky; position: sticky; top: 0; } 
    .hero-top { 
        flex-direction: column; 
        justify-content: center; 
        align-items: flex-start; 
        gap: 40px; 
    }
    .hero-video-box {
        max-width: 100%;
        width: 100%;
        height: 400px;
        margin-left: 0;
    }
    .hero-middle { flex-direction: column; align-items: flex-start; gap: 30px; }
    
    .navbar { 
        padding: 10px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        margin-left: -5px;
        margin-top: -5px;
    }

    .logo {
        display: flex;
        align-items: center;
    }
    
    .brand-logo-img { max-height: 45px; margin-left: -10px; }
    
    .nav-actions { gap: 8px; }
    .btn-primary { padding: 8px 12px; font-size: 0.75rem; }
    
    .nav-links, .phone-text { display: none; } 
    .mobile-menu-btn { display: block; } 
    .btn-secondary { width: 100%; justify-content: space-between; }
    .hero-middle { padding-bottom: 40px; } 

    .about-container {
        flex-direction: column;
        gap: 40px;
    }
  
    .about-content {
        flex: 1.2;
        font-size: 16.5px;
        line-height: 1.8;
        color: #000;
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding-top: 10px;
    }
    
    /* Center the text area for Tablets */
    .about-title {
        position: static;
        text-align: center;
        width: 100%;
    }
    .about-interactive-text {
        display: flex;
        flex-direction: column;
        gap: 24px;
        transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
        transform-style: preserve-3d;
        will-change: transform;
        margin-top: -20px;
    }
    .about-eyebrow {
        text-align: center;
    }
    .about-section {
        padding: 50px 20px;
    }

    /* 1. Make titles bigger for iPads & Bring H1 Down Vertically */
    .hero-top h1 {
        font-size: clamp(3.5rem, 6.5vw, 5rem);
        margin-top: 25vh;
    }
    .about-title h2 {
        font-size: clamp(3.5rem, 6.5vw, 5rem);
    }

    /* 2. Bigger & Centered About Image for iPads */
    .about-image-wrapper {
        max-width: 800px;
        margin: 40px auto 0; /* Centers the image */
        height: 500px;
    }
    .about-image-wrapper img {
        height: 100%;
    }
}

/* Adjustments for standard tablets and smaller */
@media (max-width: 1024px) {
    .desktop-br {
        display: none;
    }
    .about-image-wrapper {
        height: 450px;
        max-width: 100%;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-video-box {
        height: 320px;
    }
}

/* =========================================
   MOBILE PHONES (Portrait)
   ========================================= */
@media (max-width: 768px) {
    .nav-actions .btn-primary { 
        display: inline-flex; 
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    .nav-actions .btn-primary svg {
        width: 16px;
        height: 16px;
    }
    
    .brand-logo-img { 
        max-height: 48px; 
        margin-left: -10px;
    }
    
    .hero-top h1 { 
        font-size: 60px;
        margin-top: 16vh;
    }
    .about-title h2 { 
        font-size: 40px; 
        letter-spacing: -1px; 
        padding-bottom: 20px;
    }
    .hero-middle h2 {
        font-size: 20px; /* Scaled proportionally for mobile */
    }
    .mobile-menu-btn { 
        font-size: 1.8rem; 
        margin-top: 2px;
        margin-left: 5px; 
    }
    .hero-video-box {
        height: 250px;
    }
    .about-image-wrapper {
        height: 300px; /* Standard size for phones */
        margin-top: 30px;
    }
    .about-interactive-text {
        display: flex;
        flex-direction: column;
        gap: 24px;
        transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
        transform-style: preserve-3d;
        will-change: transform;
        margin-top: -20px;
    }
    .about-content {
        flex: 1.2;
        font-size: 16.5px;
        line-height: 1.8;
        color: #000;
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding-top: 10px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .services-main-title {
        font-size: 36px;
        margin-bottom: 50px;
    }
}

/* =========================================
   LANDSCAPE MOBILE PHONES (iPhone horizontal fix)
   ========================================= */
@media (max-width: 950px) and (orientation: landscape) {
    .hero-top h1 { 
        font-size: 38px; /* Scale font down so it fits */
        margin-bottom: 10px;
        margin-top: 8vh;
    }
    .about-title h2 { 
        font-size: 38px; 
    }
    .hero-middle h2 {
        font-size: 18px;
    }
    .hero-video-box {
        height: 200px;
    }
    .about-image-wrapper {
        height: 300px;
        margin-top: 20px;
    }
    .mobile-dropdown-menu.active {
        max-height: 65vh; /* Allows scrolling inside the menu */
        overflow-y: auto; 
    }
    .video-banner-section video {
        height: 100vh;
    }
}

@media (max-width: 380px) {
    .navbar { padding: 16px 0; margin-top: -8px; } 
    
    .brand-logo-img { max-height: 40px; margin-left: -8px; margin-left: -5px; margin-top: -10px; }
    
    .btn-primary { padding: 6px 10px; font-size: 0.75rem; } 
    .nav-actions .btn-primary svg { width: 14px; height: 14px; margin-right: -2px; }
    
    .mobile-menu-btn { font-size: 1.6rem; margin-top: 5px; } 
    .hero-top h1 { font-size: 3rem; } 
    .hero-middle { padding-bottom: 30px; } 
    .hero-middle h2 { font-size: 18px; } 
    .about-title h2 { font-size: 1.8rem; letter-spacing: -1px; }
    .services-main-title { font-size: 30px; letter-spacing: -1px; }
}

/* =========================================
   SMOOTH TYPEWRITER ANIMATION CSS
   ========================================= */
.type-char {
    opacity: 0; 
    transition: opacity 0.05s ease-out; 
}
.type-char.revealed { opacity: 1; }

/* =========================================
   CUSTOM MODERN CURSOR STYLES
   ========================================= */
@media (pointer: fine) {
    body, a, button { cursor: none !important; }

    .cursor-dot, .cursor-ring {
        position: fixed;
        top: 0; left: 0;
        pointer-events: none;
        z-index: 999999; 
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }

    .cursor-dot {
        width: 8px; height: 8px;
        background-color: var(--primary-accent);
    }

    .cursor-ring {
        width: 40px; height: 40px;
        border: 2px solid var(--primary-accent);
        transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
    }
}

/* =========================================
   SIDE BUTTONS (Desktop Defaults)
   ========================================= */
#getQuoteBtn {
    position: fixed;
    right: -60px; 
    top: 40%; 
    transform: translateY(-50%);
    background-color: var(--primary-accent);
    color: var(--text-dark);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: lowercase;
    letter-spacing: 1.5px;
    padding: 20px 10px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    border-radius: 12px 0 0 12px;
    border: none;
    cursor: none; 
    text-decoration: none; 
    z-index: 9999;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), background-color 0.3s ease, color 0.3s ease;
}

#getQuoteBtn.visible {
    right: 0;
}

#getQuoteBtn:hover {
    background-color: var(--text-dark);
    color: var(--primary-accent);
}

#backToTopBtn {
    position: fixed;
    right: -60px; 
    top: 65%; 
    transform: translateY(-50%);
    background-color: var(--primary-accent);
    color: var(--text-dark);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: lowercase;
    letter-spacing: 1.5px;
    padding: 20px 10px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    border-radius: 12px 0 0 12px;
    border: none;
    cursor: none; 
    z-index: 9999;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), background-color 0.3s ease, color 0.3s ease;
}

#backToTopBtn.visible {
    right: 0; 
}

#backToTopBtn:hover {
    background-color: var(--text-dark);
    color: var(--primary-accent);
}

/* =========================================
   MOBILE SIDE BUTTONS FIX
   ========================================= */
@media (max-width: 768px) {
    #getQuoteBtn {
        top: calc(50% - 8px); 
        transform: translateY(-100%);
        padding: 14px 8px; 
        font-size: 0.75rem;
        border-radius: 10px 0 0 10px;
    }
    #backToTopBtn {
        top: calc(50% + 8px); 
        transform: translateY(0);
        padding: 14px 8px; 
        font-size: 0.75rem;
        border-radius: 10px 0 0 10px;
    }
}

@media (max-width: 950px) and (orientation: landscape) {
    #getQuoteBtn {
        top: calc(50% - 6px);
        transform: translateY(-100%);
        padding: 10px 6px; 
        font-size: 0.7rem;
        border-radius: 10px 0 0 10px;
    }
    #backToTopBtn {
        top: calc(50% + 6px);
        transform: translateY(0);
        padding: 10px 6px; 
        font-size: 0.7rem;
        border-radius: 10px 0 0 10px;
    }
}

/* =========================================
   FIXED: SLIDE OUT DRAWER STYLES
   ========================================= */
.drawer-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-drawer {
    position: fixed;
    top: 0; right: -100%;
    bottom: 0; 
    width: 100%; max-width: 600px; 
    height: 100%; 
    height: 100dvh; 
    background-color: #ffffff; 
    border-left: 1px solid #eaeaea; 
    color: var(--text-dark);
    z-index: 100001;
    transition: right 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; 
    overscroll-behavior: contain; 
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
}

.contact-drawer.active {
    right: 0;
}

.drawer-close {
    position: absolute;
    top: 30px; right: 30px;
    background: none; border: none; padding: 5px;
    z-index: 10; cursor: none;
}

.drawer-content-inner {
    padding: 80px 50px 50px 50px;
}

.drawer-content-inner h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 15px;
    line-height: 1.1;
}

.drawer-content-inner p {
    color: #555555;
    line-height: 1.6;
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.drawer-content-inner p a {
    color: var(--text-dark);
    text-decoration: underline;
    text-decoration-color: var(--primary-accent);
    text-decoration-thickness: 2px;
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
}

.form-row.checkbox-row, .form-row.textarea-row {
    align-items: start;
}

.form-row label {
    font-weight: 700;
    font-size: 0.95rem;
}

.drawer-form input, 
.drawer-form textarea, 
.drawer-form label {
    cursor: text !important; 
}

.drawer-form input[type="text"], 
.drawer-form input[type="email"], 
.drawer-form input[type="tel"], 
.drawer-form input[type="url"],
.drawer-form textarea {
    width: 100%;
    padding: 14px 15px;
    background: transparent;
    border: 1px solid #cccccc;
    color: var(--text-dark);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.drawer-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.drawer-form input:focus,
.drawer-form textarea:focus {
    border-color: var(--text-dark);
    outline: none;
}

.input-group-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400 !important;
    color: #555555;
    cursor: pointer !important;
}

.check-label input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    background: transparent;
    position: relative;
}

.check-label input[type="checkbox"]:checked {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
}

.check-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: var(--text-dark);
    font-size: 14px;
    top: 0px; left: 4px;
    font-weight: 800;
}

.form-submit-row {
    margin-top: 40px;
}

@media (max-width: 600px) {
    .drawer-content-inner {
        padding: 60px 25px 100px 25px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 20px;
    }
    .drawer-content-inner h2 {
        font-size: 2rem;
    }
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}