@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700;800&display=swap');

:root {
  --orange: #ff6b00;
  --orange-light: #ff8c3a;
  --orange-glow: rgba(255, 107, 0, 0.35);
  --dark-bg: #050505;
  --panel-bg: rgba(18, 18, 18, 0.65);
  --panel-border: rgba(255, 107, 0, 0.12);
  --panel-border-hover: rgba(255, 107, 0, 0.35);
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --font-heading: 'Outfit', 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--dark-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--dark-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6, .hero-title, .section-title, .premium-btn {
  font-family: var(--font-heading);
}

/* Cyber Tech Grid Background */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 107, 0, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 107, 0, 0.04) 0%, transparent 45%),
    linear-gradient(rgba(255, 107, 0, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 0, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 45px 45px, 45px 45px;
  pointer-events: none;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.8;
}

.fellowship-container {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Nav Header / Back Button */
.partners-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  animation: fadeInDown 0.8s ease-out;
}

.back-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.back-link-btn:hover {
  color: var(--orange);
  background: rgba(255, 107, 0, 0.06);
  border-color: rgba(255, 107, 0, 0.25);
  transform: translateX(-4px);
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.1);
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark-mini {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 107, 0, 0.25);
  object-fit: cover;
  background: #000;
}

.mini-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--orange);
  text-transform: uppercase;
}

/* Hero Section */
.partners-hero {
  margin-bottom: 48px;
  max-width: 820px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 40%, #ffa466 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  letter-spacing: -0.03em;
}

.hero-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-top: 18px;
}

/* Info Labels */
.mini-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  animation: pulseGlow 2s infinite;
}

/* Premium Panel Layouts */
.premium-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 40px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.premium-panel:hover {
  border-color: var(--panel-border-hover);
  box-shadow: 0 12px 40px rgba(255, 107, 0, 0.05);
}

.panel-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

/* Split content logic for details card */
.residency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.residency-col h3 {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 10px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.residency-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

/* Premium Buttons */
.premium-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--orange) 0%, #ff8025 100%);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.premium-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.45);
}

.premium-btn.secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}

.premium-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 107, 0, 0.35);
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.08);
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.benefit-card {
  background: rgba(18, 18, 18, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover {
  transform: translateY(-4px);
  background: rgba(25, 25, 25, 0.6);
  border-color: rgba(255, 107, 0, 0.25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 15px rgba(255, 107, 0, 0.04);
}

.benefit-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.benefit-logo-stamp {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.05em;
  background: rgba(255, 107, 0, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 107, 0, 0.15);
}

.benefit-badge {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  color: #fff;
}

.benefit-badge.badge-venture { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: #10b981; }
.benefit-badge.badge-corporate { background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.3); color: #a78bfa; }
.benefit-badge.badge-academic { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); color: #60a5fa; }

.benefit-card-body h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
}

.benefit-card-body p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 6px;
  margin-bottom: 0;
}

/* College Branches Grid */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.branch-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.branch-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 107, 0, 0.03),
    transparent
  );
  transition: 0.5s;
}

.branch-card:hover::after {
  left: 100%;
}

.branch-card:hover {
  border-color: rgba(255, 107, 0, 0.2);
  background: rgba(255, 107, 0, 0.02);
  transform: translateY(-2px);
}

.branch-chapter {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--orange);
}

.branch-card h4 {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 2px 0 0 0;
  color: #ffffff;
}

.branch-card p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 4px 0 0 0;
}

/* Roadmap timeline */
.timeline-track {
  position: relative;
  margin-top: 32px;
  padding-left: 28px;
}

.timeline-line {
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.timeline-fill {
  position: absolute;
  left: 8px;
  top: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange), var(--orange-light));
  height: 0%; /* Driven by ScrollTrigger */
  box-shadow: 0 0 10px var(--orange);
  transition: height 0.05s linear;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dark-bg);
  border: 2px solid rgba(255, 255, 255, 0.15);
  z-index: 5;
  transition: all 0.3s ease;
}

.timeline-item.active .timeline-marker {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 16px 20px;
  transition: all 0.3s ease;
}

.timeline-item.active .timeline-content {
  border-color: rgba(255, 107, 0, 0.2);
  background: rgba(255, 107, 0, 0.02);
}

.timeline-step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 2px;
}

.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 4px 0;
  color: #fff;
}

.timeline-content p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

/* FAQ Accordion Elements */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(255, 107, 0, 0.15);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  text-align: left;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.faq-icon {
  color: var(--text-secondary);
  font-size: 1.2rem;
  font-weight: 300;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-text {
  padding: 0 20px 20px 20px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

/* Active FAQ states */
.faq-item.open {
  border-color: rgba(255, 107, 0, 0.25);
  background: rgba(255, 107, 0, 0.01);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--orange);
}

/* Application Form Fields */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.form-input {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input::placeholder {
  color: #555;
}

.form-input:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255, 107, 0, 0.01);
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.15);
}

textarea.form-input {
  min-height: 90px;
  resize: vertical;
}

.form-submit-btn {
  width: 100%;
  margin-top: 10px;
}

/* Call to Action Band */
.cta-band {
  background: radial-gradient(circle at center, rgba(255, 107, 0, 0.08) 0%, transparent 80%), rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 48px;
}

.cta-band h2 {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 6px 0 0 0;
  color: #ffffff;
}

/* Footer Section */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-side {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
  background: #000;
}

.footer-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--orange);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.apply-now {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange);
  text-transform: uppercase;
}

.url-text {
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Glass Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(255, 107, 0, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 107, 0, 0.05);
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  color: #fff;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 93, 93, 0.15);
  border-color: rgba(255, 93, 93, 0.3);
  color: #ff5d5d;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Utility visibility support classes for ScrollTrigger fades */
.reveal-element {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustment rules */
@media (max-width: 768px) {
  .residency-grid {
    gap: 24px;
  }
  
  .cta-band {
    text-align: center;
    justify-content: center;
    padding: 24px;
  }
  
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  
  .footer-meta {
    align-items: center;
    text-align: center;
  }
}

.footer-credit {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 6px;
  color: var(--text-secondary);
}

.footer-credit a {
  color: var(--orange);
  text-decoration: underline;
  font-weight: 800;
  transition: color 0.2s ease;
}

.footer-credit a:hover {
  color: var(--orange-light);
}
