/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ff6f00;
  --primary-dark: #e65100;
  --primary-light: #ffb74d;
  --secondary-color: #ffd700;
  --accent-color: #ff5722;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --text-white: #ffffff;
  --bg-light: #fdfaf4;
  --bg-white: #ffffff;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Hind', 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TOPBAR ===== */
.topbar {
  background: linear-gradient(135deg, #1a1a1a, #333);
  color: var(--text-white);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar select {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.topbar select:hover {
  background: var(--primary-light);
}

/* ===== HEADER & NAVIGATION ===== */
header {
  position: sticky;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-white);
  padding: 1rem 0;
  box-shadow: var(--shadow-medium);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.logo-icon {
  background: var(--secondary-color);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-block;
  margin-right: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-white);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}

nav a:hover {
  color: var(--secondary-color);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

.donate-btn {
  background: var(--text-white);
  color: var(--primary-color);
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--shadow-light);
}

.donate-btn:hover {
  background: var(--secondary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: var(--text-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
              url("../images/banner.jpg") center/cover no-repeat;
  height: 80vh;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--text-white);
  position: relative;
  margin-top: 0;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero .buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero .buttons button {
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero .buttons .visit {
  background: var(--primary-color);
  color: var(--text-white);
  box-shadow: var(--shadow-medium);
}

.hero .buttons .visit:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 111, 0, 0.4);
}

.hero .buttons .learn {
  background: transparent;
  color: var(--text-white);
  border: 3px solid var(--text-white);
}

.hero .buttons .learn:hover {
  background: var(--text-white);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* ===== INFO BOXES ===== */
.info-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: -4rem;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.info-box {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid var(--primary-color);
}

.info-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.info-box h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.info-box ul {
  list-style: none;
  padding: 0;
  font-size: 1rem;
  text-align: center;
}

.info-box li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* ===== SECTION STYLES ===== */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: var(--bg-white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* ===== EVENTS SECTION ===== */
.events-section {
  background: var(--bg-light);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.event-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.event-date {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.event-card h3 {
  color: var(--text-dark);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.event-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== DONATE SECTION ===== */
.donate-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-white);
}

.donate-section .section-header h2 {
  color: var(--text-white);
}

.donate-section .section-header p {
  color: rgba(255, 255, 255, 0.9);
}

.donation-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.donation-options button {
  padding: 12px 24px;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.donation-options button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.donate-cta {
  text-align: center;
  margin-top: 2rem;
}

.donate-cta .donate-btn {
  background: var(--secondary-color);
  color: var(--text-dark);
  padding: 16px 40px;
  font-size: 1.2rem;
  border-radius: 50px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: var(--bg-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-form {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.contact-form h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.1);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.submit-btn {
  background: var(--primary-color);
  color: var(--text-white);
  padding: 14px 32px;
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.contact-info {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-white);
  border-radius: 8px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.contact-details h4 {
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.contact-details p,
.contact-details a {
  color: var(--text-light);
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--primary-color);
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
  background: var(--bg-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.gallery-placeholder {
  height: 250px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1.2rem;
  font-weight: 600;
}

/* ===== FOOTER ===== */
.temple-footer {
  background: linear-gradient(135deg, #1a1a1a, #333);
  color: var(--text-white);
  padding: 60px 0 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3,
.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  color: var(--secondary-color);
}

.footer-col p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--secondary-color);
}

.footer-timings {
  text-align: center;
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
}

.footer-timings h4 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-timings p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 0 15px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .hero .buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .info-boxes {
    grid-template-columns: 1fr;
    margin-top: -2rem;
    padding: 0 1rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hamburger {
    display: flex;
  }
  
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
  }
  
  nav.active {
    display: flex;
  }
  
  nav a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: center;
  }
  
  nav a:last-child {
    border-bottom: none;
  }
  
  .donate-btn {
    margin-top: 1rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .info-box {
    padding: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}