/* brand color: #114934 */
@font-face {
    font-family: playful;
    src: url(../fonts/playfair-display/PlayfairDisplay-BoldItalic.ttf);
}

@font-face {
    font-family: roboto;
    src: url(../fonts/Roboto-VariableFont_wdth\,wght.ttf);
}

/* ===== Global Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: roboto;
    overflow-x: hidden;
}

:root {
    --site_theme: #114934;
    --page_background: rgba(212, 175, 55, 0.1);
    --page_background_dark: rgba(212, 175, 55, 0.5);

}

/* ===== Typography ===== */
#site_name {
    text-shadow: 2px 2px 4px var(--site_theme);
    font-family: playful;
}

.site_tag {
    font-family: playful;
}

.text_theme_color {
    color: var(--site_theme);
}

/* ===== Buttons ===== */
.btn_cta {
    text-decoration: none;
    padding: 0.5rem 2rem;
    border-radius: 0.5rem;
    border: none;
    outline: none;
    transition: all 0.6s ease-in-out;
}

@media (max-width: 991px) {
    .btn_cta {
        display: block;
        width: 10rem;
        padding: 0.5rem 0;
        text-align: center;
        margin-bottom: 3rem;
    }
}

.btn_cta_white {
    background: rgb(255, 255, 255);
    color: var(--site_theme);

}

.btn_cta_white:hover {
    background: var(--site_theme);
    color: rgb(255, 255, 255);
}

.btn_cta_green {
    background: var(--site_theme);
    color: rgb(255, 255, 255);
}

.btn_cta_green:hover {
    background: linear-gradient(180deg,
            rgba(212, 175, 55, 0.5) 0%,
            rgba(15, 81, 50, 0.5) 100%);
    color: #fff;

}

/* ===== Navigation ===== */
#site_navigation {
    position: absolute;
    top: 1rem;
    left: 50%;
    z-index: 100;
    width: 60vw;
    transform: translateX(-50%);
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
}

/* Tablet + Mobile */
@media (max-width: 1199px) {
    #site_navigation {
        position: static;
        transform: translateX(0);
        width: 100vw;
        border-radius: 0;
    }
}

.navbar_brand {
    color: #fff;
    font-family: playful;
}

@media (max-width: 991px) {
    .navbar_brand {
        color: var(--site_theme);
    }   
}

.navbar_brand:hover {
    color: #fff;
}

/* Mobile navbar background */
@media (max-width: 500px) {
    .navbar_collapse {
        background: var(--site_theme);
        border-bottom-left-radius: 0.52rem;
        border-bottom-right-radius: 0.52rem;
    }
}

.hidden {
    display: none;
}

/* Remove Bootstrap button focus styling */
#menu_button:focus,
#menu_button:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

#nav_logo {
    height: 3rem;
}

/* ===== Navigation Links ===== */
.nav_link {
    position: relative;
    transition: all 0.6s ease-in-out;
}

.nav_link_white::after {
    background-color: #fff;
}

.nav_link_primary::after {
    background-color: rgb(13, 110, 253);
}

.nav_link::after {
    content: "";
    height: 2px;
    width: 100%;
    position: absolute;
    left: 0;
    bottom: -1px;
    transform: scale(0);
    transition: transform 0.6s ease-in-out;
}

.nav_link:hover::after {
    transform: scale(1);
}

/* ===== hero===== */
#hero {
    position: relative;
    min-height: 100vh;
}

@media (max-width: 991px) {
    #hero {
        position: relative;
        min-height: 80vh;
    }
}

@media (max-width: 991px) and (orientation: landscape) {
    #hero {
        position: relative;
        min-height: 110vh;
    }
}

#hero_bg_carousel {
    position: absolute;
    top: 0;
    left: 0;
    min-height: 100vh;
    z-index: 1;
}

@media (max-width: 991px) {
    #hero_bg_carousel {
        min-height: 80vh;
    }
}

@media (max-width: 991px) and (orientation: landscape) {
    #hero_bg_carousel {
        min-height: 110vh;
    }
}

#hero_overlay {
    position: absolute;
    top: 0;
    left: 0;
    min-height: 100vh;
    background: linear-gradient(180deg,
            rgba(212, 175, 55, 0.5) 0%,
            rgba(15, 81, 50, 0.5) 100%);
    z-index: 5;
}

@media (max-width: 991px) {
    #hero_overlay {
        min-height: 80vh;
    }
}

@media (max-width: 991px) and (orientation: landscape) {
    #hero_overlay {
        min-height: 110vh;
    }
}

.carousel_img {
    height: 100vh;
}

@media (max-width: 991px) {
    .carousel_img {
        height: 80vh;
    }
}

@media (max-width: 991px) and (orientation: landscape) {
    .carousel_img {
        min-height: 110vh;
    }
}

#hero_content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

#hero_content_row {
    min-height: 100vh;
}

@media (max-width: 991px) {
    #hero_content_row {
        min-height: 80vh;
    }
}

@media (max-width: 991px) and (orientation: landscape) {
    #hero_content_row {
        min-height: 110vh;
    }
}

#hero_lower_content {
    position: absolute;
    bottom: 0%;
    left: 0;
    width: 100vw;
    z-index: 10;
    background: linear-gradient(180deg,
            rgba(212, 175, 55, 0.9) 0%,
            rgba(15, 81, 50, 0.9) 100%),
        url(../images/bg/arabian.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* ===== about snapshot ===== */
#about_snapshot {
    background: var(--page_background);
}

.about_cards {
    /* border: 2px solid var(--site_theme); */
    border-radius: 1rem;
    transition: all 0.4s ease-in-out;
    background: rgb(255, 255, 255);
    overflow: hidden;
}

.about_cards:hover {
    transform: translateY(-3px);
    box-shadow: 3px 3px 5px var(--site_theme);
    background: var(--page_background);
}

.card_images {
    height: 10rem;
}

/* ===== masjid project banner ===== */
#project_overview {
    position: relative;
}

#project_overview_background, #footer_background {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(212, 175, 55, 0.9) 0%,
            rgba(15, 81, 50, 0.9) 100%),
        url(../images/bg/arabian.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -5;
}

#masjid_project_img {
    height: 15rem;
    width: auto;
    opacity: 0.7;
}

/* ===== get involved ===== */
#get_involved {
    background: var(--page_background);
}

/* ===== message from the chair ===== */
#chairman_image {
    height: 10rem;
    width: 15rem;
    border-radius: 50%;
}

/* ===== contact snapshot ===== */
#contact_snapshot iframe {
    height: 100%;
    width: 100%;
}

#the_message {
    resize: none;
    height: 10rem;
}

.contact_card{
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow:
        0 10px 30px rgba(15, 81, 50, 0.08),
        0 0 0 1px rgba(212, 175, 55, 0.1);
    transition: all .3s ease;
}

.contact_card:hover{
    transform: translateY(-5px);
    box-shadow:
        0 15px 40px rgba(15, 81, 50, 0.15),
        0 0 0 1px rgba(212, 175, 55, 0.25);
}

#contact_snapshot iframe{
    width:100%;
    height:100%;
    min-height:400px;
    border-radius:15px;
    filter: grayscale(20%);
    transition:.4s;
}

#contact_snapshot iframe:hover{
    filter: grayscale(0%);
}

/* ===== footer ===== */
footer {
    background: var(--page_background);
    position: relative;
}

#footer_logo{
    height: 5rem;
    width: 5rem;
}

/* ===== our story panel ===== */


/* ===== team section ===== */
.member_cards {
    height: 35vh;
    position: relative;
}

@media (max-width: 991px) {
    .member_cards {
        height: 45vh;
    }
}

.team_member_image {
    height: 15rem;
    width: 20rem;
    border-radius: 50%;
    transition: transform 0.6s ease-in-out;
}

@media (max-width: 991px) {
    .team_member_image {
        height: 7.5rem;
        width: 10rem;
    }
}

.member_cards:hover .team_member_image {
    transform: scale(0.5) translateY(-50px);
}

.member_info_card {
    position: absolute;
    bottom: 0%;
    left: 0;
    transform: translateY(55%);
    transition: transform 0.6s ease-in-out;
}

@media (max-width: 991px) {
    .member_info_card {
        transform: translateY(60%);
    }
}

.member_cards:hover .member_info_card {
    transform: translateY(0);
}

/* ===== project cards ===== */
.project_card {
    overflow: hidden;
    border-radius: 1rem;
    position: relative;
    z-index: 0;
}

.project_card_img{
    height: 100%;
    width: 100%;
    transition: transform 0.6s ease-in-out;
}

.project_card_data {
    background: var(--page_background_dark);
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 5;
    transform: translateY(65%);
    transition: transform 0.6s ease-in-out;
}

@media (max-width: 991px) {
    .project_card_data {
        transform: translateY(0%);
    }
}

.project_card:hover .project_card_data {
    transform: translateY(0px);
}

.project_card:hover .project_card_img {
    transform: scale(1.1);
}

/* ===== imapct section ===== */
#impact_section{
    background: var(--page_background);
}

/* ===== contact us ===== */
.contact_detail_card {
    border: 1px solid var(--site_theme);
}

@media (max-width: 991px) {
 .contact_detail_card {
    border: none;
    border-bottom: 1px solid var(--site_theme);
}   
}

/* =====  Animate site elements ====== */
/* Base state: hidden and slightly below */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Active state: visible and in place */
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}