/* ==========================================================================
   HAI NETWORKS Live Replica Style System (Precision Layout & Spacing)
   Color Palette:
   - Deep Dark Navy: #0A0F1D / #0B1120
   - Pure White: #FFFFFF
   - Light Gray Section: #F4F6F9
   - Gold Accent: #D4AF37
   - Crimson Red Accent: #A12525
   - Red Gradient: linear-gradient(135deg, #A12525 0%, #801A1A 100%)
   - Gold Gradient: linear-gradient(135deg, #D4AF37 0%, #B8962D 100%)
   ========================================================================== */

/* Accessibility & Focus Indicators (WCAG 2.1 AA Compliance) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: #A12525;
    color: #FFFFFF !important;
    padding: 0.6rem 1.2rem;
    z-index: 10000;
    font-weight: 700;
    border-radius: 6px;
    transition: top 0.2s ease;
    text-decoration: none;
}
.skip-link:focus {
    top: 1rem;
}

:focus-visible {
    outline: 2px solid #D4AF37 !important;
    outline-offset: 3px !important;
}

:root {
    --bg-dark: #0A0F1D;
    --bg-navy-secondary: #0B1120;
    --bg-light-section: #F4F6F9;
    --bg-white: #FFFFFF;

    --accent-gold: #D4AF37;
    --accent-gold-dark: #B8962D;
    --accent-red: #A12525;
    --accent-red-dark: #801A1A;

    --text-dark: #1E293B;
    --text-muted: #64748B;
    --text-light: #FFFFFF;
    --text-light-muted: #94A3B8;

    --border-light: #E2E8F0;
    --border-dark: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(212, 175, 55, 0.3);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-pill: 50px;

    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    --shadow-red: 0 4px 15px rgba(161, 37, 37, 0.35);
    --shadow-gold: 0 4px 15px rgba(212, 175, 55, 0.35);

    --font-family: 'Inter', sans-serif;
    --transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-dark);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* Global Container Width & Margins */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* Top Announcement Bar */
.top-bar {
    background-color: #070B14;
    color: var(--text-light-muted);
    font-size: 0.82rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 2rem;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.top-bar-left i {
    color: var(--accent-gold);
    font-size: 0.85rem;
}

.top-bar-right {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.top-bar-social {
    color: var(--text-light-muted);
    font-size: 0.85rem;
    transition: var(--transition);
}

.top-bar-social:hover {
    color: var(--accent-gold);
}

/* Navbar Layout & Spacing */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #FFFFFF !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 1.1rem 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-badge {
    display: flex;
    align-items: center;
}

.badge-logo-container {
    display: flex;
    align-items: center;
}

.navbar nav {
    margin-left: auto;
    margin-right: 2.2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    list-style: none;
}

.nav-menu a {
    color: #333333;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.2rem 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-red);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 1.2rem;
    color: #1E293B;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-toggle:hover,
.mobile-toggle:focus-visible {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.08);
}

@media (max-width: 992px) {
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar nav {
        margin: 0;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FFFFFF;
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.2rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
        border-top: 1px solid #E2E8F0;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .navbar-cta-wrapper {
        display: none;
    }
}

.btn-nav-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #A12525 0%, #801A1A 100%);
    color: var(--text-light) !important;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 6px 20px rgba(161, 37, 37, 0.4);
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.btn-nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 45%,
            rgba(255, 255, 255, 0.75) 50%,
            rgba(255, 255, 255, 0.4) 55%,
            transparent 100%);
    transform: skewX(-25deg);
    transition: left 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.btn-nav-cta:hover::before {
    left: 140%;
}

.btn-nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.6), 0 10px 28px rgba(161, 37, 37, 0.6);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Hero Section Layout & Spacing */
.hero-wrapper {
    position: relative;
    padding: 6.5rem 0 7.5rem;
    background-color: #0A0F1D;
    background: linear-gradient(rgba(10, 15, 29, 0.65), rgba(10, 15, 29, 0.82)),
        url('/assets/img/hero_background.png') center/cover no-repeat;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-dark);
}

.hero-content {
    max-width: 860px;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    padding-left: 0;
}

.hero-headline {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.16;
    margin-bottom: 1.4rem;
    letter-spacing: -0.5px;
    margin-left: 8rem;
}

.text-gold-highlight {
    color: var(--accent-gold);
}

.hero-paragraph {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.4rem;
    line-height: 1.65;
    max-width: 660px;
    margin-left: 8rem;
}

.hero-btn-group {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
    margin-left: 8rem;
}

.btn-hero-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #A12525 0%, #801A1A 100%);
    color: var(--text-light);
    padding: 0.88rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 8px 25px rgba(161, 37, 37, 0.45);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 45%,
            rgba(255, 255, 255, 0.75) 50%,
            rgba(255, 255, 255, 0.4) 55%,
            transparent 100%);
    transform: skewX(-25deg);
    transition: left 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.btn-hero-primary:hover::before {
    left: 140%;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.6), 0 12px 30px rgba(161, 37, 37, 0.6);
    border-color: rgba(255, 255, 255, 0.6);
    color: #FFF;
}

.btn-hero-secondary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #D4AF37 0%, #B8962D 100%);
    color: #FFFFFF;
    padding: 0.88rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 8px 25px rgba(212, 175, 55, 0.45);
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.btn-hero-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 45%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.4) 55%,
        transparent 100%
    );
    transform: skewX(-25deg);
    transition: left 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.btn-hero-secondary:hover::before {
    left: 140%;
}

.btn-hero-secondary:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.6), 0 12px 30px rgba(212, 175, 55, 0.6);
    border-color: rgba(255, 255, 255, 0.6);
    color: #FFF;
}

.hero-scroll-indicator {
    text-align: center;
    margin-top: 3.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

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

/* Our Divisions Section Spacing */
.section-divisions {
    background-color: var(--bg-dark);
    padding: 6rem 0;
    color: var(--text-light);
}

.section-title-center {
    text-align: center;
    margin-bottom: 3.8rem;
}

.section-title-center h2 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.section-title-center p {
    color: var(--text-light-muted);
    font-size: 1.05rem;
}

.divisions-flex-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.4rem;
}

.division-live-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 2.4rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.division-live-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-gold);
    transform: translateY(-6px);
}

.division-live-icon {
    font-size: 2.2rem;
    color: var(--accent-gold);
    margin-bottom: 1.4rem;
}

.division-live-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.division-live-card p {
    font-size: 0.88rem;
    color: var(--text-light-muted);
    line-height: 1.55;
}

/* Why Choose Us Section Spacing */
.section-why-choose {
    background-color: var(--bg-light-section);
    padding: 6rem 0;
    color: var(--text-dark);
}

.section-title-why {
    text-align: center;
    margin-bottom: 3.8rem;
}

.section-title-why h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-title-why h2 span {
    color: var(--accent-red);
}

.section-title-why p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.why-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.4rem;
}

.why-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.why-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: rgba(212, 175, 55, 0.12);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.4rem;
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.3;
    color: #0F172A;
}

.why-list {
    list-style: none;
}

.why-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    line-height: 1.4;
}

.why-list li::before {
    content: '→';
    color: var(--accent-gold);
    font-weight: 700;
}

/* Dynamic Projects Section */
.section-projects {
    background-color: var(--bg-dark);
    padding: 5.5rem 0;
    color: var(--text-light);
}

/* Split Footer Section */
.footer-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 280px;
}

.footer-left-testimonial {
    position: relative;
    background: linear-gradient(rgba(244, 246, 249, 0.88), rgba(244, 246, 249, 0.94)),
        url('/assets/img/hero_background.png') center/cover no-repeat;
    padding: 2.2rem 4.5rem 2.2rem 6.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-dark);
}

.site-cta-banner {
    background: linear-gradient(135deg, rgba(161, 37, 37, 0.9) 0%, rgba(10, 15, 29, 0.95) 100%),
        url('/assets/img/hero_background.png') center/cover no-repeat;
    padding: 4.5rem 0;
    text-align: center;
    color: var(--text-light);
}

.quote-icon {
    font-size: 3rem;
    color: #0284C7;
    margin-bottom: 1rem;
    line-height: 1;
}

.testimonial-quote-text {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
    color: #1E293B;
    margin-bottom: 1.2rem;
}

.testimonial-stars-gold {
    color: var(--accent-gold);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    display: flex;
    gap: 0.2rem;
}

.testimonial-author-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0284C7;
    letter-spacing: 1px;
}

.footer-right-details {
    background-color: #070B14;
    padding: 2.2rem 6.5rem 2.2rem 4.5rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.footer-column-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-column-title::before {
    content: '|';
    color: #0284C7;
    font-weight: 900;
}

.footer-info-list {
    list-style: none;
}

.footer-info-list li {
    font-size: 0.88rem;
    color: var(--text-light-muted);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-info-list li i {
    color: var(--text-light-muted);
}

.footer-quick-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.footer-quick-links-grid a {
    color: var(--text-light-muted);
    font-size: 0.88rem;
}

.footer-quick-links-grid a:hover {
    color: var(--text-light);
}

.footer-bottom-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.2rem;
    margin-top: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-light-muted);
}

.footer-social-icons {
    display: flex;
    gap: 0.8rem;
}

.footer-social-icons a {
    color: var(--text-light-muted);
    font-size: 0.9rem;
}

.footer-social-icons a:hover {
    color: var(--accent-gold);
}

/* Responsive queries */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }

    .divisions-flex-grid,
    .why-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-split {
        grid-template-columns: 1fr;
    }

    .footer-left-testimonial,
    .footer-right-details {
        padding: 1.8rem 2rem;
    }
}

@media (max-width: 768px) {

    .divisions-flex-grid,
    .why-cards-grid {
        grid-template-columns: 1fr;
    }

    .hero-headline {
        font-size: 2.4rem;
    }

    .top-bar-left {
        display: none;
    }

    .nav-menu {
        display: none;
    }
}

/* Contact Page Light Form & Card Components */
.form-label-light {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.4rem;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
    margin-bottom: 1.4rem;
}

.form-group-light {
    margin-bottom: 1.4rem;
}

.contact-form-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 2.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #E2E8F0;
}

.contact-card-light {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 1.4rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: #CBD5E1;
}

.contact-card-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #FAF5EE;
    border: 1px solid #F3ECE2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.25rem;
}

.contact-card-text {
    font-size: 0.88rem;
    color: #64748B;
    line-height: 1.45;
}

/* ==========================================================================
   HAI NETWORKS Executive Admin Portal Design System (High-End Dark UI)
   ========================================================================== */

/* Admin Body & Header Specifics */
body.admin-body {
    background-color: #070B14;
    color: #FFFFFF;
}

body.admin-body .site-header {
    background-color: #0A0F1D !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
    padding: 0.9rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    text-decoration: none !important;
    border: 1px solid transparent;
}

.nav-link i {
    color: var(--accent-gold);
    font-size: 0.92rem;
}

.nav-link:hover,
.nav-link.active {
    color: #FFFFFF !important;
    background: rgba(212, 175, 55, 0.14) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

/* Admin Cards & Panels */
.admin-card {
    background: #0F172A;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 14px;
    padding: 1.8rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-card:hover {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.08);
}

/* Admin Data Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.admin-table th {
    background: #0A0F1D;
    color: var(--accent-gold);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    white-space: nowrap;
}

.admin-table td {
    padding: 1.1rem 1.2rem;
    color: #E2E8F0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
    background: transparent;
    transition: background 0.2s ease;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover td {
    background: rgba(212, 175, 55, 0.04);
}

.alert-close {
    background: none;
    border: none;
    color: currentColor;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.3rem;
}

/* ==========================================================================
   Development Preview Mode Banner
   ========================================================================== */
.dev-preview-bar {
    background: linear-gradient(90deg, #0A0F1D 0%, #151D30 50%, #0A0F1D 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    color: #F8FAFC;
    font-size: 0.8rem;
    padding: 0.45rem 1rem;
    position: relative;
    z-index: 10001;
    letter-spacing: 0.02em;
}

.dev-preview-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dev-preview-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dev-preview-pulse {
    width: 8px;
    height: 8px;
    background: #D4AF37;
    border-radius: 50%;
    box-shadow: 0 0 8px #D4AF37;
    animation: devPulse 1.8s infinite;
}

@keyframes devPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(212, 175, 55, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.dev-preview-info strong {
    color: #D4AF37;
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
}

.dev-preview-sep {
    color: rgba(255, 255, 255, 0.25);
}

.dev-preview-desc {
    color: #94A3B8;
    font-size: 0.78rem;
}

.dev-preview-lock-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(161, 37, 37, 0.25);
    color: #FCA5A5;
    border: 1px solid rgba(161, 37, 37, 0.5);
    padding: 0.22rem 0.65rem;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.dev-preview-lock-btn:hover {
    background: #A12525;
    color: #FFFFFF;
    border-color: #A12525;
}

/* ==========================================================================
   Human Verification Captcha Styles
   ========================================================================== */
.captcha-refresh-btn {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.captcha-refresh-btn:hover {
    background: #E2E8F0;
    color: #0A0F1D;
    border-color: #94A3B8;
    transform: rotate(30deg);
}

/* ==========================================================================
   Division Filter Tabs (Single-Row Portfolio Navigation)
   ========================================================================== */
.division-filter-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 3.2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 0.3rem 0.5rem 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
}

.division-filter-tabs::-webkit-scrollbar {
    height: 4px;
}

.division-filter-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.division-filter-tabs::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.35);
    border-radius: 4px;
}

.division-filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.55rem 1.15rem;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.division-filter-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent-gold);
    color: #FFFFFF;
}

.division-filter-btn.active {
    background: rgba(212, 175, 55, 0.2);
    border: 1.5px solid var(--accent-gold);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.division-filter-btn.inactive {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 1024px) {
    .division-filter-tabs {
        justify-content: flex-start;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ==========================================================================
   HAI NETWORKS Unified Design System (Global Consistency)
   ========================================================================== */

/* --- 1. Global Page Banner System --- */
.page-banner {
    background: var(--bg-dark);
    padding: 5rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.page-banner-subtitle {
    color: var(--accent-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: block;
}

.page-banner-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.page-banner-desc {
    color: #CBD5E1;
    font-size: clamp(1rem, 2vw, 1.15rem);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- 2. Unified Button Design System --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.9rem;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-family: inherit;
    line-height: 1.2;
}

.btn:active {
    transform: translateY(0) !important;
}

/* Primary Crimson Button (Brand Anchor) */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #A12525 0%, #801A1A 100%);
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 8px 25px rgba(161, 37, 37, 0.45);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.6), 0 12px 30px rgba(161, 37, 37, 0.6);
    border-color: rgba(255, 255, 255, 0.6);
    color: #FFFFFF !important;
}

/* Secondary Gold Button (Brand Luxury) */
.btn-gold,
.btn-secondary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #D4AF37 0%, #B8962D 100%);
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 8px 25px rgba(212, 175, 55, 0.45);
}

.btn-gold:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.6), 0 12px 30px rgba(212, 175, 55, 0.6);
    border-color: rgba(255, 255, 255, 0.6);
    color: #FFFFFF !important;
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    color: #FFFFFF;
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

/* Danger / Destructive Button */
.btn-danger {
    background: rgba(161, 37, 37, 0.2);
    color: #FF6B6B !important;
    border: 1px solid rgba(161, 37, 37, 0.5);
}

.btn-danger:hover {
    background: #A12525;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(161, 37, 37, 0.4);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.45rem 0.95rem;
    font-size: 0.8rem;
    gap: 0.4rem;
}

.btn-lg {
    padding: 1.1rem 2.4rem;
    font-size: 0.95rem;
    letter-spacing: 0.8px;
}

/* --- 3. Unified Form Controls (Dark & Light Surface Support) --- */
.form-group {
    margin-bottom: 1.3rem;
    display: flex;
    flex-direction: column;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #CBD5E1;
    margin-bottom: 0.45rem;
    letter-spacing: 0.2px;
}

/* Dark Form Controls (for dark sections & modal/admin) */
.form-control,
.form-select {
    width: 100%;
    box-sizing: border-box;
    background: #070B14;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 0.78rem 1rem;
    color: #FFFFFF;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
    background: #0A0F1D;
}

.form-control::placeholder {
    color: #64748B;
}

/* Light Surface Form Controls (for white card sections like contact.php) */
.form-input-light,
.form-select-light,
.form-textarea-light {
    width: 100%;
    box-sizing: border-box;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 0.85rem 1.1rem;
    color: #0F172A;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-input-light:focus,
.form-select-light:focus,
.form-textarea-light:focus {
    background: #FFFFFF;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-input-light::placeholder,
.form-textarea-light::placeholder {
    color: #94A3B8;
}

.form-select,
.form-select-light {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.8rem;
}

textarea.form-control,
textarea.form-textarea-light {
    min-height: 110px;
    resize: vertical;
    line-height: 1.55;
}

/* --- 4. Unified Status Badges & Category Tags --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.8rem;
    border-radius: 50px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-gold {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.45);
}

.badge-red {
    background: rgba(161, 37, 37, 0.18);
    color: #FF7B7B;
    border: 1px solid rgba(161, 37, 37, 0.45);
}

.badge-green {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.45);
}

.badge-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* --- 5. Unified Alerts & Notification Banners --- */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid #10B981;
    color: #34D399;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid #EF4444;
    color: #FCA5A5;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid #F59E0B;
    color: #FCD34D;
}

.alert-info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid #3B82F6;
    color: #93C5FD;
}

/* --- 6. Card Polish & Hover Micro-Interactions --- */
.card-hover-gold {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-gold:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 175, 55, 0.15) !important;
}

/* ==========================================================================
   7. Access Gatekeeper Styles (Unified for access.php)
   ========================================================================== */
.gate-body {
    background-color: #070B14;
    background-image: 
        radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(161, 37, 37, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #0A0F1D 0%, #060911 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0.85rem 1rem;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.gate-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(rgba(212, 175, 55, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

.gate-card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.08);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    padding: 1.6rem 2rem;
    position: relative;
    z-index: 10;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.gate-card .alert {
    padding: 0.5rem 0.85rem;
    margin-bottom: 0.9rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

.gate-logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 0.75rem auto;
    text-decoration: none;
}

.gate-logo {
    max-height: 52px;
    width: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
    transition: transform 0.25s ease;
}

.gate-logo:hover {
    transform: scale(1.03);
}

.gate-badge-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.65rem;
}

.gate-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(212, 175, 55, 0.12);
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 auto;
}

.gate-badge-dot {
    width: 6px;
    height: 6px;
    background: #D4AF37;
    border-radius: 50%;
    box-shadow: 0 0 6px #D4AF37;
    animation: gatePulse 1.8s infinite;
}

@keyframes gatePulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.gate-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.3rem 0;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

.gate-desc {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #94A3B8;
    margin: 0 0 1rem 0;
}

.gate-input-wrapper {
    position: relative;
    margin-bottom: 0.9rem;
    text-align: left;
}

.gate-input-label {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    color: #CBD5E1;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gate-input-box {
    position: relative;
}

.gate-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.gate-input {
    width: 100%;
    background: rgba(10, 15, 29, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    font-size: 0.92rem;
    padding: 0.75rem 2.8rem 0.75rem 2.8rem;
    border-radius: 10px;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
    letter-spacing: 0.08em;
    transition: all 0.25s ease;
}

.gate-input:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background: rgba(10, 15, 29, 0.95);
}

.gate-input:focus ~ .gate-input-icon {
    color: #D4AF37;
}

.gate-toggle-pwd {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748B;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.gate-toggle-pwd:hover {
    color: #D4AF37;
}

.gate-btn {
    width: 100%;
    background: linear-gradient(135deg, #D4AF37 0%, #B8962D 100%);
    color: #0A0F1D;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    letter-spacing: 0.02em;
}

.gate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #E5C358 0%, #C9A73A 100%);
}

.gate-btn:active {
    transform: translateY(0);
}

.gate-footer-notes {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.72rem;
    color: #64748B;
}

.gate-footer-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.gate-error-banner {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #FCA5A5;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
}

.gate-copyright {
    margin-top: 0.75rem;
    font-size: 0.74rem;
    color: #475569;
    text-align: center;
    z-index: 10;
}

.gate-copyright a {
    color: #64748B;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gate-copyright a:hover {
    color: #D4AF37;
}

/* ==========================================================================
   8. Executive Modal System
   ========================================================================== */
@keyframes modalPop {
    0% {
        opacity: 0;
        transform: scale(0.94) translateY(-12px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.executive-modal-backdrop {
    animation: backdropFadeIn 0.2s ease forwards;
}

@keyframes backdropFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}