
@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: 85vh;
        overflow-y: auto;
        background-color: #ffa4a4;
    }
}

@media (max-width: 768px) {
  .nav-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100dvh; 
  }
}

/* slightly smoother for desktop */
@media (min-width: 769px) {
  .nav-menu {
    transition: transform 0.4s ease-in-out;
  }
}

section {
    padding-top: 40px !important;    /* Reduced from 100px */
    padding-bottom: 40px !important; /* Reduced from 100px */
}

#introduction, #eda, #preprocessing, #finetuning, #results, #conclusion {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

.section-alt {
    background-color: #e3ebe3 !important;
    border-top: 1px solid rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    box-shadow: inset 0 10px 20px -10px rgba(0,0,0,0.02), 
                inset 0 -10px 20px -10px rgba(0,0,0,0.02);
}

.section-title {
    display: inline-block;
    position: relative;
    margin-bottom: 25px !important; 
    padding-bottom: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #d63384; 
}

h2 {
    text-align: center !important;
    width: 100%;
}

.card {
    border-radius: 16px !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(5px); /* Frosty glass effect */
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08) !important;
}




body {
    padding-top: 50px !important;
    background-color: #f2f5f2 !important; 
    color: #000000 !important; /* keep body text black */
}

/* this makes the anchor land a bit before the section starts */
section, h2 {
    scroll-margin-top: 100px; 
}

/* NAVIGATION BAR STYLING */
.custom-nav {
    background-color: #ffa4a4 !important;
    border-bottom: none !important;  
    padding: 0.2rem 0 !important;      
    min-height: 50px !important;  
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.custom-nav .navbar-brand, 
.custom-nav .nav-link {
    color: #000000 !important;    
    font-size: 0.85rem;               
    font-weight: 500;
}

.custom-nav .nav-link:hover {
    color: #ffccd5 !important;   
}


.hero-section {
    padding: 2rem 0 1.5rem 0; /* Significantly less vertical space */
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.hero-section h1 {
    font-size: 1.75rem; /* Smaller title */
    color: #1a2e1a; /* Deep forest green-black */
}


/* Headers: black and bold */
h1, h2, h4, .Intro {
    color: #000000 !important; 
    font-weight: 800 !important;
    text-transform: none;
}

/* REPEATING SCROLL EFFECT */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

/* when the section is in view */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* BLUE LINKEDIN BUTTONS */
/* This forces them back to the original Bootstrap Blue */
.btn-outline-primary {
    color: #007bff !important;
    border-color: #007bff !important;
}

.btn-outline-primary:hover {
    background-color: #007bff !important;
    color: #ffffff !important;
}

/* UI COMPONENTS */
.card {
    border-radius: 12px;
    background-color: #ffffff !important; /* White cards pop against the sage bg */
    border: 1px solid #e0e6df !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    color: #000000 !important; /* Ensures text inside cards is also black */
}

/* make the blue buttons match the nature theme */
.btn-outline-primary {
    color: #2d4a31 !important;
    border-color: #2d4a31 !important;
}

.btn-outline-primary:hover {
    background-color: #2d4a31 !important;
    color: #ffffff !important;
}

/* CHART & LEGEND STYLING */
.chart-container {
    width: 550px;
    height: 350px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.legend-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    margin: 10px auto;
}

.x-small {
    font-size: 0.75rem !important;
}

/* force LinkedIn boxes to be blue */
.btn-outline-primary {
    color: #007bff !important;
    border-color: #007bff !important;
}

.btn-outline-primary:hover {
    background-color: #007bff !important;
    color: #ffffff !important;
}

/* conclusion specific styling */
#conclusion h2 {
    letter-spacing: -1px;
}

#conclusion .card {
    transition: transform 0.3s ease;
}

#conclusion .card:hover {
    transform: translateY(-5px);
}

.tracking-widest {
    letter-spacing: 0.15em;
}

/* center all section headers */
h2 {
    text-align: center !important;
    width: 100%;
    margin-bottom: 2rem !important;
}


/* conclusion metric card is centered */
#conclusion .card {
    margin: 0 auto; /* Centers the block itself */
    max-width: 600px;
    border-radius: 20px !important;
    border-bottom: 5px solid #28a745 !important;
    transition: transform 0.3s ease;
}

.tracking-wider {
    letter-spacing: 0.1em;
    display: block;
    text-align: center;
}



/* darker metric boxes */
.metric-box {
    background-color: #dee2e6 !important; 
    color: #212529 !important;      
    border: 1px solid #ced4da;         
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
}


header p, 
.mentor-text, 
#mentor-section p {
    color: #212529 !important; /* Deep charcoal */
    font-weight: 500;
}

#mentor-box {
    color: #000000 !important;
    font-weight: 600;
}

h4 {
    text-align: center !important;
    width: 100%;
}

.eda-spacing {
    margin-top: 4rem !important;
    margin-bottom: 4rem !important;
}


#conclusion .display-5 {
    font-size: 2.2rem !important; /* smaller text for a smaller box */
    line-height: 1.2;
}

#conclusion .card {
    min-height: 180px; /* ensures a consistent shape */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 12px !important;
}

.tracking-wider {
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}


#results .card {
    transition: transform 0.3s ease;
    border-radius: 15px !important;
}

#results .card:hover {
    transform: scale(1.02);
}

.x-small {
    font-size: 0.75rem !important;
}

/* tracking the difference */
#results .display-6 {
    color: #000000;
}

.display-6 {
    font-size: 2rem;
    line-height: 1;
}

.rounded-4 {
    border-radius: 1rem !important;
}


/* styling for the results spotlight */
.border-end {
    border-right: 1px solid #dee2e6 !important;
}

@media (max-width: 991px) {
    .border-end {
        border-right: none !important;
        border-bottom: 1px solid #dee2e6 !important;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.x-small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

#introduction, #eda, #preprocessing, #finetuning, #results, #conclusion {
    padding-top: 20px; /* Internal padding so text isn't touching the navbar */
}

section.reveal {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    scroll-margin-top: 110px; 
}

#results {
    scroll-margin-top: 120px !important;
}


@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #ffa4a4;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        padding: 1rem;
        
        max-height: 60vh; 
        overflow-y: auto; 
    }

    .navbar-nav .nav-item {
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
}

#conclusion {
    scroll-margin-top: 120px !important;
}


.cite-tag {
    display: inline-block;
    background: #2d2d2d;
    color: #fff;
    padding: 0 5px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: bold;
    text-decoration: none;
    margin-left: 3px;
    vertical-align: middle;
}

.cite-tag:hover {
    background-color: #d63384;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


.citation-item {
    padding: 10px;
    border-radius: 8px;
    transition: all 0.5s ease;
    border-left: 3px solid transparent;
}


.citation-item:target {
    background-color: #ffffff !important;
    border-left: 3px solid #d63384;
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.15);
    animation: highlight-pulse 2s ease-out;
}

@keyframes highlight-pulse {
    0% { background-color: #ffeef2; }
    100% { background-color: #ffffff; }
}


.citation-item {
    display: flex;
    align-items: flex-start;
    padding: 4px 0; /* Minimal vertical space */
    font-size: 0.8rem;
    line-height: 1.3;
}

.ref-label {
    font-weight: 800;
    min-width: 30px; /* Aligns the text start point */
    color: #d63384;
}

.ref-text {
    color: #444;
}

.citation-item:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

#btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none; /* Hidden by default */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}

#btn-back-to-top:hover {
  transform: scale(1.1);
}


section {
    padding-top: 100px;
    padding-bottom: 100px;
}


.info-box {
    background-color: #ffffff !important;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    height: fit-content;
}

.border-start-purple {
    border-left: 4px solid #6f42c1 !important;
}

.border-start-pink {
    border-left: 4px solid #d63384 !important;
}

@media (min-width: 768px) {
    .border-end-divider {
        border-right: 1px solid rgba(0, 0, 0, 0.1);
        padding-right: 3rem;
    }
}

@media (max-width: 767px) {
    .border-end-divider {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
}

.info-box {
    background-color: #ffffff !important;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}


.x-small {
    font-size: 0.7rem;
    line-height: 1.2;
    display: block;
}

