body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #1a3c34;
    color: #fff;
}


/* HERO */

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1s ease;
    animation: kenburns 8s ease-in-out infinite;
}

.hero-slider img.active {
    opacity: 1;
}


/* KEN BURNS EFFECT */

@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.1) translate(-2%, -2%);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 700px;
    width: 90%; /* Safety padding container for scaling phone displays */
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content p {
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1.5;
}


/* BUTTON */

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 22px;
    background: #ff7b00;
    color: #1a3c34;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: #e06c00;
    transform: translateY(-2px);
}


/* SECTIONS */

section {
    padding: 70px 20px;
    max-width: 1100px;
    margin: auto;
    box-sizing: border-box;
}

h2 {
    color: #ff7b00;
}


/* GRID */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 123, 0, 0.2);
}


/* IMAGES */

.section-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.section-flex img {
    width: 100%;
    height: 260px;
    object-fit: cover; /* Upgraded to cover to prevent dead background bars */
    background: #0f2f29;
    border-radius: 10px;
}


/* LINKS */

.link-btn {
    display: inline-block;
    margin-top: 15px;
    color: #ff7b00;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-btn:hover {
    color: #fff;
}


/* SCROLL ANIMATION */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* ==============================================
   GENERAL MOBILE STYLING OVERRIDES (TABLETS & PHONES)
   ============================================== */

@media (max-width: 768px) {
    /* Compress Hero Layout */
    .hero {
        height: 65vh; /* Prevents unwanted full viewport content stretching */
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    /* Section Spacing Compress */
    section {
        padding: 45px 15px;
    }

    /* Force Grid/Flex elements to stack vertically */
    .section-flex {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .section-flex img {
        height: 200px; /* Slimmed down height for mobile scrolling comfort */
    }
}


/* ==============================================
   SMALL COMPACT HANDSETS (SMALL PHONES)
   ============================================= */

@media (max-width: 480px) {
    .hero {
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .grid {
        grid-template-columns: 1fr; /* Strict stack override */
    }
}