/* ===== HERO SECTION ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-text {
  z-index: 2;
}

.hero-greeting {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #FF9900;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards 0.3s;
}

.hero-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 900;
  font-size: 4rem;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards 0.5s;
  text-shadow: 0 0 40px rgba(255, 153, 0, 0.15);
}

.hero-title {
  font-size: 1.15rem;
  color: #8b949e;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards 0.7s;
}

.hero-title strong {
  color: #FF9900;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards 0.9s;
}

/* Hero slideshow */
.hero-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 153, 0, 0.2);
  box-shadow:
    0 0 60px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(255, 153, 0, 0.1);
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards 0.6s;
}

.hero-slideshow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.05), transparent 50%);
  z-index: 2;
  pointer-events: none;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s ease;
  transform: scale(1.05);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.slide-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 153, 0, 0.6);
  background: rgba(255, 153, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slide-indicators button.active {
  background: #FF9900;
  box-shadow: 0 0 12px rgba(255, 153, 0, 0.6);
  transform: scale(1.2);
}

/* Orbit ring decoration for hero */
.orbit-ring {
  position: absolute;
  border: 1px solid rgba(255, 153, 0, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-ring-1 {
  width: 600px;
  height: 600px;
  top: -100px;
  right: -200px;
  animation: spin 60s linear infinite;
}

.orbit-ring-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  animation: spin 45s linear infinite reverse;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

/* ===== ABOUT SECTION ===== */
#about {
  padding-top: 4rem;
}

.about-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-portrait {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 153, 0, 0.25);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 153, 0, 0.1);
  flex-shrink: 0;
  position: sticky;
  top: 6rem;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text p {
  font-size: 1.02rem;
  line-height: 1.9;
  color: #b1bac4;
}

/* ===== PUBLICATIONS SECTION ===== */
#publications {
  padding-top: 2rem;
}

/* Spotlight (whitepaper) */
.pub-spotlight {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.pub-spotlight-cover {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 153, 0, 0.15);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 153, 0, 0.08);
  transition: all 0.3s ease;
}

.pub-spotlight-cover:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 153, 0, 0.15);
}

.pub-spotlight-body h3 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: #e6edf3;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.pub-spotlight-meta {
  font-size: 0.88rem;
  color: #FF9900;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.pub-spotlight-body p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #8b949e;
  margin-bottom: 1rem;
}

.pub-spotlight-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Divider */
.pub-divider {
  border: none;
  border-top: 1px solid rgba(255, 153, 0, 0.1);
  margin: 0 0 2rem 0;
}

/* Article cards grid */
.pub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pub-card {
  background: rgba(22, 27, 34, 0.6);
  border: 1px solid rgba(255, 153, 0, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.pub-card:hover {
  border-color: rgba(255, 153, 0, 0.25);
  box-shadow: 0 0 30px rgba(255, 153, 0, 0.06);
  transform: translateY(-3px);
}

.pub-card-source {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FF9900;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pub-card-source .pub-badge {
  background: rgba(255, 153, 0, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
}

.pub-card h4 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #e6edf3;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.pub-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #8b949e;
  flex-grow: 1;
}

.pub-card-date {
  font-size: 0.78rem;
  color: #6e7681;
  margin-top: 0.8rem;
}

/* "View all" link */
.pub-view-all {
  text-align: center;
  margin-top: 1.5rem;
}

.pub-view-all a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #FF9900;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(255, 153, 0, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.pub-view-all a:hover {
  background: rgba(255, 153, 0, 0.08);
  border-color: rgba(255, 153, 0, 0.4);
}

/* LinkedIn post badge variant (muted) */
.pub-badge-muted {
  background: rgba(255, 255, 255, 0.06);
  color: #8b949e;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
}

/* ===== SKILLS SECTION ===== */
#skills {
  padding-top: 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.skill-card {
  background: rgba(22, 27, 34, 0.6);
  border: 1px solid rgba(255, 153, 0, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.skill-card:hover {
  border-color: rgba(255, 153, 0, 0.2);
  box-shadow: 0 0 25px rgba(255, 153, 0, 0.05);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.skill-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #e6edf3;
}

.skill-meta {
  font-size: 0.8rem;
  color: #FF9900;
  font-weight: 500;
}

.skill-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #FF9900, #ffb84d);
  box-shadow: 0 0 12px rgba(255, 153, 0, 0.4);
  width: 0;
  transition: width 1.5s ease;
}

.skill-since {
  font-size: 0.78rem;
  color: #6e7681;
}

.lang-section {
  margin-top: 3rem;
}

.lang-section h3 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: #e6edf3;
  margin-bottom: 1.5rem;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.lang-card {
  text-align: center;
  background: rgba(22, 27, 34, 0.6);
  border: 1px solid rgba(255, 153, 0, 0.08);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  transition: all 0.3s ease;
}

.lang-card:hover {
  border-color: rgba(255, 153, 0, 0.2);
  transform: translateY(-3px);
}

.lang-circle-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
}

.lang-circle-wrap svg {
  transform: rotate(-90deg);
  width: 80px;
  height: 80px;
}

.lang-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 4;
}

.lang-circle-fill {
  fill: none;
  stroke: #FF9900;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  transition: stroke-dashoffset 1.5s ease;
  filter: drop-shadow(0 0 6px rgba(255, 153, 0, 0.4));
}

.lang-percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #FF9900;
}

.lang-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #e6edf3;
  margin-bottom: 0.2rem;
}

.lang-level {
  font-size: 0.8rem;
  color: #6e7681;
}

/* ===== EXPERIENCE SECTION ===== */
#experience {
  padding-top: 2rem;
}

.timeline {
  position: relative;
  margin-top: 2rem;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8px;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, #FF9900, rgba(255, 153, 0, 0.1));
  box-shadow: 0 0 10px rgba(255, 153, 0, 0.2);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0d1117;
  border: 2px solid #FF9900;
  box-shadow: 0 0 15px rgba(255, 153, 0, 0.3);
  z-index: 2;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF9900;
}

.timeline-card {
  background: rgba(22, 27, 34, 0.6);
  border: 1px solid rgba(255, 153, 0, 0.08);
  border-radius: 12px;
  padding: 1.8rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.timeline-card:hover {
  border-color: rgba(255, 153, 0, 0.2);
  box-shadow: 0 0 30px rgba(255, 153, 0, 0.05);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.timeline-company {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #FF9900;
}

.timeline-period {
  font-size: 0.85rem;
  color: #6e7681;
  background: rgba(255, 153, 0, 0.08);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  white-space: nowrap;
}

.timeline-role {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #e6edf3;
  margin-bottom: 0.8rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: #8b949e;
  line-height: 1.8;
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease;
  opacity: 1;
}

.timeline-card.collapsed .timeline-desc {
  max-height: 0;
  opacity: 0;
}

.timeline-expand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #FF9900;
  margin-top: 0.5rem;
  cursor: pointer;
  border: none;
  background: none;
  font-family: 'Exo 2', sans-serif;
  transition: gap 0.3s ease;
}

.timeline-expand:hover {
  gap: 10px;
}

.timeline-expand svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.timeline-expand svg {
  transform: rotate(180deg);
}

.timeline-card.collapsed .timeline-expand svg {
  transform: rotate(0deg);
}

/* ===== EDUCATION SECTION ===== */
#education {
  padding-top: 2rem;
}

.edu-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.edu-card {
  background: rgba(22, 27, 34, 0.6);
  border: 1px solid rgba(255, 153, 0, 0.08);
  border-radius: 12px;
  padding: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.edu-card:hover {
  border-color: rgba(255, 153, 0, 0.2);
  box-shadow: 0 0 25px rgba(255, 153, 0, 0.05);
  transform: translateY(-2px);
}

.edu-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 153, 0, 0.08);
  border: 1px solid rgba(255, 153, 0, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edu-icon svg {
  width: 28px;
  height: 28px;
  stroke: #FF9900;
  fill: none;
  stroke-width: 1.5;
}

.edu-degree {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #e6edf3;
  margin-bottom: 0.3rem;
}

.edu-school {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #FF9900;
  margin-bottom: 0.2rem;
}

.edu-year {
  font-size: 0.85rem;
  color: #6e7681;
  margin-bottom: 0.8rem;
}

.edu-desc {
  font-size: 0.95rem;
  color: #8b949e;
  line-height: 1.8;
}

/* ===== CONTACT SECTION ===== */
#contact {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  background: rgba(22, 27, 34, 0.6);
  border: 1px solid rgba(255, 153, 0, 0.08);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  transition: all 0.3s ease;
}

.contact-card:hover {
  border-color: rgba(255, 153, 0, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(255, 153, 0, 0.05);
}

.contact-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: rgba(255, 153, 0, 0.08);
  border: 1px solid rgba(255, 153, 0, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  stroke: #FF9900;
  fill: none;
  stroke-width: 1.5;
}

.contact-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #6e7681;
  margin-bottom: 0.4rem;
}

.contact-value {
  font-size: 1rem;
  color: #e6edf3;
  line-height: 1.6;
}

.contact-value a {
  color: #FF9900;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact-value a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.contact-socials {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

.contact-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.9rem 1.8rem;
  background: rgba(255, 153, 0, 0.08);
  border: 1px solid rgba(255, 153, 0, 0.2);
  border-radius: 10px;
  color: #FF9900;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.contact-social-btn:hover {
  background: rgba(255, 153, 0, 0.15);
  border-color: #FF9900;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 153, 0, 0.15);
}

.contact-social-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

.contact-form label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #6e7681;
}

.contact-form input,
.contact-form textarea {
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid rgba(255, 153, 0, 0.12);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: #e6edf3;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(110, 118, 129, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #FF9900;
  box-shadow: 0 0 15px rgba(255, 153, 0, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.contact-form .btn-primary {
  min-width: 160px;
  justify-content: center;
}

.contact-form .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-status.visible {
  opacity: 1;
}

.form-status.success {
  color: #3fb950;
}

.form-status.error {
  color: #f85149;
}

/* ===== RESPONSIVE: HOMEPAGE ===== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-name {
    font-size: 3rem;
  }

  .hero-slideshow {
    max-width: 500px;
    margin: 0 auto;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-portrait {
    margin: 0 auto;
    width: 160px;
    height: 160px;
    position: static;
  }

  .pub-spotlight {
    grid-template-columns: 160px 1fr;
    gap: 1.5rem;
  }

  .pub-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .lang-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-socials {
    flex-direction: column;
    align-items: center;
  }

  .edu-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .edu-icon {
    margin: 0 auto;
  }

  .section-title {
    font-size: 2rem;
  }

  .station-panel {
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  .hero-name {
    font-size: 2.4rem;
  }

  .pub-spotlight {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pub-spotlight-cover {
    max-width: 160px;
    margin: 0 auto;
  }

  .pub-spotlight-actions {
    justify-content: center;
  }

  .lang-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline-header {
    flex-direction: column;
  }

  .hero-slideshow {
    aspect-ratio: 16/10;
  }
}

@media (max-width: 768px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
}
