/* ==========================================================================
   1. GLOBAL SYSTEM VARIABLES & RESET
   ========================================================================== */
:root {
    --bg-base: #0B0F19;
    --bg-surface: rgba(17, 24, 39, 0.7);
    --bg-surface-elevated: rgba(31, 41, 55, 0.4);
    
    --accent-gold: #E5C158;
    --accent-gold-glow: rgba(229, 193, 88, 0.15);
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-active: rgba(229, 193, 88, 0.3);
    
    --font-header: 'Cormorant Garamond', serif;
    --font-ui: 'Inter', sans-serif;
    
    --curve-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-ui);
    overflow-x: hidden;
}

/* ==========================================================================
   2. HARDWARE-ACCELERATED LUSH BACKGROUND
   ========================================================================== */
body {
    position: relative;
    min-height: 100vh;
}

/* Ambient luxury background glow orbs */
body::before, body::after {
    content: '';
    position: fixed;
    width: 45vw;
    height: 45vw;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: screen;
    filter: blur(140px);
    will-change: transform;
    transform: translateZ(0); /* Force GPU Layer Isolation */
}

body::before {
    top: -10%;
    right: -5%;
    background: radial-gradient(circle, rgba(229,193,88,0.06) 0%, rgba(0,0,0,0) 70%);
}

body::after {
    bottom: -10%;
    left: -5%;
    background: radial-gradient(circle, rgba(31,58,138,0.15) 0%, rgba(0,0,0,0) 70%);
}

/* ==========================================================================
   3. STRUCTURAL COMPONENTS (HEADER & NAVIGATION)
   ========================================================================== */
#main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 6%;
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

#main-header h1 {
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 2rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

#main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s var(--curve-smooth);
    position: relative;
    padding: 0.5rem 0;
}

#main-nav a:hover, #main-nav a.active {
    color: var(--accent-gold);
}

#main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--curve-smooth);
}

#main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ==========================================================================
   4. SECTIONS & HERO PRESENTATION
   ========================================================================== */
main {
    display: block;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
}

section {
    display: block;
    padding: 6rem 0;
    opacity: 1; /* ✅ FIXED: Ensures content is visible naturally on build compile */
    transform: translateZ(0);
    will-change: transform, opacity;
    transition: transform 0.8s var(--curve-smooth), opacity 0.8s var(--curve-smooth);
}

/* Fallback fallback rule structure to catch conditional scroll script injections cleanly */
section.reveal {
    opacity: 1 !important;
    transform: translateY(0) translateZ(0) !important;
}

/* Hero elements */
.hero-content {
    display: block;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.hero-content h2 {
    font-family: var(--font-header);
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

/* ==========================================================================
   5. PREMIUM GLASS CARDS & INTERFACES
   ========================================================================== */
.features-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .features-container {
        grid-template-columns: 1fr;
    }
}

.feature-block, form {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: border-color 0.4s var(--curve-smooth), box-shadow 0.4s var(--curve-smooth);
}

.feature-block:hover {
    border-color: rgba(229, 193, 88, 0.2);
    box-shadow: 0 30px 60px -10px rgba(229, 193, 88, 0.03);
}

.feature-block h3, section h2 {
    font-family: var(--font-header);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

.feature-block ul {
    list-style: none;
}

.feature-block li {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

.feature-block li strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================================================
   6. PREMIUM SEAMLESS INPUT FIELDS & LAYOUTS
   ========================================================================== */
fieldset {
    border: none;
    margin-bottom: 3rem;
}

legend {
    font-family: var(--font-header);
    font-size: 1.6rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    font-weight: 500;
}

label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: #FFFFFF;
    font-family: var(--font-ui);
    font-size: 1rem;
    margin-bottom: 1.8rem;
    transition: all 0.3s var(--curve-smooth);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(31, 41, 55, 0.7);
    box-shadow: 0 0 0 4px var(--accent-gold-glow);
}

fieldset h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #FFFFFF;
    margin: 2rem 0 1.2rem 0;
    border-left: 2px solid var(--accent-gold);
    padding-left: 10px;
}

input[type="file"] {
    background: var(--bg-surface-elevated);
    border: 1px dashed var(--border-glass);
    padding: 1.5rem;
    width: 100%;
    border-radius: 8px;
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-right: 1rem;
    cursor: pointer;
    transition: background 0.2s linear;
}

input[type="file"]::file-selector-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   7. SCROLLABLE CUSTOM LEGAL CONTAINERS
   ========================================================================== */
.terms-box {
    margin-bottom: 2.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}

.terms-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.terms-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--border-glass) transparent;
}

.terms-scroll::-webkit-scrollbar {
    width: 4px;
}

.terms-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.terms-scroll p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

#checkbox-label, #checkbox-candidate-label {
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 1.5rem;
}

input[type="checkbox"] {
    accent-color: var(--accent-gold);
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   8. LUXURY BUTTONS & INTERACTION DESIGN
   ========================================================================== */
.btn, .submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s var(--curve-smooth);
    will-change: transform;
}

.btn {
    color: #FFFFFF;
    background: transparent;
    border: 1px solid var(--border-glass);
    margin: 0 0.5rem;
}

.btn:hover {
    background: #FFFFFF;
    color: var(--bg-base);
    transform: translateY(-2px);
}

.submit-btn {
    width: 100%;
    background: var(--accent-gold);
    color: var(--bg-base);
    border: none;
    font-weight: 600;
}

.submit-btn:hover {
    box-shadow: 0 15px 30px var(--accent-gold-glow);
    transform: translateY(-2px);
    background: #F0D274;
}

.submit-btn:active {
    transform: translateY(0);
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, var(--border-glass) 50%, rgba(255,255,255,0) 100%);
    margin: 2rem 0;
}

#main-footer {
    text-align: center;
    padding: 4rem 0;
    color: rgba(156, 163, 175, 0.4);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-glass);
    margin-top: 4rem;
}

/* ==========================================================================
   9. ACCORDION DROPDOWN ENGINE (EMPLOYER PORTAL)
   ========================================================================== */
.accordion-item {
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.3s var(--curve-smooth);
}

.accordion-item:hover {
    border-color: rgba(229, 193, 88, 0.2);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    user-select: none;
    background: rgba(31, 41, 55, 0.2);
    transition: background 0.3s linear;
}

.accordion-header:hover {
    background: rgba(31, 41, 55, 0.5);
}

.accordion-header h3 {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 0 !important;
    border-left: none !important;
    padding-left: 0 !important;
}

.accordion-header .arrow {
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: transform 0.4s var(--curve-smooth), color 0.3s linear;
    will-change: transform;
}

.accordion-item.active {
    border-color: var(--border-glass-active);
}

.accordion-item.active .accordion-header {
    background: rgba(229, 193, 88, 0.05);
}

.accordion-item.active .arrow {
    transform: rotate(-180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    opacity: 0;
    transform: translateZ(0);
    will-change: max-height, opacity;
    transition: max-height 0.5s var(--curve-smooth), padding 0.5s var(--curve-smooth), opacity 0.4s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 1400px; /* Enhanced headroom capacity buffer allocation */
    padding: 1.8rem 1.5rem 0.5rem 1.5rem;
    opacity: 1;
}

/* ==========================================================================
   10. PREMIUM OPTIMIZED IMAGERY
   ========================================================================== */
.hero-image-container, .about-image-container {
    width: 100%;
    margin-top: 3.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
    transform: translateZ(0);
}

.premium-hero-img, .premium-about-img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    filter: grayscale(20%) brightness(90%);
    transition: transform 0.6s var(--curve-smooth), filter 0.6s var(--curve-smooth);
}

.hero-image-container:hover .premium-hero-img,
.about-image-container:hover .premium-about-img {
    transform: scale(1.02);
    filter: grayscale(0%) brightness(100%);
    opacity: 1;
}

.about-image-container {
    margin-bottom: 3.5rem;
    max-height: 400px;
}

/* ==========================================================================
   11. BRAND LOGO INTERACTION MATRIX
   ========================================================================== */
.logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}

.luxury-logo-icon {
    display: block;
    will-change: transform, filter;
    transform: translateZ(0);
    filter: drop-shadow(0 0 0px rgba(229, 193, 88, 0));
    transition: transform 0.5s var(--curve-smooth), filter 0.5s var(--curve-smooth);
}

.logo-container:hover .luxury-logo-icon {
    transform: scale(1.06) rotate(3deg);
    filter: drop-shadow(0 4px 12px rgba(229, 193, 88, 0.25));
}

/* ==========================================================================
   12. FOOTER ADDRESS METRICS
   ========================================================================== */
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    justify-content: center;
}

.footer-address {
    font-style: normal;
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    opacity: 0.75;
    transition: color 0.3s ease;
}

#main-footer:hover .footer-address {
    color: var(--accent-gold);
    opacity: 1;
}

/* ==========================================================================
   13. DEVELOPER CREDITS SIGNATURE METRICS
   ========================================================================== */
.developer-signature {
    font-size: 0.72rem;
    color: rgba(156, 163, 175, 0.3);
    margin-top: 1.2rem;
    letter-spacing: 0.5px;
    font-weight: 300;
    transition: color 0.4s ease;
}

.developer-signature .dev-brand {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.4s ease;
}

.developer-signature .dev-link {
    color: rgba(229, 193, 88, 0.3);
    text-decoration: none;
    transition: all 0.4s var(--curve-smooth);
    border-bottom: 1px solid transparent;
}

.developer-signature:hover {
    color: var(--text-secondary);
}

.developer-signature:hover .dev-brand {
    color: #FFFFFF;
}

.developer-signature:hover .dev-link {
    color: var(--accent-gold);
    border-bottom: 1px solid var(--accent-gold-glow);
}

/* ==========================================================================
   14. LUXURY ABOUT GRID ARCHITECTURE
   ========================================================================== */
.about-header-main {
    text-align: center;
    margin-bottom: 2rem;
}

.about-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--border-glass);
    padding: 2.5rem 1.5rem 1.5rem 0;
    position: relative;
    transition: border-color 0.4s var(--curve-smooth);
}

.about-card:hover {
    border-top-color: var(--accent-gold);
}

.about-card .card-number {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.about-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
    text-align: justify;
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-card {
        padding: 2rem 0;
    }
}