* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
  height: 100%;
  position: relative;
}

/* ----- Enhanced Video Background System ----- */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  overflow: hidden;
  background: linear-gradient(135deg, #000428 0%, #004e92 50%, #000428 100%);
  opacity: 1;
}

/* Enhanced Video Overlay */
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(ellipse at top left, rgba(120, 119, 198, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at top right, rgba(255, 119, 198, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(100, 200, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(138, 43, 226, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, rgba(0, 4, 40, 0.5) 0%, rgba(0, 78, 146, 0.3) 50%, rgba(0, 4, 40, 0.5) 100%);
  z-index: -2;
  pointer-events: none;
}

/* Fallback gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(100, 200, 255, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, #000428 0%, #004e92 25%, #000c40 50%, #004e92 75%, #000428 100%);
  z-index: -3;
}

/* ----- Enhanced Animated Particles ----- */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background-image: 
    radial-gradient(3px 3px at 15% 25%, rgba(100, 200, 255, 0.6), transparent),
    radial-gradient(3px 3px at 85% 15%, rgba(255, 215, 0, 0.6), transparent),
    radial-gradient(3px 3px at 25% 75%, rgba(138, 43, 226, 0.6), transparent),
    radial-gradient(3px 3px at 75% 45%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(3px 3px at 50% 5%, rgba(100, 200, 255, 0.5), transparent),
    radial-gradient(3px 3px at 60% 85%, rgba(255, 215, 0, 0.5), transparent),
    radial-gradient(3px 3px at 25% 35%, rgba(138, 43, 226, 0.5), transparent),
    radial-gradient(3px 3px at 90% 65%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(3px 3px at 5% 55%, rgba(100, 200, 255, 0.4), transparent),
    radial-gradient(3px 3px at 40% 95%, rgba(255, 215, 0, 0.4), transparent);
  animation: floatParticles 8s ease-in-out infinite;
}

@keyframes floatParticles {
  0%, 100% { 
    transform: translateY(0px) translateX(0px); 
    opacity: 0.4; 
  }
  25% {
    transform: translateY(-15px) translateX(10px);
    opacity: 0.8;
  }
  50% { 
    transform: translateY(-25px) translateX(-5px); 
    opacity: 1; 
  }
  75% {
    transform: translateY(-10px) translateX(-15px);
    opacity: 0.6;
  }
}

/* ----- Back Button ----- */
.back-button {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 100;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-6px);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.back-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.back-button:hover .back-icon {
    transform: translateX(-4px);
}

/* ----- Main Layout ----- */
.contact-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* ----- Enhanced Contact Form Card ----- */
.contact-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px) saturate(160%);
  -webkit-backdrop-filter: blur(15px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 15px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateZ(0);
  will-change: transform;
  border-color: rgba(100, 200, 255, 0.25);
  background: rgba(100, 200, 255, 0.02);
}

.contact-container:hover {
  border-color: rgba(100, 200, 255, 0.5);
  background: rgba(100, 200, 255, 0.04);
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 20px 40px rgba(100, 200, 255, 0.1),
    inset 0 1px 0 rgba(100, 200, 255, 0.2),
    0 0 0 1px rgba(100, 200, 255, 0.15),
    0 0 50px rgba(100, 200, 255, 0.15);
  transform: translateY(-8px) scale(1.01);
}

/* Enhanced Shimmer Effect */
.contact-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(255, 255, 255, 0.15), 
    transparent
  );
  transition: left 0.8s ease;
  z-index: 1;
}

.contact-container:hover::before {
  left: 100%;
}

/* Enhanced Glow Effect */
.contact-container::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(
    45deg,
    rgba(100, 200, 255, 0.1),
    rgba(100, 200, 255, 0.05),
    rgba(100, 200, 255, 0.1)
  );
  border-radius: 35px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s ease;
  filter: blur(1px);
}

.contact-container:hover::after {
  opacity: 1;
}

/* ----- Enhanced Typography ----- */
.contact-container h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 2rem;
  background: linear-gradient(
    135deg, 
    #64c8ff 0%, 
    #ffffff 30%,
    #64c8ff 60%,
    #ffffff 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(100, 200, 255, 0.6);
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
  letter-spacing: -0.02em;
}

.contact-container:hover h2 {
  transform: translateY(-2px);
  text-shadow: 0 0 40px rgba(100, 200, 255, 0.8);
}

/* ----- Enhanced Form Styling ----- */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Enhanced Input Fields */
#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 1.3rem 1.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  color: white;
  font-size: 1rem;
  font-weight: 400;
  font-family: inherit;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  outline: none;
  resize: none;
  letter-spacing: 0.02em;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: rgba(100, 200, 255, 0.5);
  background: rgba(100, 200, 255, 0.08);
  box-shadow: 
    0 0 0 3px rgba(100, 200, 255, 0.1),
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(100, 200, 255, 0.2);
  transform: translateY(-2px);
}

#contact-form input:focus::placeholder,
#contact-form textarea:focus::placeholder {
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

#contact-form textarea {
  min-height: 120px;
  max-height: 200px;
}

/* Enhanced Submit Button */
#contact-form button {
  padding: 1.3rem 2.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(100, 200, 255, 0.25);
  border-radius: 20px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
  will-change: transform;
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
}

#contact-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #64c8ff 0%, #4752c4 50%, #3c45a5 100%);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: -1;
  border-radius: 20px;
}

#contact-form button::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, #64c8ff 0%, #4752c4 50%, #3c45a5 100%);
  opacity: 0;
  filter: blur(8px);
  transition: all 0.4s ease;
  z-index: -2;
  border-radius: 23px;
}

#contact-form button:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(100, 200, 255, 0.5);
  background: rgba(100, 200, 255, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

#contact-form button:hover::before {
  opacity: 1;
}

#contact-form button:hover::after {
  opacity: 0.6;
}

#contact-form button:active {
  transform: translateY(-3px) scale(0.98);
  transition: all 0.15s ease;
}

/* Enhanced Status Message */
#status {
  font-size: 1rem;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 16px;
  transition: all 0.4s ease;
  font-weight: 500;
  text-align: center;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(10px);
}

#status.show {
  opacity: 1;
  transform: translateY(0);
}

#status.success {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.2);
}

#status.error {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.2);
}

/* ----- Responsive Design ----- */
@media (max-width: 768px) {
  .contact-container {
    margin: 1rem;
    padding: 2.5rem 2rem;
    border-radius: 28px;
    max-width: calc(100% - 2rem);
  }
  
  .contact-container h2 {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    margin-bottom: 1.5rem;
  }
  
  #contact-form {
    gap: 1.3rem;
  }
  
  #contact-form input,
  #contact-form textarea,
  #contact-form button {
    padding: 1.1rem 1.6rem;
    font-size: 0.95rem;
  }
  
  #contact-form textarea {
    min-height: 100px;
  }
  
  .contact-container:hover {
    transform: translateY(-4px) scale(1.01);
  }
  
  #contact-form button:hover {
    transform: translateY(-4px) scale(1.01);
  }
}

@media (max-width: 480px) {
  .back-button span {
        display: none;
    }

    .back-button {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }
    
  .contact-container {
    margin: 0.75rem;
    padding: 2rem 1.5rem;
    border-radius: 24px;
    max-width: calc(100% - 1.5rem);
  }
  
  .contact-container h2 {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }
  
  #contact-form input,
  #contact-form textarea,
  #contact-form button {
    padding: 1rem 1.4rem;
    font-size: 0.9rem;
  }
  
  #contact-form textarea {
    min-height: 90px;
  }
}

/* ----- Desktop Enhancements ----- */
@media (min-width: 1024px) {
  .contact-container {
    max-width: 650px;
    padding: 3.5rem 3rem;
  }
  
  .contact-container h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 2.5rem;
  }
  
  #contact-form {
    gap: 1.8rem;
  }
  
  #contact-form input,
  #contact-form textarea {
    padding: 1.4rem 2rem;
    font-size: 1.05rem;
  }
  
  #contact-form button {
    padding: 1.4rem 2.4rem;
    font-size: 1.05rem;
  }
  
  #contact-form textarea {
    min-height: 140px;
  }
  
  .contact-container:hover {
    transform: translateY(-12px) scale(1.02);
  }
  
  #contact-form button:hover {
    transform: translateY(-6px) scale(1.02);
  }
}

/* ----- Loading Animation ----- */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

#contact-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  animation: pulse 1.5s ease-in-out infinite;
}

#contact-form button:disabled:hover {
  transform: none;
}

#contact-form button:disabled::before,
#contact-form button:disabled::after {
  opacity: 0;
}/* Copyright styling */
.copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 2rem;
  margin-top: -1rem;
  position: relative;
  z-index: 2;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {

  .back-button {
        top: 1rem;
        left: 1rem;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

  .copyright {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    margin-top: -0.5rem;
  }
}


/* ----- Entrance Animation ----- */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-container {
  animation: slideInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

#contact-form > * {
  animation: slideInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

#contact-form input {
  animation-delay: 0.1s;
}

#contact-form textarea {
  animation-delay: 0.2s;
}

#contact-form button {
  animation-delay: 0.3s;
}
/* Base: allow sliding when needed */
/* Base glass bottom bar */
.glass-bottombar {
  width: fit-content;
  max-width: 90vw;          /* IMPORTANT: prevents going out of screen */
  margin: 40px auto 20px;

  display: flex;
  gap: 20px;

  padding: 10px 25px;
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);

  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);

  overflow-x: auto;         /* 🔥 SLIDING ENABLED */
  white-space: nowrap;      /* prevents wrapping */
  scrollbar-width: none;    /* hides scrollbar (Firefox) */
}

.glass-bottombar::-webkit-scrollbar {
  display: none;            /* hides scrollbar (Chrome) */
}

/* Links */
.glass-bottombar a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  transition: 0.2s ease;
  white-space: nowrap;      /* do NOT break text */
}

.glass-bottombar a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* -------------------------------
   RESPONSIVE: shrink padding + gap
-------------------------------- */

/* Tablets */
@media (max-width: 900px) {
  .glass-bottombar {
    gap: 14px;
    padding: 8px 20px;
  }
  .glass-bottombar a {
    font-size: 0.9rem;
  }
}

/* Large phones */
@media (max-width: 600px) {
  .glass-bottombar {
    gap: 12px;
    padding: 8px 16px;
  }
  .glass-bottombar a {
    font-size: 0.85rem;
    padding: 6px 8px;
  }
}

/* Small phones */
@media (max-width: 430px) {
  .glass-bottombar {
    gap: 10px;
    padding: 6px 14px;
  }
  .glass-bottombar a {
    font-size: 0.8rem;
  }
}

/* Ultra small */
@media (max-width: 350px) {
  .glass-bottombar {
    gap: 8px;
    padding: 5px 12px;
  }
  .glass-bottombar a {
    font-size: 0.75rem;
  }
}