/* ========================================
   A.S. HIDAYAT CV — WARM PROFESSIONAL THEME
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=DM+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --bg-primary: #faf8f5;
  --bg-secondary: #ffffff;
  --bg-warm: #f5f0e8;
  --bg-card: #ffffff;
  --bg-card-hover: #fdfcfa;
  --accent-navy: #1a3a5c;
  --accent-gold: #b8860b;
  --accent-gold-light: #d4a843;
  --accent-teal: #2a7d6e;
  --accent-terracotta: #c0623a;
  --accent-slate: #4a6274;
  --text-primary: #1e2a38;
  --text-secondary: #5a6a7a;
  --text-muted: #94a3b3;
  --border-subtle: rgba(26,58,92,0.08);
  --border-warm: rgba(184,134,11,0.15);
  --gradient-hero: linear-gradient(160deg, #faf8f5 0%, #f0ebe0 30%, #e8e0d0 100%);
  --gradient-card: linear-gradient(160deg, #ffffff, #fdfcfa);
  --shadow-soft: 0 2px 20px rgba(26,58,92,0.06);
  --shadow-card: 0 4px 24px rgba(26,58,92,0.08);
  --shadow-hover: 0 8px 32px rgba(26,58,92,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --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: 'DM Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  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-gold); 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(250,248,245,0.9);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav.scrolled {
  height: 60px;
  box-shadow: var(--shadow-soft);
}

.nav-logo {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-navy);
  text-decoration: none;
  letter-spacing: -0.3px;
}

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

.nav-links {
  display: flex;
  gap: 0.25rem;
  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-navy);
  background: rgba(26,58,92,0.05);
}

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

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

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

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

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(184,134,11,0.04) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(26,58,92,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero-ornament {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(184,134,11,0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-ornament-1 {
  top: -80px;
  right: -80px;
}

.hero-ornament-2 {
  bottom: -120px;
  left: -120px;
  width: 400px;
  height: 400px;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  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.45rem 1.1rem;
  background: rgba(184,134,11,0.08);
  border: 1px solid rgba(184,134,11,0.15);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.hero-name {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(2.8rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  color: var(--accent-navy);
}

.hero-title {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

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

.hero-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.85;
  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: 'IBM Plex Mono', monospace;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent-navy);
  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: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-navy);
  color: #fff;
}

.btn-primary:hover {
  background: #244a6e;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26,58,92,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--accent-navy);
  border: 1.5px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(184,134,11,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: 300px;
  height: 380px;
}

.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid var(--border-warm);
  position: relative;
  z-index: 2;
  background: var(--bg-secondary);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.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.25;
}

.hero-photo-frame {
  position: absolute;
  top: 10px;
  left: 10px;
  right: -10px;
  bottom: -10px;
  border: 1.5px solid var(--accent-gold-light);
  border-radius: 20px;
  opacity: 0.3;
  z-index: 1;
}

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

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

.section-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.section-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--accent-navy);
  line-height: 1.2;
}

.section-divider {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  margin-top: 0.8rem;
  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-gold), var(--accent-teal), var(--accent-navy), 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-gold);
  z-index: 2;
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(184,134,11,0.15);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}

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

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

.timeline-company {
  font-size: 0.85rem;
  color: var(--accent-teal);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.timeline-role {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-navy);
  margin-bottom: 0.4rem;
}

.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.8;
}

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

.tag {
  padding: 0.25rem 0.75rem;
  background: rgba(26,58,92,0.04);
  border: 1px solid rgba(26,58,92,0.08);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--accent-navy);
  font-weight: 500;
}

.tag-gold {
  background: rgba(184,134,11,0.06);
  border-color: rgba(184,134,11,0.12);
  color: var(--accent-gold);
}

.tag-teal {
  background: rgba(42,125,110,0.06);
  border-color: rgba(42,125,110,0.12);
  color: var(--accent-teal);
}

.tag-terracotta {
  background: rgba(192,98,58,0.06);
  border-color: rgba(192,98,58,0.12);
  color: var(--accent-terracotta);
}

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

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

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

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

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

.skill-card-icon.navy { background: rgba(26,58,92,0.08); }
.skill-card-icon.gold { background: rgba(184,134,11,0.08); }
.skill-card-icon.teal { background: rgba(42,125,110,0.08); }
.skill-card-icon.terracotta { background: rgba(192,98,58,0.08); }

.skill-card-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--accent-navy);
}

.skill-card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

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

.skill-item {
  padding: 0.25rem 0.65rem;
  background: var(--bg-warm);
  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(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

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

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

.edu-year {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent-terracotta);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.edu-school {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-navy);
  margin-bottom: 0.2rem;
}

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

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

.edu-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background: rgba(184,134,11,0.06);
  border: 1px solid rgba(184,134,11,0.15);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--accent-gold);
  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(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  display: block;
  box-shadow: var(--shadow-soft);
  color: inherit;
}

.contact-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.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.8rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

.footer a {
  color: var(--accent-navy);
  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: 240px; height: 300px; }
  .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(250,248,245,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: 3.5rem 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);
}
