body {
  font-family: 'Inter', sans-serif;
  background-color: #F9F9F9;
  margin: 0;
  color: #333;
}

html {
  scroll-behavior: smooth;
}

nav.fixed-top {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(to right, #5D3FD3, #4A90E2);
  padding: 15px 30px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

.menu-left {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-left li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
}

.menu-left li a:hover {
  color: #FFDFFF;
}

.menu-left li:first-child a {
  font-size: 18px;
  color: #fff;
}

.menu-left li:first-child a:hover {
  color: #FFDFFF;
}

.social-right {
  display: flex;
  gap: 20px;
}

.social-right a {
  color: #fff;
  font-size: 18px;
  transition: color 0.3s ease;
}

.social-right a:hover {
  color: #FFDFFF;
}

section {
  padding: 80px 20px;
  max-width: 900px;
  margin: auto;
  background: white;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

h2 {
  color: #5D3FD3;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
  border-radius: 6px;
  font-size: 1em;
}

form label {
  display: block;
  margin-bottom: 10px;
}

form button {
  background: linear-gradient(to right, #5D3FD3, #4A90E2);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background: #b89cff;
}

footer {
  text-align: center;
  padding: 30px;
  font-size: 0.9em;
  background: #eee;
  margin-top: 40px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  position: relative;
  animation: fadeIn 0.4s ease-in-out;
}

.close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

/* New alternating layout styles */
.section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

.section.alt {
  flex-direction: row-reverse;
}

.section .text {
  flex: 1;
  min-width: 280px;
}

.section .image {
  flex: 1;
  text-align: center;
}

.section .image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

a:focus, button:focus, input:focus, textarea:focus {
  outline: 3px solid #FFDFFF;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #fff;
  color: #333;
  padding: 8px 16px;
  z-index: 1000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 10px;
}

#theme-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  margin-left: 20px;
  cursor: pointer;
  transition: color 0.3s ease;
}

#theme-toggle:hover {
  color: #FFDFFF;
}

.fade-in {
  opacity: 0;
  animation: fadeInImage 1s ease forwards;
}

@keyframes fadeInImage {
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Mobile-first layout already applies by default */

@media (max-width: 599px) {
  nav.fixed-top {
    padding: 15px 20px;
  }

  .menu-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .social-right {
    margin-top: 10px;
    justify-content: flex-start;
  }

  .section {
    flex-direction: column;
    gap: 30px;
    padding: 50px 20px;
  }

  .section.alt {
    flex-direction: column;
  }

  .section .text,
  .section .image {
    width: 100%;
    text-align: left;
  }

  form button {
    width: 100%;
  }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .section {
    flex-direction: row;
    gap: 40px;
    padding: 60px 30px;
  }

  .section.alt {
    flex-direction: row-reverse;
  }

  .section .text,
  .section .image {
    width: 48%;
  }

  nav.fixed-top {
    padding: 15px 40px;
  }

  .nav-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .menu-left,
  .social-right {
    flex-direction: row;
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 80px 50px;
  }

  .section .text {
    font-size: 1.05em;
  }

  .section .image img,
  .section .image video {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  nav.fixed-top {
    padding: 20px 60px;
  }

  .nav-container {
    max-width: 1200px;
    margin: auto;
  }

  .menu-left li a,
  .social-right a {
    font-size: 16px;
  }
}