/* ══════════════════════════════════════════════
   CSS VARIABLES & RESET
══════════════════════════════════════════════ */
:root {
    --bg: #000000;
    /* True Black for 4K Depth */
    --bg2: #050505;
    --bg3: #0a0a0c;
    --gold: #d4af37;
    /* More metallic */
    --gold-light: #f1e5ac;
    --gold-dim: #9c7c25;
    --text: #ececec;
    --text2: #a1a1a1;
    --glass: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(212, 175, 55, 0.12);
    --radius: 6px;
    --font-h: 'Cormorant Garamond', serif;
    --font-b: 'Manrope', sans-serif;
    --transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    /* Liquid Curve */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold), var(--gold-dim));
    border-radius: 4px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-b);
    line-height: 1.6;
    overflow-x: hidden;
}

h2,
h3 {
    font-family: var(--font-h);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    background: linear-gradient(90deg, #d4af37, #fff, #d4af37, #fff, #d4af37);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shinyLightning 4s linear infinite, flashLightning 7s infinite;
    transform: perspective(500px) translateZ(10px);
    transform-style: preserve-3d;
}

@keyframes shinyLightning {
    0% { background-position: 0% 50%; filter: drop-shadow(0px 5px 10px rgba(0,0,0,0.8)); }
    50% { background-position: 100% 50%; filter: drop-shadow(0px 15px 20px rgba(212, 175, 55, 0.5)); }
    100% { background-position: 0% 50%; filter: drop-shadow(0px 5px 10px rgba(0,0,0,0.8)); }
}

@keyframes flashLightning {
    0%, 94%, 98%, 100% { opacity: 1; text-shadow: none; }
    95% { opacity: 0.9; text-shadow: 0 0 40px #fff, 0 0 80px rgba(212, 175, 55, 0.8); }
    99% { opacity: 0.8; text-shadow: 0 0 60px #fff, 0 0 100px rgba(212, 175, 55, 0.9); }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Prevent image and link dragging globally */
img, a {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* ══════════════════════════════════════════════
   GLOBAL BACKGROUND & CANVAS
══════════════════════════════════════════════ */
#global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    background: #000;
    overflow: hidden;
}

#bg-video-loop {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.5;
    filter: brightness(0.7) contrast(1.2);
}

#global-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 1) 100%);
    pointer-events: none;
    z-index: 1;
}

#gold-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    /* Above all content including logos and text */
    pointer-events: none;
}

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 2rem;
    background: rgba(6, 6, 8, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    z-index: 1000;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(4, 4, 6, 0.98);
    border-bottom-color: rgba(201, 164, 56, 0.15);
}

/* Hamburger button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition);
    flex-shrink: 0;
}

.hamburger-btn span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile dropdown nav */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 6, 8, 0.96);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
    display: flex;
    opacity: 1;
}

.mobile-nav-overlay a {
    font-family: var(--font-h);
    font-size: 2rem;
    color: var(--text);
    letter-spacing: 0.1em;
    text-align: center;
    transition: color 0.2s;
    padding: 0.5rem 2rem;
}

.mobile-nav-overlay a:hover {
    color: var(--gold);
}

.nav-brand {
    font-family: var(--font-h);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0;
    cursor: pointer;
    line-height: 1;
}

.brand-logo {
    height: 55px;
    width: auto;
    margin-bottom: 0;
    filter: none;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-brand-main {
    font-size: 1.15rem;
    letter-spacing: 0.15em;
    line-height: 1;
}

.nav-brand-sub {
    font-family: var(--font-b);
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    line-height: 1;
    margin-top: 3px;
    opacity: 0.9;
}

/* 4K Metallic Text Utility */
.metal-text-4k {
    font-family: var(--font-h);
    font-weight: 700;
    white-space: nowrap;
    background: linear-gradient(to bottom, #f9f2c6 0%, #d4af37 35%, #9c7c25 50%, #d4af37 65%, #f9f2c6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 15px rgba(212, 175, 55, 0.3));
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text2);
    position: relative;
    padding-bottom: 3px;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.nav-link:hover::after {
    width: 100%;
}

/* Auth Area */
.nav-auth-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   NAVBAR TIER WIDGET
══════════════════════════════════════════════ */
.nav-tier-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(201, 164, 56, 0.3);
    border-radius: 50px;
    padding: 0.25rem 1rem 0.25rem 0.4rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.nav-tier-btn:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    background: rgba(20, 20, 20, 0.95);
}

.nav-tier-btn:active {
    transform: translateY(0) scale(0.98);
}

.nav-tier-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    font-size: 1rem;
    color: var(--gold);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.nav-tier-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    z-index: 2;
}

.nav-tier-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 164, 56, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.nav-tier-btn:hover .nav-tier-glow {
    opacity: 1;
    animation: rotateGlow 4s linear infinite;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Gold shine text with HD Animation */
#hero-headline,
.flying-text-clone {
    font-family: var(--font-h);
    font-weight: 600;
    line-height: 1.1;
    color: var(--gold);
}

@keyframes glowPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 35px rgba(212, 175, 55, 0.6));
    }
}

.flying-text-clone {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    text-align: center;
    transition: all 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}

/* ══════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════ */
.hero-section {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-logo {
    display: block;
    margin: 0 auto 1.5rem;
    max-width: 90vw;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    filter: none;
}

.hero-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
}


.hero-brand-main {
    font-size: 4.5rem;
    letter-spacing: 0.15em;
    line-height: 1.1;
}

.hero-brand-sub {
    font-family: var(--font-b);
    font-size: 1.25rem;
    letter-spacing: 0.5em;
    line-height: 1;
    margin-top: 5px;
    opacity: 0.85;
}

.gold-divider {
    width: 80px;
    height: 1px;
    background: var(--gold);

    margin: 0 auto 2rem;
}

.hero-subtext {
    font-size: 0.9rem;
    color: var(--text2);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}


.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.8rem;
    /* Compact padding */
    border: 1px solid var(--gold);
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.72rem;
    /* Reduced font size */
    font-family: var(--font-b);
    transition: all var(--transition);
    background: rgba(212, 175, 55, 0.04);
}

.cta-button:hover {
    background: rgba(201, 164, 56, 0.15);
    color: var(--gold-light);
    box-shadow: 0 0 30px rgba(201, 164, 56, 0.15);
    transform: translateY(-2px);
}

.cta-button-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.8rem;
    /* Compact padding */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.72rem;
    /* Reduced font size */
    font-family: var(--font-b);
    transition: all var(--transition);
}

.cta-button-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text2);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.7);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}


/* ══════════════════════════════════════════════
   REFINED SERVICE SLIDESHOW (Category-Wide)
══════════════════════════════════════════════ */
.service-slideshow-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    margin: 2rem 0 1rem;
    border: 1px solid rgba(201, 164, 56, 0.15);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
    height: 300px;
    /* Mobile height */
}

@media (min-width: 1024px) {
    .service-slideshow-viewport {
        height: 500px;
        /* Laptop height */
    }
}

.service-slideshow-track {
    display: flex;
    width: fit-content;
    height: 100%;
}

.service-slideshow-item {
    flex-shrink: 0;
    width: 100%;
    /* Calculated relative to viewport */
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-slideshow-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-slideshow-watermark {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 25px;
    height: 25px;
    object-fit: contain;
    mix-blend-mode: screen;
    opacity: 0.6;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.8));
    pointer-events: none;
    z-index: 5;
}

.tech-work-item {
    padding: 0.8rem 0;
    color: var(--text2);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.tech-work-item::before {
    content: '→';
    color: var(--gold);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.tech-work-item:hover {
    color: var(--gold);
    padding-left: 0.5rem;
}

.tech-work-item:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.tech-work-item:last-child {
    border-bottom: none;
}


/* ══════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════ */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(10, 10, 10, 0.9);
    border-top: 1px solid rgba(201, 164, 56, 0.2);
    border-bottom: 1px solid rgba(201, 164, 56, 0.2);
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.stat-bar-item {
    flex: 1;
    max-width: 220px;
    text-align: center;
    padding: 0 2rem;
}

.stat-num {
    font-family: var(--font-h);
    font-size: 2.2rem;
    /* Reduced from 2.8rem */
    color: var(--gold);
    font-weight: 500;
    line-height: 1;
}

.stat-plus {
    font-family: var(--font-h);
    font-size: 1.8rem;
    color: var(--gold);
}

.stat-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text2);
    margin-top: 0.3rem;
}

.stat-bar-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
}

/* ══════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════ */
.section-pad {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(201, 164, 56, 0.1);
    background: var(--bg);
}

.dark-glass {
    background: rgba(8, 8, 8, 0.97);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 2.5rem;
    /* Reduced from 4rem */
}

.section-label {
    display: block;
    color: var(--gold);
    font-size: 0.65rem;
    /* Reduced from 0.72rem */
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 0.6rem;
    opacity: 0.8;
}

.section-title {
    font-size: 3.5rem;
    color: transparent;
    background: linear-gradient(135deg, #d4af37, #ffffff, #d4af37, #ffffff, #d4af37);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shinyLightning 4s linear infinite, flashLightning 6s infinite;
    text-transform: uppercase;
    transform: perspective(600px) translateZ(30px) rotateX(5deg);
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.9));
}

/* ══════════════════════════════════════════════
   DIVISION (SERVICES) SECTION
══════════════════════════════════════════════ */
.services-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .services-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.services-text {
    display: flex;
    flex-direction: column;
}

.services-text p {
    font-size: 0.95rem;
    /* Reduced from 1.15rem */
    color: var(--text2);
    line-height: 1.7;
    /* Reduced from 1.9 */
    max-width: 100%;
}

.inline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-top: 1.5rem;
    transition: gap var(--transition);
}

.inline-link:hover {
    gap: 0.9rem;
}

/* Division Images & Accordion */
.division-image-container {
    margin-top: 2.5rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    aspect-ratio: 16/9;
    background: #000;
    width: 100%;
}

.division-display-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.services-list-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.division-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.division-header {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    cursor: pointer;
    background: transparent;
    transition: background 0.3s;
}

.division-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.division-icon {
    font-size: 1.2rem;
    color: var(--gold);
    margin-right: 1rem;
    width: 24px;
    text-align: center;
}

.division-title {
    font-family: var(--font-h);
    font-size: 1.3rem;
    color: var(--text);
    flex: 1;
}

.division-arrow {
    color: var(--text2);
    transition: transform 0.3s ease;
}

.division-card.open .division-arrow {
    transform: rotate(180deg);
}

.division-card.open {
    border-color: rgba(201, 164, 56, 0.3);
    box-shadow: 0 0 15px rgba(201, 164, 56, 0.1);
    background: rgba(201, 164, 56, 0.02);
}

.division-works {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    background: rgba(0, 0, 0, 0.2);
}

.division-card.open .division-works {
    max-height: 500px;
    opacity: 1;
    padding: 0 1.2rem 1.2rem 3.4rem; /* Indent sub-items */
}

.division-work-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0;
    color: var(--text2);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.division-work-item:last-child {
    border-bottom: none;
}

.division-work-item .work-dot {
    font-size: 0.5rem;
    color: var(--gold);
    transition: transform 0.3s ease;
}

.division-work-item:hover, .division-work-item.active {
    color: var(--gold);
    transform: translateX(5px);
}

.division-work-item:hover .work-dot, .division-work-item.active .work-dot {
    transform: scale(1.5);
}

.service-row {
    padding: 1rem 1rem 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: default;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, padding var(--transition), color var(--transition);
}

.service-row:last-child {
    border-bottom: none;
}

.service-row.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.service-row:hover {
    padding-left: 0.5rem;
    color: var(--gold);
}

.service-row-icon {
    color: var(--gold);
    font-size: 0.9rem;
    flex-shrink: 0;
    width: 18px;
}

/* ══════════════════════════════════════════════
   TECH SERVICES SECTION
══════════════════════════════════════════════ */
.tech-services-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.split-layout {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.tech-sidebar {
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tech-sidebar-item {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tech-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.tech-sidebar-item.active {
    background: rgba(201, 164, 56, 0.1);
    border-color: rgba(201, 164, 56, 0.3);
    box-shadow: 0 0 15px rgba(201, 164, 56, 0.1);
}

.tech-sidebar-item .icon {
    font-size: 1.2rem;
    color: var(--gold);
}

.tech-sidebar-item .title {
    font-family: var(--font-h);
    font-size: 1.1rem;
    color: var(--text);
}

.tech-sidebar-item.active .title {
    color: var(--gold);
}

.tech-content-view {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2.5rem;
    min-height: 500px;
    backdrop-filter: blur(10px);
}

.tech-content-header h3 {
    font-family: var(--font-h);
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.tech-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.tech-works-modern-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-work-modern-item {
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tech-work-modern-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.tech-work-modern-item.active {
    background: rgba(201, 164, 56, 0.05);
    border-left: 3px solid var(--gold);
}

.work-title-row {
    font-size: 1.05rem;
    color: var(--text);
    display: flex;
    align-items: center;
}

.work-title-row span {
    line-height: 1.4;
    transition: color 0.3s ease;
}

.tech-work-modern-item.active .work-title-row span {
    color: var(--gold);
}

.tech-slider-column {
    width: 100%;
    height: 550px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.tech-slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

@media (max-width: 900px) {
    .split-layout {
        flex-direction: column;
    }
    .tech-sidebar {
        width: 100%;
    }
    .tech-content-grid {
        grid-template-columns: 1fr;
    }
    .tech-slider-column {
        height: 250px;
        order: -1;
        margin-bottom: 1rem;
    }
    .tech-content-view {
        padding: 1.5rem;
    }
}


/* Specific expanding animations */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-zoom-in {
    animation: zoomIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ══════════════════════════════════════════════
   GLOBAL STATS
══════════════════════════════════════════════ */
.global-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.global-stat-card {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all var(--transition);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.2),
        0 2px 4px -1px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.global-stat-card:hover {
    border-color: var(--glass-border);
    background: rgba(212, 175, 55, 0.03);
    transform: translateY(-4px);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.4),
        0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

.global-stat-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.global-stat-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.global-stat-card p {
    font-size: 0.85rem;
    color: var(--text2);
    margin-bottom: 1.5rem;
}

.gold-line {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto;
}

/* ══════════════════════════════════════════════
   INVESTOR / VISION SECTION
══════════════════════════════════════════════ */
.investor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding-top: 1rem;
}

.inv-col {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 1.8rem;
    /* Reduced from 2.5rem */
    transition: all var(--transition);
}

.inv-col:hover {
    border-color: var(--glass-border);
    transform: translateY(-4px);
}

.inv-icon {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.inv-col h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.inv-col p {
    color: var(--text2);
    font-size: 0.95rem;
    line-height: 1.8;
}

.mission-list {
    list-style: none;
    color: var(--text2);
    font-size: 0.95rem;
}

.mission-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mission-list li::before {
    content: '→ ';
    color: var(--gold);
}

.mission-list li:last-child {
    border-bottom: none;
}

/* ══════════════════════════════════════════════
   BOARD OF DIRECTORS SECTION
══════════════════════════════════════════════ */
.directors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.director-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.director-card:hover {
    border-color: var(--glass-border);
    background: rgba(212, 175, 55, 0.03);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.director-icon {
    width: 75px;
    height: 75px;
    background: rgba(201, 164, 56, 0.08);
    border: 1px solid rgba(201, 164, 56, 0.25);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    transition: all var(--transition);
}

.director-card:hover .director-icon {
    background: var(--gold);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(201, 164, 56, 0.4);
}

.director-card h3 {
    font-family: var(--font-h);
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

/* ── PREMIUM EXECUTIVE CARDS ── */
.executive-card-premium {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(212, 175, 55, 0.05)) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

.executive-card-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: goldSweep 15s linear infinite;
}

@keyframes goldSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.executive-card-premium .director-icon {
    background: linear-gradient(135deg, #c9a438, #6b4c10) !important;
    color: #000 !important;
    border: 2px solid #fff !important;
    box-shadow: 0 0 25px rgba(201, 164, 56, 0.6);
    width: 90px;
    height: 90px;
    position: relative;
}

.executive-card-premium h3 {
    color: var(--gold) !important;
    font-weight: 700 !important;
    text-shadow: 0 0 15px rgba(201, 164, 56, 0.4);
    letter-spacing: 0.05em;
}

.executive-card-premium p {
    color: #fff !important;
    opacity: 0.95;
    font-weight: 600;
    font-size: 0.85rem !important;
    letter-spacing: 0.1em !important;
}

.director-card p {
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
}

.director-id {
    font-size: 0.7rem;
    color: var(--text2);
    margin-top: 0.4rem;
    opacity: 0.7;
    font-family: var(--font-b);
    letter-spacing: 0.05em;
}

.executive-card-premium .director-id {
    color: var(--gold-light) !important;
    opacity: 0.8;
}

/* ── SHINING NAME EFFECT ── */
.shining-name {
    display: inline-block;
    background: linear-gradient(
        to right,
        #f9f2c6 0%,
        #d4af37 20%,
        #f9f2c6 40%,
        #d4af37 60%,
        #f9f2c6 80%,
        #d4af37 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 4s linear infinite;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

@keyframes textShine {
    from { background-position: 0% center; }
    to { background-position: 200% center; }
}

/* ══════════════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════════════ */
.main-contact-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 2.5rem 3rem;
    max-width: 800px;
    margin: 2rem auto 0;
    flex-wrap: wrap;
}

.main-contact-location {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    min-width: 250px;
}

.main-contact-icon-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(201, 164, 56, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all var(--transition);
}

.main-contact-location:hover .main-contact-icon-large {
    background: rgba(201, 164, 56, 0.1);
    transform: scale(1.05);
}

.main-contact-location-text h4 {
    font-family: var(--font-h);
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.main-contact-location-text p {
    font-size: 0.9rem;
    color: var(--text2);
}

.main-contact-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
}

.main-contact-map {
    flex: 1;
    min-width: 280px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(201, 164, 56, 0.2);
}

.main-contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(100%) invert(92%) contrast(83%);
}

.main-contact-icons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.main-contact-icon-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text2);
    font-size: 1.2rem;
    transition: all var(--transition);
}

.main-contact-icon-link:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(201, 164, 56, 0.1);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.expandable-call-wrapper {
    position: relative;
    display: inline-block;
}

.toggle-call-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text2);
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition);
}

.toggle-call-btn:hover, .toggle-call-btn.active {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(201, 164, 56, 0.1);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.call-options-popup {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 100;
}

.call-options-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.call-option-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1rem;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 0.85rem;
}

.call-option-btn:hover {
    background: rgba(201, 164, 56, 0.2);
    color: var(--gold);
}

.call-option-btn i {
    color: var(--gold);
    font-size: 1rem;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--bg2);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-logo {
    width: 260px;
    height: auto;
    margin-bottom: 0.5rem;
}

.footer-brand-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand-main {
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    line-height: 1;
}

.footer-brand-sub {
    font-family: var(--font-b);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    line-height: 1;
    margin-top: 5px;
    opacity: 0.9;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links-group h4 {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.footer-links-group a {
    font-size: 0.88rem;
    color: var(--text2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition);
}

.footer-links-group a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    color: var(--text2);
}

.footer-copyright-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text2);
    transition: color var(--transition);
}

.footer-legal a:hover {
    color: var(--gold);
}

/* ══════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #080808;
    border-radius: 12px;
    width: 95%;
    max-width: 1000px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text2);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: color var(--transition);
}

.modal-close:hover {
    color: var(--gold);
}

.modal-body {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

@media(min-width:768px) {
    .modal-body {
        flex-direction: row;
        height: 100%;
    }
}

.modal-image-wrapper {
    flex: 1;
    min-height: 350px;
    position: relative;
    overflow: hidden;
    background: #050505;
}

.modal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.1s ease-out;
}

.modal-details {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#modal-title {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

#modal-desc {
    color: var(--text2);
    font-size: 1rem;
    line-height: 1.7;
}

.watermark-logo {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    opacity: 0.8;
    pointer-events: none;
}

/* ══════════════════════════════════════════════
   UNIFIED PROFILE & TIER MODAL
══════════════════════════════════════════════ */
.unified-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(20px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.unified-auth-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.unified-auth-modal {
    background: linear-gradient(145deg, var(--bg2), #0a0a0a);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    /* Slimmed from 2.5rem */
    width: 95%;
    max-width: 580px;
    position: relative;
    transform: scale(0.9) translateY(30px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 0 40px rgba(201, 164, 56, 0.05);
    max-height: 90vh;
    overflow-y: auto;
}

.unified-auth-overlay.active .unified-auth-modal {
    transform: scale(1) translateY(0);
}

.unified-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--text2);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.unified-modal-close:hover {
    color: var(--gold);
    border-color: var(--gold);
    transform: rotate(90deg);
}

/* Header Profile Section */
.unified-profile-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.unified-avatar-container {
    position: relative;
    width: 52px;
    /* Slimmed from 64px */
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(201, 164, 56, 0.2);
}

.unified-avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.unified-avatar-placeholder {
    font-size: 1.8rem;
    color: var(--gold);
}

.unified-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 2px solid var(--bg2);
    border-radius: 50%;
}

.unified-user-info {
    flex: 1;
}

.unified-user-info h3 {
    margin: 0 0 0.3rem 0;
    font-size: 1.3rem;
    color: var(--text);
}

.unified-user-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text2);
}

.unified-signout-btn {
    background: rgba(255, 50, 50, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 50, 50, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition);
}

.unified-signout-btn:hover {
    background: #ff6b6b;
    color: #fff;
}

/* Usage Card */
.unified-usage-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.usage-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    /* Slimmer */
}

.usage-card-header h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text);
}

.unified-reset-badge {
    font-size: 0.75rem;
    color: var(--gold);
    opacity: 0.8;
}

.usage-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
}

.unified-usage-tier-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.unified-usage-track {
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.unified-usage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dim), var(--gold), #fff);
    background-size: 200% 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    animation: slimeFillShine 3s linear infinite, slimeGlow 2s ease-in-out infinite;
    position: relative;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5), 0 0 20px rgba(212, 175, 55, 0.2);
}

@keyframes slimeGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 2px var(--gold));
        opacity: 0.8;
    }

    50% {
        filter: drop-shadow(0 0 8px var(--gold));
        opacity: 1;
    }
}

.unified-usage-fill.danger {
    background: linear-gradient(90deg, #b91c1c, #ef4444);
}

.unified-usage-fill.full {
    background: #ef4444;
}

/* Divider */
.unified-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.unified-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 164, 56, 0.3), transparent);
}

.unified-divider span {
    background: var(--bg2);
    padding: 0 1rem;
    color: var(--text2);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
}

/* Plans Grid for Modal */
.unified-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.unified-plan-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
}

.unified-plan-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.unified-plan-card.active-current {
    border-color: var(--gold);
    background: rgba(201, 164, 56, 0.05);
    box-shadow: 0 0 20px rgba(201, 164, 56, 0.1);
}

.uni-plan-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.uni-plan-price {
    font-size: 1.6rem;
    font-family: var(--font-h);
    color: var(--text);
    margin-bottom: 0.2rem;
}

.uni-plan-period {
    font-size: 0.7rem;
    color: var(--text2);
    margin-bottom: 1.5rem;
}

.uni-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
    flex: 1;
}

.uni-plan-features li {
    font-size: 0.8rem;
    color: var(--text2);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.uni-plan-features i.fa-check {
    color: #22c55e;
}

.uni-plan-features i.fa-times {
    color: #ef4444;
}

.uni-plan-btn {
    width: 100%;
    padding: 0.7rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.uni-plan-status {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 1rem;
}

.anim-pulse {
    animation: goldBorderPulse 3s infinite alternate;
}

@keyframes goldBorderPulse {
    0% {
        border-color: rgba(201, 164, 56, 0.3);
        box-shadow: 0 0 10px rgba(201, 164, 56, 0.1);
    }

    100% {
        border-color: rgba(201, 164, 56, 0.8);
        box-shadow: 0 0 25px rgba(201, 164, 56, 0.3);
    }
}

.unified-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.7rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font-b);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}

.unified-google-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.unified-google-btn .google-icon {
    width: 18px;
    height: 18px;
}

/* ══════════════════════════════════════════════
   LEFT SIDEBAR
══════════════════════════════════════════════ */
#left-sidebar {
    position: fixed;
    left: 1.5rem;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
    z-index: 1500;
    /* Increased to be above most things */
    pointer-events: auto;
    /* Fixed: was none */
}

.sidebar-icon-link {
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text2);
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.sidebar-mobile-label {
    display: none;
}

.sidebar-icon-link:hover {
    color: var(--gold);
    border-color: var(--gold);
    transform: translateX(4px) scale(1.05);
    background: rgba(201, 164, 56, 0.08);
    box-shadow: 0 0 15px rgba(201, 164, 56, 0.2);
}

.sidebar-icon-link.profile-icon {
    position: absolute;
    bottom: 2rem;
    left: 0;
}

/* ── LAPTOP/DESKTOP TOOLTIPS ── */
@media (min-width: 769px) {
    .sidebar-icon-link::before {
        content: attr(title);
        position: absolute;
        left: calc(100% + 15px);
        top: 50%;
        transform: translateY(-50%) translateX(-10px);
        background: rgba(10, 10, 15, 0.95);
        border: 1px solid rgba(212, 175, 55, 0.3);
        color: var(--gold);
        padding: 6px 14px;
        border-radius: 8px;
        font-family: var(--font-b);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    /* Small triangle pointer for tooltip */
    .sidebar-icon-link::after {
        content: '';
        position: absolute;
        left: calc(100% + 9px);
        top: 50%;
        transform: translateY(-50%) translateX(-5px);
        border-width: 6px;
        border-style: solid;
        border-color: transparent rgba(212, 175, 55, 0.3) transparent transparent;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 999;
    }

    .sidebar-icon-link:hover::before,
    .sidebar-icon-link:hover::after {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) translateX(0);
    }
}

/* ══════════════════════════════════════════════
   PANELS
══════════════════════════════════════════════ */
#products-panel,
#contact-panel,
#ai-panel {
    position: fixed;
    left: 5.5rem;
    top: 0;
    height: 100vh;
    height: 100dvh;
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 850;
    transform: translateX(-150%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    padding: 2rem 1rem;
}

#products-panel,
#contact-panel {
    width: 340px;
    padding-top: 5.5rem;
}

#ai-panel {
    left: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* Dynamic height for mobile address bars */
    padding: 0;
    margin: 0;
    z-index: 2000;
    background: radial-gradient(circle at bottom, #111 0%, #000 100%);
    backdrop-filter: none;
    transform: translateX(100%);
    overflow: hidden; /* Let chat-interface handle scroll */
        display: flex !important;
        flex-direction: column !important;
}

#products-panel.active,
#contact-panel.active,
#ai-panel.active {
    transform: translateX(0);
}

.panel-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 2rem;
    cursor: pointer;
    display: none;
    z-index: 10;
}

#ai-panel .panel-close-btn {
    display: none !important; /* Replaced by proper sticky header */
}

/* Products panel items */
.prod-category-item {
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
}

.prod-cat-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background var(--transition);
}

.prod-cat-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.prod-cat-icon {
    color: var(--gold);
    font-size: 1.1rem;
    width: 28px;
    text-align: center;
}

.prod-cat-title {
    font-size: 0.88rem;
    color: var(--text);
}

.prod-works-list {
    display: none;
    padding-left: 2.5rem;
    margin-top: 0.4rem;
}

.prod-category-item.active .prod-works-list {
    display: block;
}

.prod-work-link {
    display: block;
    padding: 0.35rem 0;
    font-size: 0.78rem;
    color: var(--text2);
    cursor: pointer;
    transition: color var(--transition);
}

.prod-work-link:hover {
    color: var(--gold);
}

/* Contact Panel */
.panel-header-rich {
    margin-bottom: 2rem;
    text-align: center;
}

.panel-title-large {
    font-family: var(--font-h);
    font-size: 2rem;
    color: var(--gold);
}

.gold-divider-small {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 0.5rem auto;
}

.panel-subtitle {
    font-size: 0.75rem;
    color: var(--text2);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rich-map-wrapper {
    position: relative;
    height: 220px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(201, 164, 56, 0.25);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.google-map-embed-dark {
    filter: grayscale(100%) invert(92%) contrast(83%);
}

.contact-actions-panel {
    display: flex;
    justify-content: center;
}

.rich-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(0, 0, 0, 0.95));
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.rich-call-btn:hover {
    box-shadow: 0 0 30px rgba(201, 164, 56, 0.25);
    transform: translateY(-2px);
}

.btn-icon-glow {
    font-size: 1.7rem;
    animation: pulseGold 2s infinite;
}

@keyframes pulseGold {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 8px var(--gold));
    }
}

/* AI Panel - Futuristic Overhaul */
.chat-interface {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    position: relative;
    background: radial-gradient(circle at center, rgba(15, 15, 20, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    background-size: 150% 150%;
    border-radius: 20px;
    overflow: hidden;
    animation: chatBgBreathe 12s ease-in-out infinite alternate;
}

@keyframes chatBgBreathe {
    0% {
        background-position: 50% 50%;
    }

    100% {
        background-position: 50% 100%;
    }
}

/* Digital Grid Background */
.chat-interface::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(201, 164, 56, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 164, 56, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

/* Scanning Line Animation */
.chat-interface::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(201, 164, 56, 0.05), transparent);
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes scanline {
    from {
        top: -100px;
    }

    to {
        top: 100%;
    }
}

.chat-history {
    flex: 1;
    overflow-y: auto;
        overflow-x: hidden;
    padding: 1.5rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

/* Glassmorphic Cyber Bubbles */
.chat-msg {
    max-width: 85%;
    padding: 1rem 1.2rem;
    font-size: 0.92rem;
    line-height: 1.6;
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ai-msg {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    border-radius: 0 15px 15px 15px;
    border-left: 3px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: cyberMessageIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cyberMessageIn {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.95);
        filter: drop-shadow(0 10px 10px rgba(201, 164, 56, 0.3));
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
    }
}



.user-msg {
    align-self: flex-end;
    background: rgba(201, 164, 56, 0.08);
    border: 1px solid rgba(201, 164, 56, 0.4);
    color: var(--text);
    border-radius: 15px 0 15px 15px;
    border-right: 3px solid var(--gold);
    text-shadow: 0 0 10px rgba(201, 164, 56, 0.3);
    box-shadow: 0 4px 20px rgba(201, 164, 56, 0.1);
    animation: userPulse 4s infinite ease-in-out;
}

@keyframes userPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(201, 164, 56, 0.1);
        border-color: rgba(201, 164, 56, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(201, 164, 56, 0.2);
        border-color: rgba(201, 164, 56, 0.8);
    }
}

/* ── USER MESSAGE NAME LABEL ── */
.chat-user-label {
    display: block;
    text-align: right;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    color: rgba(212, 175, 55, 0.7);
    font-weight: 700;
    font-family: var(--font-b);
    margin-bottom: 2px;
    text-transform: uppercase;
}

/* ══════════════════════════════════════════════
   AI MARKDOWN FORMATTING
══════════════════════════════════════════════ */
.ai-heading-1 {
    font-size: 1.4rem;
    color: var(--gold);
    margin: 1.2rem 0 0.5rem;
    font-family: var(--font-h);
    line-height: 1.3;
}

.ai-heading-2 {
    font-size: 1.2rem;
    color: var(--gold);
    margin: 1rem 0 0.4rem;
    font-family: var(--font-h);
}

.ai-heading-3 {
    font-size: 1.05rem;
    color: var(--gold);
    margin: 0.8rem 0 0.3rem;
    font-family: var(--font-h);
}

.ai-blockquote {
    border-left: 3px solid var(--gold);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text2);
    font-style: italic;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 6px 6px 0;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.ai-code-block {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: monospace;
    font-size: 0.85rem;
    color: #e5e5e5;
}

.ai-inline-code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85em;
    color: var(--gold-light);
}

.ai-list-item {
    margin-left: 1.5rem;
    margin-bottom: 0.4rem;
    list-style-type: disc;
    line-height: 1.5;
}

.ai-list-item.ordered {
    list-style-type: decimal;
}

.ai-formatted-text strong {
    color: #fff;
    font-weight: 700;
}

.ai-formatted-text {
    word-break: break-word;
}



/* Modal Watermark */
.watermark-logo {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 35px;
    height: auto;
    opacity: 0.6;
    pointer-events: none;
    z-index: 100;
}

/* ══════════════════════════════════════════════
   AI PANEL - FUTURISTIC & CINEMATIC OVERHAUL
══════════════════════════════════════════════ */

.chat-interface {
    display: flex;
    flex-direction: column;
    flex: 1;
        width: 100%;
    min-height: 0; /* Ensures flex children can scroll */
    position: relative;
    background: #000;
    border-radius: 0;
    margin: 0;
    border: none;
    overflow: hidden;
    box-shadow: none;
}

/* Enhanced Digital Matrix Grid */
.chat-interface::before {
    display: none !important;
}

.gemini-input-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    z-index: 100;
}

/* Gemini-style Input Bar */
.gemini-input-bar {
    flex: 1;
    background: rgba(20, 20, 25, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 0.6rem 0.8rem 0.6rem 1.4rem;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.gemini-input-bar:focus-within {
    background: rgba(25, 25, 30, 0.9);
    border-color: rgba(201, 164, 56, 0.4);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(201, 164, 56, 0.1);
}

#chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.05rem;
    outline: none;
    font-family: var(--font-b);
    padding: 0.6rem 0;
}

#chat-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

/* Right side actions logic bar */
.gemini-input-actions-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
}

/* Send Button */
#chat-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    color: #000;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(201, 164, 56, 0.3);
    transform: scale(0);
    opacity: 0;
}

#chat-send-btn.visible {
    transform: scale(1);
    opacity: 1;
}

#chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(201, 164, 56, 0.6);
}

#chat-send-btn i {
    transform: translateX(1px);
}






.typing-indicator {
    display: none;
    gap: 4px;
    padding: 0.5rem 1rem;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text2);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

/* ══════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════ */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
}

@keyframes slideUp {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-60px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(60px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.motion-feedback {
    animation: goldPulse 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Flicker Overlay for Futuristic AI */
.ai-flicker-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(201, 164, 56, 0.015);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    animation: flicker 0.2s infinite;
}

@keyframes flicker {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 0.04;
    }
}

@keyframes goldPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }

    40% {
        box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.6), 0 12px 24px rgba(0, 0, 0, 0.4);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media(max-width:1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .footer-brand {
        grid-column: 1/-1;
    }
}

@media(max-width:768px) {

    /* ── NAVBAR ── */
    .navbar {
        padding: 0.8rem 1rem;
    }

    .nav-menu {
        display: none;
    }

    /* Show hamburger at 768px and below */
    .hamburger-btn {
        display: flex;
    }

    .nav-brand span {
        display: none;
    }

    /* ── HERO ── */
    .hero-section {
        min-height: 100svh;
        min-height: 100dvh;
        padding: 0 1.5rem;
    }

    .hero-subtext {
        font-size: 0.9rem;
    }

    /* ── STATS ── */
    .stats-bar {
        gap: 0;
        padding: 1.5rem 0;
    }

    .stat-bar-item {
        padding: 0 1rem;
    }

    .stat-num {
        font-size: 2rem;
    }

    .stat-bar-divider {
        height: 35px;
    }

    /* ── SECTIONS ── */
    .section-pad {
        padding: 4.5rem 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .services-layout,
        .investor-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

        .footer-top {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
        }
        .footer-brand { grid-column: 1 / -1; order: 1; }
        .footer-connect { order: 2; }
        .footer-company { order: 3; }

        .global-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }

        .global-stat-card {
            min-width: 0;
        }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .main-contact-block {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    .main-contact-divider {
        width: 80px;
        height: 1px;
    }

    /* ── BOTTOM DOCK (replaces left sidebar on all mobile) ── */
    #left-sidebar {
        display: flex !important;
        flex-direction: row;
        position: fixed;
        bottom: 0;
        left: 0;
        top: auto;
        height: calc(65px + env(safe-area-inset-bottom));
        width: 100%;
        background: rgba(10, 10, 12, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(212, 175, 55, 0.2);
        z-index: 10000;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
        gap: 0;
    }

    .sidebar-icon-link {
        width: auto;
        height: 100%;
        flex: 1;
        flex-direction: column;
        background: transparent;
        border: none;
        border-radius: 0;
        gap: 4px;
    }

    .sidebar-icon-link i {
        font-size: 1.35rem;     /* Larger icons for mobile touch */
        transition: transform 0.3s ease;
    }

    .sidebar-icon-link:active i {
        transform: scale(1.1);
    }
    
    .sidebar-mobile-label {
        display: block;
        font-size: 0.65rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-family: var(--font-b);
    }

    .sidebar-icon-link:hover, 
    .sidebar-icon-link.active {
        color: var(--gold);
        background: transparent;
        box-shadow: none;
        transform: none;
        border: none;
    }

    .sidebar-icon-link.profile-icon {
        position: static; /* counteract absolute positioning from desktop */
    }

    /* ── PANELS ── */
    #products-panel,
    #contact-panel,
    #ai-panel {
        left: 0;
        width: 100%;
        border-right: none;
        /* Clear the bottom dock */
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    #ai-panel {
        left: 0;
        width: 100%;
        border-right: none;
        position: fixed;
        top: 0;
        z-index: 2000;
        background: #000;
        padding-bottom: 0 !important;
        padding-top: 0 !important; /* Fixed header offset removed to prevent squishing */
    }

    .panel-close-btn {
        display: block;
        top: 4.5rem;
    }

    /* ── FOOTER ── */
    footer {
        padding-bottom: calc(84px + env(safe-area-inset-bottom));
    }

    /* ── TOAST ── */
    .tier-toast {
        bottom: calc(76px + env(safe-area-inset-bottom));
    }

}




/* ══════════════════════════════════════════════
   TIER SYSTEM — DROPDOWN BADGE
══════════════════════════════════════════════ */
.dropdown-tier-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dropdown-tier-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.dropdown-tier-usage {
    font-size: 0.7rem;
    color: var(--text2);
    letter-spacing: 0.04em;
}

.upgrade-item {
    color: var(--gold) !important;
}

.upgrade-item:hover {
    background: rgba(201, 164, 56, 0.08) !important;
}

/* ══════════════════════════════════════════════
   AI PANEL HEADER (CLEAN EDITION)
══════════════════════════════════════════════ */
.ai-panel-header {
    display: flex !important;
    padding: 0.8rem 1.2rem;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    z-index: 100;
        flex-shrink: 0 !important;
}

.ai-header-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    pointer-events: auto;
}

.ai-back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--gold);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.ai-back-btn:hover {
    background: rgba(201, 164, 56, 0.15);
    transform: translateX(-2px);
}

.ai-header-right {
    display: none !important;
}

.ai-menu-btn {
    background: transparent;
    border: none;
    color: var(--text2);
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.ai-menu-btn:hover {
    color: var(--gold);
}

.ai-header-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: rgba(15, 15, 20, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 164, 56, 0.2);
    border-radius: 16px;
    padding: 1.2rem;
    width: 280px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2600;
}

.ai-header-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ai-dropdown-profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.ai-dropdown-profile-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-family: var(--font-b);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.ai-dropdown-profile-btn:hover {
    background: rgba(201, 164, 56, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}

.ai-panel-tier-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(201, 164, 56, 0.3);
    position: static;
    /* Removed absolute positioning */
    box-shadow: 0 0 10px rgba(201, 164, 56, 0.15);
    transition: all var(--transition);
}

.ai-panel-tier-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(201, 164, 56, 0.3);
}

.ai-tier-icon {
    font-size: 0.85rem;
}

.ai-tier-name {
    letter-spacing: 0.05em;
}

/* Usage bar */
.ai-usage-bar-wrapper {
    padding: 0;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai-usage-info {
    display: flex;
    justify-content: center;
    /* Center the text for a cleaner look */
    align-items: center;
    margin-bottom: 0.4rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#ai-usage-text {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(201, 164, 56, 0.3);
}

.ai-usage-track {
    height: 8px;
    /* Slightly thicker for the liquid effect */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ai-usage-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--gold-dim), var(--gold), #fff);
    background-size: 200% 100%;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
}

/* Liquid Wave Animation using SVG Filter */
.ai-usage-liquid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: url(#liquid-filter);
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

.ai-usage-fill.danger {
    background: linear-gradient(90deg, #b91c1c, #ef4444, #ff8888);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.ai-usage-fill.full {
    background: linear-gradient(90deg, #ef4444, #ff0000);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);
    animation: usagePulseFull 1.5s ease-in-out infinite;
}

@keyframes usagePulseFull {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.8;
        transform: scaleY(1.2);
        filter: brightness(1.3);
    }
}

.ai-usage-fill.unlimited {
    background: linear-gradient(90deg, #a855f7, #6366f1);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

@keyframes slimeFillShine {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.ai-usage-fill.danger {
    background: linear-gradient(90deg, #b91c1c, #ef4444, #ff8888);
}

.ai-usage-fill.full {
    background: #ef4444;
}

.ai-period-label {
    display: none;
    /* Hide to save vertical space */
}

/* Unlimited tier — hide usage bar but keep layout */
.ai-usage-bar-wrapper.hidden-bar {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* ══════════════════════════════════════════════
   LIMIT REACHED MODAL
══════════════════════════════════════════════ */
.limit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 3500;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.limit-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.limit-modal {
    background: rgba(15, 15, 20, 0.85);
    border: 1px solid rgba(201, 164, 56, 0.15);
    border-radius: 28px;
    padding: 3.5rem 2.5rem;
    width: 92%;
    max-width: 420px;
    text-align: center;
    position: relative;
    transform: perspective(1000px) scale(0.8) translateY(40px) rotateX(10deg);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.9),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.limit-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: modalGlowLine 3s linear infinite;
}

@keyframes modalGlowLine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.limit-modal-overlay.active .limit-modal {
    transform: perspective(1000px) scale(1) translateY(0) rotateX(0deg);
}

.limit-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text2);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.limit-modal-close:hover {
    opacity: 1;
    color: var(--gold);
    transform: rotate(90deg);
}

.limit-modal-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.4));
    animation: iconEnergyPulse 2.4s infinite alternate;
}

@keyframes iconEnergyPulse {
    0% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 10px rgba(239, 68, 68, 0.2));
    }

    100% {
        transform: scale(1.1);
        filter: brightness(1.4) drop-shadow(0 0 30px rgba(239, 68, 68, 0.7));
    }
}

.limit-modal-title {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    background: linear-gradient(135deg, #fff 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.limit-modal-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    font-weight: 500;
}

.limit-reset-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(201, 164, 56, 0.1);
    border: 1px solid rgba(201, 164, 56, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--gold);
    margin-bottom: 2rem;
    font-weight: 600;
}

#limit-countdown {
    color: #fff;
    font-family: monospace;
    letter-spacing: 1px;
    animation: countdownPulse 1s ease-in-out infinite alternate;
}

@keyframes countdownPulse {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    }
}

.google-signin-btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 4px;
    color: #3c4043;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .2s, box-shadow .2s;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.google-signin-btn-large:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, .30), 0 4px 8px 3px rgba(60, 64, 67, .15);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.limit-guest-section,
.limit-upgrade-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.limit-guest-section,
.limit-upgrade-section {
    width: 100%;
}

.limit-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1rem 0;
    color: var(--text2);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.limit-divider::before,
.limit-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.limit-upgrade-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--gold-dim), var(--gold));
    border: none;
    border-radius: 50px;
    color: #000;
    font-family: var(--font-b);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.05em;
}

.limit-upgrade-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 164, 56, 0.3);
}

/* ══════════════════════════════════════════════
   UPGRADE PLANS MODAL
══════════════════════════════════════════════ */
.upgrade-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(14px);
    z-index: 3500;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.upgrade-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.upgrade-modal {
    background: var(--bg2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 860px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9);
}

.upgrade-modal-overlay.active .upgrade-modal {
    transform: translateY(0);
}

.upgrade-modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--text2);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition);
    z-index: 10;
}

.upgrade-modal-close:hover {
    color: var(--gold);
}

.upgrade-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.upgrade-modal-header h2 {
    font-family: var(--font-h);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.upgrade-modal-header p {
    font-size: 0.88rem;
    color: var(--text2);
}

/* Plan Cards Grid */
.upgrade-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.upgrade-plan-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.8rem 1.4rem;
    text-align: center;
    position: relative;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upgrade-plan-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
}

.upgrade-plan-card.featured {
    border-color: var(--gold);
    background: rgba(201, 164, 56, 0.05);
    transform: scale(1.03);
}

.upgrade-plan-card.featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.upgrade-plan-card.current-plan {
    border-color: rgba(74, 158, 255, 0.35);
    background: rgba(74, 158, 255, 0.04);
}

.plan-popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 50px;
    white-space: nowrap;
}

.plan-badge {
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-family: var(--font-h);
    font-size: 2.4rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1;
}

.plan-period {
    font-size: 0.72rem;
    color: var(--text2);
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
}

.plan-features {
    list-style: none;
    text-align: left;
    width: 100%;
    font-size: 0.82rem;
    color: var(--text2);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-features .fa-check {
    color: #22c55e;
    font-size: 0.7rem;
}

.plan-features .fa-times {
    color: #666;
    font-size: 0.7rem;
}

.plan-current-label {
    font-size: 0.75rem;
    color: rgba(74, 158, 255, 0.8);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 50px;
    margin-top: auto;
}

.plan-select-btn {
    width: 100%;
    padding: 0.7rem;
    border: none;
    border-radius: 50px;
    font-family: var(--font-b);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: auto;
    letter-spacing: 0.03em;
}

.gold-btn {
    background: linear-gradient(135deg, var(--gold-dim), var(--gold));
    color: #000;
}

.gold-btn:hover {
    box-shadow: 0 6px 20px rgba(201, 164, 56, 0.4);
    transform: translateY(-2px);
}

.purple-btn {
    background: linear-gradient(135deg, #3b065e, #a855f7);
    color: #fff;
}

.purple-btn:hover {
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
    transform: translateY(-2px);
}

.payment-note {
    text-align: center;
    font-size: 0.76rem;
    color: var(--text2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.payment-note i {
    color: var(--gold);
}

/* Toast notification */
.tier-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: rgba(20, 20, 20, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text);
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tier-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.tier-toast.success {
    border-color: rgba(34, 197, 94, 0.4);
}

.tier-toast.info {
    border-color: rgba(201, 164, 56, 0.4);
}

@media(max-width:768px) {
    .upgrade-plans-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .upgrade-plan-card.featured {
        transform: none;
    }

    .upgrade-plan-card.featured:hover {
        transform: translateY(-4px);
    }

    .upgrade-modal {
        padding: 1.5rem 1rem;
    }

}



/* ══════════════════════════════════════════════
   COMPREHENSIVE MOBILE OVERHAUL (480px & below)
══════════════════════════════════════════════ */
@media (max-width: 480px) {

    /* Navbar */
    .navbar {
        padding: 0.55rem 1rem;
    }

    .hamburger-btn {
        display: flex;
    }

    .nav-menu {
        display: none !important;
    }
}

/* Side-by-Side Legal Layout */
.tech-work-details.side-by-side {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    align-items: flex-start;
}

.work-details-left {
    flex: 1.2;
}

.work-sub-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid #c9a438;
}

/* Language Switcher */
.lang-switcher-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: fit-content;
}

.lang-btn {
    background: none;
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: #fff;
}

.lang-btn.active {
    background: #c9a438;
    color: #000;
    box-shadow: 0 4px 12px rgba(201, 164, 56, 0.3);
}

/* Toggle Content */
.lang-content {
    display: none;
    animation: fadeInSlide 0.4s ease-out;
}

.lang-content.active {
    display: block;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.work-details-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.work-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.work-sub-list li {
    font-size: 0.95rem;
    color: var(--white-soft);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.work-sub-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

.work-sub-list li:hover {
    color: var(--white);
    opacity: 1;
    transform: translateX(5px);
}

.work-details-right .work-media-wrapper {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.work-details-right img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.work-details-right:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .tech-work-details.side-by-side {
        flex-direction: column;
        gap: 1.5rem;
    }
    .work-details-right {
        width: 100%;
    }
}

/* ── Panel Styles ────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .brand-logo {
        height: 48px;
    }

    /* Hero — full screen */
    .hero-section {
        min-height: 100svh;
        min-height: 100dvh;
        padding: 0 1.2rem;
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
        padding-top: 3rem;
    }

    #hero-headline,
    .intro-title {
        font-size: 10vw;
        line-height: 1.1;
    }

    .hero-logo {
        height: 300px;
        /* Larger logo on mobile */
    }

    .hero-subtext {
        font-size: 0.88rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .cta-button,
    .cta-button-ghost {
        padding: 0.8rem 1.4rem;
        font-size: 0.72rem;
        width: 100%;
        justify-content: center;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 0.7rem;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    /* Stats bar */
    .stats-bar {
        flex-wrap: wrap;
        padding: 1.2rem 0.5rem;
        gap: 0;
    }

    .stat-bar-item {
        flex: 1;
        min-width: 40%;
        padding: 0.5rem;
    }

    .stat-num {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.62rem;
    }

    .stat-bar-divider {
        width: 1px;
        height: 30px;
    }

    /* Section padding */
    .section-pad {
        padding: 3.5rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    /* Services layout */
    .services-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-text p {
        font-size: 0.95rem;
    }

    .service-row {
        font-size: 0.95rem;
    }

    /* Tech services */
    .tech-header {
        padding: 1rem;
    }

    .tech-title {
        font-size: 1.1rem;
    }

    .tech-works-list {
        padding: 0.5rem 1rem 1rem 2.5rem;
    }

    /* Global stats cards */
    .global-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .global-stat-card {
        min-width: 0;
        width: 100%;
        max-width: 100%;
            padding: 1.5rem 0.8rem;
        }

        .global-stat-card h2 {
            font-size: 1.3rem;
            margin-bottom: 0.2rem;
        }

        .global-stat-card p {
            font-size: 0.7rem;
            margin-bottom: 0.8rem;
    }

    /* Vision/Investors */
    .investor-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .inv-col {
        padding: 1.5rem;
    }

    /* Contact */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .map-frame-container {
        height: 200px;
    }

    /* Footer */
    .footer-top {
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .footer-legal {
        flex-direction: row;
        gap: 1rem;
    }

    footer {
        padding: 3rem 0 8rem;
    }

    /* Modal */
    .modal-content {
        width: 100%;
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        align-self: flex-end;
    }

    .modal-overlay {
        align-items: flex-end;
    }

    .modal-details {
        padding: 1.5rem;
    }

    #modal-title {
        font-size: 1.4rem;
    }

    .modal-image-wrapper {
        min-height: 220px;
    }

    /* Auth / Tier Modals */
    .auth-modal {
        padding: 2rem 1.2rem;
    }

    .limit-modal {
        padding: 2rem 1.2rem;
    }

    .upgrade-modal {
        padding: 1.2rem 0.8rem;
    }

    .upgrade-plans-grid {
        grid-template-columns: 1fr;
    }

    .nav-tier-btn {
        padding: 0.3rem 0.8rem 0.3rem 0.4rem;
        gap: 0.4rem;
    }

    .nav-tier-icon {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .nav-tier-label {
        font-size: 0.7rem;
    }



    /* AI Panel Details */
    .ai-panel-title {
        font-size: 1.4rem;
    }

    .gemini-input-container {
            padding: 0.8rem 1.2rem calc(env(safe-area-inset-bottom, 10px) + 0.8rem) !important;
        gap: 0.5rem;
    }

    #chat-input {
        font-size: 1rem; /* Minimum 16px to prevent iOS auto-zoom on click! */
    }

    .chat-msg {
        max-width: 90%;
        font-size: 0.85rem;
    }

}

/* Medium mobile (481-767px) additional fixes */
@media (min-width: 481px) and (max-width: 767px) {
    .hamburger-btn {
        display: flex;
    }

    .nav-menu {
        display: none !important;
    }

    .hero-section {
        min-height: 100svh;
        min-height: 100dvh;
        padding: 0 1.5rem;
    }

    .container {
        padding: 0 1.2rem;
    }

    .section-pad {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-layout,
    .investor-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .global-stat-card {
        min-width: 0;
    }

    footer {
        padding-bottom: 7rem;
    }
}

/* Ensure body doesn't scroll when overlay is open */
body.nav-open {
    overflow: hidden;
}


/* ── REVEAL ANIMATIONS ──────────────────────────────────── */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition);
}

.reveal-fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-blur-in {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.95);
    transition: all 0.8s var(--transition);
}

.reveal-blur-in.active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

/* ── LIQUID FILL FILTER ─────────────────────────────────── */
.liquid-fill {
    filter: url('#liquid-filter');
}

/* ══════════════════════════════════════════════
   FUTURISTIC SCROLL REVEAL (SPARKS & LIGHTS)
══════════════════════════════════════════════ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: cyberSparkFlash 1s ease-out forwards;
}

@keyframes cyberSparkFlash {
    0% { box-shadow: 0 0 0px transparent; }
    20% { box-shadow: 0 5px 30px rgba(0, 255, 255, 0.4), inset 0 0 15px rgba(201, 164, 56, 0.3); }
    100% { box-shadow: 0 0 0px transparent; }
}

@media (max-width: 768px) {
    .intro-ui-overlay { padding: 2rem 1.5rem; justify-content: flex-start; }
    .intro-main-title { font-size: 2.2rem; margin-top: 1rem; }
    .intro-tagline { font-size: 1rem; }
    .intro-center-content { transform: scale(0.85); margin-top: 5%; }
    .earth-container { width: 250px; height: 250px; transform: scale(0.8) translate(-60%, -60%); }
    .cyber-search-bar { flex-direction: column; gap: 1rem; border-radius: 20px; padding: 1.5rem; transform: scale(0.9); width: 100%; top: -20px; }
    .find-domain-btn { width: 100%; }
    .search-input-mock { width: 100%; text-align: center; margin-bottom: 0.5rem; }
    .search-sheen { display: none; }

    /* Performance & Responsiveness Optimizations */
    .navbar {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .mobile-nav-overlay {
        backdrop-filter: blur(12px);
    }
    .nav-tier-btn {
        backdrop-filter: blur(5px);
    }
    .tech-services-wrapper {
        margin: 1rem 0;
    }
    .service-slideshow-viewport {
        height: 220px;
    }
    .tech-work-details {
        will-change: max-height;
    }
    .hero-content {
        will-change: transform;
    }
    .tech-work-item-container {
        font-size: 0.95rem;
    }
}

/* ══════════════════════════════════════════════
   MOBILE RESPONSIVENESS FIXES
══════════════════════════════════════════════ */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .directors-grid, .investor-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        align-items: center;
    }
    
    .main-contact-block {
        flex-direction: column !important;
    }
    
    .stats-bar {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .stat-bar-divider {
        width: 80% !important;
        height: 1px !important;
    }

    #products-panel, #contact-panel, #ai-panel, .modal-content, .limit-modal, .unified-auth-modal, .upgrade-modal {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100dvh !important; /* Uses dynamic viewport for keyboards */
        border-radius: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
}

/* ══════════════════════════════════════════════
   PREMIUM MASTER POP-UP (End-to-End)
   - Used for "⚖️ Awlaa Global Legal Network"
   - Featuring: Glassmorphism, Gold accents, Liquid animations
══════════════════════════════════════════════ */
.master-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.master-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.master-popup-content {
    width: 90%;
    max-width: 1000px;
    height: 85%;
    background: rgba(10, 10, 12, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.1);
}

.master-popup-overlay.active .master-popup-content {
    transform: scale(1) translateY(0);
}

.master-header {
    padding: 2rem;
    background: rgba(20, 20, 25, 0.5);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.master-close-btn {
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.master-close-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

.master-speaker-btn {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-right: 1.5rem;
    position: relative;
    overflow: hidden;
}

.master-speaker-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.master-speaker-btn.speaking {
    border-color: #fff;
    color: #fff;
    animation: speakerPulse 1.5s infinite;
}

@keyframes speakerPulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.master-body {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    letter-spacing: 0.1em;
    font-weight: 600;
    transition: all 0.4s ease;
}

.master-lang-btn.active {
    background: var(--gold);
}

.master-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: url('Awlaa Global Logo.png') no-repeat center;
    background-size: contain;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 768px) {
    .master-popup-content { width: 100%; height: 100%; border-radius: 0; border: none; }
    .master-header { padding: 1.5rem; }
    .master-body { padding: 1.5rem; }
    .master-text-content { font-size: 1rem; }
}

body.ai-panel-active .chat-interface {
    flex: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
}

body.ai-panel-active .gemini-input-container {
    position: relative !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
        padding: 0.8rem 1rem calc(env(safe-area-inset-bottom, 10px) + 0.8rem) !important;
        background: rgba(10, 10, 12, 0.98);
        border-top: 1px solid rgba(212, 175, 55, 0.15);
        flex-shrink: 0 !important;
}

/* ══════════════════════════════════════════════
   DIVISION SECTION — Expandable Cards
   Used by services.js (rendered from productsData)
══════════════════════════════════════════════ */
.services-list-block { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.division-card { border: 1px solid rgba(212,175,55,0.15); border-radius: 8px; background: rgba(255,255,255,0.02); overflow: hidden; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.division-card:hover, .division-card.open { border-color: rgba(212,175,55,0.45); box-shadow: 0 4px 20px rgba(212,175,55,0.08); }
.division-header { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; cursor: pointer; user-select: none; transition: background 0.25s; }
.division-header:hover { background: rgba(212,175,55,0.06); }
.division-icon { color: #c9a438; font-size: 1rem; flex-shrink: 0; width: 22px; text-align: center; }
.division-title { flex: 1; font-size: 0.9rem; color: #e5e5e5; font-weight: 500; letter-spacing: 0.02em; }
.division-arrow { color: rgba(212,175,55,0.5); font-size: 0.75rem; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.division-card.open .division-arrow { transform: rotate(180deg); color: #c9a438; }
.division-works { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1); border-top: 1px solid transparent; }
.division-card.open .division-works { max-height: 600px; border-top-color: rgba(212,175,55,0.1); }
.division-work-item { display: flex; align-items: center; gap: 0.85rem; padding: 0.7rem 1.2rem 0.7rem 2.5rem; cursor: pointer; transition: background 0.2s, color 0.2s; color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.division-work-item:hover { background: rgba(212,175,55,0.07); color: #c9a438; }
.work-dot { font-size: 0.4rem; color: rgba(212,175,55,0.5); flex-shrink: 0; }
.division-work-item:hover .work-dot { color: #c9a438; }

/* ── DIVISION IMAGE DISPLAY ── */
.division-image-container {
    margin-top: 2rem;
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 300px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(212, 175, 55, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.division-display-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
    opacity: 1;
}

/* Add a subtle glow to the container on hover */
.division-image-container:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
}

@media (max-width: 768px) {
    .division-image-container {
        display: none !important;
    }
}
@media (max-width: 768px) { .division-header { padding: 0.85rem 1rem; } .division-title { font-size: 0.82rem; } .division-work-item { padding-left: 2rem; font-size: 0.8rem; } }



/* ══════════════════════════════════════════════
   GLOBAL RESPONSIVE DESIGN (Phones & Laptops)
══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .hero-brand-main { font-size: 3.2rem; }
    .hero-brand-sub { font-size: 1rem; }
            .services-layout, .tech-services-wrapper.split-layout, .investor-grid, .directors-grid, .main-contact-block {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }
    .tech-slider-container { display: none !important; /* Hide image slider on mobile, let accordion lead */ }
    .tech-accordion-column { width: 100% !important; flex: none !important; margin: 0 !important; }
    .service-slideshow-viewport { height: 250px !important; }
    /* AI Chat Mobile */
        .gemini-input-bar { margin: 0 !important; width: 100% !important; border-radius: 28px !important; background: rgba(20, 20, 25, 0.98) !important; border-color: rgba(212, 175, 55, 0.4) !important; }
        .chat-msg { max-width: 90% !important; padding: 0.85rem 1.1rem !important; font-size: 0.92rem !important; line-height: 1.5 !important; }
        .user-msg { border-radius: 20px 4px 20px 20px !important; }
        .ai-msg { border-radius: 4px 20px 20px 20px !important; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container { padding: 0 2.5rem; }
    .hero-brand-main { font-size: 4rem; }
    .investor-grid, .directors-grid, .global-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
    .tech-services-wrapper.split-layout {
        flex-direction: column !important;
    }
    .tech-slider-container { position: relative !important; top: 0 !important; width: 100%; margin-top: 2rem; }
    .tech-accordion-column { width: 100% !important; flex: none !important; }
}

/* ----------------------------------------------
   AI PANEL TITLE (Mobile Header)
---------------------------------------------- */
.ai-panel-title-text {
    font-family: var(--font-h);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* On mobile: hide the sidebar dock when AI panel is open */
@media (max-width: 768px) {
    body.ai-panel-active #left-sidebar {
        display: none !important;
    }
}

/* ══════════════════════════════════════════════
   SIMPLIFIED AI CHAT INTERFACE
══════════════════════════════════════════════ */
.ai-simple-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(10, 10, 12, 0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    position: sticky;
    top: 0;
    z-index: 10;
}

.ai-simple-back-btn {
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: transform 0.2s;
}
.ai-simple-back-btn:hover {
    transform: scale(1.1);
}

.ai-simple-title {
    font-family: var(--font-h);
    font-size: 1.4rem;
    color: var(--text);
    font-weight: 500;
}

.chat-interface-simple {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 65px);
    background: var(--bg);
}

.chat-history-simple {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-input-area-simple {
    padding: 1rem 1.5rem 1.5rem;
    background: rgba(6, 6, 8, 0.98);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    position: sticky;
    bottom: 0;
}

.chat-input-bar-simple {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
    padding: 0.5rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.chat-input-bar-simple input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font-b);
    font-size: 1rem;
    padding: 0.5rem;
    outline: none;
}

.chat-input-bar-simple input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.chat-input-bar-simple button {
    background: var(--gold);
    color: var(--bg);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

#chat-mic-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.voice-wave {
    display: none;
    align-items: center;
    gap: 2px;
    height: 14px;
}

.voice-wave span {
    width: 2px;
    height: 100%;
    background: #fff;
    border-radius: 2px;
    animation: wave-beat 0.8s ease-in-out infinite;
}

.voice-wave span:nth-child(2) { animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { animation-delay: 0.3s; }

@keyframes wave-beat {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1.2); }
}

#chat-mic-btn.recording {
    background: linear-gradient(135deg, #ff4b2b, #ff416c);
    color: #fff;
    border-color: #ff4b2b;
    width: 55px; /* Slightly wider to fit wave */
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 75, 43, 0.5);
}

#chat-mic-btn.recording i {
    display: none; /* Hide mic icon when recording */
}

#chat-mic-btn.recording .voice-wave {
    display: flex;
}

@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 75, 43, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 75, 43, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 75, 43, 0); }
}

.chat-input-bar-simple button:hover {
    transform: scale(1.1);
    opacity: 1;
    filter: brightness(1.2);
}

.chat-msg {
    max-width: 80%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    line-height: 1.6;
    font-size: 1rem;
}
.user-msg {
    align-self: flex-end;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom-right-radius: 4px;
}
.ai-msg {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 4px;
}

@media (min-width: 769px) {
    .chat-interface-simple {
        margin: 0;
        width: 100%;
        max-width: none;
        border: none;
    }
    .ai-simple-header {
        max-width: none;
        margin: 0;
        border: none;
        width: 100%;
    }
}
@media (max-width: 768px) {
    .chat-input-area-simple {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
    .chat-msg { max-width: 90%; font-size: 0.95rem; }
    .chat-history-simple { padding: 1rem; gap: 1rem; }
    .mobile-inline-img { display: block !important; width: 100%; border-radius: 8px; margin-top: 15px; object-fit: cover; }
    .division-work-item { flex-wrap: wrap; }
    .division-work-item .mobile-inline-img { display: none !important; }
    .division-work-item.active .mobile-inline-img { display: block !important; margin-top: 1rem; width: 100%; border-radius: 8px; border: 1px solid rgba(212, 175, 55, 0.2); }
}

.mobile-inline-img { display: none; }

/* ══════════════════════════════════════════════
   MOBILE POLISH — RECENT UI ADDITIONS
   Covers: Leadership Profiles, Company Profile
   Modal, AI Chat Labels, Contact Map
══════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── LEADERSHIP SECTIONS ── */
    #ceo-section,
    #finance-section,
    #advisors,
    #legal-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #ceo-section .directors-grid,
    #finance-section .directors-grid,
    #advisors .directors-grid,
    #legal-section .directors-grid {
        padding: 0 1.2rem;
    }

    .director-card {
        padding: 2rem 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .director-card h3 {
        font-size: 1.4rem !important;
    }

    .director-card p {
        font-size: 0.7rem !important;
    }

    /* Premium gold circle icon — smaller on phones */
    .executive-card-premium .director-icon {
        width: 72px !important;
        height: 72px !important;
        font-size: 1.5rem !important;
    }

    /* Shining name — scale down on small screens */
    .shining-name {
        font-size: 1.3rem !important;
    }

    /* ── COMPANY PROFILE MODAL ── */
    .modal-content {
        max-width: 100% !important;
        width: 95vw !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
        margin: 1rem;
    }

    #cp-logged-in-view {
        padding: 1.5rem 1rem !important;
    }

    #cp-logged-out-view {
        padding: 2.5rem 1rem !important;
    }

    /* Sign out button — full-width on phones */
    #cp-signout-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.7rem 1rem !important;
        font-size: 0.85rem !important;
    }

    /* Directors inside Company Profile modal */
    #cp-directors-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }

    /* ── CONTACT SECTION MAP ── */
    .main-contact-map iframe {
        width: 100% !important;
        height: 220px !important;
        border-radius: 10px;
    }

    .main-contact-map {
        width: 100% !important;
    }

    /* ── AI CHAT USER LABEL ── */
    .chat-user-label {
        font-size: 0.52rem !important;
        letter-spacing: 0.12em !important;
        margin-bottom: 1px !important;
    }

    /* ── CONTACT SECTION HEADING  ── */
    #contact .section-title {
        font-size: 2rem !important;
    }
}

/* Extra-small phones (≤ 400px) */
@media (max-width: 400px) {

    .director-card h3 {
        font-size: 1.2rem !important;
    }

    .executive-card-premium .director-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.3rem !important;
    }

    .shining-name {
        font-size: 1.1rem !important;
    }

    .modal-content {
        width: 100vw !important;
        margin: 0 !important;
        border-radius: 0 !important;
        max-height: 100vh !important;
    }

    #cp-logged-in-view {
        padding: 1rem 0.75rem !important;
    }
}
/* AI Inline Speaker Toggle Styles */
.ai-inline-speak-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ai-inline-speak-btn.speaking {
    color: #fff !important;
    background: rgba(212, 175, 55, 0.25) !important;
    padding: 2px 10px !important;
    border-radius: 30px !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    animation: aiSpeakGlow 1.5s ease-in-out infinite alternate;
}

@keyframes aiSpeakGlow {
    from { box-shadow: 0 0 5px rgba(212, 175, 55, 0.2); transform: scale(1); }
    to { box-shadow: 0 0 15px rgba(212, 175, 55, 0.5); transform: scale(1.05); }
}

.ai-inline-speak-btn i {
    transition: transform 0.3s ease;
}

.ai-inline-speak-btn.speaking i {
    animation: aiIconPulse 0.8s ease-in-out infinite;
}

@keyframes aiIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* AI Response Animations */
.ai-formatted-text {
    overflow-wrap: break-word;
}

.ai-word-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(5px);
    animation: wordRevealFade 0.3s ease forwards;
}

@keyframes wordRevealFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: var(--gold);
    margin-left: 2px;
    vertical-align: middle;
    animation: cursorBlink 1s infinite alternate;
}

@keyframes cursorBlink {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ══════════════════════════════════════════════
   PORTRAIT SERVICE IMAGE CONTAINERS
   Images are vertical posters (2:3 ratio)
══════════════════════════════════════════════ */

/* Service card image wrapper - portrait poster style */
.service-img-portrait {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212,175,55,0.08);
    margin-top: 1rem;
    position: relative;
}

.service-img-portrait img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-img-portrait:hover img {
    transform: scale(1.03);
}

/* Gold shimmer border on portrait image hover */
.service-img-portrait::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    border: 1px solid rgba(212,175,55,0);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    pointer-events: none;
}

.service-img-portrait:hover::after {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.05);
}

/* Portrait slider wrapper centering (Division section) */
.services-list-block .premium-slider-wrapper {
    max-width: 420px;
    margin: 0 auto;
}

/* Work cards - single column when image is portrait to give it room */
@media (min-width: 769px) {
    /* Main services grid: switch to single column per category to let portrait images breathe */
    .tech-full-category-card .works-grid-inner {
        grid-template-columns: 1fr 1fr;
    }
}

/* On mobile, full width portrait images */
@media (max-width: 768px) {
    .service-img-portrait {
        max-width: 300px;
        margin: 1rem auto 0;
    }
    .work-media-wrapper {
        max-width: 260px;
        margin: 0.8rem auto 0 !important;
    }
    .premium-slider-wrapper {
        max-height: 420px !important;
    }
}

/* ══════════════════════════════════════════════
   BRANCH OFFICE BLOCK (legacy, kept for safety)
══════════════════════════════════════════════ */
.branch-office-block {
    margin-top: 1.5rem;
    position: relative;
}

.branch-office-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #c9a438, #7a5d1a);
    color: #000;
    font-family: var(--font-b);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.28rem 1.1rem;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(201, 164, 56, 0.35);
}

/* ══════════════════════════════════════════════
   TWO-OFFICE SIDE-BY-SIDE LAYOUT
══════════════════════════════════════════════ */
.offices-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
    align-items: start;
}

.office-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.office-card:hover {
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.08);
}

/* Map area with label overlaid in top-left */
.office-map-wrap {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #0a0a0a;
}

.office-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(80%) invert(90%) contrast(85%) brightness(0.9);
    transition: filter 0.4s ease;
}

.office-card:hover .office-map-wrap iframe {
    filter: grayscale(40%) invert(85%) contrast(90%) brightness(0.95);
}

/* Gold label tag in top-left corner of map */
.office-map-label {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    background: linear-gradient(135deg, rgba(12,10,6,0.95), rgba(30,22,5,0.92));
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    border-right: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 0 0 10px 0;
    padding: 0.45rem 1rem 0.45rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-b);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--gold);
    backdrop-filter: blur(8px);
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 2px 2px 12px rgba(0,0,0,0.5);
}

.office-map-label i {
    font-size: 0.75rem;
    color: var(--gold);
    flex-shrink: 0;
}

/* Address info below map */
.office-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.office-info-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.office-card:hover .office-info-icon {
    background: rgba(212, 175, 55, 0.15);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

.office-info h4 {
    font-family: var(--font-h);
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.office-info p {
    font-size: 0.85rem;
    color: var(--text2);
    line-height: 1.65;
}

/* Contact icons row (under registered office only) */
.office-card .main-contact-icons {
    padding: 0 1.4rem 1.4rem;
    flex-wrap: wrap;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .offices-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .office-map-wrap {
        height: 200px;
    }
    .office-map-label {
        font-size: 0.65rem;
        padding: 0.38rem 0.8rem 0.38rem 0.7rem;
    }
}


