/* Custom Styles - Updated Colors */
:root {
  --primary: #1e3a5f; /* Navy Blue from logo */
  --secondary: #2563eb; /* Royal Blue from logo */
  --accent: #d4a055; /* Gold from logo */
  --navy-dark: #152742;
}

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

body {
  overflow-x: hidden;
}

/* Navbar Scroll Effect - Updated Colors */
#navbar {
  background: linear-gradient(
    135deg,
    rgba(30, 58, 95, 0.95),
    rgba(37, 99, 235, 0.9)
  );
}

#navbar.scrolled {
  background: linear-gradient(
    135deg,
    rgba(30, 58, 95, 0.98),
    rgba(37, 99, 235, 0.95)
  );
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Logo Styles */
.logo-img {
  border-radius: 12px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(212, 160, 85, 0.3));
}

/* Hero Video Section */
.hero-video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(
    135deg,
    rgba(30, 58, 95, 0.85),
    rgba(37, 99, 235, 0.7)
  ); */
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Yarn Cards Hover Effect - Updated Accent */
.yarn-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.yarn-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(212, 160, 85, 0.2);
}

/* Stats Counter - Updated Accent */
.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--accent);
}

/* Bottom Navigation Styles */
nav[class*="bottom"] {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.bottom-nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.bottom-nav-link.active {
  color: #d4a055;
}

.bottom-nav-link.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #d4a055, transparent);
  border-radius: 0 0 3px 3px;
}

.bottom-nav-link:active {
  transform: scale(0.95);
}

/* Timeline Design - Updated Accent */
.timeline-item {
  position: relative;
  padding-left: 40px;
  border-left: 2px solid var(--accent);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(212, 160, 85, 0.2);
}

/* Contact Form - Updated Accent */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  transition: border-color 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 160, 85, 0.1);
}

/* Loading Spinner - Updated Accent */
.spinner {
  border: 3px solid #f3f4f6;
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Adjust body for bottom nav */
@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
  }

  /* Ensure bottom nav doesn't overlap footer */
  footer {
    margin-bottom: 0;
  }
}

/* Responsive Video */
@media (max-width: 768px) {
  .hero-video-container {
    height: 70vh;
  }

  .hero-content {
    height: 70vh;
  }
}

/* Smooth Transitions */
.transition-all {
  transition: all 0.3s ease;
}

/* Custom Scrollbar - Updated Colors */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--secondary), var(--accent));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--primary), var(--accent));
}

/* Button Hover Effects */
.btn-contact {
  box-shadow: 0 4px 12px rgba(212, 160, 85, 0.3);
}

.btn-contact:hover {
  box-shadow: 0 6px 20px rgba(212, 160, 85, 0.4);
}

/* Gradient text animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient {
  animation: gradientShift 3s ease infinite;
}

/* Hero section adjustments */
section[style*="margin-top"] {
  padding-top: 0;
}

/* Video background enhancements */
video {
  filter: brightness(0.8);
}

/* Scroll indicator animation */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  50% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* Hero Video Section - Reduced Size */
.hero-video-container {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 650px;
  max-height: 800px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(
    135deg,
    rgba(30, 58, 95, 0.8),
    rgba(37, 99, 235, 0.6)
  ); */
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Video */
@media (max-width: 768px) {
  .hero-video-container {
    height: 70vh;
    min-height: 500px;
    max-height: 650px;
  }

  .hero-content {
    height: 100%;
  }
}

@media (max-width: 480px) {
  .hero-video-container {
    height: 65vh;
    min-height: 450px;
    max-height: 550px;
  }
}

/* Yarn Card Image Hover Effects */
.yarn-card {
  transition: all 0.3s ease;
}

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

.yarn-card img {
  transition: transform 0.5s ease;
}

.yarn-card:hover img {
  transform: scale(1.1);
}

/* Badge Animation */
.yarn-card .absolute.top-4 {
  animation: fadeInBadge 0.5s ease-out;
}

@keyframes fadeInBadge {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  padding: 1.5rem;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.cookie-consent-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-icon {
  font-size: 3rem;
  color: #fbbf24;
  flex-shrink: 0;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-text h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.cookie-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.95;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-buttons button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-accept {
  background: #fbbf24;
  color: #1e40af;
}

.btn-accept:hover {
  background: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(251, 191, 36, 0.4);
}

.btn-reject {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-reject:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-consent-banner {
    padding: 1.25rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .cookie-icon {
    font-size: 2.5rem;
  }

  .cookie-text {
    min-width: auto;
  }

  .cookie-text h4 {
    font-size: 1.1rem;
  }

  .cookie-text p {
    font-size: 0.9rem;
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }

  .cookie-buttons button {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .cookie-consent-banner {
    padding: 1rem;
  }

  .cookie-icon {
    font-size: 2rem;
  }

  .cookie-text h4 {
    font-size: 1rem;
  }

  .cookie-text p {
    font-size: 0.85rem;
  }
}
