/* --- 1. CORE VARIABLES & RESET --- */
:root {
    --brand-gold: #D4AF37;       /* Luxury Gold */
    --brand-dark: #0f172a;       /* Deep Corporate Blue/Black */
    --brand-gray: #f4f4f4;       /* Light BG */
    --text-main: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --transition-slow: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
    opacity: 0; 
    transition: opacity 0.5s ease;
}
body.loaded { opacity: 1; }

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--brand-dark);
}

a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- 2. PRELOADER --- */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.loader-logo {
    width: 80px; 
    height: 80px;
    border: 2px solid var(--brand-gold);
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    overflow: hidden;
    background: #fff;
    animation: pulse 2s infinite;
}
.loader-logo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.loader-line {
    width: 0; height: 2px; background: var(--brand-dark);
    margin-top: 20px; animation: loadLine 1.5s ease-in-out forwards;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); } 70% { box-shadow: 0 0 0 20px rgba(212, 175, 55, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); } }
@keyframes loadLine { 0% { width: 0; } 100% { width: 150px; } }

/* --- 3. SCROLL ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(40px); transition: var(--transition-slow); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- 4. NAVIGATION & LOGO HIGHLIGHTING --- */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.98); /* Slightly more opaque for logo pop */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.8rem 0; transition: var(--transition-fast);
}
.nav-container {
    max-width: 1300px; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo-area { display: flex; align-items: center; gap: 15px; }

/* UPDATED LOGO STYLES FOR VISIBILITY & COOL FACTOR */
.logo-area img {
    height: 55px; /* Slightly larger */
    /* Adds a luxury golden glow drop-shadow */
    filter: drop-shadow(0px 0px 8px rgba(212, 175, 55, 0.6));
    transition: transform 0.3s ease, filter 0.3s ease;
}
/* Optional Hover Effect */
.logo-area:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0px 0px 12px rgba(212, 175, 55, 0.8));
}

.logo-text {
    font-size: 1.2rem; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--brand-dark); display: flex; flex-direction: column;
}
.logo-sub { font-size: 0.7em; font-weight: 400; color: var(--text-light); }

.nav-menu { display: flex; gap: 2rem; align-items: center; }
.nav-menu a {
    font-size: 0.9rem; font-weight: 500; text-transform: uppercase;
    letter-spacing: 1px; position: relative;
}
.nav-menu a:not(.nav-cta-btn)::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background-color: var(--brand-gold);
    transition: width 0.3s;
}
.nav-menu a:not(.nav-cta-btn):hover::after { width: 100%; }

.nav-cta-btn {
    background-color: var(--brand-gold); color: var(--white);
    padding: 10px 20px; border-radius: 4px; font-weight: 600;
    transition: var(--transition-fast);
}
.nav-cta-btn:hover { background-color: var(--brand-dark); color: var(--white); transform: translateY(-2px); }

.sticky-apply-btn {
    position: fixed; top: 50%; left: 0; z-index: 999;
    background: var(--brand-dark); color: var(--brand-gold);
    padding: 15px 10px; border-radius: 0 8px 8px 0;
    writing-mode: vertical-rl; text-orientation: mixed;
    font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    transform: translateY(-50%); transition: 0.3s;
    border-left: 4px solid var(--brand-gold); font-size: 0.9rem;
}
.sticky-apply-btn:hover { padding-left: 20px; background: var(--brand-gold); color: var(--brand-dark); border-left: 4px solid var(--brand-dark); }

/* --- 5. HERO SECTION --- */
.hero {
    height: 100vh; position: relative; overflow: hidden;
    display: flex; align-items: center; margin-top: 70px; /* Offset for fixed header */
}
.hero-content {
    max-width: 1300px; margin: 0 auto; padding: 0 2rem;
    color: var(--white); position: relative; z-index: 1;
}
.hero-label {
    color: var(--brand-gold); font-size: 1rem;
    letter-spacing: 3px; text-transform: uppercase;
    margin-bottom: 1rem; display: block;
}
.hero h1 {
    font-size: 4.5rem; line-height: 1.1; margin-bottom: 1rem; color: var(--white);
}
.button-group { display: flex; gap: 20px; }

.btn-white {
    background: var(--white); color: var(--brand-dark);
    padding: 16px 40px; text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.85rem; font-weight: 700; border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: var(--transition-fast);
}
.btn-white:hover { background: #e0e0e0; transform: translateY(-3px); }

.btn-gold {
    background: var(--brand-gold); color: #000;
    padding: 16px 40px; text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.85rem; font-weight: 700; border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4); transition: var(--transition-fast);
}
.btn-gold:hover { background: #b59020; transform: translateY(-3px); color: #fff; }

/* --- 6. LEADERSHIP (HIERARCHY LAYOUT) --- */
.leadership-section { padding: 6rem 0; background: #fdfdfd; }
.leader-wrapper {
    display: flex; flex-direction: column; align-items: center; gap: 4rem;
}

/* Row 1: Main Leader */
.leader-row-main { width: 100%; display: flex; justify-content: center; }
.leader-card.featured-leader {
    max-width: 450px; width: 100%;
    border-bottom: 5px solid var(--brand-gold);
    background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transform: scale(1.02);
}
.featured-leader .leader-img-box { height: 480px; }

/* Row 2: Sub Leaders */
.leader-row-sub {
    width: 100%; display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap;
}
.leader-card.sub-leader {
    width: 320px; background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.leader-card.sub-leader:hover { transform: translateY(-8px); }
.sub-leader .leader-img-box { height: 320px; }

.leader-img-box {
    width: 100%; overflow: hidden; background-color: #f0f0f0;
}
.leader-img-box img {
    width: 100%; height: 100%; object-fit: cover; object-position: top;
    transition: transform 0.6s ease;
}
.leader-card:hover .leader-img-box img { transform: scale(1.05); }

.leader-info { padding: 1.5rem 2rem; text-align: center; }
.leader-info h3 { font-size: 1.5rem; margin-bottom: 0.2rem; }
.leader-info span {
    color: var(--brand-gold); font-size: 0.9rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}
.leader-info p {
    margin-top: 1rem; font-size: 0.95rem;
    color: var(--text-light); line-height: 1.6;
}

/* --- 7. ABOUT SECTION --- */
.about-section { padding: 8rem 0; background-color: var(--white); }
.container { max-width: 1300px; margin: 0 auto; padding: 0 2rem; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.section-header span {
    color: var(--brand-gold); font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem;
}
.section-header h2 { font-size: 3rem; margin-top: 1rem; line-height: 1.2; }
.text-block p {
    margin-bottom: 1.5rem; color: var(--text-main);
    font-size: 1.05rem; line-height: 1.8;
}
/* Emphasize the group entities names */
.text-block strong { color: var(--brand-dark); font-weight: 700; }

.img-wrapper { position: relative; overflow: hidden; border-radius: 4px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.img-wrapper img { width: 100%; height: auto; transition: transform 1.5s ease; }
.img-wrapper:hover img { transform: scale(1.05); }

/* --- 8. SERVICES --- */
.services-section { background-color: var(--brand-gray); padding: 8rem 0; }
.services-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem; margin-top: 4rem;
}
.service-card {
    background: var(--white); padding: 3rem;
    transition: var(--transition-fast); position: relative;
    overflow: hidden; border-bottom: 3px solid transparent;
    cursor: pointer; display: flex; flex-direction: column;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-bottom: 3px solid var(--brand-gold);
}
.service-icon { font-size: 2rem; color: var(--brand-gold); margin-bottom: 1.5rem; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.service-card p { color: var(--text-light); line-height: 1.6; flex-grow: 1; }
.read-more {
    display: inline-block; margin-top: 1rem; font-size: 0.8rem;
    font-weight: 700; color: var(--brand-gold);
    text-transform: uppercase; opacity: 0;
    transform: translateY(10px); transition: var(--transition-fast);
}
.service-card:hover .read-more { opacity: 1; transform: translateY(0); }

/* --- 9. WHY CHOOSE US --- */
.why-us-section {
    background-color: #1a1a1a;
    background-image: linear-gradient(to bottom, #0f172a, #1a1a1a);
    color: var(--white); padding: 6rem 0;
}
.why-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}
.why-card {
    background: rgba(255,255,255,0.03);
    padding: 2.5rem; border: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition-fast); border-radius: 4px;
}
.why-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-5px); border-color: var(--brand-gold);
}
.why-number {
    font-family: 'Playfair Display', serif; font-size: 3rem;
    color: var(--brand-gold); opacity: 0.5; margin-bottom: 1rem;
}
.why-card h3 { color: var(--white); margin-bottom: 1rem; font-size: 1.5rem; }
.why-card p { color: #ccc; line-height: 1.6; }

/* --- 10. FOOTER --- */
footer {
    background-color: #1a1a1a; color: #b0b0b0;
    padding: 5rem 0 2rem 0; font-size: 0.9rem;
}
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 4rem; margin-bottom: 2rem;
}
.footer-col h4 { color: var(--white); margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a:hover { color: var(--brand-gold); }

/* --- 11. CHATBOT --- */
.chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 5000; }
.chat-btn {
    width: 60px; height: 60px; background: var(--brand-gold);
    border-radius: 50%; box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; transition: transform 0.3s;
}
.chat-btn:hover { transform: scale(1.1); }
.chat-box {
    position: absolute; bottom: 80px; right: 0; width: 350px;
    background: white; border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
    display: none; flex-direction: column; opacity: 0;
    transform: translateY(20px); transition: all 0.3s ease;
}
.chat-box.open { display: flex; opacity: 1; transform: translateY(0); }
.chat-header {
    background: var(--brand-dark); color: white; padding: 15px;
    font-weight: 600; display: flex; justify-content: space-between;
}
.chat-content { height: 300px; padding: 15px; background: #f9f9f9; overflow-y: auto; }
.chat-msg {
    margin-bottom: 10px; padding: 10px; border-radius: 8px;
    font-size: 0.9rem; max-width: 80%;
}
.msg-bot { background: white; border: 1px solid #eee; align-self: flex-start; }
.msg-user { background: var(--brand-gold); color: white; align-self: flex-end; margin-left: auto; }
.chat-input-area {
    padding: 10px; background: white; border-top: 1px solid #eee;
    display: flex; gap: 10px; flex-wrap: wrap;
}
.chip {
    background: #f0f0f0; padding: 5px 12px; border-radius: 20px;
    font-size: 0.8rem; cursor: pointer; transition: 0.2s;
}
.chip:hover { background: var(--brand-dark); color: white; }

/* --- MODAL --- */
.modal {
    display: none; position: fixed; z-index: 9000; 
    left: 0; top: 0; width: 100%; height: 100%; 
    overflow: auto; background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    justify-content: center; align-items: center;
}
.modal-content {
    background-color: #fefefe; padding: 3rem;
    border-top: 5px solid var(--brand-gold);
    width: 90%; max-width: 600px;
    border-radius: 8px; position: relative;
    animation: modalPop 0.4s ease;
}
@keyframes modalPop { from {transform: scale(0.9); opacity: 0;} to {transform: scale(1); opacity: 1;} }
.close-modal {
    color: #aaa; float: right; font-size: 28px;
    font-weight: bold; cursor: pointer;
}
.close-modal:hover { color: black; }
.btn-modal {
    background: var(--brand-gold); color: white;
    border: none; padding: 12px 25px; margin-top: 1.5rem;
    cursor: pointer; font-weight: 600; text-transform: uppercase;
    transition: 0.3s; display: inline-block;
}
.btn-modal:hover { background: var(--brand-dark); }
.modal-list li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.modal-list li::before {
    content: '•'; color: var(--brand-gold);
    position: absolute; left: 0; font-weight: bold;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .split-layout, .stats-grid, .footer-grid, .why-grid { grid-template-columns: 1fr; gap: 2rem; }
    .nav-menu { display: none; }
    .sticky-apply-btn { display: none; }
    .button-group { flex-direction: column; }
    .btn-white, .btn-gold { width: 100%; text-align: center; }
    
    /* Responsive Leadership */
    .leader-row-sub { flex-direction: column; align-items: center; gap: 2rem; }
    .leader-card.sub-leader { width: 100%; max-width: 400px; }
    .featured-leader .leader-img-box { height: 400px; }
    .logo-area img { height: 45px; } /* Slightly smaller logo on mobile */
}