@font-face {
  font-family: "EternalsFont";
  src: url("../Fonts/Centauri/Centauri.otf") format("truetype");
}
@font-face {
  font-family: "Centauri";
  src: url("../Fonts/elements-eternals-futuristic-space-display-typeface-GK6TQUD-2019-09-23/Eternal.ttf")
    format("truetype");
}
@font-face {
  font-family: "MBF";
  src: url("../Fonts/font/MBFSpace.ttf") format("truetype");
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap");

/* GENERAL STYLING */
:root {
  --glow-cyan: #00eaff;
  --glow-purple: #bf40ff;
  --glow-green: #00ff37;
  --glow-gold: #ffd700;
  --glow-pink: #ff1493;
  --glow-orange: #50ffc5;
}

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: url("../Images\ &\ Videos/Projects.png") no-repeat center center
    fixed;
  background-size: cover;
  font-family: "Roboto Mono", monospace;
  overflow-y: auto;
}

.menu-bar {
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.menu-list {
  list-style-type: none;
  margin: 0;
  margin-right: 0;
  display: flex;
  align-items: center;
  padding-top: 0px;
  justify-content: center;
}

.menu-list li {
  margin: 0 30px;
}


.menu-button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  padding: 10px;
  transition: color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.menu-button a {
  color: #fff;
  text-decoration: none;
  position: relative;
  z-index: 1;
  font-family: "MBF";
  font-size: 23px;
}

.menu-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transition: all 0.5s ease;
  z-index: 0;
}

.menu-button:hover::before {
  left: 100%;
}

.menu-button:hover {
  color: #f0f0f0;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.7), 0 0 20px rgba(0, 255, 255, 0.5),
    0 0 40px rgba(0, 255, 255, 0.4);
}

.menu-button a:hover {
  color: #00ffff;
}

/* --- Custom Neon Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 22, 41, 0.5);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--glow-cyan), var(--glow-purple));
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #33ffff, #d966ff);
}

.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../Images\ &\ Videos/Projects.png");
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/* Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease, transform 0.5s ease;
}

#loader video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide main content initially */
.hidden-content {
  opacity: 0;
  visibility: hidden;
  transition: opacity 6s ease, transform 0.5s ease;
}

/* Fade in when ready */
.show-content {
  opacity: 1;
  visibility: visible;
  transition: opacity 4s ease, transform 0.5s ease;
  width: 100%;
  height: 100%;
}

/* --- CARD CONTAINER (HORIZONTAL LAYOUT) --- */
.card-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 100px 100px 40px 100px;
  width: 100%;
  box-sizing: border-box;
}

/* --- TALLER PROJECT CARD --- */
.project-card {
  background: rgba(10, 22, 41, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid
    color-mix(in srgb, var(--glow-color, var(--glow-cyan)) 50%, transparent);
  border-radius: 20px;
  padding: 20px; /* Reduced padding */
  color: #f0f0f0;
  width: 310px; /* Reduced width */
  min-height: 500px; /* Reduced height */
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  box-shadow: 0 0 15px
    color-mix(in srgb, var(--glow-color, var(--glow-cyan)) 60%, transparent);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* INTENSIFIED HOVER GLOW */
.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--glow-color, var(--glow-cyan));
  box-shadow: 0 0 25px var(--glow-color, #00eaff),
    0 0 50px color-mix(in srgb, var(--glow-color, #00eaff) 50%, transparent);
}

.card-main-content {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-direction: column;
  text-align: center;
  position: relative;
  flex-grow: 1;
}

/* --- AWARD ICONS SECTION --- */
.card-awards {
  position: absolute;
  top: -10px;
  right: -10px;
  display: flex;
  gap: 8px;
  z-index: 2; /* Ensure awards are on top */
}
.award-icon {
  font-size: 1.4em;
  color: var(--glow-gold);
  text-shadow: 0 0 5px var(--glow-gold), 0 0 10px black;
  cursor: pointer;
  position: relative;
}
/* Tooltip styles */
.award-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--glow-color, var(--glow-cyan));
  color: #050510;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-family: "Orbitron", sans-serif;
  font-weight: bold;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  box-shadow: 0 0 10px var(--glow-color, var(--glow-cyan));
  z-index: 10;
}
.award-icon:hover::after {
  opacity: 1;
  visibility: visible;
}

.card-logo {
  width: 90px; /* Reduced size */
  height: 90px; /* Reduced size */
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: transform 0.3s;
  margin-bottom: 15px;
}
.project-card:hover .card-logo {
  transform: scale(1.05);
}

.card-text-content {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
      }

/* UPDATED: ENHANCED TITLE GLOW */
.card-title {
  font-family: "Centauri", "Orbitron", sans-serif;
  font-size: 2em;
  font-weight: bold;
  margin: 0 0 15px;
  color: var(--glow-color, #00eaff);
  letter-spacing: 6px;
  text-shadow: 0 0 8px var(--glow-color, #00eaff),
    0 0 18px color-mix(in srgb, var(--glow-color, #00eaff) 70%, transparent),
    0 0 30px color-mix(in srgb, var(--glow-color, #00eaff) 50%, transparent);
}

.card-description {
  font-family: "Roboto Mono", monospace;
  font-size: 0.85em;
  line-height: 1.6;
  color: #d0e0ff;
  text-align: left;
  margin-bottom: 20px;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 234, 255, 0.15);
  position: relative; /* Ensure it's in the stacking context */
  z-index: 1;
}

.card-socials {
  display: flex;
  align-items: center;
  gap: 15px;
}
.social-btn {
  background: transparent;
  border: none;
  color: #a0c8ff;
  cursor: pointer;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s, text-shadow 0.3s;
}
.social-btn:hover {
  color: var(--glow-color, #00eaff);
  text-shadow: 0 0 5px var(--glow-color, #00eaff);
}
.social-btn i {
  transition: transform 0.3s;
}
.social-btn:hover i {
  transform: scale(1.2);
}
.like-btn.liked {
  color: var(--glow-pink);
  text-shadow: 0 0 5px var(--glow-pink);
}
.card-button {
  background: linear-gradient(
    45deg,
    var(--glow-color, #00eaff),
    color-mix(in srgb, var(--glow-color, #00eaff) 70%, #fff)
  );
  color: #050510;
  padding: 7px 7px;
  border: none;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: bold;
  font-family: "Orbitron", sans-serif;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  text-transform: uppercase;
}
.card-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--glow-color, #00eaff);
}

.toast-message {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #00eaff;
  color: #050510;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 0 20px #00eaff;
  transition: bottom 0.5s ease-in-out;
  z-index: 5000;
}
.toast-message.show {
  bottom: 30px;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
  .menu-list li {
    margin: 0 5px;
  }
  .menu-button a {
    font-size: 14px;
  }
  .card-container {
    padding: 80px 15px 30px 15px;
  }
  .project-card {
    width: 90%;
    min-height: unset;
  }
  .card-actions {
    flex-direction: column;
    gap: 15px;
  }
}

@media screen and (min-width: 1540px) {
  .card-container {
    gap: 60px; /* more breathing room */
    padding: 120px 150px 60px 150px; /* expand spacing */
  }

  .project-card {
    width: 380px;      /* wider card */
    min-height: 580px; /* taller card */
    padding: 30px;     /* more inner padding */
  }

  .card-logo {
    width: 110px;  /* bump logo size */
    height: 110px;
  }

  .card-title {
    font-size: 2.3em; /* bigger title */
    letter-spacing: 7px;
  }

  .card-description {
    font-size: 0.95em; /* slightly larger body text */
    line-height: 1.7;
  }
}

/* Futuristic Toggle Switch Styles */
.animation-control {
  position: fixed; /* Ensures it stays in place */
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column; /* Stack items vertically */
  align-items: center; /* Center items horizontally */
  gap: 2px; /* Reduced gap for closer text */
  z-index: 1001;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 45px; /* Smaller width */
  height: 22px; /* Smaller height */
  margin-bottom: 3px; /* Space between toggle and text */
}

.toggle-switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #333;
  border-radius: 22px; /* Adjusted border-radius for smaller size */
  transition: 0.4s;
  box-shadow: 0 0 4px rgba(0, 255, 255, 0.3); /* Smaller glow */
  border: 1px solid #00ffff;
}

.slider:before {
  content: "";
  height: 18px; /* Smaller thumb */
  width: 18px; /* Smaller thumb */
  position: absolute;
  left: 2px; /* Adjusted left position */
  bottom: 2px; /* Adjusted bottom position */
  background-color: #fff;
  border-radius: 50%;
  transition: 0.4s;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.7); /* Smaller glow for thumb */
}

input:checked + .slider {
  background-color: #00ffff;
  box-shadow: 0 0 8px #00ffff, 0 0 15px #00ffff; /* Adjusted glow when on */
}

input:checked + .slider:before {
  transform: translateX(23px); /* Adjusted transform for smaller size */
  background-color: #fff;
}

/* Animation Text Styles */
.animation-text-container {
  position: relative;
  width: 120px; /* Adjusted fixed width for smaller text */
  height: 20px; /* Adjusted fixed height for smaller text */
  overflow: hidden;
  text-align: center;
}

.animation-text {
  font-family: "Orbitron", sans-serif; /* A more futuristic-looking font */
  font-size: 14px; /* Smaller font size */
  color: #fff;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.5); /* Smaller text glow */
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  white-space: nowrap;
}

.animation-text.on {
  color: #00ffff;
  text-shadow: 0 0 6px #00ffff, 0 0 10px #00ffff; /* Adjusted glow for "On" */
  opacity: 0;
  transform: translateY(100%);
}

.animation-text.off {
  color: #ccc;
  text-shadow: 0 0 4px rgba(200, 200, 200, 0.5); /* Adjusted glow for "Off" */
  opacity: 1;
  transform: translateY(0);
}

/* When checkbox is checked, show 'on' text and hide 'off' text */
input:checked ~ .animation-text-container .animation-text.on {
  opacity: 1;
  transform: translateY(0);
}

input:checked ~ .animation-text-container .animation-text.off {
  opacity: 0;
  transform: translateY(-100%);
}

/* Warning Modal Overlay Styles */
.warning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85); /* Darker, more opaque overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000; /* Higher than other elements */
  opacity: 0; /* Start hidden */
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.warning-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* System Error Modal Styles */
.warning-modal {
  background: #ececec; /* Light grey, typical system dialog background */
  color: #333; /* Dark text color */
  border: 1px solid #7a7a7a; /* Grey border */
  border-radius: 4px; /* Slightly rounded corners */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Standard shadow */
  text-align: left; /* Text alignment for system dialog */
  max-width: 400px; /* Max width for the modal */
  width: 90%; /* Responsive width */
  font-family: "Segoe UI", Arial, sans-serif; /* System-like font */
  overflow: hidden; /* For title bar */
  transform: scale(0.9); /* Start slightly smaller */
  transition: transform 0.3s ease-in-out;
}

.warning-overlay.active .warning-modal {
  transform: scale(1); /* Scale up when active */
}

.modal-title-bar {
  background: linear-gradient(
    to bottom,
    #0078d7 0%,
    #005a9e 100%
  ); /* Windows-like blue gradient title bar */
  color: white;
  padding: 8px 15px;
  font-size: 0.9em;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: default; /* Not draggable, but looks like it */
  border-bottom: 1px solid #004a80;
}

.modal-title-bar .close-button {
  background: #ff4d4d; /* Red close button */
  color: white;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 2px;
  font-size: 0.8em;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s ease;
}

.modal-title-bar .close-button:hover {
  background: #e60000;
}

.modal-content {
  padding: 20px 25px;
  display: flex;
  align-items: flex-start; /* Align icon and text */
  gap: 15px;
}

.modal-content .icon {
  font-size: 2.5em; /* Icon size */
  color: #ffcc00; /* Yellow warning icon */
  flex-shrink: 0; /* Prevent icon from shrinking */
}

.modal-text {
  flex-grow: 1;
}

.modal-text h3 {
  font-size: 1.1em;
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
  font-weight: bold;
}

.modal-text p {
  font-size: 0.9em;
  line-height: 1.4;
  margin-bottom: 15px;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end; /* Align buttons to the right */
  padding: 0 25px 15px 25px;
}

.modal-button {
  background: #0078d7; /* Blue button */
  color: white;
  border: 1px solid #005a9e;
  padding: 8px 20px;
  border-radius: 3px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.modal-button:hover {
  background: #005a9e;
  border-color: #004a80;
}

/* Media queries for responsiveness */
@media (max-width: 1024px) {
  /* No specific styles for warning message here as it's handled by JS display */
}

@media (max-width: 768px) {
  .social-nav {
    bottom: 15px;
    padding: 10px 15px;
    gap: 10px;
  }
  .social-icon-button {
    width: 48px;
    height: 48px;
  }
  .social-icon-button .fab,
  .social-icon-button .fas {
    font-size: 24px;
  }
  .warning-modal {
    padding: 0; /* Padding handled by internal elements */
  }
  .modal-content {
    flex-direction: column; /* Stack icon and text on small screens */
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 15px;
  }
  .modal-text h3 {
    font-size: 1em;
  }
  .modal-text p {
    font-size: 0.85em;
  }
  .modal-buttons {
    justify-content: center; /* Center buttons on small screens */
    padding: 0 15px 10px 15px;
  }
}

.tech-stack {
  margin-top: auto; /* Pushes this section towards the bottom of its container */
  padding-top: 0 px;
  text-align: left;
}

.tech-stack-title {
  font-family: "Orbitron", sans-serif;
  font-size: 0.9em;
  color: var(--glow-color, #00eaff);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tech-stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-stack-item {
  background: rgba(0, 234, 255, 0.1);
  border: 1px solid rgba(0, 234, 255, 0.2);
  color: #c0d8ff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75em;
  font-family: "Roboto Mono", monospace;
}