:root {
    --ai-bg: #111314;
    --ai-bg-soft: #1b1e20;
    --ai-accent: #c7a874;
    --ai-text: #e8e8e8;
    --ai-muted: #b4b7ba;
    --ai-body-bg: radial-gradient(circle at 12% 15%, #2a2e31, #111314 40%), linear-gradient(145deg, #131516, #0f1011);
    --ai-nav-bg: rgba(14, 15, 16, 0.92);
    --ai-nav-border: rgba(199, 168, 116, 0.25);
    --ai-card-bg: rgba(255, 255, 255, 0.04);
    --ai-card-border: rgba(199, 168, 116, 0.3);
    --ai-footer-bg: #0b0c0d;
    --ai-footer-border: rgba(199, 168, 116, 0.2);
    --ai-input-bg: #141618;
    --ai-input-border: #3a3f45;
}

html[data-theme="light"] {
    --ai-bg: #f4f5f6;
    --ai-bg-soft: #ffffff;
    --ai-accent: #1c1f24;
    --ai-text: #15181b;
    --ai-muted: #545b64;
    --ai-body-bg: radial-gradient(circle at 10% 12%, #ffffff, #f4f5f6 45%), linear-gradient(145deg, #f8f9fa, #eceff2);
    --ai-nav-bg: rgba(255, 255, 255, 0.95);
    --ai-nav-border: rgba(17, 19, 20, 0.16);
    --ai-card-bg: rgba(255, 255, 255, 0.92);
    --ai-card-border: rgba(17, 19, 20, 0.16);
    --ai-footer-bg: #e9ecef;
    --ai-footer-border: rgba(17, 19, 20, 0.14);
    --ai-input-bg: #ffffff;
    --ai-input-border: #cfd4da;
}

body {
    background: var(--ai-body-bg);
    color: var(--ai-text);
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    min-height: 100vh;
}

.ai-navbar {
    background: var(--ai-nav-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--ai-nav-border);
}

.ai-navbar .navbar-brand,
.ai-navbar .nav-link {
    color: var(--ai-text) !important;
}

.ai-navbar .nav-link:hover,
.ai-navbar .nav-link:focus {
    color: var(--ai-accent) !important;
}

.ai-navbar .dropdown-menu {
    background: var(--ai-bg-soft);
    border: 1px solid var(--ai-card-border);
}

.ai-navbar .dropdown-item {
    color: var(--ai-text);
}

.ai-navbar .dropdown-item:hover,
.ai-navbar .dropdown-item:focus {
    color: var(--ai-accent);
    background: color-mix(in srgb, var(--ai-card-bg) 85%, transparent);
}

html[data-theme="light"] .navbar-dark .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .navbar-dark .navbar-toggler-icon {
    filter: invert(1);
}

.ai-theme-toggle {
    min-width: 110px;
}

.ai-hero {
    padding: 4.25rem 0 3rem;
}

.ai-hero .row {
    min-height: 240px;
}

.ai-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.ai-hero-video-frame {
    min-height: 240px;
}

.ai-hero-video {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.ai-hero .ai-section-title,
.ai-hero h1,
.ai-hero .lead,
.ai-hero .btn,
.ai-hero .small {
    animation: aiHeroFadeUp 0.8s ease both;
}

.ai-hero h1 {
    animation-delay: 0.08s;
}

.ai-hero .lead {
    animation-delay: 0.16s;
}

.ai-hero .btn {
    animation-delay: 0.24s;
}

.ai-hero .small {
    animation-delay: 0.32s;
}

.ai-hero-scene {
    position: relative;
    height: 540px;
    border-radius: 1.2rem;
    overflow: hidden;
    isolation: isolate;
}

.ai-hero-glow {
    position: absolute;
    inset: -20% -15% auto;
    height: 75%;
    background: radial-gradient(circle at 50% 40%, rgba(199, 168, 116, 0.38), transparent 62%);
    z-index: 1;
}

.ai-hero-layer {
    --parallax-x: 0px;
    --parallax-y: 0px;
    position: absolute;
    object-fit: cover;
    transform: translate3d(var(--parallax-x), var(--parallax-y), 0);
    transition: transform 220ms linear;
    will-change: transform;
    animation: aiHeroFadeUp 0.9s ease both;
}

.ai-hero-main {
    z-index: 2;
    width: 62%;
    height: 72%;
    left: 19%;
    top: 14%;
    border-radius: 1rem;
    border: 1px solid var(--ai-card-border);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
}

.ai-hero-float {
    z-index: 3;
    width: 38%;
    height: 32%;
    border-radius: 0.85rem;
    border: 1px solid var(--ai-card-border);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
    animation: aiHeroFloat 5.2s ease-in-out infinite;
}

.ai-hero-float-1 {
    left: 4%;
    top: 11%;
    animation-delay: 0.35s;
}

.ai-hero-float-2 {
    right: 4%;
    bottom: 10%;
    animation-delay: 0.9s;
}

.ai-hero-chip {
    z-index: 4;
    width: 18%;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    border: 1px solid var(--ai-card-border);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
    animation: aiHeroFloat 6s ease-in-out infinite;
}

.ai-hero-chip-1 {
    left: 8%;
    bottom: 8%;
    animation-delay: 0.4s;
}

.ai-hero-chip-2 {
    right: 11%;
    top: 8%;
    animation-delay: 1.1s;
}

.ai-hero-chip-3 {
    right: 33%;
    bottom: 4%;
    animation-delay: 1.7s;
}

.ai-card {
    background: var(--ai-card-bg);
    border: 1px solid var(--ai-card-border);
    border-radius: 1rem;
    overflow: hidden;
}

.ai-card img,
.ai-card video {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.ai-section-title {
    color: var(--ai-accent);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.ai-golden-title {
	color: var(--ai-accent);
}


.ai-footer {
    background: var(--ai-footer-bg);
    border-top: 1px solid var(--ai-footer-border);
}

.form-control,
.form-select,
textarea {
    background-color: var(--ai-input-bg);
    color: var(--ai-text);
    border: 1px solid var(--ai-input-border);
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: var(--ai-accent);
    box-shadow: 0 0 0 0.15rem rgba(199, 168, 116, 0.25);
}

.text-muted {
    color: var(--ai-muted) !important;
}

html[data-theme="light"] .btn-outline-light{
    background-color: var(--ai-input-bg) !important;
    color: var(--ai-text) !important;
    border: 1px solid var(--ai-input-border) !important;
}
html[data-theme="light"] .btn-outline-light:hover{
    color: #ffffff !important;
    background-color: #000000 !important;
}

html[data-theme="light"] .link-light,
html[data-theme="light"] .text-light,
html[data-theme="light"] .text-white {
    color: var(--ai-text) !important;
}

html[data-theme="light"] .link-light:hover,
html[data-theme="light"] .link-light:focus {
    color: #000 !important;
}

.video-thumb {
    background: #0f1112;
}

.ai-zoomable-media {
    cursor: zoom-in;
}

.ai-media-zoom-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(0, 0, 0, 0.88);
    padding: 1rem;
}

.ai-media-zoom-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-media-zoom-content {
    position: relative;
    width: min(96vw, 1280px);
    max-height: 92vh;
}

.ai-media-zoom-close {
    position: absolute;
    top: -0.5rem;
    right: 0;
    transform: translateY(-100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 999px;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.4rem;
    line-height: 1;
}

.ai-media-zoom-target {
    width: 100%;
    max-height: 92vh;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
}

.ai-media-asset-card {
    position: relative;
}

.ai-media-asset-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.6rem 0.7rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.82));
    color: #fff;
    opacity: 0;
    transition: opacity 180ms ease;
    pointer-events: none;
}

.ai-media-asset-card:hover .ai-media-asset-overlay,
.ai-media-asset-card:focus-within .ai-media-asset-overlay {
    opacity: 1;
}

.ai-media-asset-overlay strong {
    display: block;
    font-size: 0.9rem;
    line-height: 1.2;
}

.ai-media-asset-overlay span {
    display: block;
    font-size: 0.76rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.88);
}

.ai-media-zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 999px;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.1rem;
    line-height: 1;
}

.ai-media-zoom-nav-prev {
    left: -0.4rem;
}

.ai-media-zoom-nav-next {
    right: -0.4rem;
}

.ai-client-logo {
    max-height: 56px;
    width: auto;
    object-fit: contain;
}

.ai-client-fallback {
    color: var(--ai-text);
    font-weight: 600;
    letter-spacing: 0.02em;
}

@keyframes aiHeroFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aiHeroFloat {
    0%,
    100% {
        transform: translate3d(var(--parallax-x), calc(var(--parallax-y) + 0px), 0);
    }
    50% {
        transform: translate3d(var(--parallax-x), calc(var(--parallax-y) - 10px), 0);
    }
}

@media (max-width: 991px) {
    .ai-hero-scene {
        height: 420px;
    }

    .ai-hero-main {
        width: 72%;
        height: 72%;
        left: 14%;
    }

    .ai-hero-float {
        width: 42%;
        height: 30%;
    }

    .ai-hero-chip {
        width: 20%;
    }
}

@media (max-width: 767px) {
    .ai-hero-scene {
        height: 350px;
        margin-top: 0.5rem;
    }

    .ai-hero-float-2,
    .ai-hero-chip-3 {
        display: none;
    }

    .ai-hero-main {
        width: 78%;
        left: 11%;
        height: 74%;
    }

    .ai-hero-float {
        width: 44%;
        height: 30%;
    }

    .ai-hero-chip {
        width: 24%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai-hero .ai-section-title,
    .ai-hero h1,
    .ai-hero .lead,
    .ai-hero .btn,
    .ai-hero .small,
    .ai-hero-layer,
    .ai-hero-float,
    .ai-hero-chip {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 767px) {
    .ai-hero-video-frame {
        min-height: 320px;
    }

    .ai-hero-video {
        height: 320px;
    }

    .ai-hero {
        padding-top: 3.5rem;
    }

    .ai-hero .row {
        min-height: auto;
    }
}

.gallery-card {
  /* base gallery card styles */
  display: flex;
  flex-direction: column;
  background: var(--ai-card-bg, #fff);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.gallery-card.gallery-landscape img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.gallery-card.gallery-portrait img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.gallery-card.gallery-square img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; }
