/* Google Font */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap");

/* Custom Properties */
:root {
  --primary-color: #6a11cb;
  --secondary-color: #2575fc;
  --card-bg: white;
  --text-color: #333;
  --text-color: #ffffff;
  --input-border-color: #ddd;
  --gradient-start: #8a2be2; /* Blue-Violet */
  --gradient-end: #ff69b4; /* Hot Pink */
  --main-gradient: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Show overlay */
.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Ensure menu is above overlay */
.nav-links {
  z-index: 1001;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f0f4f8; /* Light background */
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  margin-bottom: 30px;

  ul {
    list-style: none;
    display: flex;
    flex-direction: row;
  }
}

.logo {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.logo-image {
  border-radius: 50%;
  height: 4rem;
  width: 4rem;
  background-image: url("logo.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.logo-text {
  line-height: 1.2;
  font-size: 1.5rem;
  font-weight: 800;
}

.logo-text span {
  background: var(--main-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  opacity: 0.85;
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}
.nav-links a:hover {
  font-weight: 700;
  color: #2575fc;
}
@media all and (max-width: 768px) {
  .nav-links {
    position: absolute;
    display: flex;
    margin: 0;
    height: 50vh;
    padding: 5px;
    right: 0;
    top: 85px;
    gap: 1rem;
    background: #000;
    flex-direction: column;
  }
  .nav-links a {
    width: 100%;
    color: white;
    text-decoration: none;
    opacity: 0.85;
    padding: 0.5rem;
  }
}

.register-btn {
  padding: 10px 20px;
  background: var(--main-gradient);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition: 0.3s;
}
.register-btn:hover {
  transform: translateY(-4px);
}

.menu-btn {
  display: none;
  text-align: center;
  padding: 10px 20px;
  background: var(--main-gradient);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition: 0.3s;
}

/* Hamburger button */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}

/* Mobile */
@media (max-width: 768px) {
  .menu-btn {
    display: block;
    border-bottom: 1px solid;
  }

  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 260px;
    background: linear-gradient(120deg, #1b0033, #000428, #3f0071);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding-top: 80px;
    z-index: 1000;
  }

  .nav-links ul {
    flex-direction: column;
  }

  .nav-links li {
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
  }

  .register-btn {
    display: none;
  }

  /* When menu is active */
  .nav-links.show {
    transform: translateX(0);
  }
}

/* MAIN CONTACT SECTION */
.contact-container {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  position: relative;
  overflow: hidden;
  background: #0e0e12;
}

.gradient-bg-1,
.gradient-bg-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  z-index: 0;
}

.gradient-bg-1 {
  top: 0%;
  left: 0%;
  width: 300px;
  height: 300px;
  background: linear-gradient(
    135deg,
    rgba(138, 43, 226, 0.7) 0%,
    rgba(65, 105, 225, 0.7) 100%
  );
  transform: translate(-50%, -50%);
}

.gradient-bg-2 {
  bottom: 0%;
  right: 0%;
  width: 400px;
  height: 400px;
  background: linear-gradient(
    135deg,
    rgba(255, 105, 180, 0.7) 0%,
    rgba(138, 43, 226, 0.7) 100%
  );
  transform: translate(50%, 50%);
}

/* CARDS */

.content-wrapper {
  margin-top: 60px;
  display: flex;
  gap: 20px;
  max-width: 900px;
  width: 90%;
  z-index: 1;
}

.contact-card,
.info-card {
  background: #fff;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.07);
}

.contact-card {
  flex: 2;
  padding: 40px;
  min-height: 550px;
}

.info-card {
  flex: 1;
  height: fit-content;
  max-width: 300px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Adding the subtle purple glow effect */
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.1),
    inset 0 0 50px rgba(138, 43, 226, 0.05);
}

.contact-card h2 {
  font-size: 28px;
  margin-bottom: 25px;
  color: #1b0033;
}

/* FORM INPUTS */
.input-group {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

input,
textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  font-size: 14px;
  background: #fafafa;
}

textarea {
  height: 120px;
  resize: none;
}

/* SUBMIT BUTTON */
.submit-btn {
  margin-top: 20px;
  width: 180px;
  padding: 15px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(90deg, #46c3ff, #cb5fff);
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s ease;
}

.submit-btn:hover {
  opacity: 0.85;
}

/* Right Card */
.info-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.info-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* Media Query for Responsiveness */
@media (max-width: 850px) {
  .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .form-card {
    min-height: auto;
  }
  .input-group {
    flex-direction: column;
    gap: 0;
  }
  .input-group input {
    margin-bottom: 15px;
  }
}
