@font-face {
    font-family: 'Playfair Display';
    src: url('PlayfairDisplay.woff2') format('woff2');
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('Inter.woff2') format('woff2');
    font-weight: 300 600;
    font-display: swap;
}

:root {
    --alabaster: #fdfdfd;
    --iridescent-1: rgba(224, 242, 255, 0.4);
    --iridescent-2: rgba(255, 235, 245, 0.4);
    --iridescent-3: rgba(240, 255, 244, 0.4);
    --text-main: #1a1a1a;
    --nav-line: #1a1a1a;
}

html {
    overflow-x: hidden;
    width: 100%;
}

html.dark {
    --alabaster: #050505;
    --iridescent-1: rgba(139, 92, 246, 0.15);
    /* deep purple */
    --iridescent-2: rgba(56, 189, 248, 0.15);
    /* light blue */
    --iridescent-3: rgba(236, 72, 153, 0.15);
    /* pink glow */
    --text-main: #fcfcfc;
    --nav-line: #fcfcfc;
}

body {
    background-color: var(--alabaster);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    width: 100%;
    transition: background-color 0.3s, color 0.3s, filter 0.4s ease;
    position: relative;
}

/* --- Efficiency Optimizations --- */

/* Pause expensive background animations when chatbot is open */
body.chatbot-open .tech-ticker,
body.chatbot-open .hero-glow,
body.chatbot-open .iridescent-bg,
body.chatbot-open .text-iridescent {
    animation-play-state: paused !important;
}

/* Accessibility: Respect system settings for reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
}

body.lock-scroll {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    /* top is set dynamically via JS to preserve scroll position */
}

html.lock-scroll {
    overflow: hidden !important;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 9999;
    pointer-events: none;
    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");
}

html.dark body::before {
    opacity: 0.05;
}

@media (min-width: 769px) {
    body.chatbot-open>*:not(#chatbot-container) {
        filter: blur(8px);
        opacity: 0.6;
        pointer-events: none;
        transition: filter 0.4s ease, opacity 0.4s ease;
    }

    body.chatbot-step-2>*:not(#chatbot-container) {
        filter: blur(8px);
        opacity: 0.6;
        pointer-events: none;
    }

    body.chatbot-step-2>section#services {
        filter: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: relative;
        z-index: 40;
    }

    body.chatbot-step-2 #services>*:not(.grid) {
        filter: blur(8px);
        opacity: 0.6;
    }

    body.chatbot-step-2 #services .grid>*:not(.highlighted-service) {
        display: none;
    }
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}



.iridescent-bg {
    background-image: linear-gradient(120deg, var(--iridescent-1), var(--iridescent-2), var(--iridescent-3));
    background-size: 300% 300%;
    animation: flow 15s ease infinite;
}

/* Soften image edges so they blend into the hero */
.hero-image-wrap {
    mask-image: radial-gradient(ellipse 130% 115% at 70% 15%, black 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 130% 115% at 70% 15%, black 60%, transparent 100%);
}

/* New Hero Background System */
.hero-glow-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    mix-blend-mode: plus-lighter;
}

.glow-1 {
    top: -10%;
    right: -10%;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    animation: float-glow-1 25s infinite alternate ease-in-out;
}

.glow-2 {
    bottom: -10%;
    left: -10%;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    animation: float-glow-2 30s infinite alternate ease-in-out;
}

.glow-3 {
    top: 30%;
    left: 20%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    opacity: 0.1;
    animation: float-glow-3 20s infinite alternate ease-in-out;
}

@keyframes float-glow-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-10%, 15%) scale(1.1);
    }
}

@keyframes float-glow-2 {
    0% {
        transform: translate(0, 0) scale(1.1);
    }

    100% {
        transform: translate(15%, -10%) scale(1);
    }
}

@keyframes float-glow-3 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-5%, -5%) rotate(10deg);
    }
}

@keyframes flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        border-color 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        background 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

html.dark .glass-card {
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.glass-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: rgba(200, 200, 200, 0.3);
}

html.dark .glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    background: rgba(30, 30, 30, 0.6);
}

.highlighted-service {
    border-color: #000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    animation: pulse-highlight 2s ease-in-out 3;
}

@keyframes pulse-highlight-dark {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.1);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2);
    }
}

html.dark .highlighted-service {
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation: pulse-highlight-dark 2s ease-in-out 3;
}

.text-iridescent {
    background: linear-gradient(90deg, #b2b2b2, #1a1a1a, #b2b2b2);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

html.dark .text-iridescent {
    background: linear-gradient(90deg, #b2b2b2, #f3f4f6, #b2b2b2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.project-image-container {
    overflow: hidden;
    position: relative;
}

.project-image-container img {
    transition: transform 0.8s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.cta-button:hover::after {
    left: 100%;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

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

/* First card vertical flip on reveal */
#flip-card {
    perspective: 900px;
}

#flip-card .flip-inner {
    position: relative;
    transform-style: preserve-3d;
}

#flip-card .service-card {
    backface-visibility: hidden;
}

#flip-card .flip-inner.reveal.active {
    animation: cardFlip 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
}

@keyframes cardFlip {
    0%   { transform: translateY(0) rotateY(0); }
    30%  { transform: translateY(0) rotateY(-35deg); }
    60%  { transform: translateY(0) rotateY(0); }
    100% { transform: translateY(0) rotateY(0); }
}

/* Flip hint arrow animation */
.flip-hint svg {
    animation: arrowPulse 2.5s ease-in-out 1.2s 4;
}

@keyframes arrowPulse {
    0%, 100% { transform: rotate(0deg) translateX(0); opacity: 0.6; }
    50% { transform: rotate(-25deg) translateX(3px); opacity: 1; }
}

.brand-logo {
    transition: filter 0.3s ease;
}

html.dark .brand-logo {
    filter: invert(1) brightness(1.2);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--nav-line);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Portfolio Modal */
.modal-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.modal-content {
    transform: translateY(40px) scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
}

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

.modal-nav-btn {
    position: absolute;
    top: 400px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 60;
    transition: all 0.3s ease;
}

html.dark .modal-nav-btn {
    background: rgba(20, 20, 20, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.modal-nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
    background: white;
}

html.dark .modal-nav-btn:hover {
    background: black;
}

.modal-nav-prev {
    left: 12px;
}

.modal-nav-next {
    right: 12px;
}

@media (max-width: 1024px) {
    .modal-nav-prev {
        left: 10px;
    }

    .text-\[4em\].sm\:text-5xl.md\:text-8xl.lg\:text-9xl.font-bold.mb-10.leading-tight.reveal.px-2.block.active {
        margin: 0em 2em;
    }

    .modal-nav-next {
        right: 10px;
    }

    .modal-nav-btn {
        top: 300px;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.95);
    }
}

/* Portfolio Carousel */
.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 20;
}

html.dark .carousel-dot {
    background: rgba(255, 255, 255, 0.2);
}

.carousel-dot.active {
    background: rgba(0, 0, 0, 0.8);
    width: 24px;
    border-radius: 4px;
}

html.dark .carousel-dot.active {
    background: rgba(255, 255, 255, 0.8);
}

/* Tech Ticker */
.tech-ticker-container {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-ticker {
    display: flex;
    width: fit-content;
    animation: scroll-ticker 40s linear infinite;
}

.tech-ticker:hover {
    animation-play-state: paused;
}

@keyframes scroll-ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.tech-icon {
    background-color: currentColor;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

/* Chatbot Styles */
#chatbot-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

#chatbot-toggle {
    pointer-events: auto;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: black;
}

html.dark #chatbot-toggle {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: white;
}

#chatbot-toggle:hover {
    transform: scale(1.05);
}

#chatbot-window {
    pointer-events: auto;
    width: 350px;
    max-width: calc(100vw - 48px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    margin-bottom: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    transform-origin: bottom right;
}

html.dark #chatbot-window {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

#back-to-top {
    position: fixed;
    bottom: 95px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 90;
    pointer-events: auto;
    color: black;
}

html.dark #back-to-top {
    background: rgba(20, 20, 20, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

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

#back-to-top:hover {
    transform: translateY(-5px);
    background: white;
}

html.dark #back-to-top:hover {
    background: black;
}

#chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

html.dark .chat-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-body {
    padding: 20px;
    max-height: 440px;
    overflow-y: auto;
}

#chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-row.is-user {
    justify-content: flex-end;
}

.chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

html.dark .chat-avatar {
    background: #f5f5f5;
    color: #111;
}

.chat-bubble {
    max-width: min(82%, 320px);
    padding: 10px 12px 8px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    word-break: break-word;
}

.chat-bubble.user {
    background: #111;
    color: #fff;
    border-top-right-radius: 6px;
}

html.dark .chat-bubble.user {
    background: #fafafa;
    color: #111;
}

.chat-bubble.admin {
    background: #fff;
    color: #171717;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top-left-radius: 6px;
}

html.dark .chat-bubble.admin {
    background: #1f1f1f;
    color: #efefef;
    border-color: rgba(255, 255, 255, 0.08);
}

.chat-text {
    font-size: 13px;
    line-height: 1.45;
}

.chat-time {
    margin-top: 4px;
    font-size: 10px;
    opacity: 0.6;
    text-align: right;
}

.chat-send-disabled {
    opacity: 0.45;
    transform: none !important;
    cursor: not-allowed;
    pointer-events: none;
}

.chat-quick-replies {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.chat-quick-replies::-webkit-scrollbar {
    display: none;
}

.quick-reply-chip {
    flex: 0 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.88);
    color: #171717;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1;
    padding: 10px 16px;
    transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    white-space: nowrap;
}

.quick-reply-chip:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

html.dark .quick-reply-chip {
    background: rgba(38, 38, 38, 0.9);
    color: #efefef;
    border-color: rgba(255, 255, 255, 0.14);
}

html.dark .quick-reply-chip:hover {
    background: #f5f5f5;
    color: #111;
    border-color: #f5f5f5;
}

.animate-message-in {
    animation: chatIn 180ms ease-out;
}

@keyframes chatIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    border-top-left-radius: 4px;
    width: fit-content;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 10px;
}

html.dark .typing-indicator {
    background: #1f1f1f;
    border-color: rgba(255, 255, 255, 0.08);
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-4px);
    }
}

/* Notification Badge */
.chatbot-notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

html.dark .chatbot-notification-badge {
    border-color: #050505;
}

.chatbot-notification-badge.active {
    opacity: 1;
    transform: scale(1);
}

.problem-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

html.dark .problem-option {
    background: rgba(255, 255, 255, 0.03);
}

.problem-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

html.dark .problem-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.problem-option.selected {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

html.dark .problem-option.selected {
    background: rgba(255, 255, 255, 0.9);
    color: black;
}

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

.chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

html.dark .chat-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    #chatbot-container.fullscreen {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        width: 100svw !important;
        height: 100svh !important;
        z-index: 9999 !important;
        padding: 0 !important;
        background: var(--alabaster) !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    #chatbot-container.fullscreen #chatbot-window {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        display: flex !important;
        flex-direction: column !important;
        bottom: auto !important;
        right: auto !important;
        box-shadow: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    #chatbot-container.fullscreen .chat-body {
        flex: 1 !important;
        max-height: none !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
    }
}

/* Professional FAQ Styles */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    margin-bottom: 16px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

html.dark .faq-item {
    background: rgba(38, 38, 38, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
}

.faq-item:hover {
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

html.dark .faq-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

.faq-question span {
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #171717;
    transition: color 0.3s ease;
}

html.dark .faq-question span {
    color: #e5e5e5;
}

.faq-item.open .faq-question span {
    color: #000;
}

html.dark .faq-item.open .faq-question span {
    color: #fff;
}

.faq-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

html.dark .faq-icon-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.faq-item.open .faq-icon-wrapper {
    background: #000;
    color: #fff;
    transform: rotate(180deg);
}

html.dark .faq-item.open .faq-icon-wrapper {
    background: #fff;
    color: #000;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 0 32px;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: 32px;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.6;
    color: #525252;
    white-space: pre-line;
}

html.dark .faq-answer p {
    color: #a3a3a3;
}

/* Color Override for neutral-500 */
.text-neutral-500 {
    color: rgb(223, 208, 208) !important;
}

.mail-btn-custom {
    background-color: #FFCC00 !important;
    /* Swiss Post Yellow */
    color: #000000 !important;
    border: none !important;
}

html.dark .mail-btn-custom {
    background-color: #B89300 !important;
    /* Weaker/Muted Post Yellow */
    color: #000000 !important;
}

.mail-btn-custom:hover {
    filter: brightness(1.1);
}

/* Chatbot Notification Badge */
.chatbot-notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background-color: #ef4444;
    /* red-500 */
    border-radius: 50%;
    border: 2px solid white;
    display: none;
    z-index: 10;
    pointer-events: none;
}

html.dark .chatbot-notification-badge {
    border-color: #1a1a1a;
}

.chatbot-notification-badge.active {
    display: block;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Service Pricing Modal Custom Items */
.service-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html.dark .service-price-item {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
}

.service-price-item:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    transform: translateX(4px);
}

html.dark .service-price-item:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

@media (max-width: 768px) {
    .tech-ticker {
        animation: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        cursor: grab;
    }
    .tech-ticker:active {
        cursor: grabbing;
    }
    .tech-ticker > div {
        scroll-snap-align: start;
    }
    /* .delivery-badge {
        display: none !important;
    } */
    .service-modal-buttons {
        flex-direction: row !important;
    }
    .service-modal-buttons > * {
        flex: 1;
    }
    .service-modal-buttons .btn-label-full {
        display: none;
    }
    .service-modal-buttons .btn-label-short {
        display: inline;
    }
}

/* Mobile delivery badge in modal */
.service-modal-delivery {
    text-align: center;
    margin-bottom: 1rem;
}
.service-modal-delivery span {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #404040;
}
html.dark .service-modal-delivery span {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: #d4d4d4;
}