@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");
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: url("../Images\ &\ Videos/about_me.png") no-repeat center center
    fixed;
  background-size: cover;
  font-family: "EternalsFont", sans-serif;
  z-index: 1;
  overflow: hidden;
}

.menu-bar {
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  pointer-events: none;
}

.menu-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.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;
}

/* 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 2s ease;
}

#loader video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide main content initially */
.hidden-content {
  opacity: 0;
  visibility: hidden;
  transition: opacity 2s ease;
}

/* Fade in when ready */
.show-content {
  opacity: 1;
  visibility: visible;
}

.menu-button {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.show-content .menu-button {
  opacity: 1;
  transform: translateY(0);
}

/* Background image */
.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../Images\ &\ Videos/about_me.png");
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/* 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%);
}

/* Social Media Navigation Bar Styles */
.social-nav {
  position: fixed;
  bottom: 33%;
  left: 75%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 15px;
  padding: 15px 25px;
  background: rgba(20, 0, 40, 0.7); /* Darker, deep purple semi-transparent */
  border-radius: 30px; /* Very rounded container */
  box-shadow: 0 0 25px rgba(170, 0, 255, 0.7), 0 0 50px rgba(170, 0, 255, 0.5); /* Deep purple glow */
  z-index: 1000;
  backdrop-filter: blur(10px); /* Stronger blur */
  border: 1px solid rgba(170, 0, 255, 0.9); /* Vibrant purple border */
}

.social-icon-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px; /* Slightly larger buttons */
  height: 45px;
  background: linear-gradient(
    135deg,
    #ff00ff,
    #00ffff
  ); /* Pink to cyan gradient */
  border-radius: 50%; /* Perfectly round */
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.8); /* Initial pink glow */
  transition: all 0.5s ease-in-out;
  position: relative;
  overflow: hidden;
  text-decoration: none; /* Remove underline */
}

.social-icon-button::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1); /* More dynamic transition */
  z-index: 1;
  filter: blur(5px); /* Soft blur for glow */
}

.social-icon-button:hover::before {
  transform: scale(1);
  opacity: 1;
}

.social-icon-button .fab,
.social-icon-button .fas {
  font-size: 30px; /* Larger icons */
  color: #1a1a2e; /* Dark icons on light background */
  transition: color 0.4s ease-in-out, transform 0.4s ease-in-out;
  z-index: 2;
}

.social-icon-button:hover {
  transform: translateY(-5px) scale(1.05); /* Slight lift and enlarge */
  box-shadow: 0 0 35px #00ffff, 0 0 70px #ff00ff; /* Dual color glow */
  background: linear-gradient(135deg, #00ffff, #ff00ff); /* Invert gradient */
  animation: pulseGlow 1.5s infinite alternate; /* Pulsating glow */
}

.social-icon-button:hover .fab,
.social-icon-button:hover .fas {
  color: #fff; /* White icon on hover */
  transform: rotate(360deg); /* Full rotation */
}
/* Keyframe for pulsating glow */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 20px #00ffff, 0 0 40px #ff00ff;
  }
  100% {
    box-shadow: 0 0 40px #ff00ff, 0 0 80px #00ffff;
  }
}

/* Media queries for responsiveness */
@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 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;
  }
}

@property --angle {
          syntax: '<angle>';
          initial-value: 0deg;
          inherits: false;
        }
#Exp {
  /* * Your original positioning was here. I've commented it out 
             * to ensure the button is visible in the center of the preview.
             * You can uncomment these lines if you need specific positioning in your project.
             */
  
            position: absolute;
            bottom: 58.5%;
            left: 60%;
            

  /* Resetting default button styles */
  border: 0;
  background: transparent;
  cursor: pointer;

  /* Adding padding and setting up for the animated border */
  padding: 2px; /* This padding creates space for the border */
  border-radius: 12px; /* Rounded corners for a modern look */
  /* Needed for pseudo-elements */

  /* Adding a transition for the hover effect */
  transition: transform 0.2s ease-in-out;
}

/* The hover effect: makes the button slightly larger */
#Exp:hover {
  transform: scale(1.05);
}

/* * This is the container for the button's text and the background.
         * It sits inside the animated border.
         */
#Exp .content {
  display: block;
  padding: 10px 22px; /* Inner padding for the text */
  background-color: #2c2c2c; /* Inner background color */
  border-radius: 10px; /* Must be slightly smaller than the parent's border-radius */
  color: white;
  font-size: 1.3rem;
  text-align: center;
  font-weight: 600;
  text-decoration: none; /* Removes underline from the link */
  transition: background-color 0.2s ease;
}

#Exp:hover .content {
  background-color: #3a3a3a; /* Slightly lighter background on hover */
}

/* * This is the magic! The ::before pseudo-element creates the animated border.
         * It's a conic gradient that rotates continuously.
         */
#Exp::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1; /* Places it behind the .content */
  border-radius: 12px; /* Match the parent's border-radius */

  /* The animated gradient with colors from your image */
  background: conic-gradient(
    from var(--angle),
    #6a0dad,
    /* Deep Purple */ #ee00ff,
    /* Bright Magenta/Pink */ #00c3ff,
    /* Electric Blue */ #ee00ff,
    /* Bright Magenta/Pink */ #6a0dad /* Deep Purple */
  );

  /* The animation definition */
  animation: rotate 4s linear infinite;
}

/* The keyframes that define the rotation animation */
@keyframes rotate {
  to {
    --angle: 360deg;
  }
}
