/* RMM Brand Bubble Animation + Base Styles */

/* 1. Brand Colour Variables */
:root {
    --sun: #FFD428;
    --mag: #F23BC2;
    --cyan: #00C2FF;
    --midnight: #000000;
    --navy: #132238;
    --ice: #EAF9FF;
    --color-primary: #FFD428;
    --color-secondary: #F23BC2;
    --color-tertiary: #00C2FF;
    --color-bg: rgba(12, 16, 26, 0.85);
    --transition-standard: 0.3s ease;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --max-width-form: 540px;
}

/* Font Face for Brand Script */
@font-face {
    font-family: "EightOne";
    src: url("../fonts/EightOne.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Add this with your other font-face declarations at the top */
@font-face {
    font-family: "Royal Wedding";
    src: url("../fonts/RoyalWedding.woff2") format("woff2"),
         url("../fonts/RoyalWedding.woff") format("woff"),
         url("../fonts/RoyalWedding.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Unused font imports removed for performance */

/* 3. Reset and Base Layout */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    height: 100%;
}
body {
    font: 400 16px/1.35 "Urbanist", sans-serif;
    background: var(--midnight);
    color: var(--ice);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 100vh;
    transition: opacity 0.2s ease;
}
canvas {
    display: block;
}
#rainCanvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
#burstCanvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10001; /* Raised above the overlay (z-index: 10000) */
    display: none;
}
#transitionCanvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    display: none;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}
#holder {
    position: relative;
    z-index: 2;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5vmin;
    transform: translateY(7vmin);
    transition: opacity 1s ease-in-out;
}
#logoPicture {
    display: flex;
    align-items: center;
    justify-content: center;
}
#mainLogo {
    width: min(32vmin, 360px);
    height: auto;
    display: block;
    opacity: 0;
    transform: scale(.82);
    transition: opacity 1.1s ease-in-out;
}
#mainLogo.zoom-fade-in {
    animation: zoomFadeIn 3.65s forwards;
}
#holder.menu-active #mainLogo {
    opacity: 0;
    pointer-events: none;
}
#holder.content-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
@keyframes zoomFadeIn {
    0% {
        opacity: 0;
        transform: scale(.82);
    }
    70% {
        opacity: 1;
        transform: scale(1.04);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
#wrapTag {
    position: relative;
    margin-top: 2vmin;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    opacity: 0;
    pointer-events: auto;
    animation: fadeInTag 1s ease-in 1.5s forwards;
    z-index: 15;
    transition: transform 1.1s ease-in-out;
}
#wrapTag.shifted {
    transform: translateY(8vmin);
}
@keyframes fadeInTag {
  to {
    opacity: 1;
  }
}
#wrapTag.revealed {
  opacity: 1;
}
#wrapTag span {
    opacity: 0;
    animation: fadeInSpan 1s ease-in 1.5s forwards;
}
@keyframes fadeInSpan {
  to {
    opacity: 1;
  }
}
#wrapTag.revealed span {
    opacity: 1;
}
#tagline {
    font: clamp(2rem, 7vmin, 4rem) "EightOne", sans-serif;
    letter-spacing: .08em;
    text-align: center;
    white-space: nowrap;
}
#subtitle {
    font: 200 clamp(1.3rem, 3.5vmin, 2rem) "Kumbh Sans", sans-serif;
    letter-spacing: 0.2em;
    text-align: center;
    font-variant: small-caps;
    background: linear-gradient(90deg, #FFD428 0%, #F23BC2 50%, #00C2FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: subtitleHighlight 12s ease-in-out infinite;
    text-shadow: 0 0 6px rgba(0, 194, 255, 0.25);
}
@keyframes subtitleHighlight {
    0%, 55%, 100% {
        background-position: 0% 50%;
        text-shadow: 0 0 6px rgba(0, 194, 255, 0.15);
    }
    60% {
        background-position: 100% 50%;
        text-shadow: 0 0 16px rgba(0, 194, 255, 0.35);
    }
    65% {
        background-position: 120% 50%;
        text-shadow: 0 0 12px rgba(242, 59, 194, 0.3);
    }
    70% {
        background-position: 0% 50%;
        text-shadow: 0 0 8px rgba(255, 212, 40, 0.25);
    }
}
#menuOverlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition: background-color 1.1s ease-in-out, visibility 0s 1.1s;
    z-index: 10;
}
#menuOverlay.active {
    background-color: rgba(0, 0, 0, .85);
    visibility: visible;
    pointer-events: auto;
    transition: background-color 1.1s ease-in-out, visibility 0s 0s;
}
#menuOverlay.content-hidden {
    background-color: rgba(0, 0, 0, 0);
    visibility: hidden;
    pointer-events: none;
}
#menuCircle {
    width: 45vmin;
    height: 45vmin;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .92);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    overflow: visible;
    z-index: 0;
    opacity: 0;
    transform: scale(.82) translateY(-4vmin);
    transition: opacity 1.1s ease-in-out, transform 1.1s ease-in-out;
}
#menuOverlay.active #menuCircle {
    opacity: 1;
    transform: scale(1) translateY(-4vmin);
}
#menuCircle::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}
#menuCircle::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -4px;
    border-radius: 50%;
    pointer-events: none;
    background: conic-gradient(#F23BC2 0deg, #8A2BE2 20deg, #00C2FF 60deg, #00C2FF 100deg, #8A2BE2 145deg, #F23BC2 190deg, #FFD428 260deg, #FFD428 310deg, #F23BC2 350deg), radial-gradient(circle at 50% 50%, transparent 76%, rgba(0, 0, 0, .92) 100%);
    background-blend-mode: multiply;
    mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .5) 67%, #000 100%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .5) 67%, #000 100%);
}
#menuContent {
    opacity: 0;
    transition: opacity .5s ease-in-out;
    color: #EAF9FF;
    position: relative;
    z-index: 1;
}
#menuOverlay.active #menuContent {
    opacity: 1;
    transition: opacity .7s ease-in-out .4s;
}
#menuContent ul {
    list-style: none;
    text-align: center;
    padding: 0;
}
#menuContent li {
    margin: 1.2rem 0;
    font: 400 clamp(1.4rem, 3.2vmin, 2rem)/1 "Urbanist", sans-serif;
}
#menuContent a {
    color: #EAF9FF;
    text-decoration: none;
    position: relative;
    display: inline-block;
}
#menuContent a::before, #menuContent a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(to left, #FFD428 0%, #F23BC2 50%, #00C2FF 90%);
    transition: width .3s cubic-bezier(.28, 1.08, .38, 1);
}
#menuContent a::before {
    left: 50%;
    transform: translateX(-100%);
}
#menuContent a::after {
    left: 50%;
    transform: translateX(0);
    background: linear-gradient(to right, #FFD428 0%, #F23BC2 50%, #00C2FF 90%);
}
#menuContent a:hover::before, #menuContent a:hover::after {
    width: 50%;
}
@media(max-width: 600px) {
    #menuCircle {
        width: 68vmin;
        height: 68vmin;
        background: rgba(0, 0, 0, .95);
    }

    #menuContent li {
        margin: 0.6rem 0;
        font: 500 clamp(0.95rem, 3.6vmin, 1.4rem)/1.1 "Urbanist", sans-serif;
    }
}
@media(max-height: 550px) {
    #holder {
        gap: 5vmin;
        transform: translateY(6vmin);
    }
    #mainLogo {
        width: 52vmin;
    }
    #wrapTag {
        margin-top: 6vmin;
    }
}

/* Bubble Animation Styles */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    box-sizing: border-box;
    overflow: visible;
    background: conic-gradient(#F23BC2 0deg, #8A2BE2 20deg, #00C2FF 60deg, #00C2FF 100deg, #8A2BE2 145deg, #F23BC2 190deg, #FFD428 260deg, #FFD428 310deg, #F23BC2 350deg),
                radial-gradient(circle at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.50) 100%);
    background-blend-mode: multiply;
    mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0.2) 52%, rgba(0, 0, 0, 0.5) 67%, #000 100%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0.2) 52%, rgba(0, 0, 0, 0.5) 67%, #000 100%);
    opacity: 0;
    transform: scale(0.82);
    z-index: 1;
}
#menuOverlay:not(.active) .bubble {
    opacity: 0;
    transform: scale(0.82);
    animation: none;
}
#menuOverlay.active .bubble {
    animation: bubbleZoomFadeIn 1.2s ease-in-out var(--zoom-delay) forwards,
               var(--float-animation) ease-in-out infinite;
}
@keyframes bubbleZoomFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
.bubble:nth-child(1) {
    width: 8vmin;
    height: 8vmin;
    left: -9vmin;
    top: 2vmin;
    --zoom-delay: 0.3s;
    --float-animation: float1 6s;
}
.bubble:nth-child(2) {
    width: 10vmin;
    height: 10vmin;
    right: 1vmin;
    top: -9vmin;
    --zoom-delay: 0.4s;
    --float-animation: float2 6.5s;
}
.bubble:nth-child(3) {
    width: 8vmin;
    height: 8vmin;
    right: -10vmin;
    bottom: 10vmin;
    --zoom-delay: 0.5s;
    --float-animation: float3 5s;
}
.bubble:nth-child(4) {
    width: 4vmin;
    height: 4vmin;
    left: 45vmin;
    top: 37vmin;
    --zoom-delay: 0.35s;
    --float-animation: float5 6.5s;
}
.bubble:nth-child(5) {
    width: 6vmin;
    height: 6vmin;
    left: 14vmin;
    top: -12vmin;
    --zoom-delay: 0.55s;
    --float-animation: float5 6.5s;
}
.bubble:nth-child(6) {
    width: 3vmin;
    height: 3vmin;
    left: -2vmin;
    bottom: 7vmin;
    --zoom-delay: 0.45s;
    --float-animation: float8 6s;
}
.bubble:nth-child(7) {
    width: 4vmin;
    height: 4vmin;
    left: 5vmin;
    bottom: 43vmin;
    --zoom-delay: 0.6s;
    --float-animation: float8 6s;
}
.bubble:nth-child(8) {
    width: 6vmin;
    height: 6vmin;
    left: -10vmin;
    bottom: 14vmin;
    --zoom-delay: 0.7s;
    --float-animation: float9 7s;
}
.bubble:nth-child(9) {
    width: 5vmin;
    height: 5vmin;
    left: 47vmin;
    bottom: 34vmin;
    --zoom-delay: 0.5s;
    --float-animation: float10 6.5s;
}
@keyframes float1 {
    0%, 100% { transform: translateY(-8%) translateX(2%); }
    50% { transform: translateY(8%) translateX(-2%); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(-6%) translateX(-3%); }
    50% { transform: translateY(6%) translateX(-3%); }
}
@keyframes float3 {
    0%, 100% { transform: translateY(-5%) translateX(-3%); }
    50% { transform: translateY(5%) translateX(3%); }
}
@keyframes float4 {
    0%, 100% { transform: translateY(-7%) rotate(-1deg); }
    50% { transform: translateY(7%) rotate(1deg); }
}
@keyframes float5 {
    0%, 100% { transform: translateY(-7%) translateX(1%); }
    50% { transform: translateY(7%) translateX(-1%); }
}
@keyframes float6 {
    0%, 100% { transform: translateY(-8%) translateX(5%); }
    50% { transform: translateY(8%) translateX(-5%); }
}
@keyframes float7 {
    0%, 100% { transform: translateY(-6%) rotate(1.5deg); }
    50% { transform: translateY(5%) rotate(-1.5deg); }
}
@keyframes float8 {
    0%, 100% { transform: translateY(-6%) translateX(-1%); }
    50% { transform: translateY(6%) translateX(1%); }
}
@keyframes float9 {
    0%, 100% { transform: translateY(-6%) translateX(-3%); }
    50% { transform: translateY(6%) translateX(3%); }
}
@keyframes float10 {
    0%, 100% { transform: translateY(-4%) translateX(-4%); }
    50% { transform: translateY(4%) translateX(2%); }
}
.bubble::before {
    content: "";
    position: absolute;
    top: 25%;
    left: 25%;
    width: 15%;
    height: 15%;
    border-radius: 50%;
    background: #fff;
    z-index: 10;
    filter: blur(2px);
    opacity: 0.7;
}
.bubble::after {
    content: "";
    position: absolute;
    top: 40%;
    left: 40%;
    width: 10%;
    height: 10%;
    border-radius: 50%;
    background: #fff;
    z-index: 10;
    filter: blur(2px);
    opacity: 0.5;
}
@media (max-width: 600px) {
    #menuOverlay.active .bubble {
        animation: bubbleZoomFadeIn 1s ease-in-out var(--zoom-delay) forwards,
                   var(--float-animation) ease-in-out infinite;
    }
    .bubble:nth-child(1) { --float-animation: float1 5s; }
    .bubble:nth-child(2) { --float-animation: float2 6s; }
    .bubble:nth-child(3) { --float-animation: float3 4.5s; }
    .bubble:nth-child(4) { --float-animation: float4 7s; }
    .bubble:nth-child(5) { --float-animation: float5 5.5s; }
    .bubble:nth-child(6) { --float-animation: float6 5.5s; }
    .bubble:nth-child(7) { --float-animation: float7 4.5s; }
    .bubble:nth-child(8) { --float-animation: float8 5s; }
}
.bubble[aria-label]::after {
    content: "";
}
#pageOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10000;
}
#pageOverlay.active {
  opacity: 0.55;
  pointer-events: auto;
}
.hero h1 {
    font-family: "EightOne", sans-serif;
    /* adjust font-size as needed */
}
/* Tablet landscape improvements */
@media (min-width: 768px) and (max-width: 1024px) {
    #holder {
        gap: 2vmin;
    }
}

/* Large desktop optimization */
@media (min-width: 1920px) {
    body {
        font-size: 18px;
    }

    #holder {
        gap: 2vmin;
    }
}

/* Ultra-wide screens */
@media (min-width: 2560px) {
    #holder {
        transform: translateY(5vmin);
    }
}

/* Small mobile devices */
@media (max-width: 360px) {
    #holder {
        gap: 1vmin;
        transform: translateY(5vmin);
    }

    #tagline {
        font-size: clamp(1.3rem, 5vmin, 2rem);
    }

    #subtitle {
        font-size: clamp(0.7rem, 2vmin, 0.9rem);
    }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
    #holder {
        transform: translateY(3vmin);
        gap: 1vmin;
    }

    #mainLogo {
        width: min(25vmin, 300px);
    }

    #wrapTag {
        margin-top: 2vmin;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    #menuContent a {
        padding: 0.5rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    button,
    input[type="submit"] {
        min-height: 44px;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    #mainLogo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Contact overlay rework (mobile-first friendly) */
#contactOverlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 760px);
    max-height: min(90vh, 860px);
    padding: clamp(1rem, 2.8vw, 2.4rem);
    border-radius: clamp(16px, 3vw, 28px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.8rem, 2vw, 1.5rem);
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.65));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 10005;
}

#contactOverlay.visible {
    opacity: 1;
    pointer-events: auto;
}

#contactOverlay .hero {
    margin: 0;
    text-align: center;
}

#contactOverlay .hero h1 {
    font-family: "Royal Wedding", cursive;
    font-size: clamp(2.3rem, 5.8vw, 5rem);
    margin-bottom: 0.6rem;
    letter-spacing: 0.03em;
    color: var(--ice);
    line-height: 1.1;
    font-weight: normal;
}

#contactOverlay .hero p {
    max-width: min(70ch, 90%);
    margin: 0 auto 0.75rem;
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    line-height: 1.55;
    text-wrap: balance;
    hyphens: auto;
    color: rgba(255, 255, 255, 0.9);
}

#contactOverlay .hero p:last-of-type {
    font-style: italic;
}

#contactOverlay .form-wrap {
    width: 100%;
    max-width: 640px;
}

#contactOverlay form {
    width: 100%;
    max-width: 100%;
    padding: clamp(0.9rem, 2.2vw, 1.8rem);
    gap: clamp(0.85rem, 2vw, 1.2rem);
    background: rgba(12, 16, 26, 0.85);
    border-radius: 16px;
    box-shadow: 0 0 35px rgba(0, 194, 255, 0.1);
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
}

#contactOverlay form::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(120deg, #FFD428, #F23BC2 40%, #00C2FF 80%);
    filter: blur(6px);
    opacity: 0.35;
    pointer-events: none;
}

#contactOverlay input,
#contactOverlay textarea {
    font-size: 1rem;
    padding: clamp(0.75rem, 1.8vw, 1rem);
    background: #1a1d24;
    border: none;
    border-radius: 10px;
    color: #EAF9FF;
    width: 100%;
    font-family: inherit;
    line-height: 1.25;
    min-height: 48px;
    resize: vertical;
    box-sizing: border-box;
}

#contactOverlay input::placeholder,
#contactOverlay textarea::placeholder {
    color: #a5b2d4;
}

#contactOverlay input:focus,
#contactOverlay textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px #00C2FF;
}

#contactOverlay textarea {
    min-height: clamp(110px, 18vh, 180px);
    max-height: 200px;
}

#contactOverlay button {
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: 10px;
    background: var(--sun);
    color: var(--midnight);
    font-family: "Urbanist", sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

#contactOverlay button:hover {
    background: #F23BC2;
    color: #fff;
    transform: translateY(-1px);
}

/* Floating menu (compact, performance-friendly) */
.menu-container {
    position: fixed;
    right: max(1.5rem, env(safe-area-inset-right));
    bottom: max(1.5rem, env(safe-area-inset-bottom));
    z-index: 10012;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.9rem;
    opacity: 0;
    pointer-events: none;
    contain: layout style;
    padding: 0.5rem;
    margin: -0.5rem;
}

.menu-container.ready {
    opacity: 1;
    pointer-events: auto;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.15rem;
    background: rgba(12, 16, 26, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.95);
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
    transition-delay: var(--delay, 0ms);
    will-change: transform, opacity;
}

.menu-item:hover {
    background: rgba(20, 24, 36, 0.95);
    transform: translate3d(0, 0, 0) scale(1.03);
}

.menu-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
}

.menu-container.open .menu-item {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    pointer-events: auto;
}

.menu-item[data-index="0"] { --delay: 120ms; }
.menu-item[data-index="1"] { --delay: 80ms; }
.menu-item[data-index="2"] { --delay: 40ms; }
.menu-item[data-index="3"] { --delay: 0ms; }

.menu-container:not(.open) .menu-item[data-index="0"] { --delay: 0ms; }
.menu-container:not(.open) .menu-item[data-index="1"] { --delay: 40ms; }
.menu-container:not(.open) .menu-item[data-index="2"] { --delay: 80ms; }
.menu-container:not(.open) .menu-item[data-index="3"] { --delay: 120ms; }

.menu-toggle {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #FFD428 0%, #F23BC2 55%, #00C2FF 100%);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(242, 59, 194, 0.35);
    will-change: transform;
    transition: transform 150ms ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 12px;
    background: var(--midnight, #000000);
    z-index: 0;
}

.menu-toggle:hover {
    transform: scale(1.08);
}

.menu-toggle:active {
    transform: scale(0.95);
}

.menu-toggle .icon {
    width: 22px;
    height: 16px;
    position: relative;
    z-index: 1;
    will-change: transform;
    transition: transform 250ms ease;
    mix-blend-mode: normal;
}

.menu-toggle .icon span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    left: 0;
    will-change: transform, opacity;
    transition: transform 250ms ease, opacity 250ms ease;
    opacity: 1;
    mix-blend-mode: normal;
}

.menu-toggle .icon span:nth-child(1) { top: 0; }
.menu-toggle .icon span:nth-child(2) { top: 7px; }
.menu-toggle .icon span:nth-child(3) { top: 14px; }

.menu-container.open .menu-toggle .icon {
    transform: rotate(180deg);
}

.menu-container.open .menu-toggle .icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-container.open .menu-toggle .icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-container.open .menu-toggle .icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

#menuBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
    z-index: 10006;
}

#menuBackdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* About overlay (menu-driven, mobile-first) */
.about-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    padding: clamp(1.1rem, 3vw, 2.4rem);
    display: flex;
    flex-direction: column;
    gap: clamp(1.2rem, 2.6vw, 2rem);
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: none;
    scroll-behavior: auto;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 10005;
    box-sizing: border-box;
    font-family: "Urbanist", sans-serif;
    font-weight: 300;
    align-items: center;
}

.about-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.about-overlay {
    align-items: flex-start;
}

.about-overlay .about-hero,
.about-overlay .about-section {
    width: min(92vw, 980px);
    margin: 0 auto;
}

.about-overlay .about-hero {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.about-overlay .about-brand {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1.2rem;
}

.about-overlay .about-brand-name {
    font: 500 clamp(0.9rem, 2vw, 1.2rem) "Urbanist", sans-serif;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.about-overlay .about-brand-tag {
    font: 200 clamp(1.1rem, 3vw, 1.6rem) "Kumbh Sans", sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #FFD428 0%, #F23BC2 50%, #00C2FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-overlay h2 {
    font: 500 clamp(1.5rem, 3vw, 2.2rem) "Kumbh Sans", sans-serif;
    margin-bottom: 0.9rem;
    position: relative;
    padding-bottom: 0.65rem;
}

.about-overlay h3 {
    font: 500 1.05rem/1.3 "Kumbh Sans", sans-serif;
    margin-bottom: 0.5rem;
}

.about-overlay p {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.65;
    margin-bottom: 0.9rem;
    font-family: "Urbanist", sans-serif;
    font-weight: 300;
}

.about-overlay h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(180px, 40%);
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #FFD428 0%, #F23BC2 45%, #00C2FF 70%, rgba(0, 194, 255, 0) 100%);
}

.about-overlay .about-section {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
}

.about-overlay .about-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.about-overlay .about-item {
    padding: 0.8rem 1rem 0.8rem 1.2rem;
    border-left: 3px solid transparent;
    border-image: linear-gradient(180deg, #FFD428, #F23BC2, #00C2FF) 1;
    background: rgba(12, 16, 26, 0.5);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

.about-overlay .about-subsection {
    margin-top: 0.6rem;
}

.about-overlay .about-list,
.about-overlay .about-links {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0 0;
    display: grid;
    gap: 0.6rem;
}

.about-overlay .proof-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin: 1rem 0 0.5rem;
    align-items: center;
}

.about-overlay .proof-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.about-overlay .proof-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    min-height: 0;
}

.about-overlay .proof-logo img {
    max-width: 100%;
    max-height: 80px;
    height: auto;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.about-overlay .proof-socials {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
}

.about-overlay .proof-socials a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(12, 16, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    transition: transform 150ms ease, background 150ms ease;
}

.about-overlay .proof-socials a:hover {
    transform: translateY(-1px);
    background: rgba(20, 24, 36, 0.9);
}

.about-overlay .proof-socials svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}
.about-overlay .proof-link {
    margin-top: 0.5rem;
}

.about-overlay .about-list li {
    padding-left: 1.2rem;
    position: relative;
    color: rgba(255, 255, 255, 0.84);
}

.about-overlay .about-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFD428;
}

.about-overlay .about-list li:nth-child(2)::before { background: #F23BC2; }
.about-overlay .about-list li:nth-child(3)::before { background: #00C2FF; }
.about-overlay .about-list li:nth-child(4)::before { background: #FFB3F6; }
.about-overlay .about-list li:nth-child(5)::before { background: #7AA0FF; }
.about-overlay .about-list li:nth-child(6)::before { background: #8A2BE2; }
.about-overlay .about-list li:nth-child(7)::before { background: #FF9A3D; }
.about-overlay .about-list li:nth-child(8)::before { background: #FF6FCF; }
.about-overlay .about-list li:nth-child(9)::before { background: #5FD8FF; }
.about-overlay .about-list li:nth-child(10)::before { background: #4D7BFF; }
.about-overlay .about-list li:nth-child(11)::before { background: #B27CFF; }
.about-overlay .about-list li:nth-child(12)::before { background: #FFE06B; }

.about-overlay .about-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}

.about-overlay .about-link-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    opacity: 0.75;
}

.about-overlay .about-links a {
    color: inherit;
    text-decoration: none;
}

.about-overlay .about-links a:hover {
    color: #00C2FF;
}

.about-overlay .about-note {
    color: rgba(255, 255, 255, 0.7);
}

.about-overlay .about-work {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem;
    display: grid;
    gap: 0.8rem;
}

.about-overlay .about-work li {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(12, 16, 26, 0.45);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
    font-family: "Urbanist", sans-serif;
    font-weight: 300;
}

.about-overlay .about-work-title {
    font-family: "Kumbh Sans", sans-serif;
    font-weight: 500;
    color: #FFD428;
}

.about-overlay .about-contact a {
    color: #00C2FF;
    text-decoration: none;
}

@media (max-height: 620px) {
    #contactOverlay {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.about-overlay .about-contact a:hover {
    color: #FFD428;
}

.about-overlay .about-contact a.about-cta {
    color: #fff;
}

.about-overlay .about-contact a.about-cta:hover {
    color: #FFD428;
}

.about-overlay .about-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFD428 0%, #F23BC2 55%, #00C2FF 100%);
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
    text-decoration: none;
    margin-bottom: 1rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    border: none;
    position: relative;
    z-index: 0;
}

.about-overlay .about-cta::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 999px;
    background: var(--midnight);
    z-index: -1;
}

@media (max-width: 768px) {
    .about-overlay {
        padding: 1.1rem 1rem 1.5rem;
        gap: 1.4rem;
    }

    .about-overlay .about-shell {
        width: 100%;
        border-radius: 16px;
        padding: 1.2rem 1.1rem;
    }

    .about-overlay h1 {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
    }

    .about-overlay h2 {
        font-size: clamp(1.25rem, 5vw, 1.7rem);
    }

    .about-overlay .about-brand-name {
        letter-spacing: 0.18em;
    }
}


@media (max-width: 900px) {
    #contactOverlay {
        width: min(94vw, 720px);
    }

    #contactOverlay .form-wrap {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    #contactOverlay {
        inset: 0;
        transform: none;
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        padding: 1.1rem 1rem 1.25rem;
        border-radius: 0;
        justify-content: flex-start;
    }

    #contactOverlay .hero h1 {
        font-size: clamp(2.4rem, 9vw, 3.6rem);
    }

    #contactOverlay .hero p {
        max-width: 92%;
        font-size: clamp(0.9rem, 3.4vw, 1rem);
    }

    #contactOverlay form {
        padding: 1rem;
        gap: 0.95rem;
    }
}

@media (max-height: 740px) {
    #contactOverlay {
        padding: 0.9rem 0.85rem;
        gap: 0.7rem;
    }

    #contactOverlay .hero h1 {
        font-size: clamp(1.8rem, 6.5vw, 2.6rem);
        margin-bottom: 0.5rem;
    }

    #contactOverlay .hero p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    #contactOverlay form {
        gap: 0.8rem;
    }

    #contactOverlay textarea {
        min-height: 90px;
        max-height: 140px;
    }
}

@media (max-width: 420px) {
    #contactOverlay form {
        padding: 0.9rem;
        gap: 0.85rem;
    }

    #contactOverlay input,
    #contactOverlay textarea {
        padding: 0.7rem;
        font-size: 0.95rem;
    }

    #contactOverlay .hero p:last-of-type {
        display: none;
    }
}

@media (max-width: 480px) {
    .menu-toggle {
        width: 50px;
        height: 50px;
    }

    .menu-item {
        font-size: 0.85rem;
        padding: 0.65rem 1rem;
    }
}

