/* =============================================
   ATIN KARTINAH – PERSONAL WEBSITE
   Design: Modern Profesional / Clean Minimal
   ============================================= */

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

/* === VARIABLES === */
:root {
  --primary:    #1a3a5c;      /* Navy deep */
  --accent:     #c8a96e;      /* Gold warm */
  --accent-light: #e8d5a8;
  --bg:         #fafaf8;
  --bg-alt:     #f0ede6;
  --text:       #1c1c1c;
  --text-muted: #6b7280;
  --white:      #ffffff;
  --border:     #e2ddd6;
  --shadow:     0 4px 24px rgba(26,58,92,.08);
  --shadow-lg:  0 12px 48px rgba(26,58,92,.14);
  --radius:     12px;
  --radius-lg:  20px;
  --font-head:  'Playfair Display', serif;
  --font-body:  'DM Sans', sans-serif;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --max-w:      1160px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; color: var(--primary); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p  { margin-bottom: 1rem; }

/* === LAYOUT === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }

/* === DECORATIVE LINE === */
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.section-label::before {
  content: ''; width: 32px; height: 2px; background: var(--accent);
}

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(250,250,248,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 70px; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand-logo {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--accent);
}
.nav-brand-text { font-family: var(--font-head); font-size: 1.1rem; color: var(--primary); font-weight: 700; }
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 16px; border-radius: 8px; font-size: .9rem; font-weight: 500;
  color: var(--text-muted); transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary); background: var(--bg-alt);
}
.nav-link.active { color: var(--accent); font-weight: 600; }
.nav-cta {
  padding: 8px 20px; background: var(--primary); color: var(--white) !important;
  border-radius: 8px; font-weight: 600; font-size: .88rem;
}
.nav-cta:hover { background: var(--accent); color: var(--white) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--primary); transition: var(--transition); border-radius: 2px; }

/* === HERO === */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, #0f2540 60%, #1a3a5c 100%);
  position: relative; overflow: hidden; padding-top: 70px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8a96e' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero::after {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,110,.08) 0%, transparent 70%);
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 80px 24px;
  display: grid; grid-template-columns: 1fr 420px; gap: 80px;
  align-items: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,169,110,.15); border: 1px solid rgba(200,169,110,.3);
  color: var(--accent-light); padding: 6px 16px; border-radius: 100px;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge::before { content: '✦'; }
.hero-name { font-size: clamp(2.8rem, 6vw, 4.2rem); color: var(--white); margin-bottom: 16px; line-height: 1.1; }
.hero-name span { color: var(--accent); }
.hero-title { font-family: var(--font-body); font-size: 1.05rem; color: rgba(255,255,255,.7); margin-bottom: 24px; font-weight: 400; }
.hero-quote {
  font-family: var(--font-head); font-style: italic; font-size: 1.1rem;
  color: var(--accent-light); border-left: 3px solid var(--accent);
  padding-left: 20px; margin-bottom: 40px; line-height: 1.6;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px; font-weight: 600;
  font-size: .95rem; cursor: pointer; border: none; transition: var(--transition);
  font-family: var(--font-body);
}
.btn-primary { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,169,110,.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.3); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.hero-photo-wrap {
  position: relative; display: flex; justify-content: center;
}
.hero-photo-frame {
  width: 340px; height: 420px; border-radius: var(--radius-lg);
  overflow: hidden; position: relative;
  box-shadow: 0 32px 64px rgba(0,0,0,.4);
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-frame::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26,58,92,.6) 100%);
  z-index: 1;
}
.hero-photo-deco {
  position: absolute; top: -16px; right: -16px;
  width: 100%; height: 100%; border: 2px solid var(--accent);
  border-radius: var(--radius-lg); z-index: -1;
}
.hero-stats {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--white); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow-lg);
  display: flex; gap: 24px;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-family: var(--font-head); font-size: 1.6rem; color: var(--primary); font-weight: 700; line-height: 1; }
.hero-stat-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }

/* === ACHIEVEMENT STRIP === */
.strip {
  background: var(--primary); padding: 20px 0; overflow: hidden;
}
.strip-inner { display: flex; gap: 48px; animation: marquee 30s linear infinite; width: max-content; }
.strip-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.7); white-space: nowrap; font-size: .9rem; }
.strip-item span { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* === ABOUT SECTION === */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img img { width: 100%; height: 500px; object-fit: cover; }
.about-tag {
  position: absolute; bottom: 24px; right: -24px;
  background: var(--white); padding: 20px 24px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-width: 200px;
}
.about-tag-icon { font-size: 2rem; margin-bottom: 8px; }
.about-tag-text { font-size: .85rem; color: var(--text-muted); line-height: 1.4; }
.about-tag-text strong { color: var(--primary); display: block; font-size: 1rem; }
.about-content .section-label { margin-bottom: 8px; }
.about-bio { font-size: 1.02rem; color: var(--text-muted); margin: 20px 0 32px; }
.about-edu {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 24px; margin-bottom: 24px;
  border-left: 4px solid var(--accent);
}
.about-edu h4 { font-size: 1rem; margin-bottom: 8px; }
.about-edu p { margin: 0; font-size: .9rem; color: var(--text-muted); }

/* === ACHIEVEMENTS GRID === */
.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ach-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: var(--transition); cursor: default;
}
.ach-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.ach-icon { font-size: 2rem; margin-bottom: 12px; }
.ach-title { font-size: .95rem; font-weight: 600; color: var(--primary); line-height: 1.4; margin-bottom: 6px; }
.ach-year { font-size: .8rem; color: var(--accent); font-weight: 600; }

/* === PUBLICATIONS === */
.pub-filters { display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.pub-filter {
  padding: 8px 20px; border-radius: 100px; font-size: .875rem; font-weight: 500;
  cursor: pointer; border: 1.5px solid var(--border); background: transparent;
  color: var(--text-muted); transition: var(--transition); font-family: var(--font-body);
}
.pub-filter.active, .pub-filter:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pub-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition);
}
.pub-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pub-thumb {
  width: 100%; height: 180px; object-fit: cover; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--accent);
}
.pub-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pub-body { padding: 20px; }
.pub-type {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: rgba(200,169,110,.15); color: var(--accent); margin-bottom: 10px;
}
.pub-title { font-size: 1rem; font-weight: 600; color: var(--primary); line-height: 1.4; margin-bottom: 8px; }
.pub-excerpt { font-size: .875rem; color: var(--text-muted); margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pub-link { font-size: .85rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.pub-link:hover { color: var(--primary); }
.pub-link::after { content: '→'; transition: transform .2s; }
.pub-link:hover::after { transform: translateX(4px); }
.pub-source { font-size: .78rem; color: var(--text-muted); margin-top: 8px; }

/* === VIDEO EMBED === */
.video-wrap { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; }
.video-wrap iframe { width: 100%; height: 100%; border: none; }

/* === GALLERY === */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
  aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0; background: rgba(26,58,92,.7);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition); color: var(--white); padding: 16px; text-align: center;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-title { font-size: .9rem; font-weight: 600; }

/* === TEAM === */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { text-align: center; }
.team-photo-wrap {
  width: 140px; height: 140px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 16px; border: 3px solid var(--accent); padding: 3px;
}
.team-photo-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.team-name { font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.team-pos { font-size: .875rem; color: var(--text-muted); }
.team-socials { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.team-social { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-size: .8rem; color: var(--primary); transition: var(--transition); }
.team-social:hover { background: var(--primary); color: var(--white); }

/* === FAQ === */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  padding: 20px 24px; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 600; color: var(--primary); transition: var(--transition);
}
.faq-q:hover { background: var(--bg-alt); }
.faq-q .icon { font-size: 1.2rem; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 20px; }
.faq-a p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* === CONTACT CTA === */
.cta-section {
  background: var(--primary); color: var(--white); text-align: center;
  padding: 88px 24px; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(200,169,110,.08);
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,.7); margin-bottom: 32px; font-size: 1.05rem; }
.cta-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.social-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: .9rem;
  transition: var(--transition); border: 1.5px solid rgba(255,255,255,.2);
  color: var(--white);
}
.social-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); transform: translateY(-2px); }
.social-btn.email { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.social-btn.email:hover { background: var(--accent-light); }

/* === FOOTER === */
footer {
  background: #0c1e30; color: rgba(255,255,255,.6);
  padding: 32px 24px; text-align: center;
}
footer a { color: var(--accent); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-brand { font-family: var(--font-head); font-size: 1.2rem; color: var(--white); margin-bottom: 8px; }
.footer-copy { font-size: .85rem; }

/* === LIGHTBOX === */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); box-shadow: 0 0 80px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 20px; right: 24px; font-size: 2rem; color: var(--white); cursor: pointer; }

/* === SCROLL REVEAL === */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-photo-wrap { order: -1; }
  .hero-photo-frame { width: 260px; height: 320px; }
  .hero-actions { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .ach-grid { grid-template-columns: repeat(2, 1fr); }
  .pub-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; padding: 16px; gap: 4px; }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
  .section { padding: 60px 0; }
  .pub-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .ach-grid { grid-template-columns: 1fr; }
  .hero-stats { position: static; margin-top: 24px; justify-content: center; }
  .about-tag { right: 0; }
}

/* === PAGE HEADER (inner pages) === */
.page-header {
  background: linear-gradient(135deg, var(--primary), #0f2540);
  padding: 120px 24px 60px; text-align: center;
}
.page-header h1 { color: var(--white); }
.page-header p { color: rgba(255,255,255,.7); margin-top: 12px; }

/* === EMPTY STATE === */
.empty-state {
  text-align: center; padding: 60px 24px; color: var(--text-muted);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; }
