@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500&display=swap');

/* Add this to the top of your CSS file, replacing old global styles */
:root {
  /* Light Mode Colors (Default) */
  --primary-color: #007BFF;
  --secondary-color: #00BFFF;
  --background-dark: #F4F7FC; /* Light gray for background */
  --card-dark: #FFFFFF;       /* White for cards */
  --text-primary: #121212;     /* Dark text */
  --text-secondary: #555555;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --glow-color: rgba(0, 123, 255, 0.3);
}

body.night-mode {
  /* Dark Mode Colors */
  --primary-color: #007BFF;
  --secondary-color: #00BFFF;
  --background-dark: #121212;  /* Dark background */
  --card-dark: #1E1E1E;        /* Dark gray for cards */
  --text-primary: #EAEAEA;      /* Light text */
  --text-secondary: #A0A0A0;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --glow-color: rgba(0, 123, 255, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh; /* Ensure body takes at least the full viewport height */
  display: flex;
  flex-direction: column;
  font-family: 'Quicksand', sans-serif;
  background: var(--background-dark);
  color: var(--text-primary);
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  flex-grow: 1; /* This is the key: it makes the container expand */
}
.all-profiles-div {
  display: flex;          /* Tells the container to arrange its children in a row */
  flex-wrap: wrap;        /* Allows the cards to wrap to the next line if there isn't enough space */
  justify-content: center;/* Centers the cards horizontally */
  gap: 2em;               /* Adds consistent spacing between all cards */
  padding: 40px 10px;     /* Adds some breathing room around the grid of cards */
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}
/* Replace your existing nav styles */
/* Replace all existing 'nav', '.input-div', and '.img-div' styles with this block */

nav {
  width: 90%;
  margin: 0 auto;
  padding: 15px 0;
  display: grid; /* Switched to Grid */
  grid-template-columns: 1fr auto 1fr; /* Create 3 columns (left, center, right) */
  align-items: center;
  gap: 1rem; /* Adds space between the sections */
  
  /* Sticky and glassmorphism styles from before */
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-dark);
}

.input-div {
  /* This will be placed in the center column automatically */
  position: relative;
  display: flex;
  justify-self: center; /* Center the search bar in its grid area */
}

.img-div {
  /* This is the third element, so it goes in the third column */
  display: flex;
  justify-content: flex-end; /* Align the icons to the right */
  align-items: center;
  gap: 1rem;
}

/* These styles remain the same but are good to keep with the block */
.img-div img {
  transition: transform 0.3s ease; /* Softer transition */
  height: 30px;
}

.img-div img:hover {
  transform: scale(1.15);
}

.github-img {
  background-color: white;
  border-radius: 50%;
}
/* Replace your existing .search-icon-container styles */
.search-icon-container {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); /* Gradient background */
  border-radius: 0 1.1rem 1.1rem 0;
  padding: 5px 15px;
  position: absolute;
  top: 50%;
  right: 0px;
  transform: translateY(-50%);
  height: 100%; /* Make it full height of the input */
  display: flex; /* Center the icon */
  align-items: center;
  justify-content: center;
}

/* Update search input for new theme */
.search-input {
  border: 1px solid var(--card-dark);
  outline: none;
  font-size: 1rem;
  width: min(60vw, 460px);
  padding: 0.8rem; /* Increased padding */
  padding-left: 20px;
  border-radius: 1.1rem;
  background-color: var(--card-dark); /* Match theme */
  color: var(--text-primary); /* Match theme */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--glow-color); /* Glow effect on focus */
}

.search-input::placeholder {
  color: var(--text-secondary);
}

/* Replace your existing .profile-div and its child element styles */
.profile-div {
  width: 13em;
  margin: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 2em 1em 1.5em 1em;
  background: linear-gradient(145deg, #2a2a2a, var(--card-dark)); /* Subtle gradient */
  color: var(--text-primary);
  border-radius: 12px; /* Softer radius */
  border: 1px solid #333;
  box-shadow: 0 8px 30px var(--shadow-color);
  position: relative;
  overflow: hidden; /* Important for the glow effect */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-div:hover {
  transform: translateY(-8px) scale(1.03); /* Lift up effect */
  box-shadow: 0 12px 40px var(--shadow-color), 0 0 20px var(--glow-color); /* Add glow */
}

.profile-div img {
  height: 100px;
  width: 100px; /* Ensure it's a circle */
  object-fit: cover; /* Prevent image stretching */
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 15px var(--glow-color); /* Add a default glow */
  transition: all 0.3s ease;
}

.profile-div:hover img {
  transform: scale(1.05);
  border-color: var(--secondary-color); /* Brighter border on hover */
  box-shadow: 0 0 25px var(--glow-color);
}

.profile-div p:nth-child(2) {
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
  text-align: center;
  margin: 1em auto 0.2em auto; /* Adjusted margin */
}

.profile-div p:nth-child(3) {
  font-size: 1em;
  cursor: pointer;
  color: var(--text-secondary); /* Use variable */
  margin-bottom: 1.5em; /* Add space before button */
}

.profile-div>a:nth-child(4) {
  width: 100%;
}

.profile-div button {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: #fff; /* White text for contrast */
  width: 100%;
  margin: 0; /* Remove top margin */
  height: 2.5em; /* Taller button */
  border-radius: 8px; /* Softer radius */
  border: none;
  font-size: 1.05em;
  font-weight: bold; /* Bolder font */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-div button:hover {
  transform: scale(1.05); /* Enlarge on hover */
  filter: brightness(1.2); /* Make it brighter */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.footer-container {
  max-width: 1170px;
  margin: auto;
}

.row {
  display: flex;      /* This is the key fix: arranges the columns horizontally */
  flex-wrap: wrap;    /* Allows columns to stack on smaller screens */
  margin: 0 -15px;    /* Adjust for padding on columns */
}

.footer-col {
  width: 50%;         /* On medium screens, two columns per row */
  padding: 0 15px;
  margin-bottom: 30px;
}

/* On larger screens, we can have more columns if you add them */
@media(min-width: 768px) {
  .footer-col {
    width: 33.33%; /* Example for a three-column layout */
  }
}

/* On small screens, each column takes full width */
@media(max-width: 574px) {
  .footer-col {
    width: 100%;
  }
}
.footer {
  background-color: var(--card-dark); /* Match card background */
  padding: 70px 0;
  border-top: 1px solid #333; /* Add separator line */
}

.footer-col h4 {
  font-size: 18px;
  color: var(--text-primary); /* Use variable */
  text-transform: capitalize;
  margin-bottom: 35px;
  font-weight: 500;
  position: relative;
}

/* Use primary theme color for the underline */
.footer-col h4::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  background-color: var(--primary-color); /* Use variable */
  height: 2px;
  box-sizing: border-box;
  width: 50px;
}

.footer-col ul li p,
.footer-col ul li p a {
  font-size: 16px;
  text-transform: capitalize;
  text-decoration: none;
  font-weight: 300;
  color: var(--text-secondary); /* Use variable */
  display: block;
  transition: all 0.3s ease;
}

.footer-col ul li p:hover,
.footer-col ul li p a:hover {
  color: var(--text-primary); /* Use variable */
  padding-left: 8px;
}

.footer-col .social-links a {
  display: inline-block;
  height: 40px;
  width: 40px;
  background-color: #333; /* Darker background */
  margin: 0 10px 10px 0;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  color: var(--text-secondary); /* Use variable */
  white-space: nowrap;
  transition: all 0.3s ease;
}

.footer-col .social-links a:hover {
  color: #fff;
  background-color: var(--primary-color); /* Use variable */
  transform: translateY(-3px);
}
.no-profile-div {
  width: 100%;
  margin-top: 60px;
  display: none; /* This is the key: it hides the element by default */
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: var(--text-primary);
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
}

.no-profile-div > p {
  margin-top: 1em;
  font-size: 1em;
  font-weight: normal;
  color: var(--text-secondary);
}