@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Yatra+One&display=swap');

:root {
  --primary-color: #1c2b59;       /* Deep Royal Blue */
  --secondary-color: #d9ba85;     /* Warm Sand / Gold */
  --accent-color: #6fa3cf;        /* Gentle blue from water/attire */
  --bg-color: #fcfaf5;            /* Off-white Sand */
  --text-dark: #2c2c2c;
  --text-light: #ffffff;
  --font-logo: 'Yatra One', cursive;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Typography elements */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary-color);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid var(--primary-color);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(28, 43, 89, 0.2);
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
  box-shadow: 0 6px 20px rgba(28, 43, 89, 0.3);
  transform: translateY(-2px);
}

/* --- NAVIGATION --- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-smooth);
  background: rgba(252, 250, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--secondary-color);
}

.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-hi {
  font-family: var(--font-logo);
  color: var(--primary-color);
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: 1px;
}

.logo-en {
  font-family: var(--font-heading);
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: -5px;
}

/* Brand Logo Styles */
.nav-brand-logo {
  height: 55px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}
.logo:hover .nav-brand-logo {
  transform: scale(1.08);
}

.footer-brand-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8rem 5% 4rem;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(252,250,245,0.95) 0%, rgba(252,250,245,0.8) 50%, rgba(252,250,245,0) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  animation: fadeIn 1s ease-out;
}

.tagline {
  font-family: var(--font-logo);
  color: var(--secondary-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.hero-image-container {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideUp 1.2s ease-out;
}

.circular-aura {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 186, 133, 0.5) 0%, rgba(217, 186, 133, 0) 70%);
  z-index: -1;
  animation: pulseRotate 8s infinite linear;
}

@keyframes pulseRotate {
  0% { transform: scale(1) rotate(0deg); opacity: 0.5; }
  50% { transform: scale(1.1) rotate(180deg); opacity: 0.9; }
  100% { transform: scale(1) rotate(360deg); opacity: 0.5; }
}

.hero-bottle {
  max-height: 70vh;
  object-fit: contain;
  filter: drop-shadow(0 25px 35px rgba(28, 43, 89, 0.4)) drop-shadow(0 5px 15px rgba(217, 186, 133, 0.5));
  animation: floatBottle 4s ease-in-out infinite;
}

@keyframes floatBottle {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

/* --- ABOUT SECTION --- */
.about {
  padding: 6rem 5%;
  background-color: #fff;
  position: relative;
}

.section-motif {
  width: 100%;
  height: 40px;
  background-repeat: repeat-x;
  background-size: contain;
  position: absolute;
  top: -20px;
  left: 0;
  z-index: 10;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-text {
  flex: 1;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

.about-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(28, 43, 89, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}


/* --- PRODUCTS SECTION --- */
.products {
  padding: 6rem 5%;
  background-color: var(--bg-color);
  text-align: center;
}

.products .section-title {
  display: inline-block;
}

.products .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.product-card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border: 1px solid rgba(217, 186, 133, 0.3);
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(28, 43, 89, 0.1);
  border-color: var(--secondary-color);
}

.product-glass {
  height: 200px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-glass img {
  max-height: 100%;
  object-fit: contain;
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.5rem;
}

/* --- BULK ORDER FORM --- */
.bulk-order {
  padding: 6rem 5%;
  background-color: var(--primary-color);
  color: var(--text-light);
  position: relative;
}

.bulk-order .section-title {
  color: var(--secondary-color);
}

.bulk-order-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 3rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(217, 186, 133, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 300;
  color: var(--secondary-color);
}

.form-group input, .form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.15);
}

.form-group select option {
  color: var(--text-dark);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
  width: 100%;
  font-size: 1.1rem;
}

.btn-secondary:hover {
  background-color: #c9a56c;
  transform: none;
}

/* --- FOOTER --- */
footer {
  background-color: var(--bg-color);
  padding: 4rem 5% 2rem;
  border-top: 10px solid var(--primary-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-col p {
  color: #555;
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background-color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  font-size: 0.9rem;
  color: #777;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero h1 { font-size: 3rem; }
  .about-container { flex-direction: column; }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.3s ease-in-out;
  }
  
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .mobile-menu-btn { display: block; }
  
  /* Fix Navigation Sizes */
  nav { padding: 1rem 5%; }
  .logo-hi { font-size: 1.6rem; }
  .logo-en { font-size: 0.8rem; }
  
  /* Fix Hero Overflow & Sizing */
  .hero { flex-direction: column; text-align: center; padding-top: 7rem; padding-bottom: 2rem; }
  .hero::before {
    background: linear-gradient(180deg, rgba(252,250,245,0.95) 0%, rgba(252,250,245,0.85) 60%, rgba(252,250,245,0.2) 100%);
  }
  .hero-content { margin-bottom: 3rem; }
  .hero h1 { font-size: 2.2rem; margin-bottom: 1rem; }
  .tagline { font-size: 1.8rem; }
  .circular-aura { width: 280px; height: 280px; }
  .hero-bottle { max-height: 45vh; }
  
  /* General Form & Section Tweaks */
  .about, .products, .bulk-order { padding: 4rem 5%; }
  .section-title { font-size: 2rem; }
  .form-row { flex-direction: column; gap: 0; }
}

/* --- AUTH MODAL & DASHBOARD STYLES --- */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
  display: flex; justify-content: center; align-items: center;
  z-index: 2000;
}

.modal-content {
  background: #fff; width: 90%; max-width: 450px;
  border-radius: 12px; padding: 2.5rem; position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: slideUp 0.4s ease-out;
}

.close-btn {
  position: absolute; top: 15px; right: 20px; font-size: 1.5rem;
  cursor: pointer; color: #888; transition: var(--transition-smooth);
}

.close-btn:hover { color: var(--primary-color); }

.modal-tabs { display: flex; margin-bottom: 2rem; border-bottom: 2px solid #eee; }

.tab-btn {
  flex: 1; padding: 10px; background: none; border: none; font-size: 1.1rem;
  font-family: var(--font-heading); color: #888; cursor: pointer;
  position: relative; transition: var(--transition-smooth);
}

.tab-btn.active { color: var(--primary-color); font-weight: bold; }
.tab-btn.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 100%;
  height: 2px; background: var(--secondary-color);
}

.modal-input {
  width: 100%; padding: 14px; margin-bottom: 1.2rem;
  border: 1px solid #ccc; border-radius: 6px; font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.modal-input:focus { outline: none; border-color: var(--secondary-color); box-shadow: 0 0 5px rgba(217, 186, 133, 0.4); }

.dash-container { animation: fadeIn 0.5s ease-out; }

/* --- DATA TABLES --- */
.table-container {
  overflow-x: auto;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.data-table th {
  background-color: rgba(28, 43, 89, 0.05);
  color: var(--primary-color);
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  border-bottom: 2px solid rgba(217, 186, 133, 0.5);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  color: #444;
}

.data-table tbody tr:hover {
  background-color: rgba(217, 186, 133, 0.1);
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
