/* ===================== RESET & ROOT ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sea-deep: #0a2a3a;
  --sea-mid: #0d3d54;
  --sea-teal: #0e6b7c;
  --sea-aqua: #1ab8a0;
  --sea-mint: #4dd9c0;
  --sea-foam: #a8f0e0;
  --sky-light: #c8f0f8;
  --sky-pale: #e8fafc;
  --green-sage: #52c98a;
  --green-light: #90e8b8;
  --white: #f4fefd;
  --text-main: #d8f8f4;
  --text-muted: #7ecfc0;
  --text-dim: #4a8f88;
  --accent: #ffce85;
  --accent2: #ff9ec4;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { font-family: "Lora", serif; background: var(--sea-deep); color: var(--text-main); overflow-x: hidden; cursor: none; min-height: 100vh; }

/* ===================== CUSTOM CURSOR ===================== */
.cursor { width: 12px; height: 12px; background: var(--sea-aqua); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: transform 0.1s, background 0.2s, width 0.2s, height 0.2s; mix-blend-mode: screen; }
.cursor-ring { width: 36px; height: 36px; border: 1.5px solid var(--sea-mint); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); transition: transform 0.18s ease, border-color 0.2s; opacity: 0.6; }

/* ===================== OCEAN BACKGROUND ===================== */
.ocean-bg { position: fixed; inset: 0; z-index: -2; background: linear-gradient(180deg, #061820 0%, #0a2a3a 30%, #0d3d54 60%, #0e5566 100%); }
.bubbles { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bubble { position: absolute; bottom: -60px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(168, 240, 224, 0.6), rgba(30, 180, 160, 0.1)); border: 1px solid rgba(168, 240, 224, 0.3); animation: rise linear infinite; }
.bubble:nth-child(1)  { width: 10px; height: 10px; left: 5%;  animation-duration: 14s; animation-delay: 0s; }
.bubble:nth-child(2)  { width: 6px;  height: 6px;  left: 14%; animation-duration: 18s; animation-delay: 2s; }
.bubble:nth-child(3)  { width: 14px; height: 14px; left: 22%; animation-duration: 12s; animation-delay: 5s; }
.bubble:nth-child(4)  { width: 8px;  height: 8px;  left: 33%; animation-duration: 20s; animation-delay: 1s; }
.bubble:nth-child(5)  { width: 5px;  height: 5px;  left: 44%; animation-duration: 16s; animation-delay: 8s; }
.bubble:nth-child(6)  { width: 11px; height: 11px; left: 55%; animation-duration: 13s; animation-delay: 3s; }
.bubble:nth-child(7)  { width: 7px;  height: 7px;  left: 65%; animation-duration: 19s; animation-delay: 6s; }
.bubble:nth-child(8)  { width: 9px;  height: 9px;  left: 75%; animation-duration: 15s; animation-delay: 4s; }
.bubble:nth-child(9)  { width: 12px; height: 12px; left: 84%; animation-duration: 17s; animation-delay: 9s; }
.bubble:nth-child(10) { width: 6px;  height: 6px;  left: 92%; animation-duration: 11s; animation-delay: 7s; }
.bubble:nth-child(11) { width: 15px; height: 15px; left: 28%; animation-duration: 22s; animation-delay: 11s; }
.bubble:nth-child(12) { width: 4px;  height: 4px;  left: 70%; animation-duration: 10s; animation-delay: 13s; }

@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-110vh) translateX(30px) scale(0.6); opacity: 0; }
}

.light-rays { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 20% 60% at 20% -10%, rgba(30, 200, 180, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 15% 50% at 75% -10%, rgba(82, 201, 138, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 25% 40% at 50% -5%,  rgba(77, 217, 192, 0.04) 0%, transparent 60%);
  animation: rays 8s ease-in-out infinite alternate;
}
@keyframes rays { 0% { opacity: 0.7; } 100% { opacity: 1; } }

/* ===================== NAV ===================== */
nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; padding: 0 48px; z-index: 100; transition: background 0.4s, backdrop-filter 0.4s; }
nav.scrolled, body.subpage nav { background: rgba(6, 24, 32, 0.85); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(77, 217, 192, 0.1); }
.nav-logo { font-family: "DM Mono", monospace; font-size: 1.1rem; font-weight: 500; color: var(--sea-aqua); letter-spacing: 0.05em; text-decoration: none; position: relative; z-index: 110; }
.nav-logo::after { content: "_"; animation: blink 1.1s step-end infinite; color: var(--sea-mint); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { font-family: "DM Mono", monospace; font-size: 0.78rem; color: var(--text-muted); text-decoration: none; letter-spacing: 0.08em; position: relative; transition: color 0.3s; display: inline-flex; align-items: center; gap: 7px; }
.nav-links a i { font-size: 0.95rem; color: var(--sea-aqua); transition: color 0.3s, transform 0.3s; }
.nav-links a:hover { color: var(--sea-mint); }
.nav-links a:hover i { color: var(--sea-mint); transform: translateY(-2px); }
.nav-links a.active, .nav-links a.active i { color: var(--sea-mint); }

/* hamburger */
.nav-toggle { display: none; background: transparent; border: 1px solid rgba(77, 217, 192, 0.25); border-radius: 8px; padding: 6px 10px; color: var(--sea-mint); font-size: 1.4rem; cursor: pointer; z-index: 110; transition: background 0.2s, border-color 0.2s; }
.nav-toggle:hover { background: rgba(77, 217, 192, 0.08); border-color: var(--sea-mint); }

/* ===================== HERO ===================== */
#hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: calc(var(--nav-h) + 40px) 48px 80px; position: relative; overflow: hidden; }
.hero-inner { max-width: 1100px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-text { animation: fadeUp 1s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.hero-tag { font-family: "DM Mono", monospace; font-size: 0.75rem; color: var(--sea-aqua); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; animation: fadeUp 1s 0.1s ease both; }
.hero-tag::before { content: ""; width: 32px; height: 1px; background: var(--sea-aqua); display: inline-block; }
.hero-title { font-family: "Syne", sans-serif; font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; line-height: 1.05; margin-bottom: 12px; animation: fadeUp 1s 0.2s ease both; }
.hero-title .name-highlight { background: linear-gradient(135deg, var(--sea-mint) 0%, var(--green-sage) 50%, var(--sea-aqua) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: block; }
.hero-subtitle { font-family: "DM Mono", monospace; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 28px; animation: fadeUp 1s 0.3s ease both; }
.hero-subtitle span { color: var(--green-sage); }
.hero-desc { font-size: 1.05rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 40px; animation: fadeUp 1s 0.4s ease both; }
.hero-desc strong { color: var(--sea-foam); }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeUp 1s 0.5s ease both; }
.btn-primary { font-family: "DM Mono", monospace; font-size: 0.8rem; letter-spacing: 0.1em; padding: 14px 32px; background: linear-gradient(135deg, var(--sea-aqua), var(--green-sage)); color: var(--sea-deep); text-decoration: none; border-radius: 4px; font-weight: 500; position: relative; overflow: hidden; transition: transform 0.2s, box-shadow 0.3s; box-shadow: 0 0 24px rgba(26, 184, 160, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(26, 184, 160, 0.5); }
.btn-ghost { font-family: "DM Mono", monospace; font-size: 0.8rem; letter-spacing: 0.1em; padding: 13px 32px; border: 1px solid var(--sea-teal); color: var(--sea-mint); text-decoration: none; border-radius: 4px; transition: border-color 0.3s, color 0.3s, background 0.3s; }
.btn-ghost:hover { border-color: var(--sea-mint); background: rgba(77, 217, 192, 0.08); }

.hero-image-wrap { display: flex; justify-content: center; align-items: center; animation: fadeUp 1s 0.3s ease both; }
.hero-img-frame { position: relative; width: 300px; height: 300px; }
.hero-img-frame::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(var(--sea-aqua) 0deg, var(--green-sage) 120deg, var(--sea-mint) 240deg, var(--sea-aqua) 360deg); animation: spin 6s linear infinite; z-index: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-img-inner { position: absolute; inset: 4px; border-radius: 50%; overflow: hidden; background: var(--sea-mid); z-index: 1; }
.hero-img-inner img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); }

.sea-deco { position: absolute; pointer-events: none; }
.jellyfish  { width: 60px; height: 80px; top: 15%; right: 5%; animation: float 6s ease-in-out infinite; }
.jellyfish2 { width: 40px; height: 55px; bottom: 20%; left: 3%; animation: float 8s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-20px) rotate(5deg); } }

.wave-sep { position: absolute; bottom: 0; left: 0; right: 0; height: 80px; overflow: hidden; }
.wave-sep svg { display: block; width: 100%; }

/* ===================== SECTIONS ===================== */
section { padding: 100px 48px; max-width: 1100px; margin: 0 auto; }
.section-label { font-family: "DM Mono", monospace; font-size: 0.72rem; color: var(--sea-aqua); letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.section-label::before { content: ""; width: 24px; height: 1px; background: var(--sea-aqua); }
.section-title { font-family: "Syne", sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 60px; color: var(--white); line-height: 1.1; }
.section-title em { font-style: normal; color: var(--sea-mint); }

/* ===================== PAGE HERO (sub-pages) ===================== */
.page-hero { padding: calc(var(--nav-h) + 80px) 48px 100px; max-width: 1100px; margin: 0 auto; position: relative; }
.page-hero-inner { max-width: 760px; }
.page-title { font-family: "Syne", sans-serif; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.05; margin-bottom: 18px; color: var(--white); animation: fadeUp 0.9s ease both; }
.page-title em { font-style: normal; background: linear-gradient(135deg, var(--sea-mint), var(--green-sage), var(--sea-aqua)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-sub { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; max-width: 600px; animation: fadeUp 0.9s 0.1s ease both; }

/* ===================== TIMELINE ===================== */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--sea-aqua), var(--green-sage), transparent); }
.tl-item { position: relative; margin-bottom: 48px; opacity: 0; transform: translateX(-20px); transition: opacity 0.5s, transform 0.5s; }
.tl-item.visible { opacity: 1; transform: translateX(0); }
.tl-dot { position: absolute; left: -38px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--sea-aqua); box-shadow: 0 0 12px var(--sea-aqua); border: 2px solid var(--sea-deep); }
.tl-year { font-family: "DM Mono", monospace; font-size: 0.72rem; color: var(--green-sage); letter-spacing: 0.15em; margin-bottom: 6px; }
.tl-title { font-family: "Syne", sans-serif; font-size: 1.1rem; font-weight: 600; color: var(--sea-foam); margin-bottom: 8px; }
.tl-body { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }
.tl-body strong { color: var(--sea-mint); font-weight: 500; }

/* ===================== JOURNEY GRID ===================== */
.journey-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.journey-card { background: rgba(13, 61, 84, 0.4); border: 1px solid rgba(77, 217, 192, 0.12); border-radius: 12px; padding: 28px 24px; backdrop-filter: blur(8px); transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; opacity: 0; transform: translateY(30px); cursor: default; position: relative; overflow: hidden; }
.journey-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(77, 217, 192, 0.07), transparent 70%); opacity: 0; transition: opacity 0.3s; }
.journey-card:hover::after { opacity: 1; }
.journey-card.visible { opacity: 1; transform: translateY(0); }
.journey-card:hover { transform: translateY(-6px); border-color: rgba(77, 217, 192, 0.35); box-shadow: 0 12px 40px rgba(26, 184, 160, 0.12); }
.jc-year { font-family: "DM Mono", monospace; font-size: 0.7rem; color: var(--green-sage); letter-spacing: 0.15em; margin-bottom: 8px; }
.jc-tech { font-family: "Syne", sans-serif; font-size: 1rem; font-weight: 700; color: var(--sea-mint); margin-bottom: 10px; }
.jc-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* ===================== SKILLS ===================== */
.skills-clusters { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.skill-cluster { background: rgba(10, 42, 58, 0.6); border: 1px solid rgba(77, 217, 192, 0.1); border-radius: 12px; padding: 28px 22px; backdrop-filter: blur(12px); opacity: 0; transform: translateY(20px); transition: opacity 0.5s, transform 0.5s, border-color 0.3s, box-shadow 0.3s; }
.skill-cluster.visible { opacity: 1; transform: translateY(0); }
.skill-cluster:hover { border-color: rgba(77, 217, 192, 0.3); box-shadow: 0 8px 32px rgba(26, 184, 160, 0.1); }
.sc-icon { font-size: 1.6rem; width: 40px; height: 40px; background: rgba(168, 240, 224, 0.1); border-radius: 8px; color: var(--sea-aqua); margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; }
.sc-title { font-family: "DM Mono", monospace; font-size: 0.72rem; letter-spacing: 0.2em; color: var(--sea-aqua); margin-bottom: 16px; text-transform: uppercase; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-tag { font-family: "DM Mono", monospace; font-size: 0.7rem; padding: 5px 12px; border-radius: 20px; border: 1px solid rgba(77, 217, 192, 0.2); color: var(--text-muted); letter-spacing: 0.05em; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.sc-tag:hover { border-color: var(--sea-mint); color: var(--sea-mint); background: rgba(77, 217, 192, 0.07); }

/* ===================== CERTIFICATES PAGE ===================== */
.cert-grid { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 900px; margin: 0 auto; }
.cert-card { display: grid; grid-template-columns: 1fr 1.2fr; background: rgba(13, 61, 84, 0.4); border: 1px solid rgba(77, 217, 192, 0.14); border-radius: 16px; overflow: hidden; backdrop-filter: blur(10px); transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.cert-card:hover { transform: translateY(-4px); border-color: rgba(77, 217, 192, 0.35); box-shadow: 0 14px 50px rgba(26, 184, 160, 0.18); }
.cert-image { position: relative; min-height: 240px; background: linear-gradient(135deg, var(--sea-teal), var(--sea-aqua)); overflow: hidden; }
.cert-image img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.05); }
.cert-image-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: rgba(255, 255, 255, 0.85); background: linear-gradient(135deg, rgba(10, 42, 58, 0.4), rgba(26, 184, 160, 0.18)); opacity: 0; transition: opacity 0.3s; }
.cert-image-fallback .cert-image-overlay { opacity: 1; }
.cert-body { padding: 32px 28px; }
.cert-date { font-family: "DM Mono", monospace; font-size: 0.72rem; color: var(--green-sage); letter-spacing: 0.15em; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.cert-title { font-family: "Syne", sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--sea-foam); margin-bottom: 14px; line-height: 1.25; }
.cert-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 18px; }
.cert-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===================== PROJECTS PAGE ===================== */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; max-width: 1100px; margin: 0 auto; }
.proj-card { background: rgba(13, 61, 84, 0.4); border: 1px solid rgba(77, 217, 192, 0.14); border-radius: 16px; overflow: hidden; backdrop-filter: blur(10px); transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
.proj-card:hover { transform: translateY(-6px); border-color: rgba(77, 217, 192, 0.4); box-shadow: 0 14px 50px rgba(26, 184, 160, 0.18); }
.proj-image { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--sea-teal), var(--sea-aqua)); position: relative; }
.proj-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.proj-card:hover .proj-image img { transform: scale(1.05); }
.proj-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.proj-title { font-family: "Syne", sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--sea-foam); margin-bottom: 12px; }
.proj-desc { font-size: 0.93rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; flex: 1; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.proj-link { font-family: "DM Mono", monospace; font-size: 0.78rem; letter-spacing: 0.1em; padding: 10px 20px; background: rgba(77, 217, 192, 0.1); border: 1px solid rgba(77, 217, 192, 0.25); color: var(--sea-mint); text-decoration: none; border-radius: 6px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; transition: background 0.3s, transform 0.2s, box-shadow 0.3s; }
.proj-link:hover { background: rgba(77, 217, 192, 0.2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(77, 217, 192, 0.18); }

/* ===================== CONTACT ===================== */
#contact { text-align: center; padding-bottom: 80px; }
.contact-card { background: rgba(13, 61, 84, 0.35); border: 1px solid rgba(77, 217, 192, 0.12); border-radius: 20px; padding: 64px 48px; backdrop-filter: blur(12px); position: relative; overflow: hidden; z-index: 1; }
.contact-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% -20%, rgba(26, 184, 160, 0.12), transparent 60%); z-index: 0; }
.contact-card * { position: relative; z-index: 2; }
.contact-title { font-family: "Syne", sans-serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px; background: linear-gradient(135deg, var(--sea-foam), var(--green-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.contact-sub { color: var(--text-muted); font-size: 1rem; line-height: 1.7; max-width: 500px; margin: 0 auto 40px; }
.contact-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.contact-link { font-family: "DM Mono", monospace; font-size: 0.78rem; letter-spacing: 0.1em; padding: 12px 28px; border-radius: 6px; text-decoration: none; transition: transform 0.2s, box-shadow 0.3s, background 0.3s; display: flex; align-items: center; gap: 8px; }
.contact-link i { font-size: 1rem; }
.cl-github  { background: rgba(77, 217, 192, 0.1); border: 1px solid rgba(77, 217, 192, 0.25); color: var(--sea-mint); }
.cl-github:hover  { background: rgba(77, 217, 192, 0.18); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(77, 217, 192, 0.15); }
.cl-linkedin{ background: rgba(82, 201, 138, 0.1); border: 1px solid rgba(82, 201, 138, 0.25); color: var(--green-light); }
.cl-linkedin:hover{ background: rgba(82, 201, 138, 0.18); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(82, 201, 138, 0.15); }
.cl-fb      { background: rgba(200, 240, 248, 0.08); border: 1px solid rgba(200, 240, 248, 0.2); color: var(--sky-light); }
.cl-fb:hover      { background: rgba(200, 240, 248, 0.14); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200, 240, 248, 0.1); }

/* ===================== FOOTER ===================== */
footer { border-top: 1px solid rgba(77, 217, 192, 0.08); padding: 32px 48px; display: flex; align-items: center; justify-content: space-between; font-family: "DM Mono", monospace; font-size: 0.72rem; color: var(--text-dim); flex-wrap: wrap; gap: 12px; }

/* ===================== REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.glow-line { height: 1px; background: linear-gradient(90deg, transparent, var(--sea-aqua), var(--green-sage), transparent); margin: 0 auto; opacity: 0.4; }

/* ===================== SCROLLBAR / SELECTION ===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--sea-deep); }
::-webkit-scrollbar-thumb { background: var(--sea-teal); border-radius: 3px; }
::selection { background: rgba(77, 217, 192, 0.25); color: var(--sea-foam); }

/* ===================== PROGRESS BAR ===================== */
.progress-bar { position: fixed; top: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--sea-aqua), var(--green-sage)); z-index: 200; transition: width 0.1s; box-shadow: 0 0 8px var(--sea-aqua); }
.section-bg-tint { position: relative; }
.section-bg-tint::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(14, 107, 124, 0.06), transparent); pointer-events: none; }

/* ===================== RESPONSIVE — TABLET ===================== */
@media (max-width: 1024px) {
  nav { padding: 0 32px; }
  .nav-links { gap: 24px; }
  section { padding: 80px 32px; }
  .page-hero { padding: calc(var(--nav-h) + 60px) 32px 80px; }
  .hero-inner { gap: 48px; }
  .cert-card { grid-template-columns: 1fr; }
  .cert-image { min-height: 220px; max-height: 280px; }
}

/* ===================== RESPONSIVE — MOBILE ===================== */
@media (max-width: 768px) {
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }
  nav { padding: 0 20px; background: rgba(6, 24, 32, 0.92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(77, 217, 192, 0.1); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(6, 24, 32, 0.97); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(77, 217, 192, 0.15); padding: 8px 0 16px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
  .nav-links.open { max-height: 500px; padding: 12px 0 20px; }
  .nav-links li { width: 100%; }
  .nav-links a { padding: 14px 24px; font-size: 0.95rem; width: 100%; border-left: 2px solid transparent; gap: 12px; }
  .nav-links a i { font-size: 1.1rem; width: 22px; text-align: center; }
  .nav-links a:hover, .nav-links a.active { background: rgba(77, 217, 192, 0.08); border-left-color: var(--sea-mint); }
  #hero { padding: calc(var(--nav-h) + 30px) 20px 70px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-image-wrap { order: -1; }
  .hero-img-frame { width: 200px; height: 200px; }
  .hero-tag, .hero-btns, .contact-links { justify-content: center; }
  .hero-tag::before { display: none; }
  section { padding: 64px 20px; }
  .section-title { margin-bottom: 40px; }
  .timeline { padding-left: 24px; }
  .tl-dot { left: -30px; }
  .journey-grid { grid-template-columns: 1fr; gap: 16px; }
  .skills-clusters { grid-template-columns: 1fr 1fr; gap: 16px; }
  .skill-cluster { padding: 22px 18px; }
  .page-hero { padding: calc(var(--nav-h) + 40px) 20px 60px; }
  .cert-card { grid-template-columns: 1fr; }
  .cert-image { min-height: 200px; max-height: 240px; }
  .cert-body { padding: 24px 20px; }
  .cert-title { font-size: 1.2rem; }
  .proj-grid { grid-template-columns: 1fr; gap: 20px; }
  .proj-body { padding: 20px 20px 24px; }
  .contact-card { padding: 40px 22px; }
  footer { padding: 24px 20px; flex-direction: column; text-align: center; gap: 8px; }
  .jellyfish  { width: 40px; height: 55px; top: 8%; right: 4%; }
  .jellyfish2 { width: 30px; height: 40px; bottom: 12%; left: 4%; }
}

/* ===================== RESPONSIVE — SMALL MOBILE ===================== */
@media (max-width: 480px) {
  .skills-clusters { grid-template-columns: 1fr; }
  .hero-img-frame { width: 170px; height: 170px; }
  .nav-logo { font-size: 1rem; }
  .btn-primary, .btn-ghost { padding: 12px 22px; font-size: 0.75rem; }
  .hero-btns { gap: 10px; }
  .contact-link { padding: 10px 20px; font-size: 0.72rem; }
}