/* ---------- THEME VARIABLES (dark/light) ---------- */
:root,
[data-theme="dark"] {
  --bg-body: #000000;
  --bg-surface: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.04);
  --bg-nav: rgba(0, 0, 0, 0.75);
  --border-default: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-placeholder: rgba(255, 255, 255, 0.22);
  --accent-primary: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.09);
  --input-bg: transparent;
  --input-border: rgba(255, 255, 255, 0.1);
  --input-focus: rgba(99, 102, 241, 0.55);
  --input-focus-shadow: rgba(99, 102, 241, 0.1);
  --button-primary-bg: #ffffff;
  --button-primary-text: #000000;
  --button-primary-hover: 0.88;
  --info-card-bg: rgba(255, 255, 255, 0.02);
  --info-card-hover: rgba(255, 255, 255, 0.04);
  --info-card-border: rgba(255, 255, 255, 0.07);
  --info-card-border-hover: rgba(255, 255, 255, 0.16);
  --social-icon-bg: rgba(255, 255, 255, 0.03);
  --social-icon-border: rgba(255, 255, 255, 0.08);
  --social-icon-hover: rgba(255, 255, 255, 0.2);
  --footer-border: rgba(255, 255, 255, 0.06);
  --success-ring: rgba(52, 211, 153, 0.25);
  --success-circle-bg: linear-gradient(
    135deg,
    rgba(52, 211, 153, 0.25),
    rgba(16, 185, 129, 0.15)
  );
  --success-circle-border: rgba(52, 211, 153, 0.35);
  --typing-dot: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] {
  --bg-body: #fafafa;
  --bg-surface: #f4f4f5;
  --bg-card: rgba(0, 0, 0, 0.015);
  --bg-card-hover: rgba(0, 0, 0, 0.04);
  --bg-nav: rgba(255, 255, 255, 0.85);
  --border-default: rgba(0, 0, 0, 0.07);
  --border-strong: rgba(0, 0, 0, 0.15);
  --text-primary: #09090b;
  --text-secondary: rgba(0, 0, 0, 0.7);
  --text-muted: rgba(0, 0, 0, 0.45);
  --text-placeholder: rgba(0, 0, 0, 0.28);
  --accent-primary: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.08);
  --input-border: rgba(0, 0, 0, 0.1);
  --input-focus: rgba(99, 102, 241, 0.55);
  --input-focus-shadow: rgba(99, 102, 241, 0.08);
  --button-primary-bg: #09090b;
  --button-primary-text: #ffffff;
  --button-primary-hover: 0.85;
  --info-card-bg: rgba(0, 0, 0, 0.015);
  --info-card-hover: rgba(0, 0, 0, 0.035);
  --info-card-border: rgba(0, 0, 0, 0.07);
  --info-card-border-hover: rgba(0, 0, 0, 0.14);
  --social-icon-bg: rgba(0, 0, 0, 0.03);
  --social-icon-border: rgba(0, 0, 0, 0.08);
  --social-icon-hover: rgba(0, 0, 0, 0.12);
  --footer-border: rgba(0, 0, 0, 0.06);
  --success-ring: rgba(52, 211, 153, 0.2);
  --success-circle-bg: linear-gradient(
    135deg,
    rgba(52, 211, 153, 0.2),
    rgba(16, 185, 129, 0.1)
  );
  --success-circle-border: rgba(52, 211, 153, 0.3);
  --typing-dot: rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.55;
}

.grid-bg {
  background-image: linear-gradient(var(--border-default) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-default) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.42;
}

.radial-glow {
  background: radial-gradient(
    ellipse 70% 50% at 50% -5%,
    var(--accent-glow) 0%,
    transparent 60%
  );
}

/* ---------- NAVBAR (FIXED + HAMBURGER) ---------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(1.8);
  transition: all 0.3s;
}

.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.15s;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.icon-sun,
.icon-moon {
  position: absolute;
  transition: all 0.3s;
}

[data-theme="dark"] .icon-sun {
  opacity: 1;
  transform: scale(1);
}

[data-theme="dark"] .icon-moon {
  opacity: 0;
  transform: scale(0.5) rotate(90deg);
}

[data-theme="light"] .icon-sun {
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}

[data-theme="light"] .icon-moon {
  opacity: 1;
  transform: scale(1);
}

.btn-primary {
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: var(--button-primary-hover);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 4px;
  transition: all 0.25s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1200;
  visibility: hidden;
  opacity: 0;
  transition: 0.2s;
}

.mobile-overlay.open {
  visibility: visible;
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(80%, 300px);
  height: 100%;
  background: var(--bg-body);
  border-left: 1px solid var(--border-default);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  display: flex;
  flex-direction: column;
  padding: 80px 24px 32px;
  gap: 32px;
}

.mobile-overlay.open .mobile-menu {
  transform: translateX(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-links a {
  font-family: "Syne", sans-serif;
  font-size: 24px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-default);
  padding: 8px 0;
  display: inline-block;
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-theme-toggle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 40px;
}

@media (max-width: 768px) {
  .nav-links,
  .nav-right .theme-toggle,
  .nav-right .btn-primary {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-overlay {
    display: block;
  }
}

@media (min-width: 769px) {
  .mobile-overlay {
    display: none;
  }
}

/* ---------- CONTACT PAGE SPECIFIC STYLES ---------- */
.ev-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ev-input:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px var(--input-focus-shadow);
  background: rgba(99, 102, 241, 0.03);
}

.ev-input::placeholder {
  color: var(--text-placeholder);
}

.ev-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 16px;
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover:not(:disabled) {
  opacity: var(--button-primary-hover);
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.info-card {
  border: 1px solid var(--info-card-border);
  border-radius: 16px;
  padding: 18px 20px;
  background: var(--info-card-bg);
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.info-card:hover {
  border-color: var(--info-card-border-hover);
  background: var(--info-card-hover);
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.char-count {
  font-family: "Geist Mono";
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}

.char-count.warn {
  color: #fbbf24;
}

.field-error {
  font-size: 12px;
  color: #f87171;
  font-family: "Geist Mono";
  margin-top: 5px;
  display: none;
}

.field-error.show {
  display: block;
}

.shake {
  animation: shake 0.35s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px);
  }

  40% {
    transform: translateX(6px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

.success-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
}

.success-screen.show {
  display: flex;
}

@keyframes popIn {
  0% {
    transform: scale(0) rotate(-30deg);
    opacity: 0;
  }

  60% {
    transform: scale(1.15) rotate(5deg);
  }

  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

@keyframes ringPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.success-icon-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 32px;
}

.success-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--success-ring);
}

.success-icon-ring.r1 {
  animation: ringPulse 1.4s ease-out 0.3s both;
}

.success-icon-ring.r2 {
  animation: ringPulse 1.4s ease-out 0.55s both;
}

.success-icon-circle {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--success-circle-bg);
  border: 1px solid var(--success-circle-border);
  display: grid;
  place-items: center;
  animation: popIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.check-path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawCheck 0.5s ease 0.6s both;
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.confetti-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: confettiFly 0.8s ease both;
}

@keyframes confettiFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0);
  }
}

.typing-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: typingBlink 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBlink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.sel-opt{
  color:white;background:black;
}

[data-theme="light"] .sel-opt {
  color:rgb(0, 0, 0);background:rgb(255, 255, 255);
}
[data-theme="light"] .spinner {
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fu {
  animation: fadeUp 0.55s ease both;
}

.d1 {
  animation-delay: 0.08s;
}

.d2 {
  animation-delay: 0.16s;
}

.d3 {
  animation-delay: 0.24s;
}

.d4 {
  animation-delay: 0.32s;
}

.su {
  animation: slideUp 0.5s ease both;
}

.su-d1 {
  animation-delay: 0.7s;
}

.su-d2 {
  animation-delay: 0.85s;
}

.su-d3 {
  animation-delay: 1s;
}

.su-d4 {
  animation-delay: 1.15s;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  main > div {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }

  .info-card {
    padding: 14px 16px;
  }

  .submit-btn {
    padding: 14px;
    font-size: 15px;
  }

  .success-icon-wrap {
    width: 70px;
    height: 70px;
  }

  .success-icon-circle {
    width: 70px;
    height: 70px;
  }

  [style*="position:sticky"] {
    position: relative !important;
    top: 0 !important;
  }

  .ev-input {
    padding: 12px 16px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .info-card {
    flex-wrap: wrap;
    gap: 8px;
  }

  .social-icons {
    justify-content: center;
  }
}
