﻿.hero-section {
    background: url('/img/uniStudents.jpg') center center no-repeat;
    background-size: cover;
    min-height: 100%;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    border-radius: 1rem;
    position: relative;
}

    .hero-section .overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.4));
        z-index: 1;
    }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: auto;
}

/* Typography */
.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(1.8rem, 2.5vw + 1rem, 3rem);
    line-height: 1.2;
    letter-spacing: 0.5px;
    animation: fadeInDown 1.2s ease-out;
}

.hero-text {
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    color: ghostwhite;
    animation: fadeIn 1.4s ease-out;
}

.hero-btn {
    transition: all 0.3s ease;
    animation: fadeInUp 1.6s ease-out;
}

    .hero-btn:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 10px 25px rgba(13, 110, 253, 0.4);
    }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        min-height: 400px;
        text-align: center;
    }
}

/* Mobile behavior improvements */
@media (max-width: 768px) {
    .hero-section {
        min-height: 55vh; /* ✅ Only half screen height */
        border-radius: 0.75rem;
        padding: 3rem 1.5rem;
        background-position: center top;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-btn {
        padding: 0.6rem 1.4rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 50vh; /* ✅ Even shorter for very small screens */
        padding: 2rem 1rem;
    }

    .hero-btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
