/* General Reset and Full Height Setup */
html, body {
  margin: 0;
  padding: 0;
  height: 100%; /* Ensure the page takes the full viewport height */
  overflow-x: hidden; /* Prevent horizontal scrolling */
  display: flex;
  flex-direction: column; /* Flexbox for layout */
  width: 100%; /* Ensure no overflow issues */
}

/* Main Content Container */
.container {
  flex: 1; /* Take up remaining space to push footer down */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center content vertically */
  align-items: center; /* Center content horizontally */
  text-align: center;
  padding: 20px;
  width: 100%; /* Prevent overflow */
  box-sizing: border-box; /* Include padding in width calculations */
}

i {
  font-family: 'Arial', sans-serif;
}

.discord-name {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-style: normal; /* Ensures it's not italic */
}





/* Background and Text Styles */
body {
  font-family: Arial, sans-serif;
  background-color: #121212; /* Dark background */
  color: #ffffff; /* White text for contrast */
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Title Styling */
.title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center; /* Ensure text is centered */
}

.title span {
  color: #00ffcc; /* Highlighted text color */
  word-wrap: break-word; /* Prevent long words from breaking layout */
}

/* Button Styling */
.btn {
  text-decoration: none;
  padding: 10px 20px;
  background-color: #00ffcc;
  color: #121212;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #00e6b8; /* Slightly darker on hover */
  transform: translateY(-2px); /* Slight hover lift */
}

/* Portfolio Section */
.portfolio {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 50px;
  gap: 20px;
}

.card {
  background-color: #1e1e1e;
  color: white;
  width: 300px;
  padding: 20px;
  border-radius: 8px;
  border-color: #ffffff;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0px 8px 10px rgba(0, 0, 0, 0.5);
}

.card h2 {
  font-size: 1.5rem;
}

.card p {
  font-size: 1rem;
}

/* Portfolio Card Icon */
.card i {
  font-size: 2rem; /* Icon size */
  color: #00ffcc; /* Icon color */
  border: #ffffff;
  border-radius: 6px;
  margin-bottom: 10px; /* Space between icon and title */
  display: block;
  text-align: center; /* Center the icon */
}

/* Hover effect for card */
.card:hover i {
  color: #00e6b8; /* Icon color change on hover */
}

/* Popup Styling */
.popup {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay */
  justify-content: center;
  align-items: center;
  opacity: 0; /* Initially hidden */
  animation: fadeInPopup 0.5s ease-out forwards; /* Apply fade-in animation */
}

/* Popup Content Styling */
.popup-content {
  background-color: #2b2b2b;
  padding: 30px;
  border-radius: 6px;
  outline: 3px solid #ffffff;
  width: 600px; /* Or adjust based on image size */
  text-align: center;
  overflow: hidden; /* Hide excess content */
  opacity: 0; /* Initially hidden */
  animation: fadeInPopup 0.5s ease-out forwards; /* Apply fade-in animation */
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #444;
}

.popup-header h3 {
  font-size: 1.8rem;
  color: #00ffcc; /* Highlight color */
  margin: 0;
}

.popup-icon {
  font-size: 2.5rem;
  color: #00ffcc;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #00ffcc;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #ff0000;
}

.popup-message {
  margin-top: 20px;
  font-size: 1.1rem;
  color: #bbb;
}

.message {
  font-weight: bold;
  color: #fff;
  margin-bottom: 8px;
}

.message-time {
  font-size: 0.9rem;
  color: #888;
}

.popup p {
  font-size: 1rem;
  margin-top: 15px;
  color: #ccc;
}

.popup-image {
  padding: 12px;
  width: 100%; /* You can change this to a fixed size like 300px or any percentage */
  max-width: 525px; /* Limits the width to a maximum value */
  margin-bottom: 20px; /* Space between image and text */
  border-radius: 8px; /* Optional: to make the image corners rounded */
  object-fit: cover; /* Optional: maintain aspect ratio while filling the space */
  border-radius: 12px;
}

/* Make the embedded YouTube video responsive */
.popup-content iframe {
  padding: 12px;
  width: 100%; /* You can change this to a fixed size like 300px or any percentage */
  max-width: 525px; /* Limits the width to a maximum value */
  margin-bottom: 20px; /* Space between image and text */
  border-radius: 8px; /* Optional: to make the image corners rounded */
  object-fit: cover; /* Optional: maintain aspect ratio while filling the space */
  border-radius: 12px;
}

/* Fade-in animation for popup */
@keyframes fadeInPopup {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Fade-out animation for popup */
@keyframes fadeOutPopup {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Stats Section */
.stats-container {
  display: flex;
  flex-direction: row; /* Layout in a row */
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  gap: 20px; /* Add space between each stat item */
}

.stat-item {
  background-color: #2b2b2b;
  color: white;
  padding: 15px;
  border-radius: 8px;
  margin: 10px 0;
  width: 200px; /* Make each item a fixed width */
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
}

.stat-item i {
  font-size: 3rem; /* Icon size */
  color: #00ffcc; /* Icon color */
  margin-bottom: 10px;
}

.stat-text {
  font-size: 1.2rem;
  color: white;
  text-align: center;
}

.stat-item:hover {
  box-shadow: 0px 8px 10px rgba(0, 0, 0, 0.5);
}

/* Header Styling */
.header {
  display: flex;
  justify-content: center; /* Center logo */
  align-items: center;
  padding: 20px 40px; /* Adjust padding as needed */
  position: relative;
  background-color: #121212; /* Dark background color for the header */
  border-bottom: 2px solid #00ffcc; /* Line under the header */
}

/* Logo Styling */
.header .logo {
  text-align: center; /* Center the logo */
}

.header .logo img {
  max-width: 200px; /* Adjust the max width of the logo */
  height: auto;
}

/* Contact Button Container Styling */
.contact-btn-container {
  position: absolute; /* Position the button in the top-right corner */
  right: 40px; /* Adjust spacing from the right */
  top: 50%; /* Vertically center the button */
  transform: translateY(-50%); /* Exactly center the button vertically */
}

/* Contact Button Styling */
.contact-btn {
  text-decoration: none;
  padding: 10px 20px;
  color: #ffffff;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-btn:hover {
  transform: translateY(-2px); /* Slight lift effect */
  border: 2px solid #00e6b8/* Add border around the button */
}

/* Discord Button Styling */
.discord-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #5865F2; /* Discord Blue */
  color: white;
  font-size: 1rem;
  font-weight: bold;
  padding: 10px 100px; /* Reduced height by decreasing top/bottom padding and increased width with more left/right padding */
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
}

.discord-btn:hover {
  background-color: #4f58d4; /* Darker blue on hover */
  transform: translateY(-2px); /* Slight lift effect */
}

/* Icon in the Button */
.discord-btn i {
  margin-right: 12px; /* Increased space between icon and text */
  font-size: 1rem; /* Icon size */
}

/* Optional: Icon animation */
.discord-btn:hover i {
  animation: iconPulse 0.5s infinite alternate; /* Pulsing animation on hover */
}

/* Pulse effect on icon when hovered */
@keyframes iconPulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

.links-container {
  margin-top: 20px; /* 10px below header */
  margin-left: 20px;
  margin-right: 20px;
  width: calc(100% - 40px); /* full width minus 10px sides */
  box-sizing: border-box;
  max-height: calc(100vh - 80px); /* adjust if header height is about 70px */
  overflow-y: auto; /* scroll if list too long */
}

.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.link-item {
  display: flex;
  align-items: center;
  background: #1e1e1e;
  margin: 8px 0;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.link-item:hover,
.link-item:focus {
  background-color: #333;
}

.link-color-bar {
  width: 6px;
  height: 40px;
  border-radius: 4px;
  margin-right: 16px;
  flex-shrink: 0;
}

.link-logo {
  width: 36px;
  height: 36px;
  margin-right: 16px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.link-title {
  font-size: 1.2rem;
  color: #00ffcc;
  font-weight: bold;
}


@media (max-width: 768px) {
  .title {
    font-size: 2rem;
  }

  .popup-content {
    width: 90%;
    padding: 20px;
  }

  .stats-container {
    flex-direction: column;
    gap: 10px;
  }

  .stat-item {
    width: 90%;
  }

  .portfolio {
    flex-direction: column;
    margin: 20px 0;
  }

  .card {
    width: 90%;
    margin: 10px 0;
  }

  .discord-btn {
    width: 90%;
    padding: 10px;
  }

  .contact-btn-container {
    position: static;
    margin-top: 10px;
    text-align: center;
  }

  .header {
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
  }

  .links-container {
    margin: 10px;
    width: calc(100% - 20px);
  }

  .link-item {
    flex-direction: row;
    padding: 10px;
  }

  .popup-image {
    max-width: 100%;
    height: auto;
  }

  .popup-content iframe {
    max-width: 100%;
    height: auto;
  }
}

#mobile-warning {
  display: none;
  background: #111;
  color: #fff;
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
}

/* Show warning on screens smaller than 768px */
@media (max-width: 768px) {
  body > *:not(#mobile-warning) {
    display: none !important;
  }

  #mobile-warning {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
