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

a {
  text-decoration: none;
  cursor: pointer;
  color: black;
}

/* Ensure full page height */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  text-align: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #f39c12 50%, #0a0a0a 100%);
  background-size: 400% 400%; /* Increase size to reduce visible repeat line */
  animation: gradientAnimation 6s infinite linear;
  color: #fff;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Header and Navigation */
/* Sticky Header */
header {
  background: #0a0a0a;
  color: #fff;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000; /* Ensures it stays above other content */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
}

.logo a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #f39c12;
}

main {
  padding-top: 80px; /* Prevents content from getting hidden behind the sticky header */
}

/* Contact Section Layout */
.contact-section {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  padding: 2rem;
  max-width: 1000px;
  margin: 50px auto;
}

/* Equal Height Contact Boxes */
.contact-info,
.contact-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px; /* Slightly larger to avoid looking empty */
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

/* Contact Info Styling */
.contact-info {
  background: #222;
  color: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.contact-info h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.contact-info i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
  color: #f39c12;
}

.contact-info a {
  color: #f39c12;
  text-decoration: none;
  padding: 25px;
}

.contact-info a:hover {
  text-decoration: underline;
  color: #d1bd9c;
}

/* Social Media Links in Contact Info */
.contact-info .social-icons {
  margin-top: auto;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.contact-info .social-icons a {
  color: #f39c12;
  font-size: 1.4rem;
  transition: color 0.3s;
}

.contact-info .social-icons a:hover {
  color: #fff;
}

/* Contact Form Styling */
.contact-content {
  background: #222;
  color: #fff;
}

.contact-content h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-content form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.contact-content form label {
  margin-top: 1rem;
  font-weight: bold;
}

.contact-content form input,
.contact-content form textarea {
  padding: 0.7rem;
  font-size: 1rem;
  border: 1px solid #777;
  border-radius: 6px;
  background: #333;
  color: #fff;
  width: 100%;
}

textarea {
  width: 100%;
  max-width: 100%;
  height: 100px;
  padding: 10px;
  box-sizing: border-box;
  background: #444;
}

.contact-content form button {
  margin-top: 1.5rem;
  padding: 0.8rem;
  font-size: 1rem;
  background: #f39c12;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s;
}

.contact-content form button:hover {
  background: #d98310;
}

@media (min-width: 769px) { 
  .nav-links {
    margin-left: auto;  /* Push the nav links to the right */
  }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100vw;
    height: auto;
    background: #0a0a0a;
    display: none; /* Ensure it's hidden by default */
    flex-direction: row; 
    justify-content: space-evenly; 
    align-items: center;
    padding: 1rem 0;
    box-sizing: border-box;
    overflow-x: hidden;
    flex-wrap: wrap;
  }

  .nav-links.nav-active {
    display: flex; /* Show only when active */
  }

  .nav-links li {
    flex: 1 1 auto;
    text-align: center;
    padding: 1rem 0;
  }

  /* Prevent horizontal scrolling */
  html, body {
    overflow-x: hidden;
  }

  /* Hamburger Menu */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
  }

  .hamburger span {
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
  }

  /* When active, transform into an X */
  .hamburger.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-15px) rotate(-45deg);
  }
}

@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .contact-info, .contact-content {
    min-height: auto;
    padding: 1rem;
  }

  .contact-info p {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-info i {
    margin-bottom: 0.3rem;
    padding: 5px;
  }

  .contact-info a {
    color: #f39c12;
    text-decoration: none;
    padding: 2px;
  }

  .contact-info .social-icons {
    justify-content: flex-start;
  }

  .contact-content form input,
  .contact-content form textarea {
    font-size: 0.9rem;
  }

  .contact-content form button {
    font-size: 0.9rem;
    padding: 0.7rem;
  }
}

/* Stick footer to the bottom */
footer {
  background: #0a0a0a;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  width: 100%;
  margin-top: auto; /* Pushes footer to the bottom */
}

footer a {
  color: gray;
}

footer a:hover {
  color: #f39c12;
}