/* ===========================
   SMF - Score More Foundation
   Main Stylesheet
   =========================== */

:root {
  --primary: #0f7a5c;
  --primary-dark: #0a5a43;
  --gold: #d4af37;
  --gold-light: #e8c84a;
  --lime-green: #4A8F5A;
}

* { box-sizing: border-box; }

html { 
  font-size: 16px;
  scroll-behavior: smooth; 
  -webkit-font-smoothing: antialiased;
}

body { 
  font-family: 'Poppins', sans-serif; 
  color: #374151;
  line-height: 1.6;
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 { 
  font-family: 'Poppins', sans-serif; 
  font-size: 1.125rem; /* Keep base title at 18px for scale, but will update specific tags */
  font-weight: 600;
}

p {
  font-size: 1rem; /* 16px at root 16px */
}

/* === LOADER === */
#loader { transition: opacity 0.6s ease, visibility 0.6s ease; }
#loader.hidden { opacity: 0; visibility: hidden; }

.loader-progress {
  animation: loadProgress 1.8s ease-in-out forwards;
}

@keyframes loadProgress {
  0% { width: 0%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* === NAVBAR === */
#navbar {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), background 0.4s ease, box-shadow 0.4s ease;
}

/* Hamburger animation */
#hamburger.open .ham-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#hamburger.open .ham-bar:nth-child(2) { opacity: 0; transform: translateX(10px); }
#hamburger.open .ham-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-link {
  font-size: 0.9375rem !important; /* Slightly decreased for better balance */
}

#mobile-menu.open { max-height: 500px; }

/* === HERO === */
.hero-section {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
  position: absolute;
  inset: 0;
}

.hero-welcome-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: white;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-welcome-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  display: block;
}

.hero-title {
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  line-height: 1.1;
  font-weight: 500;
  color: white;
  text-align: right;
  max-width: 600px;
}

@media (max-width: 1024px) {
  .hero-title { text-align: left; }
}

/* === BUTTONS === */
.btn-lime {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #4A8F5A;
  color: #1a202c;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-lime:hover {
  background: #3d7a4b;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(190,242,100,0.2);
}

.btn-lime-square {
  background: #4A8F5A;
  color: #1a202c;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* === SECTION TITLES === */
.about-label {
  font-size: 1rem;
  font-weight: 600; /* Increased weight slightly for better hierarchy */
  color: #1a202c;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.about-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #1a202c;
  display: block;
}

.about-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: -0.02em;
  margin-top: 1rem;
}

.about-title span {
  display: block;
  font-weight: 400;
  color: #eaebed;
  letter-spacing: -0.01em;
}

.about-text {
  font-size: 1rem;
  line-height: 1.5;
  color: #4b5563;
  font-weight: 400;
  max-width: 500px;
}

.scholarship-section {
  min-height: 80vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.scholarship-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  position: absolute;
  inset: 0;
}

.blackboard-section {
  min-height: 80vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.blackboard-overlay {
  background: rgba(0,0,0,0.4);
  position: absolute;
  inset: 0;
}

.btn-play {
  width: 60px;
  height: 60px;
  background: #4A8F5A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #1a202c;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.btn-play:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(190,242,100,0.4);
}

.commitment-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.commitment-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  display: block;
}

.blackboard-content h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.3;
  font-weight: 400;
  color: white;
  max-width: 900px;
}

.area-nav-item {
  padding: 1.2rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 1rem;
  font-weight: 500;
  color: #9ca3af;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.area-nav-item.active {
  color: #1a202c;
}

.btn-lime-simple {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #4A8F5A;
  color: #1a202c;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-lime-simple:hover {
  background: #3d7a4b;
  transform: translateX(5px);
}

.impact-section {
  min-height: 70vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.impact-overlay {
  background: rgba(0,0,0,0.5);
  position: absolute;
  inset: 0;
}

.stat-item h3 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  color: white;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
  max-width: 250px;
}

.impact-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 3rem;
}

.impact-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  display: block;
}

.btn-lime-large {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #4A8F5A;
  color: #1a202c;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-lime-large:hover {
  background: #3d7a4b;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(190,242,100,0.3);
}

/* === PARALLAX === */
.parallax-bg {
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 1024px) {
  .parallax-bg {
    background-attachment: scroll; /* Disable on mobile for performance */
  }
}

/* Update AOS default duration if needed or just use classes */
[data-aos] {
  transition-duration: 800ms !important;
}

/* === CARDS === */
.card-glass {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transition: all 0.4s ease;
}

.card-glass:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(15,122,92,0.12);
}

.card-project {
  border-radius: 20px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-project:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(15,122,92,0.15);
}

.card-project .img-zoom {
  overflow: hidden;
}

.card-project:hover .img-zoom img {
  transform: scale(1.08);
}

.img-zoom img {
  transition: transform 0.6s ease;
}

/* === STATS === */
.stat-counter {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

/* === FOCUS AREAS === */
.focus-card {
  padding: 2.5rem 2rem;
  border-radius: 24px;
  background: white;
  border: 1px solid #f3f4f6;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.focus-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.focus-card:hover::before { transform: scaleX(1); }

.focus-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15,122,92,0.1);
}

.focus-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  background: linear-gradient(135deg, rgba(15,122,92,0.1), rgba(212,175,55,0.08));
  transition: all 0.3s ease;
}

.focus-card:hover .focus-icon {
  background: linear-gradient(135deg, var(--primary), #1a9970);
  transform: scale(1.1) rotate(-5deg);
}

.focus-card:hover .focus-icon i { color: white !important; }

/* === AWARDS === */
.award-card {
  background: linear-gradient(135deg, #0f7a5c, #0a5a43);
  border-radius: 20px;
  padding: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.award-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(212,175,55,0.15);
}

.award-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(15,122,92,0.3); }

/* === NEWS CARDS === */
.news-card {
  border-radius: 20px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s ease;
  border: 1px solid #f3f4f6;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15,122,92,0.12);
}

/* === WORLD MAP === */
.map-placeholder {
  background: linear-gradient(135deg, #e8f5f0 0%, #f0f9f5 100%);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 32px;
  border-radius: 100px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(15,122,92,0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15,122,92,0.4);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 32px;
  border-radius: 100px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212,175,55,0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 13px 32px;
  border-radius: 100px;
  border: 2px solid rgba(255,255,255,0.7);
  transition: all 0.3s ease;
}

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

/* === SCROLL TO TOP === */
#scrollTop.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === GLOBAL MAP DOT === */
@keyframes ping-slow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.8); opacity: 0.3; }
}

.map-dot .ping { animation: ping-slow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* === TESTIMONIAL === */
.quote-mark {
  font-family: 'Poppins', sans-serif;
  font-size: 6rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.3;
}

/* === CONTACT === */
.contact-input {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: #374151;
  transition: all 0.3s ease;
  background: #f9fafb;
}

.contact-input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(15,122,92,0.08);
}

.contact-input::placeholder { color: #9ca3af; }

/* === PAGE HERO (inner pages) === */
.page-hero {
  padding: 120px 0 80px;
  background-color: #0a3d2e;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 10;
}

.section-badge-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

/* === RESPONSIVE TYPOGRAPHY === */
@media (max-width: 640px) {
  .stat-counter { font-size: 2.2rem; }
  .section-title { font-size: 1.8rem; }
}

/* === AOS Custom === */
[data-aos="fade-up-custom"] {
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease;
}
[data-aos="fade-up-custom"].aos-animate {
  transform: translateY(0);
  opacity: 1;
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Green section bg */
.section-green {
  background: linear-gradient(135deg, #0a3d2e 0%, #0f7a5c 100%);
}

/* Divider */
.divider-gold {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

/* Image placeholder */
.img-placeholder {
  background: linear-gradient(135deg, #e8f5f0, #d1ece4);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Founder Card */
.founder-card {
  border-radius: 24px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: all 0.4s ease;
}

.founder-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(15,122,92,0.15);
}

.founder-card .founder-img {
  height: 280px;
  background: linear-gradient(135deg, #0f7a5c, #1a9970);
  position: relative;
  overflow: hidden;
}

/* Page transition */
#page-transition {
  transition: opacity 0.4s ease;
}
