/* Premium Drones - Luxury Editorial Design */

/* Custom Properties */
:root {
  --dark-blue: #0C1D3D;
  --accent-red: #D72638;
  --primary: #07316b;
  --light-grey: #F8F9FA;
  --white: #FFFFFF;
  --text-dark: #2D3748;
  --text-muted: #718096;
  --font-serif: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  --font-sans: 'Calibri', 'Candara', 'Segoe', 'Segoe UI', Optima, Arial, sans-serif;
}

/* Base Styles */
body {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Premium Background */
.premium-drones-bg {
  background: var(--white);
  min-height: 100vh;
}

/* Page Header */
.page-header {
  padding: 20px 0 10px;
  text-align: center;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  min-height: 80px;
  /* Reduced height */
}

.page-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.text-primary {
  color: var(--primary);
}

.page-subtitle {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Products Section */
.products-section {
  padding: 10px 0 20px;
  opacity: 1;
  transform: none;
  min-height: 200px;
  /* Reduced space */
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Drone Sections */
.drone-section {
  padding: 20px 0;
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
  min-height: 200px;
  /* Reduced height */
  position: relative;
  /* Ensure stable positioning */
}

.drone-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.drone-section:nth-child(even) {
  background-color: var(--light-grey);
}

/* Drone Content */
.drone-content {
  padding: 1.5rem 0;
  opacity: 1;
  transform: none;
  transition: none;
  position: relative;
  /* Stable positioning */
}

.drone-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.drone-description {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 500px;
}

.drone-price {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.drone-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.feature-tag {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark-blue);
  background-color: rgba(12, 29, 61, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(12, 29, 61, 0.1);
  transition: all 0.3s ease;
  opacity: 1;
  transform: none;
}

.feature-tag:hover {
  background-color: var(--dark-blue);
  color: var(--white);
  transform: translateY(-1px);
}

/* Product Actions */
.product-actions {
  margin-top: 2rem;
}

.view-details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--dark-blue);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--dark-blue);
  opacity: 1;
  transform: none;
  min-width: 200px;
  position: relative;
  overflow: hidden;
}

.view-details-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.4s ease;
}

.view-details-btn:hover::before {
  left: 100%;
}

.view-details-btn:hover {
  background: transparent;
  color: var(--dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(12, 29, 61, 0.25);
  border-color: var(--dark-blue);
}

.view-details-btn .btn-text {
  transition: transform 0.3s ease;
}

.view-details-btn:hover .btn-text {
  transform: translateX(-5px);
}

.view-details-btn .arrow {
  display: inline-block;
  margin-left: 0.75rem;
  transition: all 0.3s ease;
  font-size: 1.125rem;
}

.view-details-btn:hover .arrow {
  transform: translateX(8px);
  color: var(--accent-red);
}

/* Mobile Product Card Layout */
.product-card-mobile {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.product-card-mobile:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card-mobile:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-content {
  padding: 1.5rem;
}

.product-card-content .drone-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.product-card-content .drone-description {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  max-width: none;
}

.product-card-content .drone-price {
  font-size: 1.875rem;
  margin-bottom: 1.25rem;
}

.product-card-content .drone-features {
  margin-bottom: 1.5rem;
}

.product-card-content .feature-tag {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
}

.product-card-content .view-details-btn {
  width: 100%;
  justify-content: center;
  min-width: auto;
}

/* Desktop Layout - Hide mobile card on desktop */
@media (min-width: 1024px) {
  .product-card-mobile {
    display: none;
  }
}

/* Mobile responsive improvements */
@media (max-width: 640px) {
  .product-card-mobile {
    margin: 0 0.5rem 1.5rem 0.5rem;
    border-radius: 16px;
  }

  .product-card-image {
    height: 200px;
  }

  .product-card-content {
    padding: 1.25rem;
  }

  .product-card-content .drone-title {
    font-size: 1.5rem;
  }

  .product-card-content .drone-price {
    font-size: 1.625rem;
  }

  .product-card-content .feature-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.625rem;
  }
}

@media (max-width: 480px) {
  .product-card-image {
    height: 180px;
  }

  .product-card-content {
    padding: 1rem;
  }

  .product-card-content .drone-title {
    font-size: 1.375rem;
  }

  .product-card-content .drone-description {
    font-size: 0.9rem;
  }
}

/* Drone Images */
.drone-image-container {
  position: relative;
  padding: 1.5rem 0;
  opacity: 1;
  transform: none;
  transition: none;
  min-height: 200px;
  /* Reserve space for images */
}

.drone-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 100%;
  height: auto;
}

.drone-image-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
}

.drone-image-wrapper.hover {
  transform: scale(1.02);
}

.drone-image {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.3s ease;
  aspect-ratio: 1/1;
  /* Make images square */
  object-fit: cover;
  /* Ensure images cover the square area properly */
}

.drone-image-wrapper:hover .drone-image {
  transform: scale(1.03);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--dark-blue) 0%, #1a365d 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  min-height: 200px;
  /* Prevent layout shift */
}

.cta-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--accent-red);
  padding: 0.875rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--accent-red);
}

.cta-button:hover {
  background: transparent;
  color: var(--accent-red);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(215, 38, 56, 0.3);
}

/* Navbar Styling for Premium Page */
.main-nav {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid rgba(12, 29, 61, 0.1) !important;
}

.main-nav a,
.main-nav button {
  color: var(--dark-blue) !important;
}

.main-nav a:hover,
.main-nav button:hover {
  color: var(--accent-red) !important;
}

/* Dropdown Styling */
.dropdown-content {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(12, 29, 61, 0.1) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

.dropdown-content a {
  color: var(--dark-blue) !important;
}

.dropdown-content a:hover {
  background-color: rgba(12, 29, 61, 0.05) !important;
  color: var(--accent-red) !important;
}

/* Mobile Menu */
.mobile-menu-overlay {
  background: rgba(255, 255, 255, 0.95) !important;
}

.mobile-menu-content {
  background: rgba(255, 255, 255, 0.95) !important;
}

.mobile-menu-links a {
  color: var(--dark-blue) !important;
}

.mobile-menu-links a:hover {
  color: var(--accent-red) !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-header {
    padding: 15px 0 10px;
    min-height: 60px;
  }

  .drone-section {
    padding: 15px 0;
    min-height: 150px;
  }

  .products-section {
    padding: 8px 0 15px;
    min-height: 150px;
  }

  .cta-section {
    padding: 60px 0;
    min-height: 150px;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 10px 0 8px;
    min-height: 50px;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .page-subtitle {
    font-size: 1.125rem;
  }

  .drone-section {
    padding: 10px 0;
    min-height: 120px;
  }

  .products-section {
    padding: 5px 0 10px;
    min-height: 120px;
  }

  .drone-title {
    font-size: 1.75rem;
  }

  .drone-price {
    font-size: 1.75rem;
  }

  .drone-description {
    font-size: 1rem;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .cta-subtitle {
    font-size: 1rem;
  }

  .view-details-btn {
    min-width: 180px;
    padding: 0.875rem 2rem;
  }

  .drone-image-container {
    min-height: 150px;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 15px 0 8px;
    min-height: 60px;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .drone-features {
    gap: 0.5rem;
  }

  .feature-tag {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }

  .cta-button,
  .view-details-btn {
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    min-width: 160px;
  }

  .drone-image-container {
    min-height: 120px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus States */
.cta-button:focus,
.feature-tag:focus,
.view-details-btn:focus {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

/* Loading States */
.drone-image {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.drone-image.loaded {
  opacity: 1;
}

/* Image Loading */
.drone-image-wrapper img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.drone-image-wrapper img.loaded {
  opacity: 1;
}