/* ================================================================
   STYLE.CSS — Ahmad Ishamul Personal Website
   Theme: Light · Navy Blue Accents · Professional
   Font: Inter + DM Sans
   ================================================================
   QUICK CUSTOMIZATION GUIDE:
   - Colors → edit the :root variables below
   - Fonts  → change --font-* variables
   - Spacing → adjust --section-padding
================================================================ */

:root {
  --navy:        #0f2044;
  --navy-mid:    #1a3260;
  --navy-light:  #2a4a8a;
  --accent:      #1e5fbf;
  --accent-light:#3b7dd8;
  --accent-pale: #e8f0fc;
  --white:       #ffffff;
  --gray-50:     #f8f9fb;
  --gray-100:    #f1f3f7;
  --gray-200:    #e2e6ef;
  --gray-400:    #94a3b8;
  --gray-600:    #4b5563;
  --gray-800:    #1e293b;
  --text:        #1e293b;
  --text-muted:  #64748b;
  --border:      #e2e8f0;

  --font-main:   'Inter', 'DM Sans', system-ui, sans-serif;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 3px rgba(15,32,68,.07), 0 1px 2px rgba(15,32,68,.05);
  --shadow-md:   0 4px 16px rgba(15,32,68,.10), 0 2px 6px rgba(15,32,68,.06);
  --shadow-lg:   0 12px 40px rgba(15,32,68,.13);
  --transition:  0.3s cubic-bezier(.4,0,.2,1);
  --section-padding: 96px 0;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ---- Utility ---- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-padding); }
.section-alt { background: var(--gray-50); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-pale);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.section-desc {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 1.05rem;
}

/* ================================================================
   NAVBAR
================================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-container {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-weight: 800; font-size: 1.1rem; color: var(--navy);
  letter-spacing: -.02em;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: .9rem; font-weight: 500; color: var(--gray-600);
  transition: color var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transition: transform var(--transition);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: var(--transition);
}

/* ================================================================
   BUTTONS
================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--navy); border-color: var(--navy);
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30,95,191,.25);
}
.btn-outline {
  background: transparent; color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy); color: var(--white);
  transform: translateY(-2px);
}

/* ================================================================
   HERO
================================================================ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 0 60px;
  background: linear-gradient(135deg, #f8f9fb 0%, #eef2fc 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(30,95,191,.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-container {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
}
.hero-greeting {
  display: block; font-size: .85rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.hero-name {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; color: var(--navy);
  line-height: 1.1; letter-spacing: -.03em;
  margin-bottom: 16px;
}
.hero-tagline {
  font-size: 1.2rem; font-weight: 600;
  color: var(--accent-light); margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 1rem; color: var(--text-muted);
  max-width: 480px; margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  font-size: .78rem; font-weight: 600;
  color: var(--navy-mid);
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 5px 12px; border-radius: 99px;
  box-shadow: var(--shadow-sm);
}

/* Profile image area */
.hero-image { display: flex; justify-content: center; }
.profile-wrapper {
  position: relative; width: 320px; height: 320px;
}
.profile-placeholder, .profile-photo {
  width: 280px; height: 280px;
  border-radius: 50%;
  position: absolute; top: 20px; left: 20px;
  overflow: hidden;
  object-fit: cover;
  object-position: center top;
}
.profile-placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
  display: flex; align-items: center; justify-content: center;
}
.profile-placeholder img {
  width: 100%; height: 100%; object-fit: cover;
}
.profile-placeholder span {
  font-size: 5rem; font-weight: 800; color: rgba(255,255,255,.2);
  user-select: none;
}
.profile-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px dashed var(--accent-light);
  opacity: .4;
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.profile-dot {
  position: absolute; border-radius: 50%;
  background: var(--accent);
}
.dot-1 { width: 16px; height: 16px; top: 10px; right: 30px; opacity: .7; }
.dot-2 { width: 10px; height: 10px; bottom: 30px; left: 10px; opacity: .5; }

.hero-scroll {
  display: flex; justify-content: center;
  position: absolute; bottom: 32px; left: 0; right: 0;
}
.scroll-indicator {
  width: 26px; height: 44px; border: 2px solid var(--accent-light);
  border-radius: 13px; position: relative; cursor: pointer;
}
.scroll-indicator::after {
  content: ''; position: absolute;
  width: 4px; height: 8px; background: var(--accent);
  border-radius: 2px; left: 50%; top: 8px;
  transform: translateX(-50%);
  animation: bounce 1.8s ease infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(10px); opacity: .3; }
}

/* ================================================================
   ABOUT
================================================================ */
.about-grid {
  display: grid; grid-template-columns: 1fr 380px; gap: 64px;
  align-items: start;
}
.about-text p { color: var(--text-muted); margin-bottom: 18px; font-size: .97rem; }
.about-text strong { color: var(--navy); font-weight: 600; }
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 20px;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-number {
  display: block; font-size: 2.2rem; font-weight: 800;
  color: var(--accent); line-height: 1;
}
.stat-label {
  display: block; font-size: .8rem; font-weight: 500;
  color: var(--text-muted); margin-top: 6px;
}

/* ================================================================
   SKILLS
================================================================ */
.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.skill-group {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.skill-group:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}
.skill-group-icon {
  width: 44px; height: 44px;
  background: var(--accent-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.skill-group-icon svg { width: 22px; height: 22px; stroke: var(--accent); }
.skill-group h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.skill-group ul { display: flex; flex-direction: column; gap: 7px; }
.skill-group li {
  font-size: .875rem; color: var(--text-muted);
  padding-left: 14px; position: relative;
}
.skill-group li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-light);
}

/* ================================================================
   TIMELINE
================================================================ */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 20px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item {
  display: grid; grid-template-columns: 42px 140px 1fr;
  gap: 20px; margin-bottom: 36px; align-items: start;
}
.timeline-marker {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--accent-light);
  margin-top: 6px; flex-shrink: 0;
}
.timeline-date {
  font-size: .8rem; font-weight: 600; color: var(--text-muted);
  padding-top: 5px; text-align: right;
}
.timeline-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.timeline-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.timeline-tag {
  display: inline-block; font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 99px; margin-bottom: 8px;
}
.timeline-tag.education { background: #eff6ff; color: #1d4ed8; }
.timeline-tag.work      { background: #f0fdf4; color: #15803d; }
.timeline-tag.research  { background: #fdf4ff; color: #7e22ce; }
.timeline-tag.internship{ background: #fff7ed; color: #c2410c; }
.timeline-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.timeline-org { font-size: .85rem; color: var(--accent); font-weight: 500; margin-bottom: 4px; }
.timeline-duration { display: block; font-size: .75rem; color: var(--text-muted); margin-bottom: 8px; }
.timeline-card p { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }

/* ================================================================
   CERTIFICATES
================================================================ */
.cert-filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px; border-radius: 99px;
  border: 2px solid var(--border);
  background: var(--white); color: var(--text-muted);
  font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent); color: var(--white);
  border-color: var(--accent);
}
.cert-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.cert-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 20px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  gap: 10px; transition: transform var(--transition), box-shadow var(--transition);
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cert-level {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 99px;
  white-space: nowrap; flex-shrink: 0;
}
.level-Internasional  { background: #eff6ff; color: #1d4ed8; }
.level-Nasional       { background: #f0fdf4; color: #15803d; }
.level-Regional { background: #fff7ed; color: #c2410c; }
.level-Universitas    { background: #fdf4ff; color: #7e22ce; }
.level-Kabupaten      { background: #fefce8; color: #854d0e; }
.level-default        { background: var(--gray-100); color: var(--gray-600); }
.cert-title { font-size: .9rem; font-weight: 700; color: var(--navy); line-height: 1.4; }
.cert-meta { font-size: .8rem; color: var(--text-muted); }
.cert-year { font-size: .78rem; font-weight: 600; color: var(--accent); }
.cert-view-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 600; color: var(--accent);
  border: 1.5px solid var(--accent); background: none;
  border-radius: var(--radius); padding: 6px 14px;
  cursor: pointer; transition: all var(--transition); margin-top: auto;
  width: fit-content;
}
.cert-view-btn:hover { background: var(--accent); color: var(--white); }
.cert-view-btn svg { width: 14px; height: 14px; }

/* ================================================================
   PORTFOLIO
================================================================ */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.project-header {
  padding: 24px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  min-height: 120px; display: flex; align-items: flex-start;
}
.project-icon {
  width: 48px; height: 48px; background: rgba(255,255,255,.15);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
}
.project-icon svg { width: 26px; height: 26px; stroke: var(--white); }
.project-body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.project-body h3 { font-size: 1rem; font-weight: 700; color: var(--navy); }
.project-body p { font-size: .875rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.project-tag {
  font-size: .72rem; font-weight: 600; color: var(--accent);
  background: var(--accent-pale); padding: 3px 10px; border-radius: 99px;
}

/* ================================================================
   CONTACT
================================================================ */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; max-width: 900px; margin: 0 auto;
}
.contact-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 24px; text-align: center;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-icon {
  width: 52px; height: 52px;
  background: var(--accent-pale); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 24px; height: 24px; stroke: var(--accent); }
.contact-card h3 { font-size: .85rem; font-weight: 700; color: var(--navy); }
.contact-card a {
  font-size: .82rem; color: var(--accent); font-weight: 500;
  word-break: break-all; transition: color var(--transition);
}
.contact-card a:hover { color: var(--navy); }

/* ================================================================
   FOOTER
================================================================ */
.footer {
  background: var(--navy); color: rgba(255,255,255,.6);
  text-align: center; padding: 40px 24px;
}
.footer p { font-size: .875rem; }
.footer-sub { font-size: .78rem; margin-top: 6px; opacity: .6; }

/* ================================================================
   MODAL
================================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,32,68,.65); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  width: 100%; max-width: 860px; max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: scale(.95); transition: transform var(--transition);
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1rem; font-weight: 700; color: var(--navy); }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--gray-100); cursor: pointer;
  font-size: 1.2rem; color: var(--gray-600); line-height: 1;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--gray-200); }
.modal-body { flex: 1; overflow: auto; padding: 0; }
.modal-body iframe {
  width: 100%; min-height: 600px; border: none; display: block;
}
.modal-body img {
  width: 100%; height: auto; max-height: 80vh; object-fit: contain;
  padding: 16px;
}

/* ================================================================
   SCROLL REVEAL ANIMATION
================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.reveal-right {
  transform: translateX(28px);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-padding: 64px 0; }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0; padding: 0;
    max-height: 0; overflow: hidden;
    transition: max-height var(--transition);
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li a {
    display: block; padding: 14px 24px;
    border-bottom: 1px solid var(--gray-100);
  }

  /* Hero */
  .hero-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-image { order: -1; }
  .profile-wrapper { width: 220px; height: 220px; margin: 0 auto; }
  .profile-placeholder, .profile-photo { width: 190px; height: 190px; top: 15px; left: 15px; }
  .hero-cta { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-subtitle { margin: 0 auto 32px; }

  /* Timeline */
  .timeline-item { grid-template-columns: 42px 1fr; }
  .timeline-date { display: none; }

  /* About stats */
  .about-stats { grid-template-columns: repeat(2, 1fr); }

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

@media (max-width: 480px) {
  .cert-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}
