/* =========================================
   1. FONTS & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700;900&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
    /* Brand Colors */
    --gold: #d4af37;
    --gold-dark: #aa8c2c;
    --gold-gradient: linear-gradient(135deg, #d4af37, #aa8c2c);
    
    --copper: #b87333;
    --copper-dark: #8b5a2b;
    --copper-gradient: linear-gradient(135deg, #b87333, #cd7f32);
    
    --dark: #1a1a1a;
    --grey-text: #555555;
    
    /* Backgrounds */
    --light-bg: #eef2f5;
    --white: #ffffff;
    
    /* Neumorphic Shadows (3D Depth) */
    --shadow-light: -10px -10px 30px #ffffff;
    --shadow-dark: 10px 10px 30px rgba(174, 174, 192, 0.4);
    --shadow-hover: 15px 15px 40px rgba(174, 174, 192, 0.6);
    --shadow-inset: inset 5px 5px 10px rgba(174, 174, 192, 0.2), 
                    inset -5px -5px 10px #ffffff;

    /* Interactive variables (Updated by JS) */
    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* =========================================
   2. GLOBAL RESET & BASE STYLES
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    cursor: auto;
}

/* Only apply the custom arrow if the user has a mouse (Fine Pointer) */
@media (pointer: fine) {
    html, body {
        cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='black' stroke='white' stroke-width='1'><path d='M2 2L22 10L14 14L10 22L2 2Z'/></svg>"), auto;
    }

    /* Apply the copper pointer cursor to interactive elements */
    a, 
    button, 
    .menu-btn, 
    .gallery-item, 
    .card, 
    .region-card,
    .btn,
    .hollow-card,
    .team-card,
    .team-card-slide,
    .metal-option,
    .submit-btn {
        cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='%23b87333' stroke='white' stroke-width='1'><path d='M2 2L22 10L14 14L10 22L2 2Z'/></svg>"), pointer;
    }
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
    
    /* Dynamic Background Gradient tracking mouse */
    background-image: radial-gradient(
        circle at var(--mouse-x) var(--mouse-y), 
        rgba(212, 175, 55, 0.08) 0%, 
        rgba(238, 242, 245, 0) 50%
    );
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    color: var(--grey-text);
    margin-bottom: 1rem;
}

/* =========================================
   3. CUSTOM SCROLLBAR
   ========================================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--gold), var(--copper));
    border-radius: 5px;
    border: 2px solid var(--light-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--copper);
}

/* =========================================
   4. NAVIGATION (HAMBURGER & OVERLAY)
   ========================================= */
/* Floating Hamburger Button */
.menu-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 15px;
    box-shadow: var(--shadow-dark), var(--shadow-light);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover), var(--shadow-light);
}

.menu-btn:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-inset);
}

/* Hamburger Lines */
.menu-burger {
    width: 30px;
    height: 3px;
    background: var(--dark);
    position: relative;
    transition: all 0.3s ease;
    pointer-events: none;
}

.menu-burger::before,
.menu-burger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background: var(--dark);
    transition: all 0.3s ease;
}

.menu-burger::before {
    transform: translateY(-10px);
}

.menu-burger::after {
    transform: translateY(10px);
}

/* Open State Animation */
.menu-btn.open .menu-burger {
    background: transparent;
}

.menu-btn.open .menu-burger::before {
    transform: rotate(45deg);
}

.menu-btn.open .menu-burger::after {
    transform: rotate(-45deg);
}

/* Full Screen Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(238, 242, 245, 0.98);
    backdrop-filter: blur(15px);
    z-index: 999;
    overflow: hidden;
    transition: height 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nav-overlay.active {
    height: 100vh;
}

.nav-links {
    padding: 0;
    margin: 0;
}

.nav-links li {
    list-style: none;
    margin: 20px 0;
    text-align: center;
    opacity: 0; /* Handled by JS for stagger effect */
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.nav-links a {
    text-decoration: none;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(to right, var(--gold), var(--copper));
    -webkit-background-clip: text;
    background-clip: text;
    transition: color 0.3s ease;
    display: block;
}

.nav-links a:hover {
    color: transparent; /* Reveals the gradient background */
    transform: scale(1.05);
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 50px 20px;
    position: relative;
}

.logo-img {
    height: 140px;
    width: auto;
    margin-bottom: 30px;
    filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.15));
    animation: float 6s ease-in-out infinite;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 1.4rem;
    color: var(--copper);
    font-weight: 600;
    margin-bottom: 30px;
}

.hero p {
    max-width: 700px;
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
}

/* Floating Animation Keyframes */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   6. SECTIONS & LAYOUT
   ========================================= */
.section {
    padding: 100px 10%;
    position: relative;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    color: var(--dark);
    font-weight: 700;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    width: 100%;
}

/* =========================================
   7. NEUMORPHIC CARDS
   ========================================= */
.card {
    background: var(--light-bg);
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--shadow-dark), var(--shadow-light);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover), var(--shadow-light);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gold-gradient);
}

.card h3 {
    color: var(--copper);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.card p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* =========================================
   8. REGIONAL MAP STYLES
   ========================================= */
.regions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.05) 100%);
    padding: 60px;
    border-radius: 40px;
    box-shadow: inset 5px 5px 15px rgba(0,0,0,0.05);
}

.region-card {
    background: var(--light-bg);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow-dark), var(--shadow-light);
    text-align: left;
    transition: all 0.3s ease;
    border-left: 5px solid var(--copper);
    position: relative;
}

.region-card:hover {
    transform: scale(1.05) translateY(-5px);
    z-index: 10;
    box-shadow: var(--shadow-hover);
}
.head-office-card .flag-icon {
    display: block;
    margin: 0 auto 12px auto;
}

.flag-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    align-items: center;
}

.head-office-row {
    display: flex;
    justify-content: center;
    width: 100%;
}
.head-office-card {
    text-align: center;
}

.region-title {
    font-weight: 900;
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.region-detail {
    margin-top: 15px;
    padding-left: 0;
    list-style: none;
}

.region-detail li {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.region-detail li::before {
    content: '•';
    color: var(--gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.region-link {
    color: var(--copper);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 15px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.region-link:hover {
    border-bottom-color: var(--copper);
}

/* =========================================
   9. ABOUT PAGE SPECIFIC
   ========================================= */
.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pillar-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.pillar-card:hover {
    transform: translateY(-5px);
    background: var(--light-bg);
    box-shadow: var(--shadow-dark);
}

.pillar-card h4 {
    color: var(--dark);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.leader-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* =========================================
   10. GALLERY (SLIDER & GRID)
   ========================================= */
/* Infinite Slider */
.gallery-slider-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 60px 0;
    position: relative;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.gallery-track {
    display: inline-block;
}

.gallery-slider-wrap:hover .gallery-track {
    animation-play-state: paused;
}

/* ===========================
   Slider Buttons
   =========================== */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26,26,26,0.7);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 20; /* make sure it’s above everything */
    transition: background 0.3s;
}

/* Button hover effect */
.slider-btn:hover {
    background: rgba(26,26,26,0.9);
}

/* Position Prev/Next outside images */
.slider-btn.prev {
    left: 10px; /* space from left edge */
}

.slider-btn.next {
    right: 10px; /* space from right edge */
}

/* Pause button centered above slider */
.slider-btn.pause {
    left: 50%;
    transform: translate(-50%, -50%);
    top: 10px; /* move above images */
    font-size: 20px;
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 25; /* above other buttons */
}



.slide-img {
    height: 350px;
    width: 500px;
    object-fit: contain;
    margin: 0 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-dark);
    display: inline-block;
    transition: transform 0.3s;
    border: 4px solid var(--white);
}

.slide-img:hover {
    transform: scale(1.05);
}

@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Interactive Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 10%;
}

.gallery-item {
    height: 300px;
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    box-shadow: var(--shadow-dark);
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(26, 26, 26, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: bottom 0.3s ease;
    backdrop-filter: blur(5px);
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-overlay span {
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
}

/* =========================================
   11. LIGHTBOX
   ========================================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: none; /* Toggled by JS */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-height: 85vh;
    max-width: 85vw;
    border: 3px solid var(--gold);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.2);
    border-radius: 5px;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--white);
    font-size: 4rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-lightbox:hover {
    color: var(--gold);
}

/* =========================================
   12. BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 18px 45px;
    margin-top: 30px;
    border-radius: 50px;
    background: var(--light-bg);
    box-shadow: var(--shadow-dark), var(--shadow-light);
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    transition: all 0.2s ease;
    border: none;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover), var(--shadow-light);
    color: var(--copper);
}

.btn:active {
    box-shadow: var(--shadow-inset);
    transform: scale(0.98);
}

/* =========================================
   13. FOOTER
   ========================================= */
footer {
    padding: 80px 20px;
    text-align: center;
    background: var(--light-bg);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.05);
    margin-top: 100px;
    border-top: 1px solid rgba(255,255,255,0.5);
}

.footer-logo-text {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 10px;
}

footer p {
    font-size: 0.9rem;
    color: #888;
}

.credits {
    font-size: 0.8rem;
    color: #999;
    margin-top: 30px;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.credits a {
    color: var(--copper);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.credits a:hover {
    color: var(--gold);
}

/* =========================================
   14. MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media (max-width: 1024px) {
    .section {
        padding: 80px 5%;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links a {
        font-size: 2rem;
    }
    
    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.1rem;
    }
    
    .card-grid, .regions-container {
        grid-template-columns: 1fr;
    }
    
    .regions-container {
        padding: 30px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .slide-img {
        width: 300px;
        height: 200px;
    }
    
    .close-lightbox {
        font-size: 3rem;
        top: 20px;
        right: 20px;
    }
}

/* =========================================
   15. NEW STYLES FOR OPERATIONS PAGE
   ========================================= */

/* HOLLOW 3D CARD EFFECT (Glassmorphism + Border Gradient) */
.hollow-card {
    background: rgba(238, 242, 245, 0.1); /* Very transparent */
    backdrop-filter: blur(10px); /* The "Glass" effect */
    border: 1px solid transparent;
    border-radius: 1px;
    padding: 5px;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    /* Gradient Border Trick */
    background-image: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)), 
                      linear-gradient(135deg, var(--gold), var(--copper)); 
    background-origin: border-box; 
    background-clip: content-box, border-box; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Deep subtle shadow */
}

.hollow-card:hover {
    transform: translateY(-10px) rotateX(5deg); /* 3D Tilt */
    box-shadow: 0 20px 50px rgba(184, 115, 51, 0.2); /* Copper glow */
}

.hollow-card h3 {
    color: var(--dark);
    font-weight: 500;
}

.hollow-card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--copper-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* =========================
   SPLIT SECTION LAYOUT
========================= */

.split-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
    align-items: center;
}

@media (min-width: 900px) {
    .split-section {
        flex-direction: row;
    }

    .split-section.reverse {
        flex-direction: row-reverse;
    }

    .split-text {
        flex: 1;
        padding: 20px;
    }

    .split-visual {
        flex: 1;
        height: 400px;
        position: relative;
        perspective: 1200px; /* 👈 3D space */
    }
}

/* =========================
   VISUAL CONTAINER
========================= */
.split-visual {
    position: relative;
    width: 100%;
    height: 400px; /* adjust as needed */
    overflow: hidden;
}

.split-visual img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    transition: opacity 0.8s ease-in-out; /* smooth fade */
}



/* =========================
   3D SLIDE ANIMATION
========================= */

@keyframes vertical3DSlide {
    0% {
        opacity: 0;
        transform:
            translateY(-120%)
            translateZ(-150px)
            rotateX(10deg);
        filter: blur(6px);
    }

    10% {
        opacity: 1;
        transform:
            translateY(0)
            translateZ(0)
            rotateX(0deg);
        filter: blur(0);
    }

    30% {
        opacity: 1;
        transform:
            translateY(0)
            translateZ(40px);
        filter: blur(0);
    }

    45% {
        opacity: 0;
        transform:
            translateY(120%)
            translateZ(-120px)
            rotateX(-8deg);
        filter: blur(6px);
    }

    100% {
        opacity: 0;
        transform:
            translateY(120%)
            translateZ(-120px);
        filter: blur(6px);
    }
}

/* =========================
   OPTIONAL HOVER DEPTH (DESKTOP ONLY)
========================= */

@media (hover: hover) {
    .split-visual:hover img {
        transform:
            scale(1.03)
            translateZ(60px);
    }
}

/* =========================
   MOBILE OPTIMIZATION
========================= */

@media (max-width: 899px) {
    .split-visual {
        perspective: none;
    }

    .split-visual img {
        animation-duration: 14s; /* slower = smoother on mobile */
    }
}


/* TEAM GRID */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-dark);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    cursor: pointer;
}

.team-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    object-fit: cover;
    border: 3px solid var(--copper);
}

/* TEAM MODAL OVERLAY */
.team-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Dark transparent background */
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.team-modal-content {
    background: var(--light-bg);
    width: 90%;
    max-width: 600px;
    padding: 40px;
    border-radius: 30px;
    position: relative;
    border: 1px solid var(--gold);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.team-modal-overlay.active .team-modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark);
}

.modal-role {
    color: var(--copper);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
}

/* Update this specific class in styles.css */
#modal-bio {
    font-size: 1rem; 
    color: #555; 
    text-align: left;
    line-height: 1.8;
    /* New rules for scrolling long text */
    max-height: 50vh; 
    overflow-y: auto; 
    padding-right: 10px; 
}

/* Custom scrollbar for the modal text */
#modal-bio::-webkit-scrollbar { width: 5px; }
#modal-bio::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* =========================================
   16. TEAM SLIDER STYLES (New)
   ========================================= */

.team-slider-wrap {
    position: relative;
    width: 100%;
    overflow-x: auto; /* Make it scrollable */
    scroll-behavior: smooth; /* Smooth scrolling */
    padding: 50px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.team-track {
    display: flex;
    gap: 40px;
    width: max-content;
}

.team-track::-webkit-scrollbar {
    display: none; /* Hide scrollbar */
}


/* Pause animation when user hovers to pick a card */
.team-track:hover {
    animation-play-state: paused;
}

.team-card-slide {
    flex: 0 0 300px; /* Fixed width for slider cards */
    background: var(--light-bg);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-dark), var(--shadow-light);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    user-select: none; /* Prevents text highlighting while dragging/scrolling */
}

/* Reuse existing hover effects */
.team-card-slide:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--gold);
    box-shadow: var(--shadow-hover);
    cursor: pointer;
    background: #fff;
}

/* The Infinite Animation */
@keyframes teamScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Moves exactly half way */
}

/* Ensure images inside slider look good */
.team-card-slide .team-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    object-fit: cover;
    border: 3px solid var(--copper);
    background: #ddd;
}

/* =========================================
   17. CONTACT PAGE STYLES
   ========================================= */

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .contact-container {
        flex-direction: row;
        gap: 80px;
    }
    .contact-info { flex: 1; }
    .contact-form-wrapper { flex: 1.5; }
}

/* INFO CARDS */
.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-dark);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--gold);
}

.info-card:hover {
    transform: translateX(10px);
}

.info-card .icon {
    font-size: 2rem;
    background: var(--light-bg);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-inset);
}

.contact-link {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover { color: var(--copper); }

/* MODERN FORM INPUTS */
.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    font-size: 1rem;
    color: var(--dark);
    background: transparent;
    border: none;
    border-bottom: 2px solid #ccc;
    outline: none;
    transition: border-color 0.3s;
    font-family: 'Rajdhani', sans-serif;
}

.form-group textarea { resize: vertical; }

/* Animated Border Color */
.form-group input:focus, 
.form-group textarea:focus {
    border-bottom-color: var(--copper);
}

/* Floating Label Logic */
.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Move label up if input has focus or value (using placeholder hack) */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: bold;
}

/* Loader for Button */
.submit-btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 200px;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: none;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.loading .btn-text { display: none; }
.loading .loader { display: block; }

/* =========================================
   18. NEWS & AI DASHBOARD
   ========================================= */

/* SPLIT SCREEN LAYOUT */
.split-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding-top: 80px; /* Space for Nav */
    overflow: hidden;
}

@media (min-width: 900px) {
    .split-wrapper { flex-direction: row; }
    .market-panel { flex: 1.5; border-right: 1px solid rgba(0,0,0,0.1); overflow-y: auto; }
    .chat-panel { flex: 1; display: flex; flex-direction: column; background: #fff; }
}

/* LEFT SIDE: MARKET */
.market-panel {
    padding: 20px;
    background: var(--light-bg);
    position: relative;
}

.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* CUSTOM TOGGLE SWITCH */
.metal-switch {
    display: flex;
    background: #ddd;
    border-radius: 30px;
    padding: 5px;
    position: relative;
    cursor: pointer;
    width: 200px;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.1);
}

.metal-option {
    flex: 1;
    text-align: center;
    padding: 10px;
    z-index: 2;
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.switch-bg {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 50%; /* half width */
    height: calc(100% - 10px);
    background: white;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

/* Active States */
.metal-switch[data-active="gold"] .switch-bg { left: 5px; background: var(--gold-gradient); }
.metal-switch[data-active="gold"] .metal-option:first-child { color: white; }

.metal-switch[data-active="copper"] .switch-bg { left: 50%; background: var(--copper-gradient); }
.metal-switch[data-active="copper"] .metal-option:last-child { color: white; }

/* AI ANALYSIS CARD */
.ai-insight-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: var(--gold);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--gold);
    font-family: 'Rajdhani', sans-serif;
}

/* RIGHT SIDE: CHAT */
.chat-panel {
    height: 100%;
    position: relative;
}

.chat-window {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9f9f9;
}

.chat-input-area {
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-family: 'Rajdhani', sans-serif;
}

.chat-msg {
    margin-bottom: 15px;
    max-width: 80%;
    padding: 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.msg-ai {
    background: white;
    border: 1px solid var(--gold);
    border-top-left-radius: 0;
    margin-right: auto;
}

.msg-user {
    background: var(--dark);
    color: white;
    border-bottom-right-radius: 0;
    margin-left: auto;
}

/* FLOATING CHATBOT (Global) */
.floating-bot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--dark);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform 0.3s;
}

.floating-bot:hover { transform: scale(1.1); }
.floating-bot svg { width: 30px; height: 30px; fill: var(--gold); }

/* Hide floating bot on news page (handled via JS or CSS class) */
body.news-page .floating-bot { display: none !important; }

/* =========================================
   MOBILE CHAT LOGIC FOR NEWS PAGE
   ========================================= */

/* 1. DESKTOP (Width > 900px) */
@media (min-width: 900px) {
    /* Hide the floating bot because we have the big split-screen chat */
    body.news-page .floating-bot { 
        display: none !important; 
    }
}

/* 2. MOBILE (Width < 900px) */
@media (max-width: 899px) {
    /* Show the floating bot */
    body.news-page .floating-bot { 
        display: flex !important; 
    }

    /* Hide the embedded split-screen chat panel (saves space) */
    body.news-page .chat-panel { 
        display: none !important; 
    }

    /* Make the market panel take up the full screen */
    body.news-page .market-panel { 
        flex: 1; 
        height: auto; 
        border-right: none; 
        overflow-y: visible;
    }

    /* Ensure the wrapper scrolls normally on mobile */
    body.news-page .split-wrapper {
        height: auto;
        overflow: visible;
        flex-direction: column;
    }
}

/* =========================================
   19. UPDATED REGIONS LAYOUT
   ========================================= */

.regions-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

/* Row 1: Head Office Container */
.head-office-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Specific Style for Head Office Card */
.head-office-card {
    width: 100%;
    max-width: 600px; /* Wider than the others to look significant */
    text-align: center;
    border-left: 5px solid var(--gold); /* Gold border for HQ */
    background: linear-gradient(145deg, #ffffff, #f4f4f4);
    transform: scale(1.02); /* Slightly larger */
}

.head-office-card .region-detail li {
    padding-left: 20px; /* Adjust bullet alignment for centered text */
}

/* Row 2: Grid for the other 3 regions */
.sub-regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

/* Flag Icon Styling */
.flag-icon {
    font-size: 3.5rem; /* Large flags */
    display: block;
    margin-bottom: 15px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}

/* =========================================
   20. HOME PAGE ENHANCEMENTS (Add to bottom)
   ========================================= */

/* HOME HERO TWEAKS */
.home-hero {
    /* Subtle texture overlay */
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, rgba(238,242,245,1) 90%);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* OUTLINE BUTTON VARIANT */
.btn-outline {
    background: transparent;
    border: 2px solid var(--copper);
    color: var(--copper);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--copper);
    color: white;
}

/* STATS STRIP */
.stats-strip {
    background: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 40px 20px;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
    margin-top: -50px; /* Pull up to overlap hero slightly */
    border-radius: 0;
}

@media (min-width: 768px) {
    .stats-strip {
        margin: -60px auto 0 auto;
        width: 90%;
        border-radius: 20px;
    }
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #333;
    display: none;
}

@media (min-width: 900px) {
    .stat-divider { display: block; }
}

/* CHECK LIST (For Turnkey Section) */
.check-list {
    list-style: none;
    margin-top: 20px;
    padding: 0;
}

.check-list li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
    font-weight: 500;
    color: var(--dark);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 900;
}

/* FADE UP ANIMATION UTILITIES */
.animate-up {
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   SIDE VISUAL CONTAINER
========================================= */

.side-visual {
    flex: 1;
    min-width: 300px;
    height: 400px;

    position: relative;
    overflow: hidden;

    border-radius: 20px;

    /* 3D SPACE */
    perspective: 1400px;
    transform-style: preserve-3d;

    /* BRUTALIST BASE */
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.2)),
        radial-gradient(circle at top left, rgba(0,255,255,0.08), transparent 60%);

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.08),
        inset 0 -40px 80px rgba(0,0,0,0.65);
}

/* =========================================
   IMAGE STACK
========================================= */

.side-visual img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    object-fit: cover;

    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.65);

    opacity: 0;

    /* START POSITION (LEFT, DEEP) */
    transform:
        translateX(-160%)
        translateZ(-260px)
        rotateY(22deg);

    /* BRUTALIST + NEON SHADOW STACK */
    box-shadow:
        0 100px 200px rgba(0,0,0,0.8),
        0 50px 100px rgba(0,0,0,0.6),
        0 0 50px rgba(0,255,255,0.25),
        inset 0 0 60px rgba(255,255,255,0.05);

    /* LUXURY COLOR TONE */
    filter:
        contrast(1.12)
        saturate(1.25)
        drop-shadow(0 0 40px rgba(0,255,255,0.35));

    animation: side3DNeon 12s infinite cubic-bezier(0.4, 0, 0.2, 1);

    will-change: transform, opacity, filter;
    backface-visibility: hidden;
}

/* =========================================
   NEON CHROMATIC EDGE (RETRO LUXURY)
========================================= */

.side-visual img::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;

    box-shadow:
        inset 2px 0 0 rgba(255,0,120,0.25),
        inset -2px 0 0 rgba(0,255,255,0.25);

    mix-blend-mode: screen;
    pointer-events: none;
}

/* =========================================
   STAGGER TIMING
========================================= */

.side-visual img:nth-child(1) { animation-delay: 0s; }
.side-visual img:nth-child(2) { animation-delay: 4s; }
.side-visual img:nth-child(3) { animation-delay: 8s; }

/* =========================================
   SIDE-TO-SIDE 3D NEON ANIMATION
========================================= */

@keyframes side3DNeon {
    0% {
        opacity: 0;
        transform:
            translateX(-160%)
            translateZ(-280px)
            rotateY(24deg);
        filter: blur(9px) saturate(1.4);
    }

    14% {
        opacity: 1;
        transform:
            translateX(0)
            translateZ(0)
            rotateY(0deg);
        filter: blur(0);
    }

    32% {
        opacity: 1;
        transform:
            translateX(0)
            translateZ(100px);
    }

    50% {
        opacity: 0;
        transform:
            translateX(160%)
            translateZ(-260px)
            rotateY(-24deg);
        filter: blur(9px);
    }

    100% {
        opacity: 0;
        transform:
            translateX(160%)
            translateZ(-260px);
    }
}

/* =========================================
   HOVER: NEON LUXURY PULSE (DESKTOP ONLY)
========================================= */

@media (hover: hover) {
    .side-visual:hover img {
        box-shadow:
            0 140px 280px rgba(0,0,0,0.9),
            0 0 90px rgba(0,255,255,0.6),
            0 0 160px rgba(0,180,255,0.4);
    }
}

/* =========================================
   BRUTALIST FILM GRAIN (SUBTLE)
========================================= */

.side-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");

    mix-blend-mode: overlay;
    pointer-events: none;
}

/* =========================================
   MOBILE OPTIMIZATION
========================================= */

@media (max-width: 900px) {
    .side-visual {
        height: 300px;
        perspective: none;
    }

    .side-visual img {
        animation-duration: 14s;
        box-shadow:
            0 40px 80px rgba(0,0,0,0.55),
            0 0 40px rgba(0,255,255,0.25);
    }
}

/* =========================================
   SPIRAL VISUAL CONTAINER
========================================= */

.spiral-visual {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 400px;

    perspective: 1600px;
    transform-style: preserve-3d;

    border-radius: 20px;
    overflow: hidden;

    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.25)),
        radial-gradient(circle at top left, rgba(0,255,255,0.08), transparent 60%);

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.08),
        inset 0 -40px 80px rgba(0,0,0,0.65);
}

/* =========================================
   IMAGE STACK
========================================= */

.spiral-visual img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    object-fit: cover;

    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.65);

    opacity: 0;

    /* START DEEP + TWISTED */
    transform:
        rotateZ(-360deg)
        rotateY(35deg)
        scale(0.35)
        translateZ(-520px);

    box-shadow:
        0 140px 280px rgba(0,0,0,0.85),
        0 70px 140px rgba(0,0,0,0.6),
        0 0 70px rgba(0,255,255,0.35);

    filter:
        contrast(1.15)
        saturate(1.25);

    animation: spiralCycle 12s infinite cubic-bezier(0.16, 1, 0.3, 1);

    will-change: transform, opacity, filter;
    backface-visibility: hidden;
}

/* =========================================
   STAGGER TIMING
========================================= */

.spiral-visual img:nth-child(1) { animation-delay: 0s; }
.spiral-visual img:nth-child(2) { animation-delay: 4s; }
.spiral-visual img:nth-child(3) { animation-delay: 8s; }

/* =========================================
   NEON CHROMATIC EDGE
========================================= */

.spiral-visual img::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;

    box-shadow:
        inset 2px 0 0 rgba(255,0,120,0.25),
        inset -2px 0 0 rgba(0,255,255,0.25);

    mix-blend-mode: screen;
    pointer-events: none;
}

/* =========================================
   FLASH BURST (PER IMAGE)
========================================= */

.spiral-visual::before {
    content: "";
    position: absolute;
    inset: -20%;

    background: radial-gradient(
        circle,
        rgba(255,255,255,0.9) 0%,
        rgba(0,255,255,0.6) 25%,
        rgba(0,0,0,0) 60%
    );

    opacity: 0;
    animation: flashPulse 12s infinite;
    pointer-events: none;
    z-index: 5;
}

/* =========================================
   SPIRAL ANIMATION
========================================= */

@keyframes spiralCycle {
    0% {
        opacity: 0;
        transform:
            rotateZ(-360deg)
            rotateY(35deg)
            scale(0.35)
            translateZ(-520px);
        filter: blur(10px) saturate(1.4);
    }

    15% {
        opacity: 1;
        transform:
            rotateZ(-140deg)
            rotateY(15deg)
            scale(0.85)
            translateZ(-160px);
        filter: blur(3px);
    }

    30% {
        opacity: 1;
        transform:
            rotateZ(0deg)
            rotateY(0deg)
            scale(1)
            translateZ(80px);
        filter: blur(0);
    }

    45% {
        opacity: 0;
        transform:
            rotateZ(120deg)
            rotateY(-15deg)
            scale(0.8)
            translateZ(-300px);
        filter: blur(8px);
    }

    100% {
        opacity: 0;
        transform:
            rotateZ(120deg)
            rotateY(-15deg)
            scale(0.8)
            translateZ(-300px);
    }
}

/* =========================================
   FLASH TIMING (SYNCED)
========================================= */

@keyframes flashPulse {
    0% { opacity: 0; }
    14% { opacity: 0; }
    18% { opacity: 1; }
    22% { opacity: 0; }
    100% { opacity: 0; }
}

/* =========================================
   MOBILE OPTIMIZATION
========================================= */

@media (max-width: 768px) {
    .spiral-visual {
        height: 280px;
        perspective: none;
    }

    .spiral-visual img {
        animation-duration: 14s;
    }
}



.story-map {
    display: grid;
    grid-template-columns: repeat(auto-fill, 150px); /* fixed width columns */
    grid-auto-rows: 150px; /* fixed height rows */
    gap: 20px 40px; /* vertical | horizontal gap */
    margin-top: 40px;
    justify-content: start; /* align left */
    position: relative;
}

.story-item {
    position: relative;
    width: 150px;
    height: 150px;
}

.story-item img {
    width: 150px;
    height: 150px; /* fixed size */
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    display: block;
    object-fit: cover; /* ensures image fills container without distortion */
}

.story-item img:hover {
    transform: scale(1.05);
}

/* Arrows between items */
.story-item::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -30px;
    width: 40px;
    height: 4px;
    background: var(--copper);
    transform: translateY(-50%);
}

.story-item:last-child::after {
    content: none; /* no arrow after the last item */
}

/* Optional: arrow triangle */
.story-item::after {
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    background: var(--copper);
}


/* Responsive: arrows below images on small screens */
@media (max-width: 768px) {
    .story-map {
        flex-direction: column;
        align-items: center;
        gap: 40px 0;
    }
    .story-item:not(:last-child)::after {
        top: auto;
        bottom: -30px;
        left: 50%;
        right: auto;
        width: 4px;
        height: 40px;
        transform: translateX(-50%);
        clip-path: polygon(0 0, 50% 100%, 100% 0);
    }
}

/* ===========================
   TikTok-style Video Gallery
=========================== */
#video-gallery {
    position: relative;
    width: 100%;
    height: 100vh; /* full screen height */
    overflow: hidden;
    background: #000;
}

.video-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.video-slide.active {
    display: block;
    animation: fadeIn 0.5s;
}

.video-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Controls */
.video-gallery .control-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26,26,26,0.6);
    color: #fff;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 10px;
    z-index: 10;
}

.video-gallery .control-btn:hover {
    background: rgba(26,26,26,0.9);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }
.pause-btn { top: 10px; right: 50%; transform: translate(50%, 0); font-size: 20px; padding: 10px 15px; }

.chat-ai-text {
    white-space: normal;
    line-height: 1.6;
    letter-spacing: 0.2px;
    font-size: 14.5px;
}

.news-item h4 {
    margin-bottom: 6px;
    font-weight: 600;
}

.news-item p {
    margin-top: 0;
    opacity: 0.9;
    line-height: 1.5;
}

#geo-analysis-text p {
    margin: 0;
    line-height: 1.6;
}

/* Container for the grid */
.gallery-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* The Grid Layout */
.gallery-grid {
    display: grid;
    /* This automatically creates columns. 
       Min 250px means ~4 columns on desktop, 2 on tablet, 1 on mobile */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px; /* Spacing between images */
}

/* Image Styling */
.gallery-grid img {
    width: 100%;
    height: 200px; /* Fixed height for uniformity */
    object-fit: contain; /* Crops image cleanly to fill the square/rectangle */
    border-radius: 8px; /* Optional: Rounded corners */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Optional: Shadow */
    transition: transform 0.3s ease;
}

/* Hover Effect (Optional) */
.gallery-grid img:hover {
    transform: scale(1.03);
}

/* Mobile Specific Adjustments */
@media (max-width: 600px) {
    .gallery-grid {
        /* Force 2 columns on mobile screens instead of 1 */
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gallery-grid img {
        height: 150px; /* Smaller height for mobile */
    }
}

/* --- NEW: Enlarged 3 Column Grid --- */
.gallery-grid-3 {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Mobile default */
    gap: 30px;
    padding: 0 5%;
}

@media (min-width: 900px) {
    .gallery-grid-3 {
        grid-template-columns: repeat(3, 1fr); /* 3 per line strictly */
    }
}



/* =========================================
   GROVENOR IN ACTION (ARTICLE SECTION)
   ========================================= */

.action-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.action-card {
    background: var(--light-bg);
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-dark), var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.action-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.action-img-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.action-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.action-card:hover .action-img-container img {
    transform: scale(1.1);
}

.action-overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    background: rgba(26, 26, 26, 0.8);
    color: var(--gold);
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.action-card:hover .action-overlay-icon {
    transform: translate(-50%, -50%) scale(1);
}

.action-preview {
    padding: 25px;
}

.action-preview h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.action-preview p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

.read-more {
    color: var(--copper);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* =========================
   ARTICLE MODAL OVERLAY
   ========================= */

.article-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 5000;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.article-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.article-modal-content {
    background: var(--light-bg);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--gold);
    animation: fadeUp 0.4s ease forwards;
}

.article-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--dark);
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.3s;
}

.article-close:hover {
    color: var(--copper);
}

.article-figure {
    width: 100%;
    margin: 0;
    position: relative;
}

.article-figure img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.article-figure figcaption {
    background: rgba(26, 26, 26, 0.9);
    color: var(--gold);
    padding: 10px 20px;
    font-size: 0.9rem;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    width: 100%;
}

.article-body {
    padding: 40px;
}

.article-body h3 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 15px;
    display: inline-block;
}

.article-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

/* Mobile Adjustments for Article */
@media (max-width: 768px) {
    .article-figure img {
        height: 250px;
    }
    .article-body {
        padding: 25px;
    }
    .article-body h3 {
        font-size: 1.5rem;
    }
}