/* ========== CSS Custom Properties ========== */
:root {
  --primary: #0A1F44;
  --secondary: #0099CC;
  --bg: #FFFFFF;
  --bg-light: #F8FAFC;
  --text: #1E293B;
  --text-light: #64748B;
  --accent-glow: rgba(0, 153, 204, 0.15);
  --border-radius: 8px;
  --transition: 0.3s ease;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ========== Reset & Base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--primary);
}

/* ========== Container ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== Typography ========== */
h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 0.5rem; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; color: var(--text); }

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: #0d2a5c;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10,31,68,0.2);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}
.btn-secondary:hover {
  background: #0080b3;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,153,204,0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Special Verify Certificate button with enhanced Gemini-like border */
.verify-cert-btn {
  position: relative;
  background: var(--primary);
  color: #fff;
  border-radius: 30px;
  padding: 0.9rem 2.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.2s, box-shadow 0.2s;
}
.verify-cert-btn::before {
  content: '';
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  background: linear-gradient(45deg, #0099CC, #6366f1, #ec4899, #0099CC);
  background-size: 400% 400%;
  border-radius: 33px;
  z-index: -1;
  animation: geminiGlow 4s ease infinite;
  opacity: 0.8;
}
.verify-cert-btn::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px; right: 3px; bottom: 3px;
  background: var(--primary);
  border-radius: 28px;
  z-index: -1;
}
.verify-cert-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0,153,204,0.4), 0 8px 25px rgba(0,153,204,0.2);
}

@keyframes geminiGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========== Header & Navigation ========== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid #e2e8f0;
  padding: 0.8rem 0;
  position: relative;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.02);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 100px;
  height: auto;
  border-radius: 6px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width var(--transition);
}
.nav-links a:hover::after {
  width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}

/* ========== Footer ========== */
.site-footer {
  background: var(--bg-light);
  border-top: 1px solid #e2e8f0;
  padding: 2rem 0;
  margin-top: 4rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-text {
  color: var(--text-light);
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  color: var(--text-light);
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--secondary);
}

/* ========== Hero Section ========== */
.hero {
  position: relative;
  background: url('../images/home/hero.jpg') center/cover no-repeat;
  min-height: 70vh;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,31,68,0.85), rgba(0,0,0,0.5));
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}
.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ========== Section Styling ========== */
.section {
  padding: 4rem 0;
}
.section-bg-light {
  background: var(--bg-light);
}
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Trust points */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.trust-item {
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}
.trust-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,153,204,0.08);
}
.trust-item .icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Program cards with Gemini-like glow on hover */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.program-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.program-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #0099CC, #6366f1);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}
.program-card:hover {
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(0,0,0,0.06), 0 0 20px rgba(0,153,204,0.1);
  transform: translateY(-2px);
}
.program-card:hover::before {
  opacity: 1;
}
.program-card h3 {
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.program-card h3 .emoji {
  font-size: 1.4rem;
}
.level-badge {
  display: inline-block;
  background: var(--bg-light);
  color: var(--text-light);
  font-size: 0.8rem;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.cert-note {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 1rem;
}

/* ========== About & Founder ========== */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}
.founder-profile {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}
.founder-photo {
  flex: 0 0 220px;
}
.founder-photo img {
  border-radius: var(--border-radius);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.founder-details {
  flex: 1;
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.social-links a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-light);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text);
  transition: all var(--transition);
}
.social-links a:hover {
  background: var(--secondary);
  color: #fff;
}
.social-links a img {
  width: 18px;
  height: 18px;
}

/* ========== Verification Page (Gemini-style input) ========== */
.verify-form {
  max-width: 500px;
  margin: 2rem auto;
  text-align: center;
}

/* Gemini-like animated border for input */
.gemini-input {
  position: relative;
  display: inline-block;
  width: 100%;
}
.gemini-input input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 30px;
  font-size: 1rem;
  outline: none;
  background: #fff;
  transition: border-color 0.3s;
}
.gemini-input::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, #0099CC, #6366f1, #ec4899, #0099CC);
  background-size: 400% 400%;
  border-radius: 32px;
  z-index: -1;
  animation: geminiGlow 4s ease infinite;
  opacity: 0;
  transition: opacity 0.3s;
}
.gemini-input:focus-within::before {
  opacity: 1;
}
.gemini-input input:focus {
  border-color: transparent;
}

/* Rest of verify styles */
.verify-form .verify-cert-btn {
  margin-top: 1rem;
}
.cert-result {
  max-width: 600px;
  margin: 2rem auto;
  background: #fff;
  border-radius: var(--border-radius);
  padding: 2rem;
  border: 1px solid #e2e8f0;
}
.cert-result h3 {
  color: var(--secondary);
}
.student-profile-box {
  display: none;
  margin-top: 2rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  border: 1px dashed var(--secondary);
}
.profile-visible {
  display: block;
}
.achievements-list {
  list-style: none;
  margin-top: 1rem;
}
.achievements-list li::before {
  content: "✓";
  color: var(--secondary);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* ========== FAQ ========== */
.faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 1.2rem 0;
}
.faq-question {
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-light);
  padding-top: 0;
}
.faq-item.active .faq-answer {
  max-height: 200px;
  padding-top: 0.5rem;
}

/* ========== Utility ========== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.hidden { display: none; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .founder-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero {
    min-height: 60vh;
  }
  .hero p {
    font-size: 1rem;
  }
  .logo img {
    width: 80px;
  }
}
