/* ===========================
   Smart Hostel - Home Page CSS
   =========================== */

/* ---------- General ---------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ---------- Navbar ---------- */
#publicNavbar {
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

/* ---------- Hero Section ---------- */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
                url('https://images.unsplash.com/photo-1555854877-bab0e564b8d5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
}

.hero-section h1 {
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-section .btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
}

/* ---------- Section Padding ---------- */
.section-padding {
    padding: 80px 0;
}

/* ---------- Background Helpers ---------- */
.bg-light-gray {
    background-color: #f8f9fa;
}

/* ---------- Facility Icons ---------- */
.facility-icon {
    font-size: 2.5rem;
    color: #0d6efd;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.card:hover .facility-icon {
    transform: scale(1.15);
    color: #0b5ed7;
}

/* ---------- Card Hover ---------- */
.hover-shadow {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
    transform: translateY(-4px);
}

/* ---------- About Section ---------- */
#about img {
    transition: transform 0.4s ease;
}

#about img:hover {
    transform: scale(1.02);
}

.tracking-wide {
    letter-spacing: 2px;
}

/* ---------- Room Cards ---------- */
#rooms .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#rooms .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1.5rem 4rem rgba(0,0,0,.15) !important;
}

/* ---------- Contact Section ---------- */
#contact .bg-primary {
    transition: transform 0.3s ease;
}

#contact .bg-primary:hover {
    transform: scale(1.1);
}

#contact iframe {
    border-radius: 0.75rem;
}

/* ---------- Footer ---------- */
footer a {
    transition: color 0.3s ease, transform 0.3s ease;
}

footer a:hover {
    color: #0d6efd !important;
    transform: scale(1.2);
}

/* ---------- Scroll-to-Top Indicator ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .section-padding {
        padding: 50px 0;
    }
    .facility-icon {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }
    .hero-section .lead {
        font-size: 1rem !important;
    }
}
