html { scroll-behavior: smooth; }

/* How It Works */
.team-img {
    width: 150px; height: 150px;
    object-fit: cover; filter: grayscale(100%);
    transition: 0.4s ease; border-radius: 50%;
    border: 1px solid transparent;
}
.team-img:hover { filter: grayscale(0%); border-color: #000; }

.steps-card {
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 100%;
}
.steps-card:hover {
    background-color: #000;
    color: #fff !important;
    
    
}
.steps-card:hover .text-muted { color: #ccc !important; }
.steps-card:hover .bi,
.steps-card:hover i {
    color: #fff !important;
}
.steps-card:hover h6,
.steps-card:hover .fw-bold {
    color: #fff !important;
}
.steps-card:hover .text-primary {
    color: #fff !important;
}

/* HERO CAROUSEL */
.hero-carousel .carousel-item img { height: 100vh; object-fit: cover; filter: brightness(50%); }
.carousel-caption { bottom: 45% !important; }
.carousel-caption h3 { letter-spacing: 0.5rem; font-weight: 800; font-size: 3rem; }
.hero-button-overlay { position: absolute; bottom: 30%; left: 50%; transform: translateX(-50%); z-index: 2000; }


/* BACK TO TOP */
.back-to-top-btn {
    position: fixed; bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    background-color: #000; color: #fff !important;
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    z-index: 9999; opacity: 0; visibility: hidden; transition: 0.4s;
}
.back-to-top-btn.show { opacity: 1; visibility: visible; }

/* UTILS */
.section-padding { padding: 100px 0; }
.tracking-widest { letter-spacing: 0.3rem; }
.fade-in { animation: fadeIn 0.8s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* PROJECT DETAIL REFINEMENTS */
.project-detail-standard-hero {
    width: 100%;
    height: 450px; /* Standard fixed height */
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay-subtle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), transparent);
    pointer-events: none;
}

.detail-back-btn {
    border-radius: 0 !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1rem;
    padding: 10px 20px !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #000 !important;
    border: none !important;
}

.detail-back-btn:hover {
    background-color: #000 !important;
    color: #fff !important;
}

/* Typography for Details */
li.small {
    list-style-type: square;
    color: #666;
}


/* Navigation Buttons */
.detail-back-btn {
    border-radius: 0 !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.15rem;
    padding: 12px 24px !important;
    background-color: white !important;
    color: black !important;
    border: 1px solid #eee !important;
    transition: 0.3s ease;
}

.detail-back-btn:hover {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

/* Custom spacing for the home link section */
.italic {
    font-style: italic;
    font-family: 'Georgia', serif;
}

/* INLINE FOOTER STYLES */
.footer-link-inline {
    color: #888 !important;
    text-decoration: none;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s;
}

.footer-link-inline:hover {
    color: #000 !important;
}

.social-icon-inline {
    color: #333;
    font-size: 1.1rem;
    transition: 0.3s;
    text-decoration: none;
}

.social-icon-inline:hover {
    color: #000;
    transform: translateY(-2px);
    display: inline-block;
}

/* Ensure the footer stays at the bottom */
footer {
    border-top: 1px solid #f0f0f0;
    width: 100%;
}

/* Further reduce height of small Bootstrap inputs */
.form-control-sm {
    min-height: calc(1.5em + 0.5rem + 2px) !important;
    padding: 0.15rem 0.5rem !important;
    font-size: 0.85rem !important;
    line-height: 1.2 !important;
}

/* Reduce the space between the label and the input */
.form-label {
    margin-bottom: 0.1rem !important;
}


/* SLIM NAVBAR STYLES */
.navbar-custom {
    /*background-color: rgba(255, 255, 255, 0.8) !important;*/
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);

    padding-top: 0.5rem !important;   /* Reduced from default */
    padding-bottom: 0.5rem !important; /* Reduced from default */
    min-height: 50px;                 /* Sets a definitive slim height */
    background-color: transparent !important;
    transition: all 0.4s ease-in-out;
}

/* Force the dropdown menu background to be solid white */
.dropdown-menu.show {
    background-color: #ffffff !important;
    background: white !important;
    opacity: 1 !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    display: block !important;
    visibility: visible !important;
}

/* Ensure individual items have a white background too */
.dropdown-item {
    background-color: transparent !important; /* Keep items transparent so hover works */
    color: #333 !important;
}

.dropdown-item:hover {
    background-color: #f8f9fa !important; /* light grey on hover */
}

/* FORCED VISIBILITY FOR NAVBAR LINKS */
.navbar-custom .nav-link-custom, 
.navbar-custom .nav-link,
.navbar-custom .dropdown-toggle {
    color: #000000 !important; /* Forces black text */
    opacity: 1 !important;     /* Ensures no transparency on text */
    font-size: 0.75rem !important;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    font-weight: 600 !important;
    padding: 0.5rem 1rem !important;
}

/* SETTINGS DROPDOWN VISIBILITY */
.nav-link-custom-dropdown .dropdown-menu {
    display: none; /* Default hidden */
    position: absolute;
    background-color: #ffffff !important;
    border: 1px solid #eeeeee !important;
    border-radius: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    z-index: 1050; /* Ensures it stays on top */
}

/* Show dropdown on hover (Optional, but helps UX) */
.nav-link-custom-dropdown:hover .dropdown-menu {
    display: block;
}

/* Ensure Dropdown Text is Black */
.dropdown-item {
    color: #333333 !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.1rem;
    padding: 10px 20px !important;
}

.dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: #000000 !important;
}


#signup-alert {
    min-height: 20px; /* Prevents layout jump when message appears */
    font-weight: 600;
    letter-spacing: 0.05rem;
}

.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}


.nav-link-custom-dropdown .dropdown-menu {
    margin-top: 0 !important; /* Remove the gap */
    padding-top: 15px !important; /* Add space inside the menu instead */
    background-color: transparent !important; /* Make the top of the container invisible */
    border: none !important;
    box-shadow: none !important;
}

.nav-link-custom-dropdown .dropdown-menu > li {
    background-color: #ffffff;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

.nav-link-custom-dropdown .dropdown-menu > li:first-child {
    border-top: 1px solid #eee;
    margin-top: 10px; /* This creates the visual gap while keeping the 'bridge' active */
}

.nav-link-custom-dropdown .dropdown-menu > li:last-child {
    border-bottom: 1px solid #eee;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.nav-link-custom-dropdown:hover .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}


/* Highlight for the active authenticated state */
.nav-link-custom:hover {
    color: #000 !important;
    border-bottom: 1px solid #000;
}
/* When the user scrolls down */
.navbar-custom.scrolled {
    background-color: rgba(255, 255, 255, 0.8) !important; /* Glass effect */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    
    padding-top: 0.4rem !important;   
    padding-bottom: 0.4rem !important; 
    min-height: 55px; /* Thinner when scrolling */
}

.brand-logo {
    letter-spacing: 0.4rem !important;
    font-size: 1.1rem !important; /* Slightly smaller for the thin bar */
    color: inherit;
}

.nav-link-custom {
    font-size: 0.75rem !important; /* Smaller font for menu items */
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Fix Dropdown styling for the thin navbar */
.nav-link-custom-dropdown .dropdown-toggle::after {
    display: none; /* Removes the arrow for a cleaner look if desired */
}

.nav-link-custom-dropdown .dropdown-menu {
    border-radius: 0;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: 10px;
    font-size: 0.7rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

.dropdown-item {
    padding: 12px 20px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #000;
}