html {
    position: relative;
    scroll-behavior: smooth;
}

body {
    height: 150%;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    margin: 0;
    line-height: 1.5;
}

/* CSS Variables for consistency (from previous request) */
:root {
    --color-primary: #007bff;
    --color-warning: #ffc107;
    --color-text-dark: #343a40;
    --color-bg-dark: #212529;
}

/* 1. Custom Slideshow Styling */
.hero-slideshow {
    /* Ensures the container has a fixed height for the images */
    height: 600px;
    max-height: 80vh; /* Responsive maximum height */
    overflow: hidden;
    position: relative; /* Required for w3-display-container */
    background-color: var(--color-bg-dark); /* Fallback */
}

.hero-slideshow img {
    /* Ensures the image covers the container without distortion (prevents empty space) */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease; /* For smooth transitions between slides */
}

/* 2. Custom Navbar Styling */
.nav-link {
    transition: all 0.2s;
    font-weight: 500;
}

.nav-link:hover {
    background-color: transparent !important; /* Prevent hover background on certain links */
    color: var(--color-warning) !important;
}

.category-bar a {
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* 3. Slideshow Navigation Buttons */
.slide-nav-button {
    border: none;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slide-nav-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* 4. Mobile Menu Fix (Using custom transform method) */
#mobile-nav-links {
    transition: transform 0.3s ease-out, visibility 0.3s ease-out;
    transform: translateX(-100%);
    position: fixed;
    z-index: 100;
    top: 0;
    height: 100%;
    width: 70%; /* Mobile sidebar width */
    visibility: hidden;
}

#mobile-nav-links.w3-show {
    transform: translateX(0);
    visibility: visible;
}

.overlay-dim {
    transition: opacity 0.3s ease-out;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.overlay-dim.w3-show {
    opacity: 1;
    pointer-events: auto;
}

#topBtn {
    display: none;
    position: fixed;
    bottom: 250px;
    right: 20px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: red;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 4px;
}

#topBtn:hover {
    background-color: #555;
}

/* 1. Base State: Ensure the text is invisible and blurred initially */
.raindrop-text {
  /* Set initial blur and scale (a small "pop" effect) */
  filter: blur(10px) brightness(1.5);
  opacity: 0;
  transform: scale(0.98);
  
  /* Prepare for animation/transition */
  transition: 
    filter 1.5s ease-out, 
    opacity 1.5s ease-out, 
    transform 1.5s ease-out;
}

/* 2. Active State: This class will be added by JavaScript */
.raindrop-text.loaded {
  /* Final, clear state */
  filter: blur(0px) brightness(1);
  opacity: 1;
  transform: scale(1);
}

#profile-form {
    height: 100vh;
}

@media only screen and (max-width: 600px) {
    /* Styles for mobile phones go here */
    footer {
        display: none;
    }
    #profile-form {
        height: 120vh;
        margin-bottom: 40px;
    }
}