/* Modern Reset & Variables */
:root {
  /* HSL Color Palette - Agriculture Green Theme */
  --primary: 142 72% 29%;
  --primary-dark: 142 76% 24%;
  --primary-light: 142 60% 45%;
  --accent: 35 100% 50%;
  --text-main: 210 20% 15%;
  --text-light: 210 15% 25%;
  --bg-body: 0 0% 98%;
  --bg-card: 0 0% 100%;
  --glass: rgba(255, 255, 255, 0.85);

  /* Easing */
  --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --container-width: 1200px;
  --header-height: 80px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: hsl(var(--text-main));
  background-color: hsl(var(--bg-body));
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s var(--ease-smooth);
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
  color: hsl(var(--primary-dark));
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  color: hsl(var(--text-light));
}

/* ========================
   Header & Navigation 
   ======================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s var(--ease-smooth);
}

header.scrolled {
  height: 70px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  color: hsl(var(--primary));
  position: relative;
  z-index: 1002;
  transition: transform 0.3s var(--ease-elastic);
  line-height: 1.2;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

/* Desktop Nav */
.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: hsl(var(--text-light));
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: hsl(var(--primary));
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: hsl(var(--primary));
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1002;
}

.bar {
  width: 28px;
  height: 3px;
  background-color: hsl(var(--primary));
  border-radius: 2px;
  transition: all 0.4s var(--ease-elastic);
}

.menu-toggle:hover .bar {
  background-color: hsl(var(--primary-dark));
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
  z-index: 1001;
}

.mobile-nav.open {
  transform: translateX(0);
}

.menu-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(8px, 6px);
}

.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.menu-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -5px);
}

/* ========================
   Hero Section 
   ======================== */
.hero {
  padding-top: var(--header-height);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle at center, hsla(var(--primary), 0.1) 0%, transparent 70%);
  z-index: 0;
  animation: floatBackground 10s ease-in-out infinite alternate;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  z-index: 1;
}

.hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1s var(--ease-out) forwards 0.2s;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
  font-weight: 600;
  color: hsl(var(--primary));
  font-size: 0.9rem;
  transition: transform 0.3s var(--ease-elastic);
}

.badge:hover {
  transform: scale(1.05);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  animation: pulse 2s infinite;
}

.hero-title {
  color: hsl(var(--primary-dark));
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: hsl(var(--primary));
  color: white;
  box-shadow: 0 8px 20px hsla(var(--primary), 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: hsl(var(--primary-dark));
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px hsla(var(--primary), 0.4);
}

.btn-outline {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
  background: transparent;
}

.btn-outline:hover {
  background: hsl(var(--primary));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.hero-image-wrapper {
  position: relative;
  opacity: 0;
  transform: translateX(30px);
  animation: heroSlideIn 1s var(--ease-out) forwards 0.5s;
}

.hero-img {
  border-radius: 20px;
  box-shadow: 20px 20px 0 hsla(var(--primary), 0.1);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out);
}

.hero-img:hover {
  transform: scale(1.02) rotate(1deg);
}

.hero-img img {
  transition: transform 0.5s ease;
}

.hero-img:hover img {
  transform: scale(1.05);
  /* Zoom effect inside frame */
}

/* ========================
   Stats Section 
   ======================== */
.stats-section {
  background: hsl(var(--primary));
  color: white;
  margin-top: -50px;
  position: relative;
  z-index: 10;
  padding: 60px 0;
  border-radius: 12px 12px 0 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-card {
  transition: transform 0.3s var(--ease-elastic);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card h3 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 5px;
}

/* ========================
   Feature Cards (Programs)
   ======================== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  opacity: 0;
  /* JS reveal */
  transform: translateY(30px);
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: hsl(var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.card:hover::after {
  transform: scaleX(1);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: hsla(var(--primary), 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: hsl(var(--primary));
  font-size: 1.5rem;
  transition: all 0.4s var(--ease-elastic);
}

.card:hover .card-icon {
  background: hsl(var(--primary));
  color: white;
  transform: rotate(10deg) scale(1.1);
}

/* ========================
   Faculty Section 
   ======================== */
.faculty-section {
  background: #f8fafc;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.leader-card {
  background: white;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.3s var(--ease-smooth);
}

.leader-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.leader-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
}

.leader-content {
  padding: 30px;
  text-align: center;
}

.leader-img-placeholder {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  border: 4px solid hsl(var(--primary));
  box-shadow: 0 0 0 4px hsl(var(--accent));
  transition: all 0.4s ease;
  overflow: hidden;
}

.leader-card:hover .leader-img-placeholder {
  transform: scale(1.1);
  box-shadow: 0 0 0 6px hsl(var(--accent));
  color: hsl(var(--primary));
}

.role-badge {
  background: hsla(var(--primary), 0.1);
  color: hsl(var(--primary));
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 15px;
}

/* Teachers Grid */
.teachers-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.teacher-card {
  background: white;
  padding: 30px 20px;
  text-align: center;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s var(--ease-elastic);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.teacher-img-placeholder {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  border: 4px solid hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--accent));
  transition: all 0.4s ease;
  overflow: hidden;
}

.teacher-card:hover .teacher-img-placeholder {
  transform: scale(1.1);
  box-shadow: 0 0 0 5px hsl(var(--accent));
  color: hsl(var(--primary));
}



.teacher-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: hsla(var(--primary), 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ========================
   Footer 
   ======================== */
footer {
  background: hsl(var(--primary-dark));
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: hsl(var(--accent));
  transition: width 0.3s ease;
}

.footer-col:hover h4::after {
  width: 100%;
}

.footer-links li {
  margin-bottom: 12px;
  transition: transform 0.2s ease;
}

.footer-links li:hover {
  transform: translateX(5px);
}

.footer-links a:hover {
  color: hsl(var(--primary-light));
  padding-left: 5px;
  transition: all 0.3s;
}

.credit-line {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

.dev-link {
  color: hsl(var(--primary-light));
  font-weight: 500;
  position: relative;
  transition: all 0.3s;
}

.dev-link:hover {
  text-shadow: 0 0 10px hsla(var(--primary), 0.5);
  color: white;
}

/* ========================
   Animations & Keyframes
   ======================== */
@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes floatBackground {
  0% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(-20px) scale(1.05);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Responsive Grid for Principal Message */
.principal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-btns {
    justify-content: center;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
    margin-left: 20px;
    /* Improve spacing/positioning */
  }

  .principal-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-padding {
    padding: 50px 0;
  }

  .hero {
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero-image-wrapper {
    display: none;
  }
}

/* ========================
   Sub-Page Styles 
   ======================== */
.page-header {
  padding-top: var(--header-height);
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
  color: white;
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
  animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 30px 30px;
  }
}

.page-title {
  font-size: 3rem;
  margin-top: 40px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  color: hsl(var(--accent));
  animation: fadeInUp 0.8s var(--ease-out);
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s backwards;
}

.page-content {
  padding: 80px 0;
  min-height: 50vh;
}

/* Notice Board Styles */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.notice-item {
  background: white;
  border-left: 4px solid hsl(var(--primary));
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notice-item:hover {
  transform: translateX(10px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-left-width: 8px;
}

.notice-date {
  background: hsl(var(--primary), 0.1);
  color: hsl(var(--primary));
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  text-align: center;
  transition: background 0.3s;
}

.notice-item:hover .notice-date {
  background: hsl(var(--primary));
  color: white;
}

.notice-date span {
  font-size: 1.2rem;
  font-weight: 700;
}

.notice-content {
  flex: 1;
  padding: 0 20px;
}

.notice-content h4 {
  color: hsl(var(--text-main));
  margin-bottom: 5px;
}

.download-btn {
  color: hsl(var(--primary));
  padding: 8px;
  border-radius: 50%;
  background: hsl(var(--primary), 0.05);
  transition: all 0.3s;
}

.download-btn:hover {
  background: hsl(var(--primary));
  color: white;
  transform: rotate(90deg);
}

/* Contact Page Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info-card {
  background: hsl(var(--primary));
  color: white;
  padding: 40px;
  border-radius: 16px;
  transition: transform 0.3s;
}

.contact-info-card:hover {
  transform: translateY(-5px);
}

.contact-info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  transition: transform 0.3s;
}

.contact-info-item:hover {
  transform: translateX(10px);
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.contact-form:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(var(--primary), 0.2);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}