body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
}


.brand-text, .tm-text {
    font-family: "Arial", sans-serif !important; /* Set to normal Arial */
    font-weight: bold; /* Keeps the text strong */
    color: #FFFFFF; /* Ensures pure white color */
}



/* Navbar Styling */
.navbar {
    background: linear-gradient(45deg, rgba(0, 0, 0, 1), rgba(10, 10, 10, 1));
    box-shadow: 0px 0px 50px rgba(0, 0, 255, 1);
    height: 55px; /* Maintained height */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Fixes alignment */
    padding: 0 20px;
}

/* Fix Navbar Brand Alignment */
.navbar-brand {
    font-size: 28px;
    font-weight: bold;
    color: #FFFFFF !important;
    font-family: "Arial", sans-serif;
    position: relative; /* Keeps it properly positioned */
    left: 20px; /* Moves brand name slightly to the left */
    top:-15px;
    
}

/* Fix Navbar Links Alignment */
.navbar-nav {
    display: flex;
    align-items: center;
    justify-content: center; /* Ensures menu stays on the right */
    gap:-55px;
    width:auto;
    position:relative;
    top:-15px;
}

/* Navbar Links - Styled in Comic Sans MS */
.navbar-nav li a {
    font-family: "Comic Sans MS", cursive, sans-serif;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: bold;
    padding: 10px 15px;
   box-sizing:border-box;
list-style:none;
 text-transform: capitalize;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

/* Hover Effect for Navbar Links */
.navbar-nav li a:hover {
    color:   #66B2FF; /* Changes text color to gold (or any desired color) */
    background:none;
    border:none;
    outline:none;
}



/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body font and background */
body {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  background-color: #000;
  color: #fff;
}

/* Search Form in Navbar */
.navbar form[role="search"] {
  display: flex;
  align-items: center;
  margin-left: auto;
  position: relative;
top:-10px;  
    gap:30;
    width:auto;
  border-radius: 30px;
  background-color: #fff;
  padding: 4px 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Input group wrapper for rounded pill effect */
.navbar form[role="search"] .input-group {
  display: flex;
  border-radius: 30px;
  overflow: hidden;
}

/* Input field */
.navbar form[role="search"] input[type="search"] {
  border: none;
  outline: none;
  padding: 8px 12px;
  font-size: 16px;
  border-radius: 0;
  width: 250px;
  font-family: inherit;
}

/* Submit button */
.navbar form[role="search"] button {
  background-color: transparent;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Magnifying icon */
.navbar form[role="search"] i {
  color:rgba(0, 0, 255, 1);
  font-size: 16px;
}

/* Optional focus style */
.navbar form[role="search"] input[type="search"]:focus {
  box-shadow: none;
}
@media (max-width: 768px) {
  .navbar form[role="search"] {
    display: none;
  }
}


/* Mobile-specific styles */
@media (max-width: 768px) {
    .navbar-nav {
        display: none; /* Initially hides the menu */
    }
  .navbar-brand {
        top: 10px; /* Moves the brand logo downward */
  left: 5px;    
  display: block; /* Ensures visibility */
        text-align: center; /* Optional: Center text */
    }
    .navbar-nav.active {
        display: flex; /* Displays the menu when toggled */
        flex-direction: column;
        position: absolute;
        top: 50px;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        width: 200px;
        border-radius: 5px;
    }

    /* Show toggle button only on mobile */
    .toggle {
        display: block;
    }
}

/* Hide toggle button in desktop view */
@media (min-width: 769px) {
    .toggle {
        display: none;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Comic Sans MS", sans-serif; /* Apply Comic Sans MS globally */
}

body {
    background-color: #000000; /* Deep midnight black */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Sidebar Menu - Positioned on the Right */
.slide {
    height: 100%;
    width: 180px;
    position: fixed;
    right: -180px; /* Initially hidden */
    top: 0;
    background-color: #000000; 
    transition: 0.5s ease-in-out; /* Smooth sliding animation */
    padding-top: 20px;
}


/* Sidebar Header (Menu) */
h1 {
    color: #FFFFFF; /* Pure white */
    font-weight: bold; /* Makes text bold */
    font-size: 24px; /* Adjust size if needed */
    text-align: center;
    padding: 10px 0;
    pointer-events: none;
}


/* Sidebar Links */
ul {
    padding: 0;
}

ul li {
    list-style: none;
    padding: 10px;
    text-align: center;
}

ul li a {
    color: #FFFFFF; 
    font-weight: bold;
    display: block;
    text-transform: capitalize;
    text-decoration: none;
    transition: 0.2s ease-out;
    padding: 8px;
}

ul li:hover a {
    color:   #66B2FF; /* Changes text color to gold (or any desired color) */
    background:none;
    border:none;
    outline:none;

}

/* Toggle Button - Positioned on the Right */
.toggle {
    position: absolute;
    height: 24px; /* Smaller button */
    width: 28px;
    top: 18px;
    right: 15px; /* Moved to right */
    z-index: 2;
    cursor: pointer;
    background: none;
    border: none;
}

/* Smaller Toggle Lines */
.toggle .common {
    position: absolute;
    height: 2px; /* Thinner lines */
    width: 24px;
    border-radius: 50px;
    background-color: #FFFFFF;
    transition: 0.3s ease;
}

.toggle .topline {
    top: 6px;
    right: 50%;
    transform: translateX(50%);
}

.toggle .bottomline {
    top: 16px;
    right: 50%;
    transform: translateX(50%);
}

/* Animation for Sidebar Slide */
input {
    display: none;
}

input:checked ~ .slide {
    right: 0; /* Sidebar slides in from the right */
    box-shadow: 0px 0px 50px rgba(0, 0, 255, 1); }

input:checked ~ .toggle .topline {
    top: 10px;
    width: 24px;
    transform: rotate(-45deg);
}

input:checked ~ .toggle .bottomline {
    top: 10px;
    width: 24px;
    transform: rotate(45deg);
}


* {
    box-sizing: border-box;
}

/* ———————————————— */
/* BODY (merged & cleaned) */
/* ———————————————— */
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;     /* pick your font */
  background-image: url('Images/hd wallpaper9.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  color: #fff;
}


ul, li {
    list-style: none;
    padding: 0;
    margin: 10px;
}

.grid-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Auto-adjusting grid */
    grid-auto-rows: auto; /* Natural height adjustment */
    gap: 15px; /* Spacing between images */
    padding: 20px;
    margin-top: 100px; /* Adds space between navbar and images */
}


.grid-wrap ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive image size */
    grid-gap: 0px; /* Adjusted spacing */
    justify-content: center; /* Center alignment */
    margin: 0 auto;
    padding: 0px;
    margin-top: 80px; 
}

.grid-wrap ul li {
    position: relative;
}




.grid-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Auto-adjusting columns */
    grid-auto-rows: auto; /* Allows natural height adjustment */
    gap: 15px; /* Adds spacing between images */
    padding: 10px;
    
}

/* Ensures images vary in size for a dynamic look */
.grid-wrap ul li {
    list-style: none;
    overflow: hidden;
}

/* Randomized grid span for a more organic */
.grid-wrap ul li:nth-child(odd) {
    grid-row: span 4;
    grid-column: span 4;
}

.grid-wrap ul li:nth-child(even) {
    grid-row: span 3;
    grid-column: span 3;
}

/* Image styling */
.grid-wrap ul li img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px; /* Gives images a softer edge */
    object-fit: cover; /* Ensures images fill their space neatly */
}


/* Hover effect: Make image larger on hover */
.grid-wrap ul li:hover img {
    transform: scale(1.05); /* Enlarges image by 10% */
    transition: transform 0.5s ease-in-out; /* Smooth transition */
    cursor: pointer;
}


/* Ensure responsiveness */
@media (max-width: 600px) {
    .grid-wrap ul {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}
/* Container for buttons inside each gallery item */
.button-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

/* Base button style (applies to both) */
.grid-wrap a {
  display: flex; /* center icon/image inside */
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin-top: 13px;
  background-color: transparent;
  color: #fff;
  text-decoration: none;
  border-radius: 50%;
  font-size: 18px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Profile picture container */
.grid-wrap a.profile-link {
  overflow: hidden;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

/* Profile picture fills the circle perfectly */
.grid-wrap a.profile-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
   
.like-btn {
  border-radius: 20%;
  background: none;
  color: white; /* thumbs-up always white */
  font-size: 20px;
  cursor: pointer;
  margin-top: 12px;  
  transition: all 0.3s ease;
}

.like-btn:hover {
  /* electric blue border glow */
  box-shadow: 0 0 12px 2px #00f;

  /* make it bigger and move downward */
  transform: scale(1.3) translateY(6px);
}

/* ———————————————— */
/* POPUP STYLES */
/* ———————————————— */

/* wrapper that slides in/out */
.popup-overlay {
  position: fixed;
  top: 100px;                   /* align near top, not 100px */
  right: -400px;               /* start off-screen; match your .popup-box width */
  width: 280px;                /* must match or slightly exceed .popup-box width */
  transition: right 0.6s ease;
  z-index: 999;
  pointer-events: none;        /* disable clicks until visible */
}

/* when visible */
.popup-overlay.show {
  right: 5px;
  pointer-events: auto;        /* re-enable clicks */
}

/* actual popup content */
.popup-box {
 
  background: #fff;
  color: #000;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  width: 250px;
 text-align: center;
  max-height: 300px;
  overflow-y: auto;
  position: relative;
}

.popup-box {
  max-height: 300px;
  overflow-y: auto;

  /* Firefox */
  scrollbar-width: none;
  /* IE 10+ */
  -ms-overflow-style: none;
}

/* Chrome, Safari, Opera */
.popup-box::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.popup-box h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.popup-box button {
  display: block;
  width: 100%;
  margin: 6px 0;
  padding: 8px;
  border: none;
  background-color: rgba(0, 0, 255, 1);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.popup-box button:hover {
  background-color: rgba(0, 0, 150, 1);
}

.close-btn {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: #333;
}
