/* ============================ RAMAPPA ACADEMY — INDIAN AUTHORITY THEME ============================ */

:root {
  --saffron: #FF9933;
  --saffron-deep: #E07A1F;
  --saffron-light: #FFB366;
  --green: #1A5632;
  --green-light: #2D8A4F;
  --cream: #FFF8F0;
  --cream-dark: #F5EDE0;
  --gold: #D4AF37;
  --ink: #1A1A1A;
  --ink-light: #4A4A4A;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ============================ CALL FLOAT ============================ */
.call-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--green);
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(26, 86, 50, 0.4);
  z-index: 1000;
  transition: var(--transition);
}

.call-float:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 30px rgba(26, 86, 50, 0.5);
}

/* ============================ NAVIGATION ============================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 999;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--ink-light);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-menu a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--saffron);
  transition: var(--transition);
}

.nav-menu a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--saffron);
  color: white !important;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--saffron-deep);
  transform: translateY(-1px);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  padding: 120px 24px 80px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 153, 51, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(26, 86, 50, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 153, 51, 0.1);
  color: var(--saffron-deep);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--saffron);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
}

.text-saffron {
  color: var(--saffron);
}

.text-green {
  color: var(--green);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--ink-light);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
  color: white;
  box-shadow: 0 4px 15px rgba(255, 153, 51, 0.3);
}

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

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: white;
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 32px;
  font-size: 1.1rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
}

.trust-item {
  text-align: center;
}

.trust-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--saffron);
}

.trust-label {
  font-size: 0.8rem;
  color: var(--ink-light);
  font-weight: 500;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(0,0,0,0.1);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-main-card {
  background: white;
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

.hero-main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--saffron-deep));
}

.hero-card-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.hero-card-logo img {
  width: 100%;
  height: 100%;
}

.hero-main-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.hero-main-card p {
  color: var(--ink-light);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.hero-card-stats {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.hcs-item {
  text-align: center;
}

.hcs-num {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--saffron);
}

.hcs-label {
  font-size: 0.8rem;
  color: var(--ink-light);
}

@media (max-width: 768px) {
  .hero-visual {
    order: -1;
  }
  
  .hero-main-card {
    padding: 32px 24px;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-visual {
    height: 300px;
  }
  
  .hero-trust {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-title {
    text-align: center;
  }
  
  .hero-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-badge {
    display: flex;
    justify-content: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================ STATS STRIP ============================ */
.stats-strip {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
  padding: 48px 24px;
  color: white;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 4px;
}

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

/* ============================ SECTIONS ============================ */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(255, 153, 51, 0.1);
  color: var(--saffron-deep);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--ink-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================ COURSES ============================ */
.courses-section {
  padding: 100px 24px;
  background: var(--white);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.course-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  transition: var(--transition);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--saffron);
}

.course-card.featured {
  border: 2px solid var(--saffron);
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.03) 0%, rgba(255, 153, 51, 0.08) 100%);
}

.course-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--saffron);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.course-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 153, 51, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.course-icon svg {
  width: 28px;
  height: 28px;
  color: var(--saffron);
}

.course-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.course-card p {
  color: var(--ink-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.course-features {
  list-style: none;
  margin-bottom: 24px;
}

.course-features li {
  color: var(--ink-light);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.course-btn {
  display: inline-block;
  color: var(--saffron);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.course-btn:hover {
  color: var(--saffron-deep);
  transform: translateX(4px);
}

/* ============================ RESULTS / GALLERY ============================ */
.results-section {
  padding: 100px 24px;
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-large {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  
  .gallery-large {
    grid-column: span 2;
    grid-row: span 1;
  }
}

/* ============================ WHY CHOOSE US ============================ */
.why-section {
  padding: 100px 24px;
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.why-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: var(--cream);
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 153, 51, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.why-icon svg {
  width: 28px;
  height: 28px;
  color: var(--saffron);
}

.why-card h4 {
  font-weight: 700;
  margin-bottom: 8px;
}

.why-card p {
  color: var(--ink-light);
  font-size: 0.9rem;
}

/* ============================ ABOUT ============================ */
.about-section {
  padding: 100px 24px;
  background: var(--cream);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about-text {
  color: var(--ink-light);
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-info {
  margin-top: 32px;
}

.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.info-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 153, 51, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 24px;
  height: 24px;
  color: var(--saffron);
}

.info-item strong {
  display: block;
  margin-bottom: 4px;
}

.info-item p {
  color: var(--ink-light);
  font-size: 0.9rem;
}

.info-item a {
  color: var(--saffron);
  text-decoration: none;
  font-weight: 600;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.acad-card {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
  color: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.acad-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acad-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.acad-card h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.acad-year {
  font-size: 2.5rem;
  font-weight: 900;
}

.about-stats-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mini-stat {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.mini-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--saffron);
}

.mini-label {
  font-size: 0.85rem;
  color: var(--ink-light);
}

@media (max-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr;
  }
}

/* ============================ CONTACT ============================ */
.contact-section {
  padding: 100px 24px;
  background: linear-gradient(135deg, var(--ink) 0%, #2C2C2C 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.contact-section .section-tag {
  background: rgba(255, 153, 51, 0.2);
  color: var(--saffron-light);
}

.contact-section .section-title {
  color: white;
}

.contact-desc {
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}

.contact-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.contact-details p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.contact-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-logo-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 40px 48px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.contact-logo-card img {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: block;
}

.contact-logo-card span {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
}

@media (max-width: 768px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
  
  .contact-visual {
    height: 200px;
  }
}

/* ============================ FOOTER ============================ */
.footer {
  background: var(--ink);
  color: white;
  padding: 60px 24px 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.footer-brand h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--saffron);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  background: rgba(255,255,255,0.1);
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--saffron);
}

.footer-bottom {
  padding-top: 32px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.footer-tagline {
  margin-top: 8px;
  font-style: italic;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand {
    justify-content: center;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .footer-social {
    justify-content: center;
  }
}

/* ============================ SCROLL REVEAL ============================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================ SMOOTH SCROLL PADDING ============================ */
section[id] {
  scroll-margin-top: 80px;
}
