/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Layout */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f4f4f4, #e0e0e0);
  color: #0d1117;
  transition: background 0.4s, color 0.4s;
}

body.dark-mode {
  background: linear-gradient(135deg, #0d1117, #1a1f26);
  color: #f4f4f4;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header p {
  font-size: 14px;
  white-space: nowrap;
}

.header button {
  flex: 1; /* Ensure all buttons take equal width */
  min-width: 120px; /* Set a minimum width for consistency */
  background: linear-gradient(45deg, #007bff, #00d4ff);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
  text-align: center;
}

.header button:hover {
  background: linear-gradient(45deg, #0056b3, #003f7f);
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.5);
}

@media (max-width: 600px) {
  .header {
    flex-direction: row; /* Ensure buttons are in a row */
    flex-wrap: nowrap; /* Prevent buttons from wrapping */
    overflow-x: auto; /* Allow horizontal scrolling if necessary */
  }

  .header button {
    flex: none; /* Prevent buttons from stretching too much */
    width: auto; /* Ensure buttons take up only as much space as needed */
    margin: 0 5px; /* Add spacing between buttons */
  }
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.card img {
  width: 150px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.card h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.card p {
  font-size: 16px;
  margin: 5px 0;
}

/* Social Links */
.card a {
  margin: 5px;
  font-size: 24px;
  color: #007bff;
  transition: color 0.3s;
}

.card a:hover {
  color: #0056b3;
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  color: #ccc;
}

.footer button {
  flex: 1; /* Ensure all buttons take equal width */
  min-width: 120px; /* Set a minimum width for consistency */
  background: linear-gradient(45deg, #007bff, #00d4ff);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
  text-align: center;
}

.footer button:hover {
  background: linear-gradient(45deg, #0056b3, #003f7f);
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.5);
}

@media (max-width: 600px) {
  .footer {
    flex-direction: row; /* Ensure buttons are in a row */
    flex-wrap: nowrap; /* Prevent buttons from wrapping */
    overflow-x: auto; /* Allow horizontal scrolling if necessary */
  }

  .footer button {
    flex: none; /* Prevent buttons from stretching too much */
    width: auto; /* Ensure buttons take up only as much space as needed */
    margin: 0 5px; /* Add spacing between buttons */
  }
}

/* Buttons */
.button {
  background: linear-gradient(45deg, #007bff, #00d4ff);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  margin: 5px;
  transition: background 0.3s, box-shadow 0.3s;
}

.button:hover {
  background: linear-gradient(45deg, #0056b3, #003f7f);
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.5);
}

@media (max-width: 600px) {
  .button {
    flex: 1;
    min-width: 120px;
    width: 48%; /* Ensure two buttons fit side by side */
  }
}

/* Dark Mode Switch */
.switch {
  position: relative;
  width: 50px;
  height: 24px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: background-color 0.4s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.4s;
}

input:checked + .slider {
  background-color: #007bff;
}

input:checked + .slider:before {
  transform: translateX(26px);
}
