/* === Variables === */
:root {
    --teal: #ffffff;
    --dark-bg: #0a0a0a;
    --orange: #F45A02;
    --cream: #F2EBD9;
    --gray: #D9D9D9;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font: 'MuseoModerno', 'Quicksand', sans-serif;
}

/* === Loader / Preloader === */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.loader-circle-95 {
    position: relative;
    width: 65px;
    height: 30px;
    animation: 2s spin-loader-circle-95 infinite cubic-bezier(0.86, 0, 0.07, 1);
    margin: 0 auto;
}
.loader-circle-95:before,
.loader-circle-95:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 19px;
    height: 19px;
    border: 5px solid var(--orange);
    border-radius: 50% 50% 0 50%;
    transform: rotate(-45deg);
}
.loader-circle-95:before {
    animation: left-loader-circle-95 1s infinite alternate cubic-bezier(0.86, 0, 0.07, 1), morph-loader-circle-95 1s infinite alternate cubic-bezier(0.86, 0, 0.07, 1);
}
.loader-circle-95:after {
    left: auto;
    right: 0;
    border-radius: 50% 50% 50% 0;
    transform: rotate(45deg);
    animation: right-loader-circle-95 1s infinite alternate cubic-bezier(0.86, 0, 0.07, 1), morph-loader-circle-95 1s infinite alternate cubic-bezier(0.86, 0, 0.07, 1);
}
@keyframes morph-loader-circle-95 {
    from {
        border-radius: 50%;
    }
}
@keyframes left-loader-circle-95 {
    from {
        left: 18px;
    }
}
@keyframes right-loader-circle-95 {
    from {
        right: 18px;
    }
}
@keyframes spin-loader-circle-95 {
    from {
        transform: rotate(540deg);
    }
}

/* === Custom Cursor === */
@media (pointer: fine) {
    body.has-custom-cursor,
    body.has-custom-cursor * {
        cursor: none !important;
    }

    /* Cursor Dot */
    .cursor-dot {
        position: fixed;
        top: 0;
        left: 0;
        width: 8px;
        height: 8px;
        background: #ffffff;
        border-radius: 50%;
        pointer-events: none;
        z-index: 10001;
        transform: translate(-50%, -50%);
        transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.2s ease;
        will-change: left, top;
    }

    /* Cursor Outline */
    .cursor-outline {
        position: fixed;
        top: 0;
        left: 0;
        width: 38px;
        height: 38px;
        border: 1.5px solid rgba(255, 255, 255, 0.6);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000;
        transform: translate(-50%, -50%);
        transition: width 0.25s ease, 
                    height 0.25s ease, 
                    background 0.25s ease, 
                    border 0.25s ease,
                    opacity 0.25s ease;
        will-change: left, top;
        mix-blend-mode: difference;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hover State (links, buttons) */
    .cursor-outline.hover {
        width: 75px;
        height: 75px;
        background: rgba(255, 255, 255, 0.14);
        border-color: rgba(255, 255, 255, 0.9);
    }

    .cursor-dot.hover {
        width: 4px;
        height: 4px;
    }

    /* View hover effect (portfolio items) */
    .cursor-outline.view-hover {
        width: 65px;
        height: 65px;
        background: #ffffff;
        border-color: #ffffff;
        mix-blend-mode: normal; /* Normal blend mode so text color is readable */
    }

    .cursor-dot.view-hover {
        opacity: 0;
    }

    /* View text inside cursor */
    .cursor-outline.view-hover::after {
        content: "VIEW";
        color: #171717; /* Dark charcoal text matching website background */
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        position: absolute;
        animation: fadeInCursorText 0.3s forwards;
    }

    /* Click Pulse */
    .cursor-outline.click {
        width: 55px;
        height: 55px;
        background: rgba(255, 255, 255, 0.25);
    }

    .cursor-dot.click {
        width: 12px;
        height: 12px;
    }
}

/* Hide custom cursor on mobile */
@media (max-width: 768px) {
    body.has-custom-cursor,
    body.has-custom-cursor * {
        cursor: auto !important;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}

@keyframes fadeInCursorText {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}


/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--dark-bg);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }

/* === Layout === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 8rem 0; position: relative; }
.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700; text-align: center;
    margin-bottom: 4rem; letter-spacing: -0.02em;
}
.section-title span, .about-card h2 span,
.footer-logo span, .logo span { color: var(--orange); }

/* === Navbar === */
#navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1.4rem 2rem;
    transition: padding 0.4s, background 0.4s, border-color 0.4s;
    border-bottom: 1px solid transparent;
}
#navbar.scrolled {
    padding: 0.7rem 2rem;
    background: rgba(23, 23, 23, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: var(--glass-border);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    z-index: 1001;
}
.logo-icon {
    width: 32px;
    height: 32px;
    transition: filter 0.4s ease;
}
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
    font-size: 0.85rem; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    position: relative; padding: 0.3rem 0;
    transition: color 0.3s;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: var(--orange);
    transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a:hover::after { width: 100%; }

/* Mobile menu button */
.menu-btn { display: none; flex-direction: column; gap: 6px; width: 28px; z-index: 1001; }
.menu-btn span { display: block; height: 2px; background: var(--white); transition: all 0.3s; border-radius: 2px; }
.menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* === Hero === */
.hero {
    position: relative; height: 100vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
#heroCanvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%; z-index: 1;
    pointer-events: none;
}
.hero-content {
    position: relative; z-index: 2;
    text-align: center; padding: 0 2rem;
}
.hero-title {
    font-size: clamp(3.5rem, 11vw, 8rem);
    font-weight: 800; letter-spacing: -0.04em;
    line-height: 1; margin-bottom: 1.2rem;
}
.hero-title span { color: var(--orange); }
.hero-sub {
    font-size: clamp(0.95rem, 2.2vw, 1.3rem);
    color: var(--cream); font-weight: 300;
    max-width: 560px; margin: 0 auto 2.8rem;
    letter-spacing: 0.01em; line-height: 1.5;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === Buttons === */
.btn {
    display: inline-block; padding: 0.95rem 2.2rem;
    font-size: 0.9rem; font-weight: 600; font-family: var(--font);
    border-radius: 50px; letter-spacing: 0.03em;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, color 0.3s;
    cursor: pointer;
}
.btn-primary {
    background: var(--orange); color: var(--white); border: none;
    box-shadow: 0 4px 25px rgba(244, 90, 2, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(244, 90, 2, 0.5);
}
.btn-outline {
    border: 1.5px solid var(--glass-border); color: var(--white);
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
}
.btn-outline:hover {
    border-color: var(--orange); color: var(--orange);
    transform: translateY(-2px);
}
.btn-lg { padding: 1.2rem 3rem; font-size: 1.05rem; }

/* Scroll hint */
.scroll-hint {
    position: absolute; bottom: 2.5rem; left: 50%;
    transform: translateX(-50%); z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gray); opacity: 0.5;
}
.scroll-line {
    width: 1px; height: 36px;
    background: linear-gradient(to bottom, var(--orange), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* === Glass Card (base) === */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    transition: border-color 0.4s, box-shadow 0.4s;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.glass-card:hover {
    border-color: rgba(244, 90, 2, 0.25);
    box-shadow: 0 8px 32px rgba(244,90,2,0.08), 0 0 80px rgba(244,90,2,0.04);
}

/* === About === */
.about-card {
    max-width: 800px; margin: 0 auto;
    text-align: center; padding: 4rem 3.5rem;
}
.about-card h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 1.5rem;
    font-weight: 600;
}
.about-card p {
    font-size: 1.1rem; line-height: 1.85;
    color: var(--cream); font-weight: 300;
}

/* === Services === */
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.service-card { text-align: center; padding: 2.8rem 2rem; opacity: 0; }
.card-icon { margin-bottom: 1.4rem; display: flex; justify-content: center; }
.card-icon svg { width: 44px; height: 44px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.7rem; font-weight: 600; }
.service-card p { font-size: 0.88rem; color: var(--cream); line-height: 1.65; font-weight: 300; }
.tilt { will-change: transform; transition: transform 0.15s ease, border-color 0.4s, box-shadow 0.4s; }

/* === Industries === */
.industries-cloud {
    display: flex; flex-wrap: wrap;
    justify-content: center; gap: 1rem;
    max-width: 820px; margin: 0 auto;
}
.industry-tag {
    padding: 0.75rem 1.8rem;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    font-size: 0.92rem; font-weight: 400;
    transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
    cursor: default; opacity: 0;
}
.industry-tag:hover {
    border-color: var(--orange); color: var(--orange);
    box-shadow: 0 0 28px rgba(244,90,2,0.12);
}

/* === Process === */
.process-timeline {
    position: relative; max-width: 680px; margin: 0 auto;
    padding-left: 26px;
}
.process-line {
    position: absolute; left: 24px; top: 0; bottom: 0;
    width: 2px; background: rgba(255,255,255,0.06);
}
.process-fill {
    width: 100%; height: 0;
    background: var(--orange); transition: height 0.5s ease;
}
.process-step {
    display: flex; align-items: flex-start; gap: 2rem;
    margin-bottom: 2rem; position: relative;
    opacity: 0.25; transition: opacity 0.5s ease;
}
.process-step:last-child { margin-bottom: 0; }
.process-step.active { opacity: 1; }
.step-marker {
    width: 50px; height: 50px; min-width: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    background: var(--teal); z-index: 1;
    transition: border-color 0.4s, box-shadow 0.4s, background 0.4s;
}
.process-step.active .step-marker {
    border-color: var(--orange);
    box-shadow: 0 0 24px rgba(244,90,2,0.35);
    background: rgba(244,90,2,0.08);
}
.step-content { flex: 1; padding: 1.2rem 1.8rem; }
.step-num {
    font-size: 0.78rem; color: var(--orange);
    letter-spacing: 0.12em; font-weight: 600;
    display: block; margin-bottom: 0.4rem;
}
.step-content h3 { font-size: 1.25rem; margin-bottom: 0.4rem; font-weight: 600; }
.step-content p { font-size: 0.88rem; color: var(--cream); font-weight: 300; line-height: 1.6; }

/* === Portfolio === */
.portfolio-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.portfolio-card { padding: 0; overflow: hidden; opacity: 0; }
.portfolio-preview {
    height: 200px; position: relative;
    display: flex; align-items: center; justify-content: center;
    border-radius: 20px 20px 0 0;
}
/* Mini website mockup inside card */
.preview-mock {
    width: 78%; height: 72%;
    background: rgba(255,255,255,0.07);
    border-radius: 5px; padding: 6px 8px;
    border: 1px solid rgba(255,255,255,0.08);
}
.mock-bar { display: flex; gap: 4px; margin-bottom: 8px; }
.mock-bar span {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
}
.mock-hero-block {
    height: 38%; background: rgba(255,255,255,0.1);
    border-radius: 3px; margin-bottom: 6px;
}
.mock-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; height: 28%; }
.mock-cols div { background: rgba(255,255,255,0.06); border-radius: 3px; }
.portfolio-info { padding: 1.4rem 1.8rem; }
.portfolio-info h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.3rem; }
.portfolio-info p { font-size: 0.82rem; color: var(--cream); font-weight: 300; }

/* === Why Grid === */
.why-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.why-card { padding: 2.2rem; opacity: 0; }
.why-card h3 { font-size: 1.1rem; margin-bottom: 0.7rem; font-weight: 600; }
.why-card p { font-size: 0.88rem; color: var(--cream); line-height: 1.65; font-weight: 300; }

/* === CTA === */
.cta-section { text-align: center; padding: 10rem 0; position: relative; }
#ctaCanvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%; z-index: 0;
    pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 600; margin-bottom: 2.5rem;
    max-width: 680px; margin-left: auto; margin-right: auto;
    letter-spacing: -0.02em; line-height: 1.25;
}

/* === Footer === */
.footer {
    text-align: center; padding: 4rem 0 2.5rem;
    border-top: 1px solid var(--glass-border);
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.footer-tagline {
    color: var(--cream); font-size: 0.92rem;
    font-weight: 300; margin-bottom: 0.7rem;
}
.footer-services {
    color: var(--gray); font-size: 0.82rem;
    margin-bottom: 1.5rem; letter-spacing: 0.06em;
}
.footer-links {
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.2);
}
body.has-light-bg .footer-links {
    color: rgba(0, 0, 0, 0.2);
}
.footer-legal-link {
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--gray);
    transition: color 0.3s ease;
}
body.has-light-bg .footer-legal-link {
    color: #555555;
}
.footer-legal-link:hover {
    color: var(--orange);
    text-decoration: underline;
}
.footer-copy { color: rgba(255,255,255,0.25); font-size: 0.75rem; }

/* === Reveal (GSAP initial state) === */
.reveal { opacity: 0; transform: translateY(40px); }

/* === Responsive === */
@media (max-width: 1024px) {
    .services-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .menu-btn { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%;
        width: 72%; height: 100vh;
        background: rgba(23, 23, 23, 0.96);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 6rem 2.5rem;
        gap: 1.5rem;
        transition: right 0.4s ease;
        border-left: 1px solid var(--glass-border);
    }
    .nav-links.open { right: 0; }
    .section { padding: 5rem 0; }
    .section-title { margin-bottom: 2.8rem; }
    .services-grid, .portfolio-grid, .why-grid { grid-template-columns: 1fr; }
    .about-card { padding: 2.5rem 1.8rem; }
    .hero-title { margin-bottom: 0.8rem; }
    .portfolio-preview { height: 180px; }
    .cta-section { padding: 7rem 0; }
    .process-timeline { padding-left: 0; }
    .process-line { left: 24px; }
}
@media (max-width: 480px) {
    .container { padding: 0 1.2rem; }
    .hero-btns { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 260px; text-align: center; }
}

#bgParticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}


/* === Light Theme Transition === */
body.has-light-bg {
    color: #171717;
}
body.has-light-bg .section-title {
    color: #171717;
}
body.has-light-bg p,
body.has-light-bg .service-card p,
body.has-light-bg .step-content p,
body.has-light-bg .portfolio-info p,
body.has-light-bg .why-card p,
body.has-light-bg .footer-tagline,
body.has-light-bg .footer-services {
    color: #4a4a4a;
}
body.has-light-bg .glass-card {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}
body.has-light-bg .glass-card:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(244, 90, 2, 0.3);
}
body.has-light-bg .step-marker {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}
body.has-light-bg .industry-tag {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: #171717;
}
body.has-light-bg .industry-tag:hover {
    border-color: var(--orange);
    background: rgba(244, 90, 2, 0.08);
    color: var(--orange);
}
body.has-light-bg #navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    border-bottom-color: rgba(0, 0, 0, 0.08);
    color: #171717;
}
body.has-light-bg #navbar.scrolled .logo-icon,
body.has-light-bg .footer-logo .logo-icon {
    filter: invert(1);
}
body.has-light-bg .footer {
    border-top-color: rgba(0, 0, 0, 0.08);
}
body.has-light-bg .footer-copy {
    color: rgba(0, 0, 0, 0.4);
}


/* === Appointment Calendar Widget === */
.appt-calendar-widget {
    display: flex;
    max-width: 900px;
    margin: 3rem auto 2.5rem;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* -- Info Panel (left) -- */
.appt-info-panel {
    width: 240px;
    min-width: 240px;
    padding: 2rem 1.6rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.appt-brand-logo {
    width: 36px;
    height: 36px;
    margin-bottom: 0.6rem;
}
.appt-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    margin: 0;
}
.appt-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    margin: 0.3rem 0 0.6rem;
}
.appt-duration-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 0.8rem;
}
.appt-meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: auto;
}
.appt-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}
.appt-meta-item svg {
    opacity: 0.5;
    flex-shrink: 0;
}

/* -- Calendar Panel (center) -- */
.appt-calendar-panel {
    flex: 1;
    padding: 1.6rem;
    min-width: 0;
}
.appt-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}
.appt-cal-month {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}
.appt-cal-nav {
    display: flex;
    gap: 0.3rem;
}
.appt-cal-nav-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.appt-cal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.appt-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 0.6rem;
}
.appt-cal-weekdays span {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.08em;
    padding: 0.3rem 0;
}
.appt-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.appt-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: default;
    transition: background 0.2s, color 0.2s, border-color 0.25s;
    user-select: none;
    background: none;
    padding: 0;
}
.appt-cal-day.available {
    background: #2a2a2a;
    color: #fff;
    cursor: pointer;
}
.appt-cal-day.available:hover {
    background: #333;
}
.appt-cal-day.today {
    position: relative;
}
.appt-cal-day.today::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--orange);
}
.appt-cal-day.selected {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 700;
}
.appt-cal-day.other-month {
    color: rgba(255, 255, 255, 0.1);
}

/* -- Time Slots Panel (right) -- */
.appt-time-panel {
    width: 200px;
    min-width: 200px;
    padding: 1.6rem 1.2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}
.appt-time-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.appt-time-day {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}
.appt-time-format {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 2px;
}
.appt-fmt-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}
.appt-fmt-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.appt-time-slots {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    flex: 1;
    max-height: 300px;
    padding-right: 4px;
}
.appt-time-slots::-webkit-scrollbar {
    width: 4px;
}
.appt-time-slots::-webkit-scrollbar-track {
    background: transparent;
}
.appt-time-slots::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
.appt-time-slot {
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
    text-align: center;
    font-family: inherit;
}
.appt-time-slot:hover {
    background: #333;
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-1px);
}
.appt-time-slot.selected {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    font-weight: 600;
}

/* -- Appointment Calendar Responsive -- */
@media (max-width: 860px) {
    .appt-calendar-widget {
        flex-direction: column;
        max-width: 440px;
    }
    .appt-info-panel {
        width: auto;
        min-width: unset;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 1.5rem;
    }
    .appt-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .appt-time-panel {
        width: auto;
        min-width: unset;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .appt-time-slots {
        flex-direction: row;
        flex-wrap: wrap;
        max-height: none;
        overflow-y: visible;
    }
    .appt-time-slot {
        flex: 1 0 calc(33% - 4px);
        min-width: 90px;
    }
}

/* -- Book Slot Button & Success -- */
.appt-book-btn {
    width: 100%;
    margin-top: 0.8rem;
    padding: 0.7rem 1rem;
    background: var(--orange);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.03em;
}
.appt-book-btn:hover {
    background: #d94e00;
    transform: translateY(-1px);
}
.appt-book-btn:active {
    transform: translateY(0);
}
.appt-book-success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
    padding: 0.65rem 1rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #22c55e;
    font-size: 0.82rem;
    font-weight: 600;
}


/* === Sync Vision Dropdown Form === */
.sync-vision-dropdown {
    max-width: 600px;
    margin: 2rem auto 0 auto;
    padding: 2.5rem;
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    text-align: left;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 576px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
    transition: color 0.3s ease;
}
body.has-light-bg .form-group label {
    color: #555555;
}
.form-group input,
.form-group select {
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}
body.has-light-bg .form-group input,
body.has-light-bg .form-group select {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
    color: #171717;
}
.form-group input:focus,
.form-group select:focus {
    border-color: var(--orange);
    background: rgba(255, 255, 255, 0.06);
}
body.has-light-bg .form-group input:focus,
body.has-light-bg .form-group select:focus {
    background: rgba(0, 0, 0, 0.04);
}
.select-wrapper {
    position: relative;
    width: 100%;
}
.select-wrapper::after {
    content: "▼";
    font-size: 0.7rem;
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--gray);
}
body.has-light-bg .select-wrapper::after {
    color: #555555;
}
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    cursor: none;
}
.form-group select option {
    background: var(--dark-bg);
    color: var(--white);
}
body.has-light-bg .form-group select option {
    background: #ffffff;
    color: #171717;
}
.form-success-msg {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: var(--orange);
    font-weight: 500;
    margin-top: 1rem;
    animation: fadeIn 0.5s ease forwards;
}

/* Checkbox Styling */
.form-checkbox-group {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    text-align: left;
}
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: none;
    user-select: none;
}
.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    display: inline-block;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: all 0.3s ease;
}
body.has-light-bg .custom-checkbox {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.02);
}
.checkbox-label input[type="checkbox"]:checked ~ .custom-checkbox {
    background: var(--orange);
    border-color: var(--orange);
}
.custom-checkbox::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.checkbox-label input[type="checkbox"]:checked ~ .custom-checkbox::after {
    display: block;
}
.checkbox-text {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--gray);
    transition: color 0.3s ease;
}
body.has-light-bg .checkbox-text {
    color: #555555;
}
.text-link {
    background: none;
    border: none;
    color: var(--white);
    text-decoration: underline;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    cursor: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
body.has-light-bg .text-link {
    color: #171717;
}
.text-link:hover {
    color: var(--orange);
}

/* Legal Modal Styling */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100000;
    display: none;
    opacity: 0;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: opacity 0.4s ease;
}
.legal-modal-content {
    width: 100%;
    max-width: 750px;
    max-height: 80vh;
    padding: 3rem;
    position: relative;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.4s ease, border-color 0.3s ease, background 0.3s ease;
}
.legal-modal.active {
    display: flex;
}
.legal-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: none;
    transition: color 0.3s ease;
}
body.has-light-bg .legal-modal-close {
    color: #171717;
}
.legal-modal-close:hover {
    color: var(--orange);
}
.legal-modal-body {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
}
body.has-light-bg .legal-modal-body {
    color: #444444;
}
.legal-modal-body h2 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-family: 'MuseoModerno', sans-serif;
}
body.has-light-bg .legal-modal-body h2 {
    color: #171717;
}
.legal-modal-body h3 {
    color: var(--white);
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
body.has-light-bg .legal-modal-body h3 {
    color: #171717;
}
.legal-modal-body p {
    margin-bottom: 1rem;
}
.legal-modal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.legal-modal-body li {
    margin-bottom: 0.5rem;
}

/* === Theme Toggle Button === */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: none;
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--white);
    padding: 0;
    outline: none;
}
.theme-toggle:hover {
    border-color: var(--orange);
    background: rgba(244, 90, 2, 0.12);
    transform: scale(1.12);
}
.theme-toggle:active {
    transform: scale(0.95);
}
.theme-toggle .toggle-icon {
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}
.theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}
.theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}
.theme-toggle.dark-active .icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}
.theme-toggle.dark-active .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Toggle adapts to light background */
body.has-light-bg .theme-toggle {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
    color: #171717;
}
body.has-light-bg .theme-toggle:hover {
    border-color: var(--orange);
    background: rgba(244, 90, 2, 0.1);
    color: var(--orange);
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.05s !important;
    }
    .reveal { opacity: 1; transform: none; }
    .service-card, .portfolio-card, .why-card, .industry-tag { opacity: 1; }
    .process-step { opacity: 1; }
    html { scroll-behavior: auto; }
}
