.hero {
    width: 100%;
    min-height: 100vh;
    background: #f5f7fa;
    display: flex;
    align-items: center;
}

.hero-container {
    width: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-image {
    flex: 1;
    position: relative;
    height: 450px;
}

.hero-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-image img.active {
    opacity: 1;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: #6f8fa8;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #5a778d;
}

.btn-secondary {
    background: #e4e8ec;
    color: #2c3e50;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #d2d7dc;
}

/* Responsive */

@media(max-width: 900px){
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        height: 300px;
        width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-content h1 {
        font-size: 32px;
    }
}
/* ===== DARK MODE HERO ===== */

body.dark .hero {
    background: linear-gradient(135deg, #121212, #1b1b1b);
}

body.dark .hero-content h1 {
    color: #ffffff;
}

body.dark .hero-content p {
    color: #d0d0d0;
}

body.dark .hero-image img {
    box-shadow: 0 8px 25px rgba(0,0,0,0.45);
}

body.dark .btn-primary {
    background: #8fb3cc;
    color: #111;
}

body.dark .btn-primary:hover {
    background: #a6c5da;
}

body.dark .btn-secondary {
    background: #2a2a2a;
    color: #f1f1f1;
    border: 1px solid #444;
}

body.dark .btn-secondary:hover {
    background: #363636;
}