:root {
  --primary: #FF9933;
  /* Saffron */
  --secondary: #138808;
  /* Green */
  --accent: #000080;
  /* Navy Blue (Ashoka Chakra) */
  --bg-main: #f8fafc;
  /* Soft White */
  --bg-secondary: #ffffff;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-hover: rgba(255, 255, 255, 0.95);
  --text-main: #1e293b;
  /* Dark slate for readability */
  --text-muted: #64748b;
  --glass-border: rgba(0, 0, 0, 0.05);
  --font-family: 'Outfit', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-family);
  background: var(--bg-main);
  /* Subtle tricolor gradient at the very top to hint at the flag */
  background-image: linear-gradient(to right, rgba(255, 153, 51, 0.05), rgba(255, 255, 255, 0), rgba(19, 136, 8, 0.05));
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.05);
  /* Lighter shadow for light mode */
  border-radius: 6px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent);
  /* Navy blue for headings */
}

h1.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #ff6b6b 50%, var(--secondary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-radius: 0;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent) !important;
  /* Force Navy */
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-brand span {
  color: var(--primary);
}

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

.nav-links .nav-link {
  font-weight: 600;
  position: relative;
  color: var(--text-main);
  text-decoration: none !important;
}

.nav-links .nav-link:hover {
  text-decoration: none !important;
  color: var(--primary);
}

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


/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 2rem;
  /* Account for navbar */
  position: relative;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
  animation: fadeUp 1s ease forwards;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  margin-bottom: 1rem;
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #e67e22);
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(255, 153, 51, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 153, 51, 0.4);
}

.btn-secondary {
  background: transparent;
  backdrop-filter: blur(10px);
  border: 2px solid var(--secondary);
  color: var(--secondary) !important;
}

.btn-secondary:hover {
  background: var(--secondary);
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(19, 136, 8, 0.4);
  transform: translateY(-2px);
}

/* Page Layout Wrappers */
.main-content {
  flex: 1;
  padding: 8rem 2rem 4rem;
  /* Top padding for navbar */
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.page-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeDown 0.8s ease forwards;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* Cards System */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  padding: 2.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
  border: 1px solid var(--glass-border);
  border-top: 4px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: all 0.75s ease;
}

.card:hover::before {
  left: 200%;
}

.card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 40px -10px rgba(255, 153, 51, 0.15), 0 0 20px rgba(19, 136, 8, 0.1);
  border-top-color: var(--secondary);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

/* Instagram Feed Section */
.instagram-section {
  margin: 4rem auto;
  padding: 2rem;
  max-width: 96%;
  width: 100%;
}

.instagram-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.instagram-feed-placeholder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.insta-post {
  aspect-ratio: 1;
  background: var(--bg-secondary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth);
  border: 1px solid var(--glass-border);
}

.insta-post:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.insta-post i {
  font-size: 3rem;
  color: rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

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

.form-control {
  width: 100%;
  padding: 1rem;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: var(--text-main);
  font-family: var(--font-family);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
.footer {
  padding: 3rem 2rem;
  text-align: center;
  background: #fff;
  border-top: 1px solid var(--glass-border);
  margin-top: auto;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-socials a {
  font-size: 1.5rem;
  color: var(--accent);
}

.footer-socials a:hover {
  color: var(--primary);
}

.footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Ambient Background shapes */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.5;
  animation: floatBackground 12s ease-in-out infinite alternate;
}

.shape-1 {
  top: -5%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: var(--primary);
  /* Saffron glow */
}

.shape-2 {
  bottom: 0px;
  left: -5%;
  width: 350px;
  height: 350px;
  background: var(--secondary);
  animation-delay: -6s;
  /* Green glow */
}

/* Slideshow Styles */
.slideshow-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #000;
  overflow: hidden;
}

.slideshow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  /* Align caption to bottom right */
}

.slideshow-slide.active {
  opacity: 1;
}

.slideshow-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform: scale(1.05);
  /* Slight zoom for dramatic effect */
  transition: transform 10s ease-out;
  /* Slow zoom across 10 seconds */
}

.slideshow-slide.active img {
  transform: scale(1);
}

.slideshow-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Top gradient for navbar legibility, bottom gradient for caption legibility */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 2;
}

.slideshow-caption {
  position: relative;
  z-index: 3;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 400;
  padding: 1.5rem 2rem;
  text-align: right;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.8s ease 0.5s;
}

.slideshow-slide.active .slideshow-caption {
  transform: translateY(0);
  opacity: 1;
}

/* Accordion Styles */
details.accordion {
  transition: all 0.3s ease;
}

.accordion-header {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion-header::-webkit-details-marker {
  display: none;
}

.accordion-header h2 {
  flex: 1;
  font-size: 1.8rem;
}

.accordion-icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

details[open].accordion>.accordion-header>.accordion-icon {
  transform: rotate(180deg);
  color: var(--secondary);
}

.accordion-content {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--glass-border);
  animation: fadeIn 0.4s ease forwards;
}

/* Animations */
@keyframes shine {
  to {
    background-position: 200% center;
  }
}

@keyframes floatBackground {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-40px) scale(1.1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
    text-align: center;
    transform: translateY(-150%);
    transition: transform 0.4s ease-in-out;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  /* Improve text readability on mobile */
  body {
    font-size: 1.1rem;
    /* Increase base text size for readability */
  }

  h1.gradient-text {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.15rem;
  }

  /* Maximize screen space on mobile */
  .main-content {
    padding: 6rem 1rem 2rem;
    /* Reduced horizontal padding from 2rem to 1rem */
  }

  .card {
    padding: 1.5rem;
    /* Reduced inner card padding from 2.5rem to 1.5rem to free up text space */
  }

  .grid-cards {
    grid-template-columns: 1fr;
    /* Force single column to avoid squishing */
    gap: 1.5rem;
  }

  .instagram-section {
    padding: 1.5rem 1rem;
    margin: 2rem auto;
  }
}