/* ========================================
   BUDI IRAWAN CV — AVIATION TECH THEME
   ======================================== */

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

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2235;
  --bg-card-hover: #1f2a42;
  --accent-cyan: #00e5ff;
  --accent-amber: #ffb300;
  --accent-emerald: #00e676;
  --accent-rose: #ff4081;
  --accent-purple: #b388ff;
  --text-primary: #e8edf5;
  --text-secondary: #8b95a8;
  --text-muted: #4a5568;
  --border-subtle: rgba(255,255,255,0.06);
  --border-glow: rgba(0,229,255,0.2);
  --gradient-hero: linear-gradient(135deg, #0a0e17 0%, #0d1b2a 40%, #1b2838 100%);
  --gradient-card: linear-gradient(160deg, rgba(26,34,53,0.8), rgba(17,24,39,0.9));
  --shadow-glow: 0 0 30px rgba(0,229,255,0.08);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

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

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-cyan); border-radius: 3px; }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10,14,23,0.85);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav.scrolled {
  height: 60px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--text-muted);
  font-weight: 400;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-cyan);
  background: rgba(0,229,255,0.06);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 1px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  transition: var(--transition);
  border-radius: 1px;
}

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-glow-1 {
  top: -200px;
  right: -100px;
  background: var(--accent-cyan);
}

.hero-glow-2 {
  bottom: -200px;
  left: -100px;
  background: var(--accent-purple);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  animation: fadeInUp 0.8s ease-out;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff 30%, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.3px;
}

.hero-title strong {
  color: var(--accent-amber);
  font-weight: 600;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.hero-stat {
  text-align: left;
}

.hero-stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.3rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: #33ecff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,229,255,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0,229,255,0.04);
}

/* Hero Photo */
.hero-photo-wrap {
  display: flex;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-photo-container {
  position: relative;
  width: 340px;
  height: 420px;
}

.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hero-photo-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.3;
}

.hero-photo-frame {
  position: absolute;
  top: 12px;
  left: 12px;
  right: -12px;
  bottom: -12px;
  border: 1px solid var(--accent-cyan);
  border-radius: 24px;
  opacity: 0.3;
  z-index: 1;
}

.hero-photo-dots {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(var(--accent-cyan) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.15;
  z-index: 0;
}

/* ---- Section Common ---- */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
  margin-top: 1rem;
  border-radius: 2px;
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease-out both;
}

.timeline-dot {
  position: absolute;
  left: -3rem;
  top: 0.5rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-cyan);
  z-index: 2;
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0,229,255,0.5);
}

.timeline-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.timeline-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateX(4px);
}

.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent-amber);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.timeline-company {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.timeline-role {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  padding: 0.25rem 0.75rem;
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.12);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

.tag-amber {
  background: rgba(255,179,0,0.06);
  border-color: rgba(255,179,0,0.15);
  color: var(--accent-amber);
}

.tag-emerald {
  background: rgba(0,230,118,0.06);
  border-color: rgba(0,230,118,0.15);
  color: var(--accent-emerald);
}

.tag-purple {
  background: rgba(179,136,255,0.06);
  border-color: rgba(179,136,255,0.15);
  color: var(--accent-purple);
}

/* ---- Skills Grid ---- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.skill-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.skill-card-icon.cyan { background: rgba(0,229,255,0.1); color: var(--accent-cyan); }
.skill-card-icon.amber { background: rgba(255,179,0,0.1); color: var(--accent-amber); }
.skill-card-icon.emerald { background: rgba(0,230,118,0.1); color: var(--accent-emerald); }
.skill-card-icon.purple { background: rgba(179,136,255,0.1); color: var(--accent-purple); }
.skill-card-icon.rose { background: rgba(255,64,129,0.1); color: var(--accent-rose); }

.skill-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.skill-card-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-item {
  padding: 0.2rem 0.6rem;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ---- Education Cards ---- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.edu-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.edu-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.edu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
}

.edu-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent-amber);
  margin-bottom: 0.5rem;
}

.edu-school {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.edu-major {
  font-size: 0.95rem;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.edu-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.edu-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background: rgba(255,179,0,0.08);
  border: 1px solid rgba(255,179,0,0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--accent-amber);
  font-weight: 600;
  margin-top: 1rem;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  display: block;
}

.contact-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.contact-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

/* ---- Page Background ---- */
.page-bg {
  background: var(--gradient-hero);
  min-height: 100vh;
}

.page-header {
  padding-top: 120px;
  padding-bottom: 0;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-stats { justify-content: center; }
  .hero-buttons { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-photo-container { width: 260px; height: 320px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10,14,23,0.97);
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
  }
  .timeline { padding-left: 2rem; }
  .timeline::before { left: 5px; }
  .timeline-dot { left: -2rem; width: 12px; height: 12px; }
  .skills-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 5rem 1rem 3rem; }
  .section { padding: 4rem 1rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-num { font-size: 1.8rem; }
}

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
