@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');
 
 *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 body {
    background-color: #1A1A1A;
    color: #F0F0F0;
    font-family: Poppins, sans-serif;
     overflow-x: hidden;
    font-size: 1rem;
  scroll-behavior: smooth;

     @media (width < 720px) {

       margin-block: 0 auto;
       font-size: 1rem;
      scroll-behavior: smooth;
      
    }
 }
.header-bar {
  background-color: #121212;
  color: #F0F0F0;
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: sticky;   /* fixed so we can control visibility */
  top: 0;
  z-index: 1000;
  margin-top: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease; /* smooth hide/show */
}

.header-bar.hide {
  transform: translateY(-100%); /* slide header up */
}

main.wrapper {
  padding-top: 60px; /* equal to header height */
}



.logo {
  font-weight: bold;
  font-size: 2em;
  color: #F0F0F0;
  align-items: center;
  margin-top: 6px;
  letter-spacing: 1px;
  margin-inline: 10px;
  padding-inline: 10px;
  
  @media (width < 720px) {
        font-size: 1.75em;
        text-align: center;
        padding: 0;
        margin-top: 9px;
}
}
/* Styling for the new logo link */
.logo-link {
    text-decoration: none; /* Remove any default underline */
    color: inherit; /* Ensure the link inherits the color of the logo text */
    /* Ensure the link doesn't break your layout */
    display: block; 
}


.right-header-controls {
    display:flex;
    
}

nav {
    height: 60px;
    background-color: #121212;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.links-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}
nav a {
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #f0f0f0;
}
nav a:hover {
   color: #00CED1;
}
nav .about-link {
    margin-right: auto;
}
nav svg {
    fill: #F0F0F0;
    margin-top: 7px;
}
#sidebar-active {
    display: none;
}
.open-sidebar-button, .close-sidebar-button{
    display: none;
}

@media(width < 600px) {
    .links-container {
        flex-direction: column;
        align-items: flex-start;

        position: fixed;
        top: 0%;
        right: -100%;
        z-index: 10;
        width: 300px;

        background-color: #121212;
        box-shadow: -5px 0 5px #00000040;
        transition: .55s ease-out;
    }
    nav a {
        box-sizing: border-box;
        height: auto;
        width: 100%;
        padding: 20px 30px;
        justify-content: flex-start;
    }
    .open-sidebar-button, .close-sidebar-button {
        padding: 20px;
        display: block;
    }
    #sidebar-active:checked ~ .links-container {
        right: 0;
    
    }
#sidebar-active:checked ~ #overlay {
    background-color: #00000040;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9;
    transition: background-color .3s;
}

}

#sun-icon  { display: inline-block; }
#moon-icon { display: none; }

body.light-mode #sun-icon  { display: none; }
body.light-mode #moon-icon { display: inline-block; }
/* --- 1. Style the Toggle Button (Icon) --- */

#mode-toggle {
    /* Reset Button Styles */
    background: none;
    border: none;
    cursor: pointer;
    
    /* Font and Color */
    /* Use the font size to control the size of the SVG */
    font-size: 1.5rem; 
    padding: 0 10px;
    margin-left: 10px;
    
    /* Ensure the color matches the text color by default */
    color: inherit; 
    transition: color 0.2s ease;
}

#mode-toggle:hover {
    color: #00CED1; /* Use your accent color on hover */
}

/* Ensure the SVG's fill color is controlled by the parent button's 'color' property */
 #mode-toggle svg {
            fill: currentColor; /* Inherits the 'color' from the button */
            height: 1.5rem;
            width: 1.5rem;
            margin-bottom: 2.5px;
            vertical-align: middle; /* Fixes misalignment */
        }


/* --- 2. Light Mode Palettes (Inversion) --- */

body.light-mode {
    background-color: #FFFFFF; /* Light background */
    color: #1A1A1A;             /* Dark text */

     .page-title {
    /* Remove the browser default style */
    border: none;

    /* Set it to a very faint gray */
    border-bottom: 1px solid #F0F0F0; 
    }

    footer {
         border-top: 1px solid #F0F0F0;  
    }
}



/* Example: Inverting the review text content container background */
/* You will need to add more inversions for any elements that have hardcoded dark colors */
body.light-mode .review-text-content {
    background-color: #FFFFFF;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.accent-text {
    color: #00CED1; /* Vibrant Cyan/Teal */
}


/* --- Welcome Section Styling (Reusing H1 styles) --- */
.welcome-section {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
 padding-inline: 15px;
   @media(width < 720px){
         padding-inline: 15px;
    }
}

h3 {
    padding-inline: 15px;
    font-size: 1rem;
   @media(width < 720px){
         padding-inline: 15px;
    }
}


p {
    font-size: .9rem;
    margin-block: 5px;
    line-height: 20px;
    padding-inline: 15px;
   @media(width < 720px){
         padding-inline: 15px;
    }

}

.welcome-section .page-title {
    /* Reuse your h1 styles from the homepage */
    border-bottom: 1px solid #333333; /* Example border */
    display: inline-block; /* To make the border only as wide as the text */
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.welcome-section .tagline {
    font-size: 1.2em;
}

.content-wrapper {
    max-inline-size: 1000px;
    margin-inline: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* --- Card Grid Layout --- */
.card-grid {
    display: grid;
    /* Create a responsive grid: 2 columns on desktop, 1 on mobile */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; /* Space between cards */
    max-width: 500px; /* Max width for your grid */
    margin: 50px auto; /* Center the grid on the page */
    padding: 0 20px; /* Padding on the sides */
}

.category-card {
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit text color */
    border-radius: 10px;
    overflow: hidden; /* Important for clean card edges */
    background-color: #222222; /* Slight background for the card */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    transition: transform 0.3s ease; /* Smooth scale on hover */
}

.category-card:hover {
    transform: translateY(-5px); /* Lift card slightly on hover */
}

/* --- Image and Overlay Effect --- */
.card-image-wrapper {
    position: relative; /* For absolute positioning of overlay */
    overflow: hidden; /* Crucial for image zoom effect */
    aspect-ratio: 1 / 1; /* Makes all image wrappers square */
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
    display: block;
    transition: transform 0.5s ease; /* Smooth zoom transition */
    object-position: top center;
}

/* Overlay for text on image */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    color: #F0F0F0;
    padding: 15px 10px;
    text-align: center;
    transform: translateY(100%); /* Initially hide the overlay below the card */
    transition: transform 0.3s ease; /* Smooth slide-up transition */
}

.card-overlay h3 {
    margin: 0;
    font-size: 1.3em;
    color: #F0F0F0;
}

/* --- HOVER EFFECTS --- */
.category-card:hover .card-image-wrapper img {
    transform: scale(1.1); /* Zoom the image by 10% on hover */
}

.category-card:hover .card-overlay {
    transform: translateY(0); /* Slide the overlay up into view on hover */
}

/* --- Responsive Adjustments --- */
@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
        padding: 0 15px;
        max-width: 400px;
    }
    .card-overlay {
        transform: translateY(0); /* <-- Puts it into its final visible position */
    }
}

footer {
    text-align: center;
    padding: 10px;
    width: 100%;
    font-size: .9rem;
    border-top: 1px solid #222;
    margin-top: 20px;  
}








