/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --color-bg-dark: #0f1115;
    --color-bg-darker: #08090b;
    --color-bg-card: #1a1d24;
    --color-gold: #cfa858;
    --color-gold-light: #ebd092;
    --color-gold-dark: #967530;
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    
    --font-sans: 'Poppins', sans-serif;
    --font-serif: 'Poppins', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s ease;
    --transition-slow: 0.6s ease;
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--color-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-bg-dark) !important;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(207, 168, 88, 0.4);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(15, 17, 21, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding var(--transition-fast), background var(--transition-fast);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(8, 9, 11, 0.98);
}

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

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-gold);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--color-gold);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; /* Offset for navbar */
    background: linear-gradient(rgba(8, 9, 11, 0.4), rgba(8, 9, 11, 0.6)), 
                url('../images/hero-bg.png') center/cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.feature-card {
    background: rgba(26, 29, 36, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(207, 168, 88, 0.2);
    padding: 30px 20px;
    border-radius: 8px;
    width: 220px;
    text-align: center;
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-gold);
    background: rgba(26, 29, 36, 0.8);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 0.9rem;
    font-family: var(--font-sans);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.feature-card p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Roadmap Section
   ========================================================================== */
.roadmap {
    background-color: var(--color-bg-darker);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-gold-dark), var(--color-gold-light));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--color-bg-darker);
    border: 4px solid var(--color-gold);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px rgba(207, 168, 88, 0.5);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    padding: 30px;
    background: var(--color-bg-card);
    border-radius: 8px;
    border-top: 3px solid var(--color-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
}

.phase-badge {
    position: absolute;
    top: -15px;
    background: var(--color-gold);
    color: var(--color-bg-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
}

.timeframe {
    color: var(--color-gold-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-family: var(--font-sans);
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content ul li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    position: relative;
}

.timeline-content ul li::before {
    content: '•';
    color: var(--color-gold);
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

.core-values {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 30px;
    border: 1px solid rgba(207, 168, 88, 0.2);
}

.value-item i {
    color: var(--color-gold);
}

/* ==========================================================================
   Strategic Partnership Section
   ========================================================================== */
.partnership {
    background: url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;
}

.partnership::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 17, 21, 0.92);
}

.partnership .container {
    position: relative;
    z-index: 2;
}

.partnership-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.partnership-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-box {
    background: var(--color-bg-card);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform var(--transition-normal);
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: rgba(207, 168, 88, 0.4);
}

.stat-box i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-box h4 {
    font-size: 1.5rem;
    font-family: var(--font-sans);
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.partnership-operations {
    background: rgba(26, 29, 36, 0.8);
    padding: 40px;
    border-radius: 8px;
    border-left: 4px solid var(--color-gold);
}

.operations-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.op-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.op-item i {
    width: 60px;
    height: 60px;
    background: rgba(207, 168, 88, 0.1);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

/* ==========================================================================
   Management Section
   ========================================================================== */
.management {
    background-color: var(--color-bg-darker);
}

.management-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.profile-card, .affiliation-card {
    background: var(--color-bg-card);
    padding: 40px 30px;
    border-radius: 8px;
    border-top: 2px solid var(--color-gold);
    transition: transform var(--transition-normal);
}

.profile-card:hover, .affiliation-card:hover {
    transform: translateY(-10px);
}

.profile-img-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--color-bg-dark);
    border: 3px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-gold-dark);
}

.profile-card h3 {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.profile-card h4 {
    text-align: center;
    color: var(--color-gold);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.highlights li {
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    color: var(--color-text-muted);
}

.affiliation-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}

.affiliation-header h4 {
    font-family: var(--font-sans);
    letter-spacing: 2px;
    color: var(--color-text-muted);
}

.affiliation-content h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 5px;
}

.affiliation-content .sub {
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.affiliation-content p:last-child {
    text-align: justify;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Org Structure (CSS Tree) */
.org-structure .tree ul {
    padding-top: 20px; position: relative;
    display: flex; justify-content: center;
    transition: all 0.5s;
}

.org-structure .tree li {
    float: left; text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 5px 0 5px;
    transition: all 0.5s;
}

.org-structure .tree li::before, .org-structure .tree li::after {
    content: ''; position: absolute; top: 0; right: 50%;
    border-top: 1px solid var(--color-gold);
    width: 50%; height: 20px;
}
.org-structure .tree li::after {
    right: auto; left: 50%;
    border-left: 1px solid var(--color-gold);
}
.org-structure .tree li:only-child::after, .org-structure .tree li:only-child::before {
    display: none;
}
.org-structure .tree li:only-child { padding-top: 0; }
.org-structure .tree li:first-child::before, .org-structure .tree li:last-child::after {
    border: 0 none;
}
.org-structure .tree li:last-child::before {
    border-right: 1px solid var(--color-gold);
    border-radius: 0 5px 0 0;
}
.org-structure .tree li:first-child::after {
    border-radius: 5px 0 0 0;
}
.org-structure .tree ul ul::before {
    content: ''; position: absolute; top: 0; left: 50%;
    border-left: 1px solid var(--color-gold);
    width: 0; height: 20px;
}
.org-structure .tree li a {
    border: 1px solid rgba(207, 168, 88, 0.5);
    padding: 10px 15px;
    text-decoration: none;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    display: inline-block;
    border-radius: 4px;
    background: var(--color-bg-card);
    transition: all 0.5s;
}
.org-structure .tree li a:hover {
    background: rgba(207, 168, 88, 0.1);
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
    background-color: #050608;
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .tagline {
    color: var(--color-gold);
    font-style: italic;
    font-family: var(--font-serif);
    margin-top: 10px;
}

.footer h3 {
    color: var(--color-gold);
    font-size: 1.2rem;
    font-family: var(--font-sans);
    margin-bottom: 20px;
}

.footer-contact ul li, .footer-address address {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--color-text-muted);
    font-style: normal;
}

.footer-contact i, .footer-address i {
    color: var(--color-gold);
    margin-top: 5px;
}

.footer-bottom {
    background: #000;
    padding: 20px 0;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
/* Animation Classes */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.appear { opacity: 1; transform: translateY(0); }

.slide-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.slide-up.appear { opacity: 1; transform: translateY(0); }

.slide-in-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.slide-in-left.appear { opacity: 1; transform: translateX(0); }

.slide-in-right { opacity: 0; transform: translateX(50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.slide-in-right.appear { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Bottom Navbar for Mobile */
.bottom-navbar {
    display: none; /* Hidden on desktop by default */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(8, 9, 11, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(207, 168, 88, 0.3);
    z-index: 1000;
    justify-content: space-around;
    padding: 10px 10px;
    padding-bottom: env(safe-area-inset-bottom, 10px); /* For iOS safe area */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile More Menu */
.mobile-more-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-more-menu-overlay.active {
    display: block;
    opacity: 1;
}
.mobile-more-menu {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-dark);
    border-top: 1px solid var(--color-gold);
    z-index: 1002;
    padding: 20px 20px 80px 20px; /* space for bottom navbar */
    transition: bottom 0.3s ease;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.mobile-more-menu.active {
    bottom: 0;
}
.mobile-more-item {
    display: flex;
    align-items: center;
    color: var(--color-text);
    text-decoration: none;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: background 0.2s ease;
}
.mobile-more-item:hover, .mobile-more-item.active {
    background: rgba(207, 168, 88, 0.2);
    color: var(--color-gold);
}
.mobile-more-item i {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}
.mobile-more-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.mobile-more-close {
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}
.bottom-navbar::-webkit-scrollbar {
    display: none;
}

.bottom-navbar .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.3s ease;
    gap: 4px;
    flex: 0 0 auto;
}

.bottom-navbar .nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.bottom-navbar .nav-item.active,
.bottom-navbar .nav-item:hover {
    color: var(--color-gold);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 0; }
    .timeline-item:nth-child(even) { left: 0%; }
    .timeline-item:nth-child(even) .timeline-dot { left: 21px; }
    .timeline-item:nth-child(odd) .timeline-dot { right: auto; left: 21px; }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px; /* Space for bottom navbar */
    }
    .mobile-toggle { display: none; }
    .nav-links { display: none; }
    .bottom-navbar { display: flex; }
    .footer-container { display: none; }
    
    .hero h1 { font-size: 2.5rem; }
}

/* ==========================================================================
   Flagship Project Section
   ========================================================================== */
.flagship-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (min-width: 992px) {
    .flagship-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.location-info {
    background: rgba(26, 29, 36, 0.8);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--color-gold);
}

.advantages-info h3 {
    margin-bottom: 20px;
}

.advantages-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.advantage-item {
    display: flex;
    gap: 15px;
    background: var(--color-bg-card);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform var(--transition-normal);
}

.advantage-item:hover {
    transform: translateY(-3px);
    border-color: rgba(207, 168, 88, 0.4);
}

.adv-icon {
    font-size: 2rem;
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(207, 168, 88, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.adv-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-family: var(--font-sans);
}

.adv-text p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

.flagship-gallery .gallery-main img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 400px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}
.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}
.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    cursor: default;
}
.lightbox-overlay.active img {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 10000;
}
.lightbox-close:hover {
    color: var(--color-gold);
}
