@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800&display=swap');

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

:root {
  --primary: #2b3a8e;
  --accent: #fdd835;
  --accent2: #c62828;
  --green: #2e7d32;
  --light: #f4f6f8;
  --dark: #0d1240;
  --glass: rgba(255,255,255,0.08);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: #fff;
  overflow-x: hidden;
}

/* HERO */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d1240 0%, #1e2268 40%, #2b3a8e 70%, #1e2268 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(253,216,53,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(198,40,40,0.06) 0%, transparent 50%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-3%, 3%) rotate(2deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #ffe082);
  color: var(--dark);
  padding: 6px 24px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease;
}

.candidate-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  margin: 0 auto 28px;
  background: linear-gradient(135deg, #1e2268, #2b3a8e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 50px rgba(253,216,53,0.25), 0 0 100px rgba(253,216,53,0.1);
  animation: fadeInUp 0.6s ease;
  position: relative;
  overflow: hidden;
  transition: width 0.1s ease-out, height 0.1s ease-out, box-shadow 0.1s ease-out;
  will-change: transform;
}

.candidate-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.candidate-photo::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  animation: rotateBorder 6s linear infinite;
}

@keyframes rotateBorder {
  to { transform: rotate(360deg); }
}

.candidate-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #c8d0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  margin-bottom: 8px;
  animation: fadeInUp 0.8s ease;
}

.candidate-role {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
  animation: fadeInUp 1s ease;
}

.candidate-info {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
  animation: fadeInUp 1.1s ease;
}

.info-chip {
  background: var(--glass);
  border: 1px solid rgba(253,216,53,0.3);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.info-chip:hover {
  border-color: var(--accent);
  background: rgba(253,216,53,0.12);
  transform: translateY(-2px);
}

.info-chip span {
  color: var(--accent);
}

.period-badge {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(253,216,53,0.15), rgba(253,216,53,0.05));
  border: 1px solid rgba(253,216,53,0.4);
  padding: 12px 32px;
  border-radius: 12px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--accent);
  animation: fadeInUp 1.2s ease;
}

.projects-btn {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent), #ffe082);
  color: var(--dark);
  padding: 16px 48px;
  border-radius: 60px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 24px rgba(253,216,53,0.3);
  transition: all 0.3s;
  animation: fadeInUp 1.4s ease;
}

.projects-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 40px rgba(253,216,53,0.45);
}

.party-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #2b3a8e 25%, #fdd835 25%, #fdd835 50%, #c62828 50%, #c62828 75%, #2e7d32 75%);
  z-index: 10;
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  opacity: 0.5;
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* SECTIONS */
.section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #ffe082);
  color: var(--dark);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff, #b8c0e8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 48px;
}

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(253,216,53,0.1));
}

.phase {
  position: relative;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(30px);
}

.phase.visible {
  animation: slideIn 0.6s ease forwards;
}

@keyframes slideIn {
  to { opacity: 1; transform: translateY(0); }
}

.phase-dot {
  position: absolute;
  left: -33px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--dark);
  box-shadow: 0 0 12px rgba(253,216,53,0.4);
}

.phase-card {
  background: linear-gradient(135deg, rgba(30,34,104,0.6), rgba(30,34,104,0.2));
  border: 1px solid rgba(253,216,53,0.15);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.phase-card:hover {
  border-color: rgba(253,216,53,0.4);
  transform: translateX(6px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.phase-number {
  background: linear-gradient(135deg, var(--accent), #ffe082);
  color: var(--dark);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.phase-title {
  font-size: 1.2rem;
  font-weight: 700;
  flex: 1;
}

.phase-period {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(253,216,53,0.1);
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 1px;
}

.phase-desc {
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.phase-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tag {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: all 0.3s;
}

.project-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(253,216,53,0.08);
}

/* PROJECT CARDS GRID */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.project-card {
  background: linear-gradient(135deg, rgba(30,34,104,0.5), rgba(13,18,64,0.8));
  border: 1px solid rgba(253,216,53,0.12);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.project-card.visible {
  animation: fadeInUp 0.5s ease forwards;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover {
  border-color: rgba(253,216,53,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.project-card:hover::before { opacity: 1; }

.project-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-card p {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* VISION */
.vision-box {
  background: linear-gradient(135deg, rgba(253,216,53,0.08), rgba(253,216,53,0.02));
  border: 1px solid rgba(253,216,53,0.2);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  margin-top: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.vision-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.vision-box .quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}

.vision-box .author {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

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

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

@media (max-width: 600px) {
  .section { padding: 50px 16px; }
  .phase-card { padding: 20px; }
  .vision-box { padding: 28px; }
  .candidate-photo { width: 200px; height: 200px; }
  .projects-grid { grid-template-columns: 1fr; }
}
