@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Poppins:wght@300;400;500;600;700&family=Noto+Serif+Devanagari:wght@400;700&display=swap');

:root {
  /* Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #efefef;
  --text-primary: #0a1628;
  --text-secondary: #4a5568;
  --text-accent: #ffffff;
  --border-color: #e0e0e0;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.15);

  /* Brand Colors */
  --brand-dark: #0a2540;
  --brand-accent: #f2994a;
  --brand-accent-dark: #e88a38;

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, #f2994a 0%, #e88a38 100%);
  --gradient-dark: linear-gradient(135deg, #0a2540 0%, #051a30 100%);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="dark"] {
  --bg-primary: #0f1419;
  --bg-secondary: #1a1f28;
  --bg-tertiary: #252d38;
  --text-primary: #e8eaed;
  --text-secondary: #b0b5bd;
  --text-accent: #0a1628;
  --border-color: #2a3142;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  transition: var(--transition-smooth);
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: var(--transition-smooth);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--brand-accent);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--brand-accent-dark);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar {
  background-color: var(--brand-dark) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-medium);
  padding: 1rem 0;
  transition: var(--transition-smooth);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffffff !important;
}

.nav-link {
  color: #ffffff !important;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-accent);
  transition: width 0.3s ease;
}

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

/* Theme & Language Controls */
.nav-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: 1rem;
}

#themeToggle {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

#themeToggle:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

#languageToggle {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

#languageToggle:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Buttons */
.btn-accent {
  background: var(--gradient-accent);
  border: none;
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(242, 153, 74, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 153, 74, 0.4);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-tertiary);
  border: 2px solid var(--brand-accent);
  color: var(--brand-accent);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: var(--brand-accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand-dark);
  border: none;
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: #051a30;
  transform: translateY(-2px);
}

/* Hero Sections */
.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  margin-top: 70px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.6), rgba(5, 26, 48, 0.8));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 2rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Bento Grid Layout */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.bento-grid-large {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.bento-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition-smooth);
  overflow: hidden;
  position: relative;
}

.bento-item::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.5s ease;
}

.bento-item:hover::before {
  left: 100%;
}

.bento-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--brand-accent);
}

.bento-item-2x {
  grid-column: span 2;
}

.bento-item-2y {
  grid-row: span 2;
}

.bento-item-2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 768px) {
  .bento-grid-large {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-item-2x,
  .bento-item-2x2 {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .bento-grid-large {
    grid-template-columns: 1fr;
  }

  .bento-item-2y {
    grid-row: span 1;
  }
}

/* Cards */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-light);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--brand-accent);
}

.card-title {
  color: var(--text-primary);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Sections */
section {
  padding: 5rem 0;
}

section.py-5 {
  padding: 5rem 0 !important;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Staggered animations for list items */
.animate-stagger > * {
  animation: fadeInUp 0.6s ease-out both;
}

.animate-stagger > :nth-child(1) { animation-delay: 0.1s; }
.animate-stagger > :nth-child(2) { animation-delay: 0.2s; }
.animate-stagger > :nth-child(3) { animation-delay: 0.3s; }
.animate-stagger > :nth-child(4) { animation-delay: 0.4s; }
.animate-stagger > :nth-child(5) { animation-delay: 0.5s; }

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.img-hero {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
}

/* Forms */
.form-control {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.form-control:focus {
  background: var(--bg-primary);
  border-color: var(--brand-accent);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(242, 153, 74, 0.1);
}

.form-label {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: var(--brand-dark);
  color: #ffffff;
  padding: 3rem 0 1rem;
  margin-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h6 {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-smooth);
}

footer a:hover {
  color: var(--brand-accent);
}

footer hr {
  background-color: var(--brand-accent);
}

/* Testimonials */
.testimonial-carousel {
  padding: 3rem 0;
}

.testimonial-item {
  text-align: center;
  padding: 2rem;
  border-radius: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.star-rating {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.star-rating svg {
  fill: var(--brand-accent);
  width: 20px;
  height: 20px;
}

/* Tabs */
.nav-tabs {
  border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
  color: var(--text-secondary);
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.nav-tabs .nav-link:hover {
  color: var(--brand-accent);
  border-bottom-color: var(--brand-accent);
}

.nav-tabs .nav-link.active {
  color: var(--brand-accent);
  border-bottom-color: var(--brand-accent);
  background: none;
}

/* Accordion */
.accordion .card {
  border: 1px solid var(--border-color);
}

.accordion .card-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.accordion .card-header .btn {
  color: var(--text-primary);
  font-weight: 600;
}

.accordion .card-header .btn:hover {
  color: var(--brand-accent);
}

/* Utilities */
.text-center {
  text-align: center;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

.pt-5 {
  padding-top: 3rem;
}

.pb-4 {
  padding-bottom: 2rem;
}

.text-primary {
  color: var(--brand-dark) !important;
}

.text-muted {
  color: var(--text-secondary) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-light) !important;
}

.shadow {
  box-shadow: var(--shadow-medium) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 3rem 0;
  }

  .hero-section {
    min-height: 400px;
    margin-top: 60px;
  }

  .container {
    padding: 0 1rem;
  }

  .bento-grid-large {
    grid-template-columns: 1fr;
  }

  .bento-item-2x {
    grid-column: span 1;
  }

  .nav-controls {
    gap: 0.5rem;
    margin-left: 0.5rem;
  }
}

@media (max-width: 480px) {
  .nav-controls {
    flex-direction: column;
    gap: 0.25rem;
  }

  #themeToggle,
  #languageToggle {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .btn-accent {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .hero-content {
    padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }
}

/* Hindi Typography */
[lang="hi"] h1,
[lang="hi"] h2,
[lang="hi"] h3,
[lang="hi"] h4,
[lang="hi"] h5,
[lang="hi"] h6 {
  font-family: 'Noto Serif Devanagari', serif;
  letter-spacing: 0px;
}

[lang="hi"] body {
  font-family: 'Poppins', sans-serif;
}

/* Process Steps */
.process-step {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition-smooth);
}

.process-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--brand-accent);
}

.process-step .icon {
  color: var(--brand-accent);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-dark);
  color: #ffffff;
  padding: 1.5rem;
  z-index: 999;
  box-shadow: var(--shadow-heavy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Loading */
.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--brand-accent);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
