/* ===== Base ===== */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f2f7ff;
  color: #202228;
}

a {
  text-decoration: none;
}

/* ===== Header ===== */
header {
  background: #202228;
  color: white;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  animation: slideDown 0.5s ease-in-out;
  flex-wrap: wrap;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

nav a {
  color: white;
  font-size: 16px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #A88BFE;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 90vh;
}

.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(32, 34, 40, 0.6);
  top: 0;
  left: 0;
}

.hero-text {
  position: absolute;
  top: 18%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  z-index: 2;
  animation: fadeInUp 1s ease forwards;
  text-align: left;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.hero-text .cta {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: #FF6F61;
  color: white;
  font-weight: bold;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.hero-text .cta:hover {
  background: #e65c50;
}

.wave-divider {
  width: 100%;
  height: 60px;
  background: url('https://www.svgbackgrounds.com/wp-content/uploads/2021/05/wave-bottom.svg') no-repeat center;
  background-size: cover;
  margin-top: -20px;
}

/* ===== Quote Section Inside Hero ===== */
.quote-carousel-alternate {
  margin-top: 20px;
  font-style: italic;
  color: #f2f7ff;
  max-width: 600px;
  padding-left: 0;
  padding-right: 20px;
  transition: all 0.3s ease;
}

.quote-carousel-alternate .quote {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  font-size: 20px;
  margin: 10px 0;
  line-height: 1.6;
}

.quote-carousel-alternate .quote.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive Quote Tweaks ===== */
@media (max-width: 768px) {
  .quote-carousel-alternate {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 90%;
  }

  .quote-carousel-alternate .quote {
    font-size: 16px;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .quote-carousel-alternate {
    padding-left: 12px;
    padding-right: 12px;
    max-width: 100%;
  }

  .quote-carousel-alternate .quote {
    font-size: 15px;
    text-align: left;
    line-height: 1.5;
  }
}


/* ===== Sections ===== */
.section {
  padding: 60px 20px;
}

.section.dark {
  background: #202228;
  color: white;
}

.section.light {
  background: #f2f7ff;
}

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

/* ===== Grid & Cards ===== */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* ===== Animated Feature Cards ===== */
#features {
  background-image: url('images/beach-bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: white;
}

.card {
  background: linear-gradient(135deg, #2c2f35, #202228);
  border-radius: 12px;
  padding: 20px;
  color: #f2f7ff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 250px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: floatUp 0.8s ease forwards;
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #3b3f46, #16191c);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(45deg, #ff6f61, #a88bfe, #00d4ff);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card:hover::after {
  opacity: 0.2;
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 1000px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  color: #202228;
}

.modal-content h3 {
  margin-top: 0;
  color: #FF6F61;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.close-btn:hover {
  color: #FF6F61;
}

.modal-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.modal-screenshot {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===== Contact Section Light Layout ===== */
#contact .container {
  max-width: 700px;
  margin: auto;
  padding: 0 20px;
  text-align: center;
}

.contact-form {
  width: 100%;
  margin-top: 20px;
  text-align: left;
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  color: #202228;
}

/* Responsive Padding */
@media (max-width: 768px) {
  #contact .container {
    padding: 0 15px;
  }

  .contact-form {
    padding: 20px 15px;
  }
}

/* Form Group */
.form-group {
  margin-bottom: 15px;
}

/* Label Styling */
.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #202228;
  font-size: 14px;
}

/* Input & Textarea Fields */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: #202228;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #A88BFE;
}

/* Submit Button */
.contact-form button {
  background-color: #FF6F61;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #e65c50;
}

/* ===== Footer ===== */
footer {
  background: #16191c;
  color: #f2f7ff;
  padding: 40px 20px;
  font-size: 15px;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-socials a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f2f7ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #A88BFE;
}

.footer-socials img {
  height: 28px;
  width: 28px;
}

.footer-text {
  font-size: 14px;
  opacity: 0.8;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    gap: 10px;
    margin-top: 10px;
  }

  .hero-text {
    left: 5%;
    top: 45%;
    transform: translateY(-50%);
  }

  .hero-text h1 {
    font-size: 2em;
  }

  .quote-carousel-alternate {
    padding-left: 10px;
    max-width: 90%;
  }

  .quote-carousel-alternate .quote {
    font-size: 15px;
    text-align: left;
  }

  .card {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.6em;
  }

  .hero-text .cta {
    font-size: 13px;
    padding: 8px 18px;
  }

  .quote-carousel-alternate {
    padding-left: 10px;
    max-width: 95%;
  }

  .quote-carousel-alternate .quote {
    font-size: 14px;
  }

  .card {
    padding: 15px;
    font-size: 14px;
  }

  .footer-socials {
    flex-direction: column;
    gap: 20px;
  }
}
