/* GLOBAL */
body {
    font-family: 'Segoe UI', sans-serif;
    background: #f7f9fc;
}

/* NAVBAR */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

/* HERO */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
}

.hero::before {
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
}

/* ACTION CARDS */
.action-card {
    border: none;
    border-radius: 20px;
    padding: 40px 20px;
    color: white;
    cursor: pointer;
    transition: all .4s ease;
    position: relative;
    overflow: hidden;
}

/* ICON */
.action-card i {
    font-size: 40px;
    margin-bottom: 15px;
    transition: .4s;
}

/* TEXT */
.action-card h5 {
    font-weight: 700;
}

/* GRADIENTS */
.register {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.login {
    background: linear-gradient(135deg, #43cea2, #185a9d);
}

.about {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #222;
}

/* HOVER EFFECT */
.action-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* ICON ANIMATION */
.action-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* GLOW EFFECT */
.action-card::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(25deg);
    opacity: 0;
    transition: .5s;
}

.action-card:hover::before {
    opacity: 1;
}

/* GALLERY */
.preview-grid img {
    border-radius: 12px;
    transition: .3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.preview-grid img:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* GALLERY GRID */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

/* ITEM */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
}

/* IMAGE */
.gallery-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform .4s ease;
}

/* OVERLAY */
.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .3s;
}

.gallery-item .overlay i {
    color: white;
    font-size: 24px;
}

/* HOVER EFFECT */
.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* VIEWER */
#viewer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 999;
}

#viewer img {
    max-width: 90%;
    max-height: 70vh;
    border-radius: 10px;
}

/* FACILITIES */

.facility-item .facility-icon {
    position: relative;
    margin: 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-item .facility-icon::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .9);
    transition: .5s;
    z-index: 1;
}

.facility-item .facility-icon span {
    position: absolute;
    content: "";
    width: 15px;
    height: 30px;
    top: 0;
    left: 0;
    border-radius: 50%;
}

.facility-item .facility-icon span:last-child {
    left: auto;
    right: 0;
}

.facility-item .facility-icon i {
    position: relative;
    z-index: 2;
}

.facility-item .facility-text {
    position: relative;
    min-height: 250px;
    padding: 30px;
    border-radius: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
}

.facility-item .facility-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .9);
    transition: .5s;
    z-index: 1;
}

.facility-item .facility-text * {
    position: relative;
    z-index: 2;
}

.facility-item:hover .facility-icon::before,
.facility-item:hover .facility-text::before {
    background: transparent;
}

.facility-item * {
    transition: .5s;
}

.facility-item:hover * {
    color: #FFFFFF !important;
}

/* WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: .3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* FOOTER */
footer {
    background: #111;
    color: #fff;
    padding: 20px;
}

@media (max-width: 768px) {

    .preview-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* hide images after the 3rd */

    .preview-item:nth-child(n+4) {
        display: none;
    }

}