/* ================================
   Reset & Global Styles
================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.6;
  background: #fff;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ================================
   Navbar
================================= */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  position: relative;
}

.logo img {
  width: 150px;
}

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

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links .active {
  color: #6cdb34;
}

.nav-buttons a {
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 12px;
  font-weight: 500;
  margin-left: 10px;
  transition: 0.3s;
}

.login-btn {
  border: 1px solid #6cdb34;
  color: #6cdb34;
}

.login-btn:hover {
  background: #6cdb34;
  color: #fff;
}

.signup-btn {
  background: #6cdb34;
  color: #fff;
}

.signup-btn:hover {
  background: #57b628;
}

/* ===== Toggle Button ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.3s ease;
}

.menu-toggle span {
  width: 100%;
  height: 4px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
/* ================================
   Banner
================================= */
.banner {
  position: relative;
  background: url('../images/home/banner.png') no-repeat center/cover;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
}

.banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.drone-img {
  width: 420px;
  max-width: 100%;
  margin-bottom: 25px;
}

.banner-text {
  text-align: center;
  padding: 0 10px; /* keeps text inside on mobile */
}

.banner-text .outline-text {
  font-size: clamp(1.5rem, 5vw, 4rem); /* scales with screen */
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px #fff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.95;
}

.banner-text h1 {
  font-size: clamp(2rem, 6vw, 4.5rem); /* scales smoothly */
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin: 0;
  word-break: break-word; /* avoids overflow */
}

/* Responsive Banner Height */
@media (max-width: 768px) {
  .banner {
    height: 60vh;
  }
  .drone-img {
    width: 250px;
  }
  .banner-text .outline-text{
    line-height: 0.6;
  }
}

@media (max-width: 480px) {
  .banner {
    height: 50vh;
  }
  .drone-img {
    width: 200px;
  }
   .banner-text .outline-text{
    line-height: 0.6;
  }
}


/* ================================
   Welcome Section
================================= */
.welcome-section {
  padding: 60px 0;
  background: #f9f9f9;
  display: flex;
  align-items: center;
}

.welcome-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.welcome-text {
  flex: 1;
}

.welcome-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.welcome-text p {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 30px;
}

.explore-btn {
  display: inline-block;
  text-decoration: none;
  padding: 12px 25px;
  background: #6cdb34;
  color: #fff;
  border-radius: 16px;
  font-weight: 500;
  transition: background 0.3s;
}

.explore-btn:hover {
  background: #57b628;
}

.welcome-image {
  flex: 1;
  text-align: right;
}

.welcome-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ================================
   Featured Drones
================================= */
/* ================================
   Featured Drones
================================= */
.featured-drones {
  padding: 60px 0;
  background: #f9f9f9;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

.drones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.drone-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.drone-card:hover {
  transform: translateY(-5px);
}

.drone-card img {
  width: 100%;
  height: auto;
}

.drone-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 15px 0 10px;
}

.rating {
  font-size: 1rem;
  color: #666;
  margin-bottom: 10px;
}

.rating::before {
  content: "★★★★☆";
  letter-spacing: 2px;
  color: #ffd700;
}

.price {
  font-size: 1.2rem;
  color: #3d4438;
  font-weight: 500;
  margin-bottom: 15px;
}

.view-all {
  text-align: center;
}

.view-all-btn {
  display: inline-block;
  text-decoration: none;
  padding: 12px 25px;
  background: #6cdb34;
  color: #fff;
  border-radius: 16px;
  font-weight: 500;
  transition: background 0.3s;
}

.view-all-btn:hover {
  background: #57b628;
}

/* ================================
   Responsive Featured Drones
================================= */

/* Tablet (2 columns) */
@media (max-width: 992px) {
  .drones-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .drone-card img {
    max-height: 200px;
    object-fit: cover;
  }
}

/* Mobile (1 column) */
@media (max-width: 600px) {
  .drones-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .drone-card {
    padding: 10px;
  }

  .drone-card img {
    max-width: 80%;
    margin: 0 auto;
    max-height: 180px;
    object-fit: contain;
  }

  .drone-card h3 {
    font-size: 1.2rem;
  }

  .price {
    font-size: 1rem;
  }
}


/* explore  */
section.new-edition {
  text-align: center;
  background: linear-gradient(to bottom, #f0f0f0, #e0f7e0);
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

h1.new-edition-title {
  font-size: 3em;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.drone-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  z-index: 2;
}

.drone-image {
  width: 100%;
  height: auto;
}

.explore-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ececec;
  color: rgb(4, 97, 10);
  border: 1px solid rgb(51, 99, 53);
  text-decoration: none;
  border-radius: 5px;
  margin-top: 20px;
  font-size: 1.1em;
  position: relative;
  z-index: 2;
}

.explore-button:hover {
  background-color: #45a049;
  color: #ececec;
}

/* Background Image for the Section */
section.new-edition::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/home/backgroundEdition.png') no-repeat center center;
  background-size: cover;
  opacity: 0.3;
  z-index: 1;
}

.drone-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* smooth transition */
}

.drone-card:hover {
  transform: translateY(-5px) scale(1.02); /* slight lift + scale */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); /* deeper shadow */
}

.drone-card img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease; /* smooth zoom on hover */
}

.drone-card:hover img {
  transform: scale(1.05); /* subtle zoom effect */
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  h1.new-edition-title {
    font-size: 2em;
  }

  .drone-container {
    width: 200px;
    height: 200px;
  }

  .explore-button {
    font-size: 1em;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  section.new-edition {
    padding: 30px 0;
  }

  h1.new-edition-title {
    font-size: 1.5em;
  }

  .drone-container {
    width: 150px;
    height: 150px;
  }

  .explore-button {
    font-size: 0.9em;
    padding: 6px 12px;
  }
}
/* Mobile Responsive Fix */
@media (max-width: 768px) {
  .banner-text .outline-text {
    font-size: 2rem;   /* reduce size */
    -webkit-text-stroke: 1.5px #fff;
  }

  .banner-text h1 {
    font-size: 2.5rem; /* reduce size */
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .banner-text .outline-text {
    font-size: 1.5rem;
    -webkit-text-stroke: 1px #fff;
  }

  .banner-text h1 {
    font-size: 2rem;
    line-height: 1.3;
  }
}

/* drone-pilots */

.drone-pilots {
  background-color: #f5f7fa;
  padding: 50px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.drone-pilots h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: #1d0e0e;
  font-weight: 400;
}

.subtitle {
  font-size: 1.2em;
  color: #271515;
  margin-bottom: 40px;
}

.pilot-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.pilot-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 300px;
  text-align: center;
  padding: 20px;
  position: relative;
  border: 4px solid #fff;
  transition: transform 0.3s ease;
}

.pilot-card:hover {
  transform: translateY(-10px);
}

.pilot-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.pilot-info {
  padding: 10px;
}

.pilot-card h3 {
  margin: 10px 0 5px;
  font-size: 1.5em;
  color: #301f1f;
  font-weight: 500;
}

.pilot-card p {
  color: #3d3434;
  margin-bottom: 10px;
  font-size: 1em;
}

.rating {
  color: #ffd700;
  font-size: 1.2em;
}

/* Background curve effect */
.drone-pilots::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, #e6eaff 0%, #f5f7fa 70%);
  opacity: 0.7;
  z-index: 0;
  border-radius: 50% 0 0 0;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .drone-pilots h2 {
    font-size: 2em;
  }

  .subtitle {
    font-size: 1em;
  }

  .pilot-container {
    flex-direction: column;
    align-items: center;
  }

  .pilot-card {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .drone-pilots {
    padding: 30px 10px;
  }

  .drone-pilots h2 {
    font-size: 1.5em;
  }

  .pilot-card h3 {
    font-size: 1.2em;
  }

  .rating {
    font-size: 1em;
  }
}

/* Section Styling */
.how-it-works {
  padding: 40px 0;
  text-align: center;
}

/* Container */
.how-it-works .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Image + subtle transition */
.how-it-works .how-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
  /* small transition */
}

/* Hover effect (desktop only) */
@media (min-width: 601px) {
  .how-it-works .how-img:hover {
    transform: scale(1.03);
  }
}

/* Mobile view adjustments */
@media (max-width: 600px) {
  .how-it-works {
    padding: 20px 0;
    /* smaller padding on mobile */
  }

  .how-it-works .container {
    padding: 0 10px;
    /* narrower container */
  }
}

/* successfull works */
/* Section */
.successful-works {
  text-align: center;
  padding: 40px 0;
}

/* Arrows + image container */
.works-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

/* Arrows */
.arrow {
  background: transparent;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #45a049;
}

/* Image wrapper */
.works-image {
  position: relative;
}

.works-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

/* Play button in center */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: red;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  cursor: pointer;
}

/* Embed video */
.works-image iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  display: block;
  opacity: 0;
  /* hidden initially */
  animation: fadeIn 0.5s forwards;
}

/* Fade animation */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Mobile view */
@media (max-width: 600px) {
  .works-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .arrow {
    font-size: 24px;
  }

  .play-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* question */

.faq-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* Accordion container */
details {
  background: #f7ffd9;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 15px 20px;
  cursor: pointer;
}

/* Question */
details summary {
  font-weight: 600;
  list-style: none;
  /* hide default arrow */
  position: relative;
}

/* Custom arrow icon */
details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-weight: bold;
}

/* Change the icon when open */
details[open] summary::after {
  content: "-";
}

/* Answer text */
details p {
  margin-top: 10px;
  line-height: 1.5;
}

/* Responsive (mobile) */
@media (max-width: 600px) {
  .faq-section {
    padding: 30px 15px;
  }

  details {
    padding: 12px 16px;
  }
}

/* testimonial */


.testimonials-section {
  background: #d1fd9e;
  padding: 50px 0;
  text-align: center;
}

.testimonials-section h2 {
  margin-bottom: 35px;
}

/* Layout */
.testimonial-wrapper {
  display: flex;
  gap: 35px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.left-column {
  width: 65%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.right-column {
  width: 35%;
  background: #EAF8C5;
  padding: 30px;
  border-radius: 12px;
  text-align: left;
}

.right-column h3 {
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 700;
}

/* Card */
.testimonial-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  font-size: 15px;
  line-height: 1.6;
}

.testimonial-card.highlighted {
  margin-left: 30px;
  /* small shift to the right */
}

.stars {
  margin-top: 10px;
  color: #F2B400;
}

/* Responsive */
@media(max-width:768px) {
  .testimonial-wrapper {
    flex-direction: column;
  }

  .left-column,
  .right-column {
    width: 100%;
  }

  .testimonial-card.highlighted {
    margin-left: 0;
  }
}


/* ================================
   Footer
================================= */
/* Footer */
/* Footer */
.footer {
  background: #4F6600;
  color: #e9ffe4;
  padding: 50px 0 25px;
  font-size: 15px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 0 25px;
}

.footer h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.footer h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.footer p {
  margin-bottom: 15px;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer li {
  margin-bottom: 8px;
}

.footer a {
  color: #e9ffe4;
  text-decoration: none;

}

.footer a:hover {
  color: #bed47b;
  /* light green */
  text-decoration: none;
}

/* Email input */
.footer form {
  display: flex;
  gap: 10px;
}

.footer input[type="email"] {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  width: 100%;
}

.footer button {
  padding: 8px 18px;
  background: #bed47b;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #203900;
  font-weight: 600;
}

.footer-bottom {
  margin-top: 25px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 15px;
  font-size: 14px;
}

.footer-bottom a {
  color: #e9ffe4;
  text-decoration: none;
  margin-left: 5px;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Responsive */
@media(max-width:768px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
  }

  .footer form {
    flex-direction: column;
  }

  .footer button {
    width: 100%;
  }
}


/* ================================
   Responsive Design
================================= */
@media (max-width: 768px) {

  /* Navbar */
  .menu-toggle {
    display: flex;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .nav-links {
    display: none;
    width: 100%;
    margin-top: 20px;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-buttons {
    width: 100%;
    margin-top: 20px;
    justify-content: center;
  }

  .nav-buttons a {
    width: 100%;
    text-align: center;
    margin: 0 5px;
  }

  /* Banner */
  .banner {
    height: 50vh;
  }

  .banner-text .outline-text {
    font-size: 2rem;
  }

  .banner-text h1 {
    font-size: 2.5rem;
  }

  .drone-img {
    width: 250px;
  }

  /* Welcome */
  .welcome-content {
    flex-direction: column;
    text-align: center;
  }

  .welcome-image {
    text-align: center;
    margin-top: 30px;
  }

  .welcome-text h2 {
    font-size: 2rem;
  }

  /* Featured Drones */
  .drones-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .drone-card h3 {
    font-size: 1.2rem;
  }

  .price {
    font-size: 1rem;
  }
}