:root{
  /* Enhanced premium theme — richer contrast & glow */
  --bg: #0A0E16;
  --bg-2: #0e121b;
  --bg-3: #12182a;
  --card: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.09);
  --border-accent: rgba(79, 124, 255, 0.28);
  --primary: #5B8CFF;
  --primary-dim: rgba(91, 140, 255, 0.28);
  --secondary: #8B6CFF;
  --secondary-dim: rgba(139, 108, 255, 0.25);
  --highlight: #7EB8FF;
  --accent: #9D7BFF;
  --success: #14d98e;
  --text-primary: #F8FAFC;
  --text-secondary: #B8C4DC;
  --muted: #7B879C;
  --glass: rgba(255,255,255,0.05);
  --glow-blue: rgba(91, 140, 255, 0.45);
  --glow-purple: rgba(139, 108, 255, 0.4);
  --radius: 16px;
  --radius-sm: 12px;
  --max-width: 1200px;
  --container-padding: 48px;
  --transition-fast: 220ms;
  --transition-smooth: 480ms;
  --transition-slow: 720ms;
  --apple-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
*{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  min-height: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
html, body{ min-height: 100%; }
body{
  margin: 0;
  overflow-x: hidden;
  min-width: 280px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 0% 0%, var(--primary-dim) 0%, transparent 48%),
    radial-gradient(ellipse 80% 60% at 100% 20%, var(--secondary-dim) 0%, transparent 45%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 50%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
}

/* Gradient orbs — enhanced depth */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, var(--glow-blue) 0%, transparent 52%),
              radial-gradient(ellipse 50% 40% at 85% 100%, var(--glow-purple) 0%, transparent 48%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
}
body::after{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(10,14,22,0.5) 100%);
  opacity: 0.55;
}

/* Animated network background — tech / cybersecurity theme */
.network-bg-canvas{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  display: block;
}
.network-gradient-overlay{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 80% at 20% 20%, rgba(91, 140, 255, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse 80% 100% at 80% 80%, rgba(139, 108, 255, 0.12) 0%, transparent 50%),
    linear-gradient(135deg, rgba(91, 140, 255, 0.04) 0%, transparent 50%, rgba(139, 108, 255, 0.05) 100%);
  opacity: 0.92;
}

/* Scroll progress indicator — enhanced glow */
.scroll-progress{
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--highlight), var(--secondary));
  z-index: 9999;
  transform-origin: left;
  transition: width 120ms var(--ease-out-expo);
  box-shadow: 0 0 24px var(--glow-blue), 0 0 12px var(--glow-purple);
}

.container{
  width:100%;
  max-width:var(--max-width);
  margin:0 auto;
  padding:72px var(--container-padding);
  box-sizing:border-box;
}
.site-header{
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(11,15,25,0.9) 0%, rgba(11,15,25,0.75) 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.04) inset;
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}
.site-header:hover{
  box-shadow: 0 6px 28px rgba(0,0,0,0.4), 0 0 1px rgba(79, 124, 255, 0.12);
}
/* Reduce header vertical spacing without changing global container padding */
.site-header .container{
  padding-top:8px;
  padding-bottom:8px;
}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
  font-size: 17px;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}
.brand:hover{ color: var(--highlight); text-shadow: 0 0 24px var(--primary-dim); }
.nav-links{ list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.nav-links a{
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.nav-links a:hover{
  color: var(--text-primary);
  background: var(--primary-dim);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}
.nav-toggle{
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  font-size: 0;
  color: transparent;
}
.nav-toggle::before{
  content: "☰";
  font-size: 22px;
  color: var(--text-primary);
  line-height: 1;
}
.nav-toggle[aria-expanded="true"]::before{ content: "✕"; font-size: 18px; }
.nav-toggle:hover{
  background: rgba(255,255,255,0.08);
  border-color: var(--border-accent);
  box-shadow: 0 0 16px var(--glow-blue);
}
.hero{
  display:grid;
  grid-template-columns:1fr minmax(220px, 32vw);
  gap:28px;
  align-items:center;
  padding-top:40px;
  padding-bottom:40px;
  min-height:70vh; /* moderate hero */
  align-items:center;
}
.hero-left .name{
  font-size: 120px;
  letter-spacing: 0.03em;
  margin: 0 0 8px 0;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.02;
  text-shadow: 0 0 60px rgba(91, 140, 255, 0.15);
}
.hero-left .title{
  font-size: 34px;
  color: var(--text-secondary);
  margin: 10px 0 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.lead{
  color: var(--text-secondary);
  max-width: 1000px;
  font-size: 28px;
  line-height: 1.65;
  font-weight: 450;
  letter-spacing: 0.01em;
}
.btn{
  display: inline-block;
  padding: 16px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.28s var(--apple-ease), box-shadow 0.35s var(--apple-ease), background 0.28s ease, border-color 0.28s ease;
}
.btn.primary{
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 24px var(--glow-blue), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.btn.primary:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 36px var(--glow-blue), 0 6px 20px var(--glow-purple), 0 0 0 1px rgba(255,255,255,0.1) inset;
}
.btn.outline{
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn.outline:hover{
  color: var(--text-primary);
  border-color: var(--primary-dim);
  box-shadow: 0 0 0 1px var(--primary-dim), 0 4px 20px var(--primary-dim);
  transform: translateY(-2px);
}
.hero-cta{margin-top:18px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.photo-frame{
  width: min(980px, 60vw);
  height: min(980px, 60vw);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 32px 64px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 80px var(--primary-dim),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.5s var(--apple-ease), box-shadow 0.5s var(--apple-ease), border-color 0.35s ease;
}
.photo-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.6s var(--apple-ease);
}
.photo-frame:hover{
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.55),
    0 0 0 1px var(--border-accent),
    0 0 100px var(--glow-blue),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.photo-frame:hover img{ transform: scale(1.05); }
.photo-frame img.profile-img{
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 0 40px var(--glow-blue), 0 0 0 1px var(--primary-dim);
  display: block;
}
.hero-highlights{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  list-style: none;
  padding: 0;
}
.hero-highlights li{
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--apple-ease);
}
.hero-highlights li:hover{
  background: var(--primary-dim);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.section{
  padding: 52px 0;
  min-height: auto;
  display: block;
  position: relative;
}
.skills-section .subsection{ margin-top: 32px; }
.skills-section .subsection:first-of-type{ margin-top: 0; }
body.no-scroll{ overflow: hidden; }

/* Side navigation */
.side-nav{display:none} /* removed side-nav */
.skills-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.skill-card{
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--apple-ease), box-shadow 0.35s ease, border-color 0.3s ease;
  min-height: 160px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}
.skill-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 0 1px var(--border-accent), 0 0 24px rgba(110, 168, 254, 0.2);
  border-color: var(--border-accent);
}
.timeline{display:block}
.timeline-item{
  background: var(--card);
  backdrop-filter: blur(12px);
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary-dim);
  margin-bottom: 16px;
  transition: transform 0.3s var(--apple-ease), box-shadow var(--transition-fast), border-color 0.3s ease;
}
.timeline-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 0 1px var(--primary-dim);
  border-left-color: var(--primary);
}
.duties{margin:8px 0 0;padding-left:20px;color:var(--muted)}
.project{background:var(--card);backdrop-filter:blur(12px);padding:36px;border-radius:16px;margin-bottom:28px;border:1px solid var(--border);min-height:180px}
/* ---------- Contact section ---------- */
.contact-section .section-title::after { width: 0; }
.contact-section.visible .section-title::after,
.contact-section .section-title:hover::after { width: 48%; }

.contact-header{
  text-align: center;
  margin-bottom: 32px;
}
.contact-header .section-title{ margin-bottom: 12px; }
.contact-intro{
  max-width: 520px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  font-weight: 500;
}

.contact-strip{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 28px 32px;
  margin: 0 auto 44px;
  max-width: 680px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.3s ease, box-shadow 0.35s var(--apple-ease);
}
.contact-strip:hover{
  border-color: var(--border-accent);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 24px var(--glow-blue), inset 0 1px 0 rgba(255,255,255,0.05);
}
.contact-btn{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 4px 20px var(--glow-blue), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: transform 0.28s var(--apple-ease), box-shadow 0.3s var(--apple-ease), border-color 0.28s ease;
}
.contact-btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--glow-blue), 0 6px 20px var(--glow-purple), inset 0 1px 0 rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.28);
}
.contact-btn-icon-only{
  padding: 16px;
  min-width: 52px;
  justify-content: center;
}
.contact-btn:focus-visible{
  outline: 2px solid var(--highlight);
  outline-offset: 3px;
}
.contact-btn-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.95);
}
.contact-btn-phone{
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  box-shadow: 0 4px 20px var(--glow-purple), inset 0 1px 0 rgba(255,255,255,0.12);
}
.contact-btn-phone:hover{
  box-shadow: 0 12px 32px var(--glow-purple), 0 6px 20px var(--glow-blue), inset 0 1px 0 rgba(255,255,255,0.15);
}
.contact-sep{
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
  user-select: none;
  opacity: 0.5;
}

.contact-layout{
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 560px;
  margin: 0 auto;
  align-items: stretch;
}
.contact-form-wrap{
  min-width: 0;
  margin-bottom: 40px;
}

.contact-link{
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.35s ease, transform 0.25s var(--apple-ease);
}
.contact-link:hover{
  color: var(--highlight);
  text-shadow: 0 0 20px var(--glow-blue);
  transform: translateY(-1px);
}

.contact-form{
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px 28px;
  min-width: 0;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 20px 56px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: box-shadow 0.4s var(--apple-ease), border-color 0.35s ease;
}
.contact-form:hover{
  border-color: rgba(99,102,241,0.25);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35), 0 0 32px var(--glow-blue), inset 0 1px 0 rgba(255,255,255,0.05);
}
.contact-form:focus-within{
  border-color: var(--primary-dim);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35), 0 0 40px var(--glow-blue), inset 0 1px 0 rgba(255,255,255,0.05);
}

.contact-form .form-group{
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s var(--apple-ease);
}
.contact-form .form-group:focus-within{
  transform: translateX(2px);
}
.contact-form .form-group label{
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.contact-form .form-group:focus-within label{
  color: var(--primary);
}

.contact-form input,
.contact-form textarea{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 16px 20px;
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.28s ease, box-shadow 0.3s var(--apple-ease), background 0.28s ease;
}
.contact-form input:hover,
.contact-form textarea:hover{
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}
.contact-form input:focus,
.contact-form textarea:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
  background: rgba(255,255,255,0.06);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color: var(--muted);
  opacity: 0.9;
}
.contact-form textarea{
  resize: vertical;
  min-height: 128px;
}

label{ font-size: 13px; color: var(--muted); }
.contact-form .form-actions{
  display: flex;
  gap: 14px;
  margin-top: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.contact-form .form-actions .btn{
  transition: transform 0.28s var(--apple-ease), box-shadow 0.3s var(--apple-ease);
}
.contact-form .form-actions .btn:active{
  transform: translateY(0) scale(0.98);
}
.contact-form .btn-send{
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.contact-form .btn-email-link{
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
}

.contact-hint{
  display: block;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.85;
  line-height: 1.5;
}

.contact-layout .profiles{
  padding: 28px 24px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 20px 56px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.35s ease, box-shadow 0.4s var(--apple-ease);
}
.contact-layout .profiles:hover{
  border-color: rgba(99,102,241,0.2);
  box-shadow: 0 24px 56px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}
.profiles-heading{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 20px;
  opacity: 0.95;
  text-align: center;
}
.contact-layout .profile-cards{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.profile-card{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  min-width: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: transform 0.35s var(--apple-ease), box-shadow 0.4s var(--apple-ease), border-color 0.35s ease;
}
.profile-card:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
/* Real brand colours for Connect icons */
.profile-card-icon{
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: transform 0.35s var(--apple-ease), box-shadow 0.35s ease, opacity 0.3s ease;
}
.profile-card-linkedin .profile-card-icon{
  color: #0A66C2;
  background: rgba(10, 102, 194, 0.2);
}
.profile-card-linkedin:hover .profile-card-icon{
  background: rgba(10, 102, 194, 0.35);
  box-shadow: 0 4px 20px rgba(10, 102, 194, 0.4);
}
.profile-card-github .profile-card-icon{
  color: #f0f6fc;
  background: rgba(255, 255, 255, 0.08);
}
.profile-card-github:hover .profile-card-icon{
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}
.profile-card-instagram .profile-card-icon{
  background: rgba(255,255,255,0.08);
}
.profile-card-instagram .profile-card-icon-instagram{
  color: transparent;
}
.profile-card-instagram:hover .profile-card-icon{
  background: rgba(255,255,255,0.12);
  box-shadow: 0 4px 20px rgba(188, 24, 136, 0.3);
}
.profile-card-label{
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  transition: color 0.25s ease;
}
.contact-layout .profile-card-label{
  font-size: 14px;
}

@media (max-width: 768px){
  .contact-form{ padding: 24px 20px; gap: 20px; }
  .contact-header .contact-intro{ font-size: 15px; }
  .contact-layout .profile-cards{ gap: 12px; }
  .profile-card{ padding: 12px 16px; }
}

/* Contact — staggered fade when visible */
.contact-section.reveal .contact-strip,
.contact-section.reveal .contact-form,
.contact-section.reveal .profiles{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--apple-ease), transform 0.5s var(--apple-ease);
}
.contact-section.reveal.visible .contact-strip{ opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.contact-section.reveal.visible .contact-form{ opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.contact-section.reveal.visible .profiles{ opacity: 1; transform: translateY(0); transition-delay: 0.3s; }

.site-footer{
  padding: 64px 24px 72px;
  text-align: center;
  position: relative;
  margin-top: 24px;
  background: linear-gradient(180deg, rgba(79, 124, 255, 0.03) 0%, transparent 30%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer::before{
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 320px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--highlight), var(--secondary), transparent);
  opacity: 0.75;
  border-radius: 2px;
  box-shadow: 0 0 20px var(--glow-blue);
}
.site-footer p{
  font-size: 19px;
  letter-spacing: 0.04em;
  margin: 0;
  font-weight: 600;
  line-height: 1.7;
  color: var(--text-secondary);
  text-shadow: 0 0 40px rgba(79, 124, 255, 0.08);
}
.site-footer .footer-name{
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.site-footer .footer-role{
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95em;
}
.hint{ color: var(--muted); font-size: 12px; margin-top: 14px; line-height: 1.4; opacity: 0.9; display: block; }

/* Fade-in — smoother entrance */
.fade-in{
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.7s var(--apple-ease), transform 0.7s var(--apple-ease);
}
.fade-in.visible{
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Reveal — scroll-triggered with stagger feel */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--apple-ease), transform 0.65s var(--apple-ease);
}
.reveal.visible{
  opacity: 1;
  transform: translateY(0);
}

/* Utilities */
.center{text-align:center}
.muted{color:var(--muted)}

/* ========== Responsive: PC | Tablet | Mobile ==========
   • PC (Desktop): 1025px+ — full layout, multi-column, large hero
   • Tablet: 769px – 1024px — 2-column grids, nav bar visible
   • Mobile: 320px – 768px — single column, hamburger menu, touch-friendly
   ========== */

/* Base for Tablet + Mobile (up to 1024px) */
@media (max-width: 1024px){
  .container{ padding: 40px 24px; max-width: 100%; }
  .hero{ grid-template-columns: 1fr 240px; gap: 24px; min-height: auto; padding-top: 32px; padding-bottom: 32px; }
  .photo-frame{ width: 240px; height: 240px; }
  .hero-left .name{ font-size: clamp(32px, 5vw, 48px); }
  .hero-left .title{ font-size: clamp(16px, 2.2vw, 20px); }
  .lead{ font-size: 17px; }
  .skills-grid{ grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .projects-grid{ grid-template-columns: repeat(2, 1fr); }
  .project-featured{ grid-template-columns: 1fr; gap: 24px; }
  .featured-media{ min-height: 320px; }
  .featured-media img{ min-height: 320px; }
  .cert-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edu-two-sides{ gap: 24px; }
}

/* Tablet only (769px – 1024px) — refined for tab */
@media (min-width: 769px) and (max-width: 1024px){
  .container{ padding: 40px 28px; max-width: 100%; }
  .hero{ gap: 28px; padding-top: 36px; padding-bottom: 36px; }
  .hero-left .name{ font-size: clamp(34px, 5vw, 48px); }
  .hero-left .title{ font-size: clamp(17px, 2.2vw, 20px); }
  .projects-grid{ gap: 20px; }
  .project-featured{ gap: 26px; padding: 26px; }
  .featured-media{ min-height: 300px; }
  .featured-media img{ min-height: 300px; object-fit: cover; border-radius: 14px; }
  .cert-grid{ gap: 16px; }
  .section{ padding: 44px 0; }
  .site-footer{ padding: 52px 28px 60px; }
  .site-footer p{ font-size: 17px; }
}

/* ========== Responsive: Mobile (320px – 768px) ========== */
@media (max-width: 768px){
  .nav-links{
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  }
  .nav-links.open{ display: flex; }
  .nav-links a{
    display: block;
    padding: 14px 20px;
    border-radius: 10px;
    min-height: 48px;
    line-height: 20px;
    display: flex;
    align-items: center;
  }
  .nav-toggle{ display: flex; }
  .site-header .nav{ position: relative; }
  .container{ padding: 24px 20px; }
  .hero{ grid-template-columns: 1fr; gap: 24px; padding-top: 28px; padding-bottom: 28px; text-align: center; }
  .hero-left .name{ font-size: clamp(26px, 8vw, 36px); }
  .hero-left .title{ font-size: 15px; }
  .lead{ font-size: 15px; max-width: 100%; }
  .hero-cta{ justify-content: center; }
  .hero-highlights{ justify-content: center; }
  .photo-frame{ width: 160px; height: 160px; margin: 0 auto; }
  .skills-grid{ grid-template-columns: 1fr; }
  .projects-grid{ grid-template-columns: 1fr; }
  .project-featured{ grid-template-columns: 1fr; }
  .featured-media{ min-height: 0; }
  .featured-media img{ min-height: 0; object-fit: initial; width: 100%; height: auto; }
  .project-card{ width: 100%; }
  .cert-grid{ grid-template-columns: 1fr; }
  .edu-two-sides{ grid-template-columns: 1fr; gap: 20px; }
  .contact-layout{ max-width: 100%; }
  .contact-form-wrap{ margin-bottom: 32px; }
  .contact-strip{ flex-direction: column; padding: 20px 16px; }
  .contact-strip .contact-sep{ display: none; }
  .contact-btn{ width: 100%; justify-content: center; min-height: 48px; padding: 16px 24px; font-size: 16px; }
  .btn{ min-height: 48px; padding: 16px 24px; font-size: 16px; }
  .form-actions .btn{ min-height: 48px; flex: 1 1 auto; }
  .section{ padding: 40px 0; }
}

@media (max-width: 480px){
  .container{ padding: 20px 16px; }
  .hero-left .name{ font-size: 26px; }
  .photo-frame{ width: 140px; height: 140px; }
  .site-footer{ padding: 48px 20px 56px; }
  .site-footer p{ font-size: 16px; }
}

/* Mobile: ensure all sections visible and scrollable */
@media (max-width: 768px){
  main{ min-height: 100%; overflow-x: hidden; }
  .section-title{ font-size: 22px; }
  .section-title.center{ font-size: 22px; }
}
@media (max-width: 480px){
  .section-title{ font-size: 20px; }
  .footer-name, .footer-role{ display: inline; }
}

/* No tabs — sections displayed normally */

/* Focus — theme-aligned color grading */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--primary-dim);
}

/* Section title style for emphasized headings while preserving visual hierarchy */
.section-title{
  display:block;
  font-size:20px;
  color:var(--accent);
  font-weight:700;
  letter-spacing:0.6px;
  margin:0 0 10px 0;
  text-transform:uppercase;
}
.section-title.center { text-align:center; }
/* Enhanced SOC title */
.section-title.soc{
  font-size:28px;
  color:var(--primary);
  letter-spacing:1px;
  text-transform:uppercase;
  font-weight:800;
  background: linear-gradient(90deg,var(--primary),var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* ===========================================
   Heading system — Executive Cyber Elite
   =========================================== */
.section-title{
  display: block;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-weight: 800;
  font-size: 28px;
  margin: 0 0 18px 0;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 8px;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 0 40px rgba(91, 140, 255, 0.08);
}
.section-title::after{
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  height: 3px;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--highlight), var(--secondary));
  transition: width 0.5s var(--apple-ease);
  opacity: 0.95;
  box-shadow: 0 0 12px var(--glow-blue);
}
.section-title:hover::after,
.section-title:focus::after {
  width: 48%;
}
.reveal.visible .section-title::after {
  width: 48%;
}
.section-title span.subtle-glow{
  text-shadow: 0 6px 18px rgba(37,99,235,0.06);
}

/* Card / subsection headings */
.card h3, .project h4, .skill-card h4{
  font-size:18px;
  font-weight:600;
  margin:0 0 10px 0;
  color:var(--text-primary);
  position:relative;
  padding-left:12px;
  transition: color .28s ease;
}
.card h3::before, .project h4::before, .skill-card h4::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:4px;
  height:60%;
  border-radius:3px;
  background: linear-gradient(180deg,var(--primary),var(--secondary));
  opacity:0.95;
}
.card h3:hover, .project h4:hover {
  color: var(--primary);
}

/* Timeline headings */
.timeline-content h4{
  font-size:20px;
  font-weight:700;
  margin:0 0 6px 0;
  padding-left:8px;
  border-left:3px solid rgba(255,255,255,0.03);
  transition: border-color .3s ease, color .3s ease;
}
.timeline-content h4.active, .timeline-content h4:hover{
  border-left-color: var(--primary);
  color: var(--text-primary);
}

/* Skill category headings */
.skill-card h4{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:1.6px;
  color:var(--muted);
  margin:0 0 10px 0;
  font-weight:700;
}

/* Label / meta headings */
.timeline-date, .meta-label{
  font-variant: small-caps;
  font-size:12px;
  color: var(--muted);
  letter-spacing:0.6px;
  display:block;
  margin-bottom:8px;
}

/* Enhanced Java title */
.section-title.java{
  font-size:28px;
  color:var(--secondary);
  letter-spacing:0.6px;
  text-transform:uppercase;
  font-weight:800;
  background: linear-gradient(90deg,var(--secondary),var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Certifications styling */
#certifications h3{
  font-size:22px;
  text-align:center;
  color:var(--text);
  letter-spacing:0.8px;
  margin-bottom:12px;
  font-weight:800;
}
#certifications ul{
  list-style:none;
  padding:0;
  margin:0 auto;
  display:inline-block;
  text-align:left;
  min-width:220px;
}
#certifications ul li{
  background: linear-gradient(90deg, rgba(255,255,255,0.01), transparent);
  padding:26px 30px;
  margin:16px 0;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.03);
  font-weight:900;
  color:var(--text);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  font-size:18px;
  min-width:420px;
}
#certifications ul li a.cert-link{
  display:block;
  color:inherit;
  text-decoration:none;
  width:100%;
}
#certifications ul li a.cert-link:hover{
  transform:translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
  background: linear-gradient(90deg, rgba(0,194,122,0.04), transparent);
}
#certifications .muted{display:block;margin-top:8px;text-align:center;color:var(--muted)}

/* Java section — no separate box, matches page */
.java-bg{
  position: relative;
  padding-top: 64px;
  padding-bottom: 64px;
  margin-bottom: 12px;
}
.java-bg .skill-card,
.java-bg .project{
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
}
@media (max-width:900px){
  .java-bg{ padding-top:40px;padding-bottom:40px }
  .java-bg .photo-frame{ display:none }
}

#summary styles
#summary h3{
  font-size:18px;
  margin-bottom:8px;
  color:var(--text);
  letter-spacing:0.4px;
  text-transform:none;
  text-align:left;
}
#summary p{
  max-width:760px;
  font-size:15px;
  color:var(--muted);
  margin:0;
  line-height:1.45;
}
/* Gradient text — enhanced vivid gradient */
.gradient-text{
  background: linear-gradient(115deg, var(--primary) 0%, var(--highlight) 35%, var(--accent) 65%, var(--secondary) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientTextShift 10s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(91, 140, 255, 0.2));
}
@keyframes gradientTextShift{
  0%, 100%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
}

/* Next / Prev floating arrows */
.nav-arrows{display:none} /* removed arrows */

/* PC / Desktop (1025px and up) — full layout, large hero */
@media (min-width: 1025px){
  .container{ padding: 56px var(--container-padding); max-width: var(--max-width); margin-left: auto; margin-right: auto; }
  .hero{ gap: 40px; min-height: 75vh; padding-top: 48px; padding-bottom: 48px; }
  .hero-left .name{ font-size: clamp(42px, 4vw, 64px); line-height: 1.05; }
  .hero-left .title{ font-size: clamp(20px, 1.8vw, 26px); }
  .lead{ font-size: 20px; max-width: 880px; }
  .photo-frame{ width: min(400px, 38vw); height: min(400px, 38vw); }
  main{ max-width: 100vw; overflow-x: hidden; }
}

/* -----------------------
   Education — Two Sides: Academic | Professional
   ----------------------- */
.edu-dev{
  position: relative;
  padding: 48px 0 56px;
}

.edu-intro{
  max-width: 520px;
  margin: 0 auto 36px;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.edu-two-sides{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.edu-side{
  padding: 24px 20px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  transition: border-color 0.35s ease, box-shadow 0.4s ease;
}
.edu-side:hover{
  border-color: var(--border-accent);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25), 0 0 0 1px var(--border-accent);
}
.edu-academic{
  border-left: 3px solid var(--primary);
}
.edu-professional{
  border-left: 3px solid var(--secondary);
}

.edu-side-title{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.edu-academic .edu-side-title{ color: var(--primary); }
.edu-professional .edu-side-title{ color: var(--accent); }

.edu-cards{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.edu-item{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--apple-ease), transform 0.5s var(--apple-ease);
}
.edu-item.active{
  opacity: 1;
  transform: translateY(0);
}

.year-badge{
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: var(--text-primary);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 12px var(--glow-blue);
  transition: transform 0.3s var(--apple-ease), box-shadow 0.3s ease;
}
.year-badge:hover{
  transform: scale(1.03);
  box-shadow: 0 4px 16px var(--glow-blue);
}
.year-badge-live{
  background: linear-gradient(90deg, var(--success), var(--highlight));
  animation: badgePulse 2.5s ease-in-out infinite;
}
@keyframes badgePulse{
  0%, 100%{ opacity: 1; }
  50%{ opacity: 0.92; }
}

.education-card.card-elite{
  width: 100%;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--apple-ease), box-shadow 0.35s ease, border-color 0.35s ease;
}
.edu-item .education-card{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--apple-ease), transform 0.45s var(--apple-ease);
}
.edu-item.active .education-card{
  opacity: 1;
  transform: translateY(0);
}
.education-card.card-elite:hover{
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.education-card h5{
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}
.education-card .timeline-date{
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 4px;
  line-height: 1.4;
}
.education-card .meta-label{
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 768px){
  .edu-two-sides{ grid-template-columns: 1fr; gap: 24px; }
  .edu-side{ padding: 20px 16px; }
}

/* -----------------------
   Certifications section
   ----------------------- */
.cert-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
  margin-top:18px;
}
.cert-card{
  appearance:none;
  -webkit-appearance:none;
  text-align:left;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border:1px solid rgba(255,255,255,0.06);
  padding:18px 16px;
  border-radius:12px;
  color:var(--text-primary);
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  transition: transform .36s var(--easing), box-shadow .36s var(--easing), border-color .36s;
  position:relative;
  overflow:hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}
.cert-card::after{
  content:"";
  position:absolute;
  left:16px;
  right:16px;
  bottom:10px;
  height:3px;
  border-radius:3px;
  background: linear-gradient(90deg, rgba(37,99,235,0.12), rgba(124,58,237,0.12));
  transform:scaleX(0);
  transform-origin:left;
  transition: transform .45s var(--easing);
}
.cert-card:hover::after{ transform: scaleX(1); }
.cert-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 0 1px var(--border-accent), 0 0 24px rgba(110, 168, 254, 0.2);
  border-color: var(--border-accent);
}
.cert-card:focus-visible{ outline: 2px solid var(--primary); outline-offset: 2px; }

/* Certification popup modal */
.cert-modal{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2400;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cert-modal.active{
  display: flex;
}
.cert-modal-overlay{
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cert-modal-dialog{
  position: relative;
  width: min(480px, calc(100% - 32px));
  margin: 20px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px var(--border-accent);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.4s var(--apple-ease), opacity 0.4s ease;
}
.cert-modal.active .cert-modal-dialog{
  transform: scale(1);
  opacity: 1;
}
.cert-modal-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cert-modal-close:hover{ background: rgba(255,255,255,0.1); color: var(--text-primary); }
.cert-modal-title{ margin: 0 0 12px 0; font-size: 18px; font-weight: 700; color: var(--text-primary); }
.cert-modal-desc{ margin: 0; font-size: 14px; line-height: 1.5; }

/* Submit success popup — same page, no redirect */
.submit-popup{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.submit-popup.active{
  display: flex;
}
.submit-popup-overlay{
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.submit-popup-dialog{
  position: relative;
  width: min(320px, 100%);
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  text-align: center;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.35s var(--apple-ease), opacity 0.35s ease;
}
.submit-popup.active .submit-popup-dialog{
  transform: scale(1);
  opacity: 1;
}
.submit-popup-title{
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}
.submit-popup-text{
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.submit-popup-close{
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-primary);
  border: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s var(--apple-ease), box-shadow 0.25s ease;
}
.submit-popup-close:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--glow-blue), 0 4px 12px var(--glow-purple);
}

@media (max-width: 768px){
  .cert-card{ padding: 16px; font-size: 15px; min-height: 52px; display: flex; align-items: center; }
}

/* Projects styles */
.project-featured{
  display: grid;
  grid-template-columns: minmax(520px, 1.2fr) 1fr;
  gap: 28px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: 0 20px 56px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.03);
  transition: transform 0.4s var(--apple-ease), box-shadow 0.4s var(--apple-ease);
  position: relative;
  overflow: visible;
}
.project-featured:hover{
  transform: translateY(-4px);
  box-shadow: 0 32px 64px rgba(0,0,0,0.4), 0 0 0 1px var(--border-accent), 0 0 40px var(--glow-blue);
}
.featured-media{
  min-height: 280px;
  display: flex;
  align-items: stretch;
}
.featured-media img{
  width: 100%;
  height: auto;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.featured-body h4{ margin:0 0 10px; font-size:22px; font-weight:900; letter-spacing:0.2px; }
.project-badge{ display:inline-block; font-size:11px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--primary); margin-bottom:6px; }
.project-highlights{ margin:6px 0 0 18px; padding:0; list-style:disc; color:var(--text-secondary); font-size:14px; line-height:1.5; }
.project-highlights li{ margin-bottom:4px; }
.project-card-links{ margin-bottom:10px; }
.project-card-links a{ font-size:13px; font-weight:600; color:var(--primary); text-decoration:none; }
.project-card-links a:hover{ text-decoration:underline; }

/* subtle animated glow border for featured project */
.project-featured::before{
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(110deg, var(--primary-dim), var(--secondary-dim), var(--primary-dim));
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--apple-ease);
  pointer-events: none;
}
.project-featured:hover::before{
  opacity: 1;
  animation: glowShift 5s ease-in-out infinite;
}
@keyframes glowShift{
  0%, 100%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
}

.projects-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:20px;
  margin-top:22px;
  align-items:start;
}
.project-card{
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
  transition: transform 0.35s var(--apple-ease), box-shadow 0.35s var(--apple-ease), border-color 0.35s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.project-card::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  background: linear-gradient(90deg, rgba(37,99,235,0.08), rgba(124,58,237,0.08));
  transform:scaleX(0);
  transform-origin:left;
  transition: transform var(--transition-smooth) var(--apple-ease);
}
.project-card:hover::after{ transform: scaleX(1); }
.project-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.3), 0 0 0 1px var(--border-accent), 0 0 24px rgba(110, 168, 254, 0.25);
  border-color: var(--border-accent);
}
.project-card h5{ margin:0 0 8px; font-weight:900; font-size:16px; letter-spacing:0.2px; color:var(--text-primary); }
.project-card .muted.small{ font-size:13px; line-height:1.45; margin-top:6px; }
.project-card .muted.small:first-of-type{ margin-top:0; }
.tag{
  display: inline-block;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  margin-right: 8px;
  margin-bottom: 6px;
  border: 1px solid var(--border);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--apple-ease), box-shadow 0.25s ease;
}
.tag:hover{
  background: var(--primary-dim);
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--glow-blue);
}
/* Projects grid responsive handled in main Responsive section above */

/* Project modal (kept minimal; project cards static preview only if no preview available) */
.project-modal{ display:none; }
.project-modal.active{ display:flex; align-items:center; justify-content:center; position:fixed; inset:0; z-index:2300; }
.project-modal .overlay{ position:absolute; inset:0; background: rgba(11,15,25,0.85); backdrop-filter: blur(8px); transition: opacity .36s ease; opacity: 1; }
.project-modal .dialog{ position: relative; width: min(1000px, calc(100% - 32px)); margin: 24px; max-height: 86vh; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; z-index: 2; box-shadow: 0 30px 80px rgba(0,0,0,0.5); transform: scale(0.96); opacity: 0; transition: transform var(--transition-smooth) var(--apple-ease), opacity 0.35s ease; overflow: auto; }
.project-modal.active .dialog{ transform:scale(1); opacity:1; }

/* Image modal using :target */
/* Image modal removed */
.project-modal .dialog .close{ position:absolute; right:12px; top:12px; background:transparent;border:0;color:var(--muted);font-weight:800;font-size:18px;cursor:pointer; }
.project-modal .dialog .meta{ margin-top:12px; display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.project-modal .dialog iframe{ width:100%; height:64vh; border:0; border-radius:8px; display:block; }

/* Modal */
.cert-modal{ display:none; }


/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  body::before, body::after{ animation: none !important; }
  .gradient-text{ animation: none !important; }
  .project-featured::before{ animation: none !important; }
  .education-card, .edu-item, .year-badge{ transition: none !important; animation: none !important; transform: none !important; opacity: 1 !important; }
  .year-badge-live{ animation: none !important; }
  .reveal, .fade-in{ transition-duration: 0.01ms !important; }
  .contact-section.reveal .contact-info,
  .contact-section.reveal .contact-form,
  .contact-section.reveal .profiles{ transition: none !important; opacity: 1 !important; transform: none !important; }
  .form-group:focus-within{ transform: none !important; }
}


/* -----------------------
   Education Journey Timeline (Executive Cyber Elite)
   ----------------------- */
.education-journey{ position:relative; padding-top:24px; padding-bottom:24px }
.education-journey .journey{ position:relative; max-width:1100px; margin:0 auto; padding:20px 0 }
.education-journey .journey-line{
  position:absolute; left:50%; top:0; transform:translateX(-50%) scaleY(0);
  transform-origin: top; width:3px; height:100%;
  background: linear-gradient(180deg,var(--primary),var(--secondary));
  border-radius:3px; transition: transform 1.2s cubic-bezier(.2,.9,.3,1);
  opacity:0.95;
}
.education-journey.drawn .journey-line{ transform:translateX(-50%) scaleY(1) }

.journey-items{ position:relative; }
.journey-item{ position:relative; margin:36px 0; display:flex; align-items:flex-start; width:100% }
.journey-item.left{ justify-content:flex-start }
.journey-item.right{ justify-content:flex-end; flex-direction:row-reverse }
.journey-node{
  width:18px; height:18px; border-radius:50%; background:var(--primary);
  box-shadow:0 0 8px rgba(37,99,235,0.08); flex:0 0 18px; margin:6px 24px;
  transition: box-shadow .36s ease, transform .36s ease;
  /* subtle slow pulse */
  animation: nodePulse 3.6s ease-in-out infinite;
}
.journey-node:hover{ box-shadow:0 0 26px rgba(124,58,237,0.18); transform:scale(1.05); }

@keyframes nodePulse{
  0%{ box-shadow:0 0 6px rgba(37,99,235,0.06); transform:scale(1); }
  50%{ box-shadow:0 0 14px rgba(37,99,235,0.10); transform:scale(1.02); }
  100%{ box-shadow:0 0 6px rgba(37,99,235,0.06); transform:scale(1); }
}

/* small inline icon inside year badges */
.year-badge .year-icon{ vertical-align:middle; margin-right:8px; opacity:0.95; color:var(--text-primary) }

.education-card{ max-width:48%; min-width:280px; }
.journey-item.left .education-card{ text-align:left; }
.journey-item.right .education-card{ text-align:right; }

.education-card.card-elite{ padding:20px; background:var(--card); border-radius:14px; border:1px solid var(--border); backdrop-filter:blur(10px); transition: transform .45s cubic-bezier(.2,.9,.3,1), box-shadow .4s, border-color .3s }
.education-card.card-elite:hover{ transform:translateY(-8px); box-shadow:0 30px 70px rgba(0,0,0,0.6); border-color: rgba(37,99,235,0.12) }
.education-card h4{ margin:0 0 6px 0; font-size:18px }
.education-card .timeline-date{ color:var(--text-secondary); margin-bottom:8px }
.education-card .meta-label{ color:var(--muted); font-size:13px; margin-top:8px }

/* reveal animation for journey cards */
.journey-item .education-card{ opacity:0; transform:translateY(28px); transition:opacity .8s cubic-bezier(.2,.9,.3,1), transform .8s cubic-bezier(.2,.9,.3,1) }
.journey-item.active .education-card{ opacity:1; transform:none }
.journey-item .year-badge{
  display:inline-block; padding:6px 10px; border-radius:999px; font-weight:700; font-size:13px;
  background: linear-gradient(90deg,var(--primary),var(--secondary)); color:var(--text-primary); margin-bottom:10px;
  box-shadow: 0 8px 30px rgba(37,99,235,0.08); transform:scale(.95); transition: transform .45s cubic-bezier(.2,.9,.3,1), box-shadow .3s;
}
.journey-item.active .year-badge{ transform:scale(1) }

@media (max-width:900px){
  .education-journey .journey-line{ left:40px; transform:translateX(0) scaleY(0) }
  .education-journey.drawn .journey-line{ transform:translateX(0) scaleY(1) }
  .journey-item{ flex-direction:row; }
  .education-card{ max-width:calc(100% - 80px); }
  .journey-item.left, .journey-item.right{ justify-content:flex-start }
  .journey-node{ margin:6px 12px 6px 6px }
}

/* slight vertical offset (jig-jag) for specific right-side item */
.journey-item.right.offset{
  margin-top:48px;
}
.journey-item.right.offset .journey-node{
  margin-top:18px;
}
.journey-item.right.offset .education-card{
  transform: translateY(12px);
}

@media (max-width:900px){
  .journey-item.right.offset{ margin-top:18px }
  .journey-item.right.offset .education-card{ transform:none }
}

