/* ============================= */
/*       Global Styles           */
/* ============================= */

html, body {
    height: 100%;
    margin: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Smooth Page Fade-in Effect */
body {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Page Slide-Up Transition */
body.fade-out {
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    pointer-events: none;
}

/* ============================= */
/*       Layout & Containers     */
/* ============================= */

.main-content {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* ============================= */
/*         Navbar Styles         */
/* ============================= */

#navbar {
    transition: background-color 0.5s ease, box-shadow 0.3s ease;
    background-color: transparent !important;
}

/* Navbar Expanded State */
#navbar.expanded {
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navbar Link Styling */
#navbar .nav-link {
    color: #000 !important;
}

.navbar-brand {
    transition: opacity 0.3s ease-in-out;
}

/* ============================= */
/*       Button Styling          */
/* ============================= */

.btn-xl {
    padding: 1.5rem 3rem;
    font-size: 2rem;
    border-radius: 50rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.btn-xl::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease-in-out, height 0.4s ease-in-out;
    z-index: 0;
}

.btn-xl:hover {
    transform: scale(1.1);
}

.btn-xl:hover::before {
    width: 0;
    height: 0;
}

@media (max-width: 576px) {
    /* Adjust Large Button Size */
    .btn-xl {
        padding: 1rem 2rem;
        font-size: 1.5rem;
    }
}

/* ============================= */
/*        Blog Page Styles       */
/* ============================= */

/* Card Image Styling */
.card-img-top {
    height: 300px;
    object-fit: cover;
}

@media (max-width: 576px) {
    /* Adjust Card Image for Smaller Screens */
    .card-img-top {
        height: 200px;
        object-fit: cover;
        width: 100%; /* Ensures it fills the container width */
    }
}

/* ============================= */
/*       Cool Link Styling       */
/* ============================= */

.cool-link {
    position: relative;
    display: inline-block;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.cool-link:hover {
    color: #fff;
    cursor: pointer;
}

/* Underline Hover Effect */
.cool-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #6c757d;
    transition: width 0.3s ease;
}

.cool-link:hover::after {
    width: 100%;
}
