/* ===== RESET ===== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: #001020;
  color: #c8dff0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== HEADER ===== */

.contact-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(15px);
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: #ffffff;
  text-decoration: none;
}

.logo span {
  color: #00d4ff;
}

.contact-header nav a {
  color: #ffffff;
  text-decoration: none;
  margin-right: 20px;
  opacity: 0.8;
  transition: 0.3s;
}

.contact-header nav a:hover {
  color: #00d4ff;
  opacity: 1;
}

/* ===== MAIN ===== */

.contact-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

/* ===== HERO ===== */

.contact-hero {
  text-align: center;
  margin-bottom: 40px;
}

.contact-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 18px;
}

.contact-hero p {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.9;
  color: rgba(170, 205, 235, 0.75);
}

/* ===== CARDS ===== */

.contact-card {
  background: linear-gradient(
    135deg,
    rgba(0, 26, 51, 0.7),
    rgba(0, 40, 80, 0.4)
  );

  border: 1px solid rgba(0, 212, 255, 0.1);

  border-radius: 20px;

  padding: 34px;

  margin-bottom: 22px;

  transition: 0.35s ease;
}

.contact-card:hover {
  border-color: rgba(0, 212, 255, 0.28);

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.contact-card h2 {
  color: #ffffff;
  margin-bottom: 18px;
  font-size: 1.55rem;
}

.contact-card p {
  color: rgba(170, 205, 235, 0.82);
  line-height: 1.9;
  margin-bottom: 16px;
}

.contact-card p:last-of-type {
  margin-bottom: 24px;
}

.intro-card {
  text-align: center;
}

/* ===== BUTTON ===== */

.contact-btn {
  border: none;
  cursor: pointer;

  background: linear-gradient(135deg, #00d4ff, #00a7d1);

  color: #001020;

  font-weight: 800;

  padding: 14px 26px;

  border-radius: 14px;

  transition: 0.3s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);

  box-shadow: 0 0 22px rgba(0, 212, 255, 0.35);
}

/* ===== MODAL ===== */

.modal-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.75);

  backdrop-filter: blur(10px);

  display: none;

  justify-content: center;
  align-items: center;

  padding: 20px;

  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.contact-modal {
  width: 100%;
  max-width: 650px;

  background: linear-gradient(
    135deg,
    rgba(0, 22, 42, 0.98),
    rgba(0, 35, 65, 0.95)
  );

  border: 1px solid rgba(0, 212, 255, 0.18);

  border-radius: 24px;

  padding: 34px;

  position: relative;

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(0, 212, 255, 0.08);
}

.contact-modal h3 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 24px;
}

/* ===== CLOSE ===== */

.close-modal {
  position: absolute;
  top: 18px;
  right: 20px;

  background: transparent;
  border: none;

  color: #8fb8d6;

  font-size: 30px;

  cursor: pointer;
}

/* ===== FORM ===== */

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;

  margin-bottom: 8px;

  color: #dceeff;

  font-size: 14px;

  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(0, 212, 255, 0.12);

  border-radius: 14px;

  padding: 14px 16px;

  color: #ffffff;

  font-family: inherit;

  transition: 0.3s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;

  border-color: rgba(0, 212, 255, 0.6);

  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.08);
}

/* ===== CUSTOM DROPDOWN ===== */

.custom-dropdown {
  position: relative;
}

.dropdown-trigger {
  min-height: 52px;

  display: flex;

  align-items: center;

  width: 100%;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(0, 212, 255, 0.12);

  border-radius: 14px;

  padding: 14px 16px;

  color: #ffffff;

  text-align: left;

  cursor: pointer;

  font-family: inherit;
  font-size: 15px;

  transition: 0.3s ease;

  position: relative;
}

.dropdown-trigger::after {
  content: "⌄";

  position: absolute;

  right: 16px;

  top: 50%;

  transform: translateY(-50%);

  color: #00d4ff;
}

.dropdown-trigger:hover {
  border-color: rgba(0, 212, 255, 0.35);
}

.dropdown-menu {
  position: absolute;

  top: calc(100% + 8px);

  left: 0;

  width: 100%;

  background: #06233a;

  border: 1px solid rgba(0, 212, 255, 0.15);

  border-radius: 14px;

  overflow: hidden;

  display: none;

  z-index: 50;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.custom-dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-item {
  padding: 14px 16px;

  color: #dceeff;

  cursor: pointer;

  transition: 0.25s ease;
}

.dropdown-item:hover {
  background: rgba(0, 212, 255, 0.12);

  color: #ffffff;
}

/* ===== SUBMIT ===== */

.submit-btn {
  width: 100%;

  border: none;

  cursor: pointer;

  padding: 15px;

  border-radius: 14px;

  font-weight: 800;

  background: linear-gradient(135deg, #00d4ff, #00a7d1);

  color: #001020;

  transition: 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);

  box-shadow: 0 0 24px rgba(0, 212, 255, 0.35);
}

/* ===== FOOTER ===== */

.contact-footer {
  text-align: center;

  padding: 28px 24px;

  border-top: 2px solid rgba(0, 212, 255, 0.08);
}

.contact-footer p {
  font-size: 13px;
  color: rgba(170, 205, 235, 0.35);
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {
  .contact-header {
    padding: 12px 16px;
  }

  .contact-header .logo {
    font-size: 1.08rem;
  }

  .contact-header nav {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .contact-header nav a {
    margin-right: 0;
    font-size: 0.85rem;
  }

  .contact-main {
    padding: 96px 16px 56px;
  }

  .contact-hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .contact-hero p,
  .contact-card p {
    line-height: 1.7;
  }

  .contact-card,
  .contact-modal {
    padding: 24px;
  }

  .modal-overlay {
    align-items: center;
    overflow-y: auto;
  }

  .contact-modal {
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 380px) {
  .contact-header .logo {
    font-size: 0.98rem;
  }

  .contact-header nav {
    gap: 8px;
  }

  .contact-header nav a {
    font-size: 0.78rem;
  }

  .contact-card,
  .contact-modal {
    padding: 20px;
  }
}
