/* ================================================================
   INDEX PAGE SPECIFIC STYLES
   ================================================================ */

/* HERO SECTION SLIDER */
.hero {
    height: 88vh; /* Optimized height to ensure content below is visible */
    position: relative; 
    overflow: hidden;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding: 0 10%;
    background: #0a141e; /* Prevents white flashes between slides */
}

/* Layering System for Smooth Cross-fading */
.hero-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-layer.active {
    opacity: 1;
    z-index: 2;
}

/* Media styling - Centered and anchored to the very bottom */
.hero-video, .hero-img-bg { 
    position: absolute; 
    bottom: -10;
    left: 50%; 
    width: 100%; 
    height: 110%; /* Height is 10% taller than container to allow for top-clipping */
    transform: translateX(-50%);
    object-fit: cover; 
}

/* Ensures background images fill correctly and remain anchored to the bottom focal point */
.hero-img-bg {
    background-size: cover !important;
    background-position: center bottom !important; 
    background-repeat: no-repeat !important;
}

.video-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(10, 20, 30, 0.4); 
    z-index: 3; 
}

/* HERO CONTENT (Text & Buttons) */
.hero-content { 
    position: relative; 
    z-index: 4; 
    max-width: 900px; 
    transition: opacity 0.8s ease-in-out;
}

.hero-content h1 { 
    color: #c5a059 !important; /* Industrial Gold */
    font-size: clamp(2rem, 6vw, 3.5rem); 
    text-transform: uppercase; 
    text-shadow: 0px 4px 20px rgba(0,0,0,0.9); 
    margin-bottom: 20px;
    letter-spacing: 2px;
    line-height: 1.1;
}

.hero-btns { 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
    margin-top: 40px; 
}

/* SLIDER NAVIGATION CONTROLS */
.hero-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.hero-nav button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    font-size: 1.2rem;
    transition: 0.3s;
}

.hero-nav button:hover {
    background: #c5a059;
    border-color: #c5a059;
    color: #0a141e;
}

.slide-indicators {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #c5a059;
    transform: scale(1.2);
}

/* ANIMATIONS */
.fade-in {
    animation: fadeInScale 1.2s ease-out forwards;
}

@keyframes fadeInScale {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* ================================================================
   FEATURES GRID (Below Hero)
   ================================================================ */
.features { 
    padding: 80px 10%; 
    background: #070c12;
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; 
}

.feature-box { 
    border: 1px solid rgba(197, 160, 89, 0.1); 
    padding: 40px 30px; 
    background: rgba(255,255,255,0.02); 
    position: relative; 
    transition: 0.4s; 
}

.feature-box i { 
    color: #c5a059; 
    font-size: 2rem; 
    margin-bottom: 20px; 
}

.feature-box h3 { 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 15px; 
}

.feature-box p { 
    color: #b0b8c1; 
    font-size: 0.9rem; 
    line-height: 1.6; 
}

.feature-box::after { 
    content: ""; 
    position: absolute; 
    bottom: -2px; 
    right: -2px; 
    width: 15px; 
    height: 15px; 
    border-bottom: 3px solid #c5a059; 
    border-right: 3px solid #c5a059; 
}

/* ================================================================
   RESPONSIVE QUERIES
   ================================================================ */
@media (max-width: 1200px) {
    .features { grid-template-columns: repeat(2, 1fr); }
	
    .hero {
        height: 74vh;
    }
	
    .hero-video, .hero-img-bg {
        height: 110%; 
        bottom: 0%; /* Removed vertical offset to push images back down */
        object-position: bottom;
    }
}

@media (max-width: 768px) {
    .features { grid-template-columns: 1fr; }
    
    .hero {
        height: 74vh;
    }
	
    /* Responsive Media Adjustment: push images back down to the baseline */
    .hero-video, .hero-img-bg {
        height: 110%; 
        bottom: 0%; /* Changed from 5% to 0% to push image back down to bottom edge */
        object-position: bottom;
    }

    .hero-img-bg {
        background-position: bottom center !important;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .btn-industrial, .btn-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}