/* =========================================
   1. VARIABLES & GLOBAL RESET
   ========================================= */
:root {
    --primary-color: #D4AF37;    /* Metallic Gold */
    --diamond-accent: #E0F7FA;   /* Icy Blue */
    --dark-bg: #0a0a0a;          /* Rich Black */
    --text-white: #FFFFFF;
    --header-height: 90px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-white);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

img { width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* =========================================
   2. SHARED COMPONENTS (Buttons & Headers)
   ========================================= */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-weight: 800; 
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.4s;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

.btn.primary { 
    background: var(--primary-color); 
    color: #000; 
    border: 2px solid var(--primary-color);
}
.btn.primary:hover { background: #fff; border-color: #fff; box-shadow: 0 0 15px var(--primary-color); }

.btn.secondary { 
    background: transparent; 
    border: 2px solid var(--text-white); 
    color: var(--text-white); 
}
.btn.secondary:hover { background: var(--text-white); color: #000; }

.page-header {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #000;
    overflow: hidden;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/inventory-ber.jpg');
    background-size: cover;
    background-position: center;
}

.header-bg {
    position: absolute;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 1;
}

.header-content { position: relative; z-index: 5; padding: 0 20px; }
.header-content h2 { 
    font-size: clamp(2rem, 5vw, 3.5rem); 
    color: var(--primary-color); 
    font-weight: 900; 
    text-transform: uppercase;
}

/* =========================================
   3. NAVIGATION BAR
   ========================================= */
header.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background-color: rgba(10, 10, 10, 0.95);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
    transition: 0.3s;
}

header.sticky { height: 70px; background: #000; }

.logo { display: flex; align-items: center; gap: 15px; }
.logo img { height: 50px; width: auto; }
.logo h1 { font-size: 1.2rem; font-weight: 900; }
.logo span { color: var(--primary-color); font-size: 0.8em; display: block; }

nav ul { display: flex; gap: 25px; }
nav ul li a { font-size: 0.85rem; text-transform: uppercase; font-weight: 700; }
nav ul li a:hover, nav ul li a.active { color: var(--primary-color); }

.menu-btn { display: none; font-size: 2rem; cursor: pointer; color: var(--primary-color); }

/* =========================================
   4. HERO SECTION
   ========================================= */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-start; 
    justify-content: center;
    text-align: center;
    padding-top: 140px; 
    overflow: hidden;
}

.back-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
                rgba(0,0,0,0.85) 0%, 
                rgba(0,0,0,0.3) 40%, 
                rgba(0,0,0,0.3) 60%, 
                rgba(0,0,0,0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1000px;
}

.hero-content h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900; 
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 2px 4px 15px rgba(0,0,0,0.6);
}

.hero-btns {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* =========================================
   5. GRID LAYOUTS & ROUNDED BORDERS
   ========================================= */
#sectors { padding: 40px 5%; }
.sector-container { display: flex; flex-direction: column; gap: 20px; }

.sector-card {
    position: relative;
    overflow: hidden;
    height: 300px; 
    border: 1px solid #333;
    border-radius: 20px; 
    display: block;
}

.sector-card img { height: 100%; object-fit: cover; transition: 0.5s; }
.sector-card:hover img { transform: scale(1.05); }

.sector-info {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 20px;
}

.sector-info h3, .sector-info h4 { color: var(--primary-color); margin-bottom: 5px; text-transform: uppercase; }
.sector-info p { font-size: 0.8rem; color: #ddd; letter-spacing: 1px; }

.summary-container { 
    display: flex; 
    flex-wrap: wrap; 
    background: #111; 
    border-radius: 25px; 
    overflow: hidden;
    margin: 40px 5%;
    border: 1px solid #222;
}

.summary-img { flex: 1 1 450px; height: 500px; } 
.summary-img img { width: 100%; height: 100%; object-fit: cover; }

.summary-text { flex: 1 1 500px; padding: 60px 5%; }
.summary-text h3 { color: var(--primary-color); font-size: 2rem; margin-bottom: 20px; font-weight: 900; }
.summary-text p { color: #aaa; line-height: 1.8; margin-bottom: 20px; }

.machinery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; padding: 40px 5%;
}

.product-card { 
    background: #111; 
    border: 1px solid #333; 
    border-radius: 20px; 
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-image { height: 230px; width: 100%; position: relative; border-bottom: 1px solid #222; }
.card-image img { height: 100%; object-fit: cover; }

.badge { 
    position: absolute; top: 10px; right: 10px; 
    background: var(--primary-color); 
    padding: 5px 12px; font-size: 0.7rem; font-weight: 900; color: #000; 
    border-radius: 5px;
}

.card-info { padding: 25px; text-align: center; }
.card-info h3 { font-size: 1.3rem; margin-bottom: 15px; text-transform: uppercase; }

/* =========================================
   6. MODAL & ANIMATIONS
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px); 
    overflow-y: auto;
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    width: 90%;
    max-width: 900px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    overflow: hidden;
    position: relative; 
    animation: modalSlide 0.4s ease;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--primary-color); 
    font-size: 45px; 
    font-weight: 900;
    cursor: pointer;
    z-index: 100;
    transition: 0.3s ease;
    line-height: 1;
}

.close-btn:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
}

.modal-img {
    flex: 1;
    min-width: 300px;
    background: #000;
}

.modal-info {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    text-align: center; 
}

.modal-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
    width: 100%; 
}

.specs-list li {
    margin-bottom: 12px;
    color: #ccc;
    font-size: 1rem;
}

.modal-info .btn {
    width: fit-content;
    margin: 0 auto;
}

/* =========================================
   7. INVENTORY FILTERS
   ========================================= */
.filter-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 0 5%;
}

.filter-btn {
    padding: 12px 28px;
    background: #111;
    border: 1px solid #333;
    color: #ffffff;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-radius: 50px; 
    transition: 0.4s all ease;
    font-family: 'Montserrat', sans-serif;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: #000000;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.filter-item { display: none; }
.filter-item.show {
    display: flex;
    animation: filterFade 0.5s ease forwards;
}

@keyframes filterFade {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* =========================================
   8. MISC PAGE STYLES
   ========================================= */

#process {
    position: relative;
    background: url('../images/process-bg.jpg') no-repeat center center/cover;
    padding: 60px 5%;
    text-align: center;
    color: var(--text-white);
}

.split-section { display: flex; flex-wrap: wrap; background: #0a0a0a; }
.split-section.reverse { flex-direction: row-reverse; }
.split-img { flex: 1 1 500px; height: 500px; }
.split-text { flex: 1 1 500px; padding: 60px 40px; }

#contact-form-area { background: #fdfdfd; color: #111; padding: 80px 5%; }
.form-container { display: flex; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; background: #fff; border-radius: 15px; overflow: hidden; }

/* =========================================
   9. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .menu-btn { display: block; }
    nav ul {
        display: none;
        position: absolute; top: 100%; left: 0; width: 100%;
        background: #000; flex-direction: column; gap: 0;
        border-top: 1px solid #222;
    }
    nav ul.open { display: flex; }
    nav ul li { text-align: center; border-bottom: 1px solid #222; }
    nav ul li a { display: block; padding: 20px; }

    #hero { padding-top: 80px; }
    .hero-content h2 { font-size: 2.3rem; }
    .hero-btns { flex-direction: column; width: 100%; padding: 0 10%; }
    
    .sector-card, .summary-img { height: 260px; }
    .summary-container { margin: 20px 5%; }
    
    .section-padding { padding: 40px 5%; }
    .detail-grid { grid-template-columns: 1fr; }
    .dark-info-card { padding: 40px 20px; }
}

@media (min-width: 1024px) {
    .sector-container { flex-direction: row; }
    .main-sector { flex: 1.5; height: 500px; }
    .sector-subgrid { flex: 1; display: flex; flex-direction: column; gap: 20px; }
    .sector-subgrid .sector-card { height: 153px; }
}

footer { 
    padding: 40px; 
    text-align: center; 
    color: #555; 
    border-top: 1px solid #222; 
    font-size: 0.9rem; 
    background: #0a0a0a;
    margin-top: 40px;
}

/* =========================================
   10. MINING & ABOUT DIV BOX STYLES
   ========================================= */
.info-box-section {
    padding: 40px 5% 0;
    background: #0a0a0a;
}

.dark-info-card {
    background: #111;
    padding: 40px; 
    border-radius: 25px;
    border: 1px solid #222;
    text-align: center;
    margin-bottom: 40px; /* SPACE REDUCED */
    transition: 0.3s ease;
}

.dark-info-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.dark-info-card.centered {
    margin-bottom: 30px;
}

.detail-item-box {
    background: #111;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #222;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px 5%;
    background: #0a0a0a;
    margin-bottom: 40px; /* SPACE REDUCED */
}

.value-card {
    background: #111;
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    transition: 0.3s;
}

.value-card:hover {
    background: #1a1a1a;
    transform: translateY(-5px);
}

.value-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.investment-cta {
    position: relative;
    padding: 80px 5%;
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('../images/investor-bg.webp');
    background-attachment: fixed;
    background-size: cover;
    text-align: center;
    border-radius: 30px;
    margin: 40px 5%;
    overflow: hidden;
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 40px 0;
}

.stat span {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

.stat p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.mini-specs {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    text-align: left;
}

.mini-specs li {
    font-size: 0.85rem;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: #ddd;
}

.mini-specs li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

@keyframes modalSlide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* =========================================
   11. UNIFIED BOX STORY & SPLIT GRID STYLES
   ========================================= */

/* TIGHTER SPACING */
.section-padding {
    padding: 60px 5%; 
}

.section-title-box {
    text-align: center;
    margin-bottom: 30px;
}

.section-title-box h3 {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.story-unified-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 40px; 
    background: #111;
    border: 1px solid #222;
    border-radius: 25px;
    margin-bottom: 40px; /* SPACE REDUCED */
}

.story-content {
    flex: 1 1 450px;
}

.story-content h2, .story-content h3 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 900;
}

.story-content p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 15px;
}

.story-image-wrapper {
    flex: 1 1 400px;
    overflow: hidden;
    border-radius: 20px; 
    border: 1px solid #333;
    height: 350px; 
}

.story-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: 0.5s ease;
}

/* Clean hiding of bar classes */
.gold-bar-top, .gold-bar-bottom, .gold-strip-section {
    display: none !important;
}


/* =========================================
   13. CONTACT PAGE & MAP STYLES
   ========================================= */

/* Interactive Map Grid */
.office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.office-box {
    background: #111;
    border-radius: 20px;
    border: 1px solid #222;
    overflow: hidden;
    transition: 0.4s ease;
}

.office-box:hover {
    border-color: var(--primary-color);
}

.map-wrapper {
    height: 250px;
    width: 100%;
    filter: grayscale(1) invert(1) contrast(1.2); /* Luxury Dark Map Theme */
    transition: 0.5s;
}

.office-box:hover .map-wrapper {
    filter: grayscale(0) invert(0); /* Brighten on hover */
}

.office-info {
    padding: 30px;
}

.office-info h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.office-info p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* FORM STYLING */
.luxury-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.form-group label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

.form-group input, 
.form-group textarea {
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 15px;
    color: #fff;
    border-radius: 10px;
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* MOBILE FIXES */
@media (max-width: 768px) {
    .form-row { flex-direction: column; }
    .office-grid { grid-template-columns: 1fr; }
}