@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/Contact_me.png") no-repeat center center
    fixed;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "EternalsFont", sans-serif;
  flex-direction: column;
  z-index: 1;
  overflow: hidden;
}

h2 {
  font-size: 3em;
  font-weight: bold;
  text-shadow: 2px 2px 5px black;
  margin-bottom: 20px;
}

.container {
  text-align: center;
  margin-right: 80%;
  margin-bottom: 5%;
}

.metallic-text {
  font-family: "EternalsFont", sans-serif;
  font-size: 5rem;
  background: linear-gradient(45deg, #0077ff, #00ffff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px #000, 0 3px 6px rgba(255, 255, 255, 0.4),
    0 6px 12px rgba(0, 119, 255, 0.8), 0 12px 24px rgba(0, 255, 255, 0.6);
}

.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;
}

.menu-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  padding-right: 50px;
  padding-top: 0px;
}

.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;
}

/* 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%);
}

/* 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 0s ease;
}

#loader video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide main content initially */
.hidden-content {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0s ease;
}

/* Fade in when ready */
.show-content {
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease 0.5s; /* Fade in after a slight delay, adjust as needed */
  /* position: fixed; */ /* This was causing issues with card container scrolling */
  width: 100%;
  height: 100%;
  position: fixed;
  display: flex; /* To use align-items and justify-content for its children */
  align-items: center;
  justify-content: center;
}

/*
.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/Contact_me.png");
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/* Start of Contact Form Card CSS */
.form-wrapper {
  margin-left: 65%;
  perspective: 100px;
  /* Ensure the wrapper itself doesn't unintentionally affect centering
       if your #mainContent already handles it.
       You might need to adjust its width/max-width or display properties
       if it interferes with your page layout. For now, it's a basic container. */
}
.form-title {
  margin-left: 14%;
}
.form-container {
  font-family: "Inter", sans-serif; /* Base font for the card */
  color: #e0e7ff; /* Text color for the card */
  background-color: rgba(10, 15, 35, 0.7);
  backdrop-filter: blur(12px) saturate(150%);
  padding: 1.3rem 2.5rem;
  padding-right: 5.5rem;
  padding-left: 2.9rem;
  padding-bottom: 3.9rem;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(100, 180, 255, 0.25),
    0 0 60px rgba(220, 100, 255, 0.2), inset 0 0 25px rgba(200, 225, 255, 0.1);
  width: 100%;
  max-width: 300px; /* Or adjust to fit your layout */
  max-height: 625px;
  border: 1px solid rgba(60, 80, 120, 0.75);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.4s ease-out;
  animation: floatForm 8s ease-in-out infinite;
  margin: 2rem auto; /* Adds some spacing around the card, adjust as needed */
}

@keyframes floatForm {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.form-container:hover {
  box-shadow: 0 0 40px rgba(100, 180, 255, 0.4),
    0 0 80px rgba(220, 100, 255, 0.35), inset 0 0 30px rgba(200, 225, 255, 0.15);
}

.form-title {
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  background: linear-gradient(
    90deg,
    #f094ff,
    #a78bfa,
    #5eead4,
    #a78bfa,
    #f094ff
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background-size: 200% auto;
  animation: titleShimmer 5s linear infinite;
}

@keyframes titleShimmer {
  to {
    background-position: 200% center;
  }
}

.input-group {
  margin-bottom: 1.75rem;
  position: relative;
}

.input-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: #d0dfff;
  transition: color 0.3s ease;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(70, 90, 130, 0.8);
  background-color: rgba(5, 10, 25, 0.75);
  color: #e8efff;
  font-size: 1rem;
  transition: all 0.3s ease;
  caret-color: #818cf8;
  position: relative; /* For ::after pseudo-element */
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #7080a0;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #818cf8;
  background-color: rgba(10, 15, 40, 0.9);
  box-shadow: 0 0 20px rgba(129, 140, 248, 0.35);
}

/* Underline animation for inputs */
/* Note: This ::after might be tricky if the input/textarea tags are not direct children
   or if their box model is complex. For basic inputs, it should work. */
.form-input::after,
.form-textarea::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px; /* Position relative to the input's bottom border */
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #a78bfa, #5eead4);
  transition: width 0.4s ease-out;
  z-index: 1; /* Ensure it's above the input's background but below content */
}

.form-input:focus::after,
.form-textarea:focus::after {
  width: 100%;
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1.75rem;
}

.styled-button {
  flex-grow: 1;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.styled-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.styled-button:hover::before {
  left: 100%;
}

.gemini-button {
  border: 1px solid #a78bfa;
  background-color: transparent;
  color: #c4b5fd;
}

.gemini-button:hover {
  background-color: rgba(167, 139, 250, 0.15);
  color: #ede9fe;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 5px 20px rgba(167, 139, 250, 0.25);
}

.gemini-button svg {
  /* SVG styles already inline, but this can be a fallback */
  /* margin-right: 0.6rem; */ /* Handled by inline style in HTML */
  /* width: 18px; height: 18px; */ /* Handled by inline style in HTML */
  transition: transform 0.3s ease;
}

.gemini-button:hover svg {
  transform: rotate(-15deg) scale(1.1);
}

.submit-button {
  border: none;
  background: linear-gradient(90deg, #ec4899, #d946ef, #c026d3);
  color: white;
  font-size: 1rem;
}

.submit-button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 25px rgba(217, 70, 239, 0.4);
  background: linear-gradient(90deg, #d946ef, #ec4899, #e879f9);
}

.submit-button svg {
  /* SVG styles already inline, but this can be a fallback */
  /* margin-right: 0.75rem; */ /* Handled by inline style in HTML */
  /* width: 20px; height: 20px; */ /* Handled by inline style in HTML */
  transition: transform 0.3s ease;
}

.submit-button:hover svg {
  transform: translateX(3px) scale(1.1);
}

.loader {
  width: 22px;
  height: 22px;
  border: 3px solid #818cf8;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: energeticRotation 0.8s linear infinite;
  margin-left: 10px;
}

@keyframes energeticRotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#formMessage {
  margin-top: 1.75rem;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0;
  transform: translateY(15px);
  font-size: 0.95rem;
}

#formMessage.visible {
  opacity: 1;
  transform: translateY(0px);
}

.success-message {
  background-color: rgba(22, 163, 74, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
}

.error-message {
  background-color: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 15px rgba(248, 113, 113, 0.2);
}

.info-message {
  background-color: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.2);
}
/* End of Contact Form Card CSS */

@media (max-width: 1680px) {
  .form-wrapper {
    padding: 80px 15px 30px 15px;
  }
  .form-container {
    width: 70%;
    max-width: 300px; /* Or adjust to fit your layout */
    max-height: 430px;
  }
  .form-title {
    font-size: 1.3rem;
    margin-left: 9%;
  }
  .form-textarea {
    min-height: 50px;
  }
}

/* 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;
  }
}
