        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

        :root {
            --brand-dark: #2B0C35;
            --brand-plum: #3D1349;
            --brand-magenta: #A3206A;
            --brand-magenta-hover: #821853;
            --brand-light: #F4EBF3;
            --brand-light-purple: #E8C5E5;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: #F9FAFB;
            color: #1F2937;
        }

        .theme-toggle {
            display: inline-flex;
            width: 2.75rem;
            height: 2.75rem;
            align-items: center;
            justify-content: center;
            border: 1px solid #e5e7eb;
            border-radius: 0.75rem;
            background: #fff;
            color: #374151;
            cursor: pointer;
            transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
        }

        .theme-toggle:hover {
            border-color: var(--brand-magenta);
            color: var(--brand-magenta);
        }

        .theme-toggle:focus-visible {
            outline: 3px solid rgba(163, 32, 106, 0.35);
            outline-offset: 2px;
        }

        html[data-theme="dark"] body {
            background-color: #111827;
            color: #e5e7eb;
        }

        html[data-theme="dark"] .bg-white,
        html[data-theme="dark"] .bg-white\/95 {
            background-color: #1f2937 !important;
        }

        html[data-theme="dark"] .bg-gray-50 {
            background-color: #111827 !important;
        }

        html[data-theme="dark"] .bg-gray-100,
        html[data-theme="dark"] .bg-gray-200 {
            background-color: #374151 !important;
        }

        html[data-theme="dark"] .bg-brand-light {
            background-color: #3b263f !important;
        }

        html[data-theme="dark"] .text-gray-800,
        html[data-theme="dark"] .text-gray-700,
        html[data-theme="dark"] .text-gray-600,
        html[data-theme="dark"] .text-gray-500 {
            color: #d1d5db !important;
        }

        html[data-theme="dark"] .text-brand-dark {
            color: #f3e8f2 !important;
        }

        html[data-theme="dark"] .border-gray-100,
        html[data-theme="dark"] .border-gray-200,
        html[data-theme="dark"] .border-gray-300 {
            border-color: #374151 !important;
        }

        html[data-theme="dark"] .border-purple-200 {
            border-color: #5b3b60 !important;
        }

        html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
        html[data-theme="dark"] select,
        html[data-theme="dark"] textarea {
            border-color: #4b5563;
            background-color: #1f2937;
            color: #f3f4f6;
        }

        html[data-theme="dark"] input::placeholder,
        html[data-theme="dark"] textarea::placeholder {
            color: #9ca3af;
        }

        html[data-theme="dark"] .theme-toggle {
            border-color: #4b5563;
            background: #1f2937;
            color: #fbbf24;
        }

        html[data-theme="dark"] .mobile-nav-link.active-nav {
            background-color: #3b263f;
        }

        html[data-theme="dark"] .chat-messages,
        html[data-theme="dark"] .chat-suggestions {
            background: #111827;
        }

        html[data-theme="dark"] .chat-panel-header,
        html[data-theme="dark"] .chat-form,
        html[data-theme="dark"] .chat-panel .chat-response-note {
            background: #1f2937;
        }

        html[data-theme="dark"] .chat-message-assistant,
        html[data-theme="dark"] .chat-suggestions button {
            border-color: #4b5563;
            background: #1f2937;
            color: #e5e7eb;
        }

        html[data-theme="dark"] .chat-support-copy strong {
            color: #f3f4f6;
        }

        .page-section:not(#page-home) {
            padding-block: 3rem;
        }

        .updates-featured-banner {
            background: linear-gradient(110deg, #2B0C35 0%, #3D1349 100%);
        }

        .updates-featured-banner h2,
        .updates-featured-banner p {
            color: #fff;
        }

        .updates-featured-banner p {
            color: #e5e7eb;
        }

        .updates-featured-bulletin {
            background: linear-gradient(135deg, #2B0C35 0%, #3D1349 60%, #17091c 100%);
        }

        .updates-featured-bulletin h2 {
            color: #fff;
        }

        .updates-featured-bulletin p {
            color: #e5e7eb;
        }

        #news-update-dialog {
            width: min(90vw, 48rem);
            max-height: 85vh;
            padding: 0;
            border: 0;
            border-radius: 1.5rem;
            background: #fff;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
            overflow-y: auto;
        }

        #news-update-dialog::backdrop {
            background: rgba(17, 24, 39, 0.65);
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Outfit', 'Inter', sans-serif;
        }

        .bg-brand-dark { background-color: #2B0C35; }
        .bg-brand-plum { background-color: #3D1349; }
        .bg-brand-magenta { background-color: #A3206A; }
        .bg-brand-light { background-color: #F4EBF3; }

        .text-brand-dark { color: #2B0C35; }
        .text-brand-plum { color: #3D1349; }
        .text-brand-magenta { color: #A3206A; }
        .text-brand-lightPurple { color: #E8C5E5; }

        .border-brand-dark { border-color: #2B0C35; }
        .border-brand-plum { border-color: #3D1349; }
        .border-brand-magenta { border-color: #A3206A; }

        /* Smooth Fade Animations */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .animate-fade-in {
            animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        .nav-link {
            position: relative;
            transition: all 0.2s ease;
        }

        .nav-link.active-nav {
            color: #A3206A !important;
            font-weight: 700;
        }

        nav .nav-link.active-nav::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #A3206A;
            border-radius: 2px;
        }

        .mobile-nav-link.active-nav {
            color: var(--brand-magenta);
            background-color: var(--brand-light);
            padding-left: 0.75rem;
            border-radius: 0.5rem;
        }

        .footer-navigation a {
            display: inline-block;
        }

        .footer-nav-link.active-nav {
            color: #FFFFFF !important;
            padding-left: 0.5rem;
            border-left: 2px solid var(--brand-magenta);
        }

        .chat-widget {
            position: fixed;
            right: 1.75rem;
            bottom: 1.5rem;
            z-index: 1000;
        }

        .chat-toggle {
            display: flex;
            width: 3.5rem;
            height: 3.5rem;
            align-items: center;
            justify-content: center;
            border: 0;
            border-radius: 9999px;
            background: var(--brand-magenta);
            color: #fff;
            font-size: 1.35rem;
            box-shadow: 0 8px 24px rgba(43, 12, 53, 0.22);
            transition: transform 200ms ease, background-color 200ms ease;
            cursor: pointer;
        }

        .chat-toggle:hover {
            transform: translateY(-2px);
            background: var(--brand-magenta-hover);
        }

        .chat-toggle:focus-visible,
        .chat-close:focus-visible,
        .chat-start-button:focus-visible {
            outline: 3px solid #f3a5aa;
            outline-offset: 3px;
        }

        .chat-panel {
            position: absolute;
            right: 0;
            bottom: 4.5rem;
            display: flex;
            width: min(21rem, calc(100vw - 2rem));
            height: min(32rem, calc(100vh - 7rem));
            flex-direction: column;
            overflow: hidden;
            border: 1px solid #e5e7eb;
            border-radius: 1.5rem;
            background: #fff;
            box-shadow: 0 18px 55px rgba(26, 20, 39, 0.22);
            animation: chatPanelIn 180ms ease-out;
        }

        .chat-panel[hidden] {
            display: none;
        }

        .chat-panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.75rem 1rem;
            background: #fff;
        }

        .chat-brand-icon,
        .chat-avatar {
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            border-radius: 9999px;
            background: var(--brand-magenta);
            color: #fff;
        }

        .chat-brand-icon {
            width: 2rem;
            height: 2rem;
        }

        .chat-close {
            width: 2rem;
            height: 2rem;
            border: 0;
            border-radius: 9999px;
            background: #f3f4f6;
            color: #475569;
            cursor: pointer;
        }

        .chat-panel-content {
            flex: 1;
            padding: 1rem;
            background: linear-gradient(145deg, #fff 18%, #fae5e8 100%);
        }

        .chat-panel-content h2 {
            margin: 0 0 1rem;
            color: #111827;
            font-size: 1.75rem;
            font-weight: 800;
            line-height: 1.12;
        }

        .chat-support-card {
            display: grid;
            grid-template-columns: 2.75rem 1fr;
            gap: 0.5rem 0.75rem;
            padding: 0.75rem;
            border: 1px solid #e2e8f0;
            border-radius: 1rem;
            background: #fff;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
        }

        .chat-avatar {
            position: relative;
            width: 2.75rem;
            height: 2.75rem;
            font-weight: 700;
        }

        .chat-avatar span {
            position: absolute;
            right: 0;
            bottom: 0;
            width: 0.65rem;
            height: 0.65rem;
            border: 2px solid #fff;
            border-radius: 9999px;
            background: #10b981;
        }

        .chat-support-copy {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 0.15rem;
            min-width: 0;
        }

        .chat-support-copy span {
            color: #64748b;
            font-size: 0.65rem;
        }

        .chat-support-copy strong {
            color: #1e293b;
            font-size: 0.75rem;
        }

        .chat-start-button {
            grid-column: 1 / -1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            min-height: 2.5rem;
            border-radius: 0.7rem;
            background: var(--brand-magenta);
            color: #fff;
            font-size: 0.8rem;
            font-weight: 700;
            text-decoration: none;
            transition: background-color 180ms ease;
        }

        .chat-start-button:hover {
            background: var(--brand-magenta-hover);
        }

        .chat-response-note {
            margin: 0.75rem 0 0;
            color: #64748b;
            font-size: 0.65rem;
            text-align: center;
        }

        .chat-panel-footer {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            padding: 0.8rem;
            border-top: 1px solid #f1f5f9;
            color: #64748b;
            font-size: 0.7rem;
        }

        .chat-panel-footer span {
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }

        .chat-panel-footer .active {
            color: var(--brand-magenta);
        }

        .chat-messages {
            display: flex;
            flex: 1;
            flex-direction: column;
            gap: 0.65rem;
            overflow-y: auto;
            padding: 1rem;
            background: #f8fafc;
            scroll-behavior: smooth;
        }

        .chat-message {
            max-width: 88%;
            padding: 0.65rem 0.8rem;
            border-radius: 1rem;
            font-size: 0.8rem;
            line-height: 1.5;
            overflow-wrap: anywhere;
        }

        .chat-message-assistant {
            align-self: flex-start;
            border: 1px solid #e5e7eb;
            border-bottom-left-radius: 0.3rem;
            background: #fff;
            color: #374151;
        }

        .chat-message-user {
            align-self: flex-end;
            border-bottom-right-radius: 0.3rem;
            background: var(--brand-magenta);
            color: #fff;
        }

        .chat-message a {
            display: inline-block;
            margin-top: 0.4rem;
            color: var(--brand-magenta);
            font-weight: 700;
            text-decoration: underline;
            text-underline-offset: 2px;
        }

        .chat-suggestions {
            display: flex;
            gap: 0.4rem;
            overflow-x: auto;
            padding: 0.65rem 0.75rem 0;
            background: #f8fafc;
        }

        .chat-suggestions button {
            flex: 0 0 auto;
            padding: 0.4rem 0.6rem;
            border: 1px solid #e9d5e5;
            border-radius: 9999px;
            background: #fff;
            color: var(--brand-plum);
            font-size: 0.68rem;
            cursor: pointer;
        }

        .chat-suggestions button:hover {
            background: var(--brand-light);
        }

        .chat-form {
            display: flex;
            gap: 0.5rem;
            padding: 0.75rem;
            border-top: 1px solid #e5e7eb;
            background: #fff;
        }

        .chat-form input {
            min-width: 0;
            flex: 1;
            padding: 0.65rem 0.75rem;
            border: 1px solid #d1d5db;
            border-radius: 0.75rem;
            color: #1f2937;
            font-size: 0.8rem;
        }

        .chat-form input:focus {
            border-color: var(--brand-magenta);
            outline: 2px solid rgba(163, 32, 106, 0.18);
        }

        .chat-form button {
            width: 2.6rem;
            flex: 0 0 auto;
            border: 0;
            border-radius: 0.75rem;
            background: var(--brand-magenta);
            color: #fff;
            cursor: pointer;
        }

        .chat-form button:hover {
            background: var(--brand-magenta-hover);
        }

        .chat-form button:disabled {
            cursor: wait;
            opacity: 0.65;
        }

        .chat-panel .chat-response-note {
            margin: 0;
            padding: 0 0.75rem 0.65rem;
            background: #fff;
        }

        @media (max-width: 480px) {
            .chat-widget {
                right: 1rem;
                bottom: 1rem;
            }

            .chat-panel {
                right: -0.25rem;
                width: min(21rem, calc(100vw - 1.5rem));
                height: min(32rem, calc(100dvh - 6rem));
            }
        }

        @keyframes chatPanelIn {
            from { opacity: 0; transform: translateY(8px) scale(0.98); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        .hero-slider {
            min-height: 720px;
            isolation: isolate;
        }

        .hero-slide {
            position: absolute;
            inset: 0;
            background-position: center;
            background-size: cover;
            opacity: 0;
            transition: opacity 700ms ease;
        }

        .hero-slide::before {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(20, 7, 27, 0.78);
        }

        .hero-slide.is-active {
            opacity: 1;
        }

        .hero-slider-content {
            min-height: 720px;
        }

        #page-projects .gallery-live-frame::after {
            content: '';
            position: absolute;
            z-index: 1;
            inset: 0;
            background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.28) 48%, transparent 70%);
            transform: translateX(-120%);
            animation: galleryLiveSweep 6s ease-in-out infinite;
            pointer-events: none;
        }

        #page-projects .gallery-live-image {
            animation: galleryLiveDrift 12s ease-in-out infinite alternate;
            will-change: transform;
        }

        #page-projects .gallery-item:nth-child(2) .gallery-live-image,
        #page-projects .gallery-item:nth-child(2) .gallery-live-frame::after {
            animation-delay: 1s;
        }

        #page-projects .gallery-item:nth-child(3) .gallery-live-image,
        #page-projects .gallery-item:nth-child(3) .gallery-live-frame::after {
            animation-delay: 2s;
        }

        #page-projects .gallery-item:nth-child(4) .gallery-live-image,
        #page-projects .gallery-item:nth-child(4) .gallery-live-frame::after {
            animation-delay: 3s;
        }

        #page-projects .gallery-item:nth-child(5) .gallery-live-image,
        #page-projects .gallery-item:nth-child(5) .gallery-live-frame::after {
            animation-delay: 4s;
        }

        #page-projects .gallery-item:nth-child(6) .gallery-live-image,
        #page-projects .gallery-item:nth-child(6) .gallery-live-frame::after {
            animation-delay: 5s;
        }

        #page-projects .gallery-item {
            transition: transform 250ms ease, box-shadow 250ms ease;
        }

        #page-projects .gallery-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 18px 30px rgba(43, 12, 53, 0.16);
        }

        #page-projects .gallery-item:hover .gallery-live-image {
            animation-play-state: paused;
            transform: scale(1.12);
        }

        @keyframes galleryLiveDrift {
            from { transform: scale(1.04) translateX(-1%); }
            to { transform: scale(1.16) translateX(1%); }
        }

        @keyframes galleryLiveSweep {
            0%, 15% { transform: translateX(-120%); }
            65%, 100% { transform: translateX(120%); }
        }

        #page-services .service-live-card {
            transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
        }

        #page-services .service-live-card:hover {
            transform: translateY(-5px);
            border-color: rgba(163, 32, 106, 0.35);
            box-shadow: 0 20px 35px rgba(43, 12, 53, 0.12);
        }

        #page-services .service-live-image {
            transition: transform 500ms ease, filter 500ms ease;
            filter: saturate(0.9) contrast(1.03);
            will-change: transform;
        }

        #page-services .service-live-card:hover .service-live-image {
            transform: scale(1.08);
            filter: saturate(1) contrast(1.06);
        }

        #page-services .service-live-visual {
            position: relative;
            overflow: hidden;
            isolation: isolate;
        }

        #page-services .service-live-visual > * {
            position: relative;
            z-index: 2;
        }

        #page-services .service-live-visual::after {
            content: '';
            position: absolute;
            z-index: 1;
            inset: -40% auto -40% -70%;
            width: 65%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
            transform: skewX(-18deg);
            animation: serviceLightSweep 3.5s ease-in-out infinite;
            pointer-events: none;
        }

        #page-services .service-live-card:nth-child(2) .service-live-visual::after {
            animation-delay: 1.25s;
        }

        #page-services .service-live-card:nth-child(3) .service-live-visual::after {
            animation-delay: 2.5s;
        }

        #page-services .service-live-card:nth-child(4) .service-live-visual::after {
            animation-delay: 3.75s;
        }

        #page-services .service-live-icon {
            animation: serviceIconFloat 2.2s ease-in-out infinite;
        }

        #page-services .service-live-card:nth-child(2) .service-live-icon {
            animation-delay: 0.4s;
        }

        #page-services .service-live-card:nth-child(3) .service-live-icon {
            animation-delay: 0.8s;
        }

        #page-services .service-live-card:nth-child(4) .service-live-icon {
            animation-delay: 1.2s;
        }

        @keyframes serviceLightSweep {
            0%, 10% { left: -70%; }
            65%, 100% { left: 125%; }
        }

        @keyframes serviceIconFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px) scale(1.06); }
        }

        @media (max-width: 640px) {
            .hero-slider,
            .hero-slider-content {
                min-height: 980px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .chat-panel {
                animation: none;
            }

            .hero-slide {
                transition: none;
            }

            #page-services .service-live-card,
            #page-services .service-live-icon {
                transition: none;
                animation: none;
            }

            #page-services .service-live-card:hover {
                transform: none;
            }

            #page-services .service-live-visual::after {
                animation: none;
            }

            #page-projects .gallery-live-image,
            #page-projects .gallery-live-frame::after {
                animation: none;
            }

            #page-projects .gallery-live-item:hover,
            #page-projects .gallery-item:hover {
                transform: none;
            }

            #page-projects .gallery-live-image {
                transform: none;
            }
        }
</style>
