/* ============================================ */
/* FLUENT FUTURE - WELCOME / HOME PAGE          */
/* Extraordinary Design with Animations         */
/* ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #4CAF50;
  --primary-dark: #2f8f3a;
  --primary-light: #81C784;
  --accent: #2196F3;
  --bg-1: #f0f9ff;
  --bg-2: #e0f2fe;
  --bg-3: #f0fdf4;
  --text-dark: #1e293b;
  --text-medium: #475569;
  --text-light: #94a3b8;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.85);
}

html, body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 40%, var(--bg-3) 100%);
  color: var(--text-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================================ */
/* ANIMATED BACKGROUND PARTICLES                */
/* ============================================ */

.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0) rotate(0deg);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-20vh) scale(1) rotate(360deg);
  }
}

/* ============================================ */
/* FLOATING DECORATIONS (PENCIL & RULER)        */
/* ============================================ */

.float-decor {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
  animation: decorFloat 8s ease-in-out infinite;
}

.float-pencil {
  top: 8%;
  left: 5%;
  width: 80px;
  animation-delay: 0s;
}

.float-ruler {
  bottom: 12%;
  right: 6%;
  width: 90px;
  animation-delay: -4s;
}

@keyframes decorFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ============================================ */
/* MAIN CONTENT WRAPPER                         */
/* ============================================ */

.main-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 600px;
  padding: 60px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

/* ============================================ */
/* LOGO SECTION - MAGNIFICENT                   */
/* ============================================ */

.logo-section {
  position: relative;
  margin-bottom: 40px;
  animation: logoEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: translateY(-40px) scale(0.8);
  }
  60% {
    transform: translateY(10px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.logo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(76, 175, 80, 0.15);
  pointer-events: none;
}

.logo-ring-1 {
  width: 220px;
  height: 220px;
  animation: ringSpin 20s linear infinite;
}

.logo-ring-2 {
  width: 260px;
  height: 260px;
  border-color: rgba(33, 150, 243, 0.1);
  animation: ringSpin 25s linear infinite reverse;
}

@keyframes ringSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.logo-img-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 30px;
  background: var(--white);
  box-shadow:
    0 8px 32px rgba(76, 175, 80, 0.2),
    0 0 0 1px rgba(76, 175, 80, 0.1),
    inset 0 0 0 3px rgba(76, 175, 80, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: logoBreathe 4s ease-in-out infinite;
}

@keyframes logoBreathe {
  0%, 100% { box-shadow: 0 8px 32px rgba(76, 175, 80, 0.2), 0 0 0 1px rgba(76, 175, 80, 0.1); }
  50% { box-shadow: 0 12px 48px rgba(76, 175, 80, 0.35), 0 0 0 1px rgba(76, 175, 80, 0.15); }
}

.logo-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  border-radius: 20px;
  transition: transform 0.5s ease;
}

.logo-img-wrapper:hover .logo-img {
  transform: scale(1.08) rotate(3deg);
}

/* ============================================ */
/* TEXT CONTENT                                 */
/* ============================================ */

.text-content {
  margin-bottom: 50px;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(33, 150, 243, 0.1));
  border: 1px solid rgba(76, 175, 80, 0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  animation: badgeEntrance 0.8s ease-out 0.3s both;
}

@keyframes badgeEntrance {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.main-heading {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  animation: textEntrance 1s ease-out 0.5s both;
}

.main-heading .line-1 {
  display: block;
  background: linear-gradient(135deg, var(--text-dark), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-heading .line-2 {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}

@keyframes textEntrance {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.tagline {
  font-size: 17px;
  color: var(--text-medium);
  font-weight: 500;
  line-height: 1.6;
  max-width: 450px;
  margin: 0 auto 30px;
  animation: textEntrance 1s ease-out 0.7s both;
}

.tagline em {
  color: var(--primary-dark);
  font-weight: 600;
  font-style: normal;
}

/* ============================================ */
/* ADMISSION ARROW - CENTER STAGE               */
/* ============================================ */

.admission-section {
  position: relative;
  margin-bottom: 50px;
  animation: arrowEntrance 1s ease-out 0.9s both;
}

@keyframes arrowEntrance {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.arrow-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.arrow-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.arrow-container:hover {
  transform: translateY(-8px) scale(1.05);
}

.arrow-container:active {
  transform: translateY(-2px) scale(0.98);
}

.arrow-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 32px rgba(76, 175, 80, 0.35),
    0 0 0 4px rgba(76, 175, 80, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
  animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.arrow-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  animation: arrowShine 3s ease-in-out infinite;
}

@keyframes arrowShine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.arrow-icon {
  font-size: 36px;
  color: white;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  animation: arrowWiggle 2s ease-in-out infinite;
}

@keyframes arrowWiggle {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(3px); }
  75% { transform: translateX(-3px); }
}

.arrow-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0;
  animation: arrowPulse 2s ease-out infinite;
}

@keyframes arrowPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.arrow-text {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 1px;
}

/* ============================================ */
/* NAVIGATION BUTTONS (ABOUT & CONTACT)         */
/* ============================================ */

.nav-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: buttonsEntrance 1s ease-out 1.1s both;
}

@keyframes buttonsEntrance {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.nav-btn:hover::before {
  left: 100%;
}

.nav-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 6px 24px rgba(76, 175, 80, 0.3);
}

.nav-btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(76, 175, 80, 0.4);
}

.nav-btn-secondary {
  background: var(--glass);
  backdrop-filter: blur(16px);
  color: var(--text-dark);
  border: 1px solid rgba(76, 175, 80, 0.2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.nav-btn-secondary:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(76, 175, 80, 0.15);
}

.btn-icon {
  font-size: 18px;
}

/* ============================================ */
/* FOOTER - NORMAL FLOW (NOT FIXED)             */
/* ============================================ */

.home-footer {
  position: relative;
  width: 100%;
  padding: 24px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
  z-index: 10;
  animation: footerEntrance 1s ease-out 1.3s both;
  margin-top: auto;
}

@keyframes footerEntrance {
  from { opacity: 0; }
  to { opacity: 1; }
}

.home-footer span {
  color: var(--primary);
  font-weight: 700;
}

/* ============================================ */
/* RESPONSIVE DESIGN                            */
/* ============================================ */

@media (max-width: 768px) {
  .main-wrapper {
    padding: 40px 20px 30px;
  }

  .logo-img-wrapper {
    width: 130px;
    height: 130px;
    border-radius: 24px;
  }

  .logo-img {
    width: 110px;
    height: 110px;
  }

  .logo-glow {
    width: 160px;
    height: 160px;
  }

  .logo-ring-1 {
    width: 180px;
    height: 180px;
  }

  .logo-ring-2 {
    width: 210px;
    height: 210px;
  }

  .main-heading {
    font-size: 34px;
  }

  .main-heading .line-2 {
    font-size: 26px;
  }

  .tagline {
    font-size: 15px;
  }

  .arrow-btn {
    width: 70px;
    height: 70px;
  }

  .arrow-icon {
    font-size: 30px;
  }

  .nav-buttons {
    margin-bottom: 40px;
  }

  .nav-btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .float-decor {
    opacity: 0.08;
  }

  .float-pencil {
    width: 50px;
  }

  .float-ruler {
    width: 55px;
  }
}

@media (max-width: 480px) {
  .main-wrapper {
    padding: 30px 16px 20px;
  }

  .logo-section {
    margin-bottom: 30px;
  }

  .logo-img-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 20px;
  }

  .logo-img {
    width: 90px;
    height: 90px;
    border-radius: 14px;
  }

  .main-heading {
    font-size: 28px;
  }

  .main-heading .line-2 {
    font-size: 22px;
  }

  .tagline {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .admission-section {
    margin-bottom: 40px;
  }

  .arrow-btn {
    width: 65px;
    height: 65px;
  }

  .arrow-icon {
    font-size: 28px;
  }

  .nav-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin-bottom: 30px;
  }

  .nav-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  .welcome-badge {
    font-size: 11px;
    padding: 6px 16px;
  }

  .home-footer {
    padding: 16px;
  }
}

@media (max-width: 360px) {
  .main-heading {
    font-size: 24px;
  }

  .main-heading .line-2 {
    font-size: 20px;
  }

  .logo-img-wrapper {
    width: 95px;
    height: 95px;
  }

  .logo-img {
    width: 78px;
    height: 78px;
  }
}

/* ============================================ */
/* REDUCED MOTION                               */
/* ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}