/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Oswald:wght@400;700&display=swap');

:root {
  --primary-color: #D4AF37; /* Gold */ 
  --primary-glow: rgba(212, 175, 55, 0.3); 
  --primary-glow-strong: rgba(212, 175, 55, 0.6);
  --bg-black: #050505;
  --bg-card: linear-gradient(145deg, #111111, #1a1a1a);
  --text-white: #ffffff;
  --text-grey: #bbbbbb;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 { 
  font-family: var(--font-heading); 
  color: var(--primary-color); 
  text-transform: uppercase; 
  letter-spacing: 2px; 
}
a { text-decoration: none; color: inherit; }
.text-center { text-align: center; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 60px 0; }

/* Buttons with Glowing Hover */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--bg-black);
  padding: 14px 28px;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  border-radius: 4px;
  text-transform: uppercase;
  transition: var(--transition);
  border: 1px solid var(--primary-color);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: var(--bg-black);
  transition: var(--transition);
  z-index: -1;
}
.btn:hover::before { left: 0; }
.btn:hover {
  color: var(--primary-color);
  box-shadow: 0 0 20px var(--primary-glow-strong);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
}
.btn-outline::before { background: var(--primary-color); }
.btn-outline:hover { color: var(--bg-black); box-shadow: 0 0 20px var(--primary-glow-strong); }

/* Header & Navigation */
header {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; }
.logo-container { display: flex; align-items: center; gap: 15px; }
.logo-container img { width: 45px; height: 45px; border-radius: 50%; box-shadow: 0 0 10px var(--primary-glow); }
.logo-text { font-family: var(--font-heading); font-size: 1.4rem; color: var(--primary-color); letter-spacing: 1px;}
.nav-links { list-style: none; display: flex; gap: 25px; }
.nav-links li a { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; transition: var(--transition); position: relative; }
.nav-links li a::after {
  content: ''; position: absolute; width: 0; height: 2px;
  bottom: -5px; left: 0; background-color: var(--primary-color); transition: var(--transition);
}
.nav-links li a:hover::after { width: 100%; }
.nav-links li a:hover { color: var(--primary-color); text-shadow: 0 0 8px var(--primary-glow); }
.hamburger { display: none; font-size: 1.8rem; cursor: pointer; color: var(--primary-color); }

main { padding-top: 80px; min-height: 80vh; }

/* 🌟 Animated Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  /* Animated Dark Gradient Background */
  background: linear-gradient(-45deg, #000000, #1a1a1a, #0d0d0d, #222018);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  position: relative;
}
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glowing Floating Logo */
.hero-logo {
  width: 160px;
  margin-bottom: 25px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  animation: floatGlow 3s ease-in-out infinite alternate;
}
@keyframes floatGlow {
  0% { transform: translateY(0px); box-shadow: 0 0 15px var(--primary-glow); }
  100% { transform: translateY(-15px); box-shadow: 0 0 40px var(--primary-glow-strong); }
}

/* Smooth Fade-in Text Elements */
.fade-in { opacity: 0; transform: translateY(30px); animation: fadeInUp 1s forwards ease-out; }
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

.hero h1 { font-size: 3rem; margin-bottom: 5px; text-shadow: 0 0 20px rgba(0,0,0,0.8); }
.hero h2 { font-size: 1.2rem; color: var(--text-white); font-weight: 300; margin-bottom: 25px; font-family: var(--font-body); letter-spacing: 4px; }
.hero p { max-width: 600px; color: var(--text-grey); margin-bottom: 35px; }

/* 🌟 Scroll Reveal Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* Creative Cards (Programs & Contact) */
.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}
.card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
/* Subtle inner glow line on cards */
.card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--primary-color); transform: scaleX(0); transition: var(--transition); transform-origin: left;
}
.card:hover::before { transform: scaleX(1); }
.card:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 15px 30px rgba(0,0,0,0.8), 0 0 20px var(--primary-glow);
}
.card h3 { margin-bottom: 15px; font-size: 1.5rem; }

/* Creative Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-wrapper { overflow: hidden; border-radius: 8px; position: relative; }
.gallery-item {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  cursor: pointer;
}
.gallery-wrapper::after {
  content: '🔍'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0);
  font-size: 2rem; color: #fff; transition: var(--transition); opacity: 0; pointer-events: none;
}
.gallery-wrapper:hover .gallery-item { transform: scale(1.1); filter: brightness(0.6); }
.gallery-wrapper:hover::after { transform: translate(-50%, -50%) scale(1); opacity: 1; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.95); z-index: 2000; justify-content: center; align-items: center;
  backdrop-filter: blur(5px);
}
.lightbox img { max-width: 85%; max-height: 85%; border: 2px solid var(--primary-color); box-shadow: 0 0 30px var(--primary-glow-strong); border-radius: 8px; animation: zoomIn 0.3s ease; }
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.close-lightbox { position: absolute; top: 20px; right: 40px; font-size: 3rem; color: var(--primary-color); cursor: pointer; transition: var(--transition); }
.close-lightbox:hover { transform: rotate(90deg); text-shadow: 0 0 15px var(--primary-color); }

/* Footer */
footer {
  background: #080808;
  text-align: center;
  padding: 50px 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
}
.footer-socials a { color: var(--primary-color); font-family: var(--font-heading); letter-spacing: 1px; transition: var(--transition); }
.footer-socials a:hover { text-shadow: 0 0 10px var(--primary-glow-strong); }

/* Floating WhatsApp (Adding a pulse animation) */
.floating-whatsapp {
  position: fixed; bottom: 25px; right: 25px;
  background-color: #25D366; color: white;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000; transition: var(--transition);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.floating-whatsapp:hover { transform: translateY(-5px); animation: none; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.6); }

/* Media Queries */
@media (min-width: 768px) {
  .hero h1 { font-size: 4.5rem; }
  .hero h2 { font-size: 1.5rem; }
  .grid-container { grid-template-columns: repeat(3, 1fr); }
  .about-flex { display: flex; gap: 60px; align-items: center; }
  .about-text { flex: 1; text-align: left; }
}
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    position: absolute; top: 75px; left: -100%; flex-direction: column;
    background: rgba(5, 5, 5, 0.98); width: 100%; text-align: center; padding: 30px 0; border-bottom: 1px solid var(--primary-color);
  }
  .nav-links.active { left: 0; }
}

/*************************
/* --- Form Styles --- */
.form-group { margin-bottom: 25px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary-color); }
.form-control {
  width: 100%; padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--text-white);
  border-radius: 5px;
  font-family: var(--font-body);
  transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 10px var(--primary-glow); background: rgba(0,0,0,0.8); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 20px; }

/* Checkboxes & Radios */
.checkbox-group { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; font-weight: 400; color: var(--text-grey); cursor: pointer; }
.checkbox-label input[type="checkbox"], .checkbox-label input[type="radio"] {
  appearance: none; width: 20px; height: 20px;
  border: 2px solid var(--primary-color); border-radius: 4px;
  background: transparent; cursor: pointer; position: relative; transition: var(--transition);
}
.checkbox-label input[type="radio"] { border-radius: 50%; }
.checkbox-label input[type="checkbox"]:checked, .checkbox-label input[type="radio"]:checked {
  background: var(--primary-color); box-shadow: 0 0 10px var(--primary-glow);
}
.checkbox-label input[type="checkbox"]:checked::after {
  content: '✔'; position: absolute; color: var(--bg-black); font-size: 14px; top: -1px; left: 3px;
}

/* Section Dividers in Form */
.form-section-title { margin: 40px 0 20px; padding-bottom: 10px; border-bottom: 1px solid rgba(212, 175, 55, 0.3); color: var(--text-white); font-size: 1.5rem; text-align: left; text-align: center;}

/* Loading Overlay */
#loading-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 3000; justify-content: center; align-items: center; flex-direction: column; }
.spinner { width: 50px; height: 50px; border: 4px solid rgba(212,175,55,0.3); border-top: 4px solid var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Media Query for Form Grid */
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* --- Multi-Step Form Styles --- */
.form-step { 
    display: none; 
    animation: fadeIn 0.5s ease-in-out; 
}
.form-step.active { 
    display: block; 
}
.step-navigation { 
    display: flex; 
    justify-content: space-between; 
    margin-top: 35px; 
    gap: 15px;
}
.step-navigation .btn { 
    flex: 1; 
    text-align: center;
}
.hidden-input { 
    display: none; 
    margin-top: 10px; 
    margin-left: 30px; 
    width: calc(100% - 30px); 
    border-color: var(--primary-color);
}
.hidden-input.visible { 
    display: block; 
    animation: fadeIn 0.3s ease-in-out;
}
/* Progress Indicator */
.step-indicator {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/*****************************
/* --- Home Page Specific Styles --- */
.home-programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}
@media (min-width: 768px) {
    .home-programs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .home-programs-grid { grid-template-columns: repeat(4, 1fr); }
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}
.card:hover .card-img {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}
@media (min-width: 768px) {
    .info-grid { grid-template-columns: 1fr 1fr; }
}

.info-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    height: 100%;
}
.custom-list {
    list-style: none;
    padding: 0;
    text-align: left;
}
.custom-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    color: var(--text-white);
    font-size: 1.1rem;
    line-height: 1.5;
}
.custom-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ---- Footer social icons ----*/

/* --- Social Media Icons --- */
.footer-socials { 
  display: flex; 
  justify-content: center; 
  gap: 25px; 
  margin: 25px 0; 
}
.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--primary-color);
  transition: var(--transition);
}
.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: var(--transition);
}
.social-icon:hover {
  background: var(--primary-color);
  color: var(--bg-black);
  box-shadow: 0 0 15px var(--primary-glow-strong);
  transform: translateY(-5px);
}


/* --- Expandable Program Cards --- */
.program-card {
    text-align: left;
    padding: 40px;
    position: relative;
    border-top: 4px solid transparent;
}
.program-card:hover {
    border-top: 4px solid var(--primary-color);
}
.program-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.program-details.expanded {
    max-height: 1200px; /* Allows room for content to expand */
    opacity: 1;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}
.detail-group {
    margin-bottom: 25px;
}
.detail-group h4 {
    color: var(--text-white);
    font-size: 1.3rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.detail-group p {
    color: var(--text-grey);
    margin-bottom: 10px;
}
.detail-list {
    list-style: none;
    padding: 0;
}
.detail-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: var(--text-grey);
    font-size: 1.05rem;
}
.detail-list li::before {
    content: '►';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    font-size: 0.8rem;
}
/* Base button */
.toggle-btn {
    padding: 10px 20px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Hover */
.toggle-btn:hover {
    background: var(--primary-color);
    color: #000;
}

/* Active (View Less state) */
.toggle-btn.active {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 12px var(--primary-glow);
}



/* --- About Page Specific Styles --- */
.profile-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
}
.profile-img {
    width: 100%;
    max-width: 280px;
    border-radius: 12px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px var(--primary-glow);
    object-fit: cover;
}
.profile-content {
    flex: 1;
}
.vision-text {
    font-size: 1.6rem;
    font-style: italic;
    color: var(--primary-color);
    line-height: 1.6;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}
@media (min-width: 768px) {
    .profile-layout {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
}


/* --- Contact Page Styles --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 30px;
}
@media (min-width: 850px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1.5fr; /* Info takes less space, form takes more */
    }
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.contact-detail {
    margin-bottom: 30px;
}
.contact-detail h4 {
    color: var(--text-grey);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}
.contact-detail p {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-white);
}

/* Fix dropdown styling in dark mode */
select.form-control option {
    background-color: var(--bg-black);
    color: var(--text-white);
}

#contactSuccessMessage {
    display: none;
    text-align: center;
    padding: 40px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid #25D366;
    border-radius: 8px;
    color: #25D366;
    animation: fadeIn 0.5s ease-in-out;
}

/******************************************************************************************/
/* --- Portal Specific Styles --- */
.portal-login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #222 0%, #000 100%);
    padding: 20px;
}
.portal-login-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border-top: 4px solid var(--primary-color);
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.portal-dashboard {
    display: none; /* Hidden until logged in */
    padding-top: 100px;
    min-height: 100vh;
}
.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}
.data-table-wrapper {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.data-table th, .data-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.data-table th {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}
.data-table tr:hover {
    background: rgba(255,255,255,0.02);
}
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    background: rgba(212, 175, 55, 0.2);
    color: var(--primary-color);
}
/******************************************************************************************/