/* ============================================
   PICCHIII — style.css
   Palette: Onyx #0A171D · Oceanic #003F47
            Wheat #FFF6E9 · Nectarine #FFBD76
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0A171D;
  --surface:  #003F47;
  --accent:   #FFBD76;
  --accent2:  #FFF6E9;
  --text:     #FFF6E9;
  --muted:    rgba(255,246,233,0.45);
  --border:   rgba(255,246,233,0.1);
  --card-bg:  rgba(0,63,71,0.5);
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ---- Noise overlay ---- */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1000;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
#cursor {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width 0.25s, height 0.25s;
}
#cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0.5;
}
body:has(a:hover) #cursor,
body:has(button:hover) #cursor   { width: 18px; height: 18px; }
body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring { width: 56px; height: 56px; opacity: 0.25; }

/* ============================================
   NAV
   ============================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 3rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  background: rgba(10,23,29,0.85);
  animation: fadeDown 0.8s ease both;
}
@keyframes fadeDown {
  from { opacity:0; transform:translateY(-18px); }
  to   { opacity:1; transform:none; }
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  font-family: "DM Sans", sans-serif;
  display: flex; gap: 2.2rem; align-items: center;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent) !important;
  color: #0A171D !important;
  padding: 0.5rem 1.3rem;
  border-radius: 50px;
  font-weight: 400 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: #f0a855 !important; transform: scale(1.04); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: none; background: none; border: none; padding: 4px;
}
.hamburger span {
  width: 24px; height: 1.5px;
  background: var(--text); display: block; transition: 0.3s;
}

/* ============================================
   PocketFix Link
   ============================================ */
.pocketfix-link {
  position: relative;
  font-weight: bold;
  font-size: smaller;
  font-family: "Michroma", sans-serif;
  color: rgb(255, 249, 249);
  text-decoration: none;
  transition: color 0.3s ease;
}
.pocketfix-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background-color: rgb(255, 193, 79);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}
.pocketfix-link:hover { color: rgb(255, 193, 79); }
.pocketfix-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============================================
   HERO
   ============================================ */
#hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 3rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 30%, rgba(255,189,118,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0,63,71,0.5) 0%, transparent 60%),
    var(--bg);
  z-index: 0;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
}

/* Left content column */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 1;
  flex: 1;
  min-width: 0; /* prevents flex children from overflowing */
}

.hero-label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.3s ease forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s ease forwards;
  word-break: break-word;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-title .outline {
  -webkit-text-stroke: 1.5px var(--text);
  color: transparent;
}

/* ---- Swipe word ---- */
.swipe-word {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  -webkit-text-stroke: 1.5px var(--text);
  color: transparent;
}

/* ---- Typewriter word ---- */
.typewriter-word {
  color: var(--accent);
  font-style: normal;
  display: inline-block;
  min-width: 2ch;
  position: relative;
}
.typewriter-word::after {
  content: '|';
  color: var(--accent);
  animation: caretBlink 0.75s step-end infinite;
  margin-left: 2px;
  font-weight: 300;
}
@keyframes caretBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-sub {
  max-width: 480px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 2rem;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s ease forwards;
}
.hero-actions {
  display: flex; gap: 1rem; margin-top: 2.5rem;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s ease forwards;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem; right: 3rem;
  z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 1s 1.2s ease forwards;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollLine 2s 1.5s ease infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.4); opacity: 0.4; }
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(30px); }
  to   { opacity:1; transform:none; }
}

/* Right photo column */
.hero-photo-wrap {
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding-bottom: 0;
  opacity: 0;
  animation: fadeUp 0.9s 0.7s ease forwards;
  position: relative;
  width: 280px;
  height: 280px;
  margin-right: 4rem;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--accent);
  box-shadow:
    0 0 0 6px rgba(255,189,118,0.08),
    0 0 40px rgba(255,189,118,0.12);
  opacity: 0;
  transition: opacity 1.2s ease, box-shadow 0.3s ease;
}
.hero-photo.active { opacity: 1; }
.hero-photo:hover {
  box-shadow:
    0 0 0 8px rgba(255,189,118,0.12),
    0 0 60px rgba(255,189,118,0.2);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  background: var(--accent);
  color: #0A171D;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  border: none;
  cursor: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: transform 0.2s, background 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); background: #f0a855; }

.btn-outline {
  background: transparent;
  color: var(--text);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  cursor: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.btn-outline:hover { border-color: rgba(255,246,233,0.35); transform: translateY(-2px); }

/* ============================================
   MARQUEE
   ============================================ */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 1rem 0;
  background: var(--surface);
}
.marquee-track {
  display: flex; gap: 3rem;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee-item {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.marquee-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================
   SECTIONS — BASE
   ============================================ */
section { padding: 7rem 3rem; }

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}

/* ============================================
   ABOUT
   ============================================ */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
  border-top: 1px solid var(--border);
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 1.5rem;
}
.about-text h2 span { color: var(--accent); }
.about-text p { color: var(--muted); font-size: 1rem; margin-bottom: 1rem; max-width: 440px; }

.about-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.stat-box {
  background: var(--surface);
  padding: 2rem; transition: background 0.2s;
}
.stat-box:hover { background: #004e58; }
.stat-num {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 800; line-height: 1;
}
.stat-num span { color: var(--accent); }
.stat-label {
  font-size: 0.82rem; color: var(--muted);
  margin-top: 0.4rem; text-transform: uppercase; letter-spacing: 0.08em;
}

/* ============================================
   PORTFOLIO
   ============================================ */
#portfolio { border-top: 1px solid var(--border); }
.portfolio-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 3rem;
}
.portfolio-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
}
.work-card {
  background: var(--surface);
  padding: 2.5rem; position: relative;
  overflow: hidden; cursor: none; transition: background 0.3s;
}
.work-card:hover { background: #004e58; }
.work-card:nth-child(1) { grid-column: span 7; min-height: 320px; }
.work-card:nth-child(2) { grid-column: span 5; }
.work-card:nth-child(3) { grid-column: span 4; }
.work-card:nth-child(4) { grid-column: span 8; min-height: 280px; }

.work-card-tag {
  font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.7rem;
}
.work-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 0.6rem;
}
.work-card p { color: var(--muted); font-size: 0.9rem; max-width: 340px; }
.work-card-num {
  position: absolute; bottom: 1.5rem; right: 2rem;
  font-family: var(--font-display);
  font-size: 4rem; font-weight: 800;
  color: rgba(255,246,233,0.05); line-height: 1; pointer-events: none;
}
.work-card-arrow {
  position: absolute; top: 2rem; right: 2rem;
  width: 38px; height: 38px;
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--muted); text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.work-card:hover .work-card-arrow {
  border-color: var(--accent); color: var(--accent); transform: rotate(45deg);
}

/* ============================================
   BLOG
   ============================================ */
#blog { border-top: 1px solid var(--border); }
.blog-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 3rem;
}
.blog-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800; letter-spacing: -0.03em;
}
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
}
.blog-card {
  background: var(--surface); padding: 2.5rem;
  cursor: none; transition: background 0.3s;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.blog-card:hover { background: #004e58; }
.blog-card-meta {
  display: flex; gap: 0.8rem; align-items: center;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.2rem;
}
.blog-card-meta span { color: var(--accent); }
.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 0.8rem; flex: 1;
}
.blog-card-excerpt { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.blog-card-read {
  margin-top: 1.5rem; font-size: 0.8rem;
  color: var(--accent); letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 0.4rem;
}

/* ============================================
   EXPERIENCE
   ============================================ */
#experience { border-top: 1px solid var(--border); }

.experience-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 4rem;
}
.experience-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
}

.experience-timeline {
  position: relative;
  padding-left: 2.5rem;
}
.experience-timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--accent) 8%,
    var(--border) 30%,
    var(--border) 70%,
    transparent 100%
  );
}

.exp-entry {
  position: relative;
  padding: 0 0 3.5rem 2.5rem;
  cursor: none;
}
.exp-entry:last-child { padding-bottom: 0; }

.exp-entry::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 10px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  transition: border-color 0.3s, background 0.3s;
  transform: translateX(-4px);
  z-index: 1;
}
.exp-entry:hover::before {
  border-color: var(--accent);
  background: var(--accent);
}
.exp-entry.current::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,189,118,0.15);
}

.exp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  transition: background 0.3s, border-color 0.3s, transform 0.25s;
}
.exp-entry:hover .exp-card {
  background: #004e58;
  border-color: rgba(255,246,233,0.15);
  transform: translateX(4px);
}

.exp-top {
  display: flex; align-items: flex-start; gap: 1.4rem;
}
.exp-logo {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.exp-meta { flex: 1; min-width: 0; }
.exp-role {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}
.exp-company-line {
  display: flex; align-items: center; gap: 0.6rem;
  flex-wrap: wrap;
}
.exp-company {
  font-size: 0.9rem; font-weight: 400;
  color: var(--accent);
}
.exp-type {
  font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 50px;
}
.exp-duration {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-align: right;
  flex-shrink: 0;
}
.exp-duration strong {
  display: block;
  font-weight: 400;
  color: var(--muted);
}
.exp-duration span {
  font-size: 0.72rem;
  color: rgba(255,246,233,0.28);
}
.exp-desc {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}
.exp-highlights {
  list-style: none;
  margin-top: 1rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.exp-highlights li {
  display: flex; align-items: flex-start; gap: 0.7rem;
  font-size: 0.88rem; color: var(--muted); line-height: 1.5;
}
.exp-highlights li::before {
  content: '▸';
  color: var(--accent);
  font-size: 0.7rem;
  margin-top: 0.22rem;
  flex-shrink: 0;
}
.exp-skills {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.4rem;
}
.exp-skill {
  padding: 0.3rem 0.85rem;
  background: rgba(255,189,118,0.08);
  border: 1px solid rgba(255,189,118,0.2);
  border-radius: 50px;
  font-size: 0.72rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--accent);
}
.exp-badge-current {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255,189,118,0.1);
  border: 1px solid rgba(255,189,118,0.3);
  border-radius: 50px;
  font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
}
.exp-badge-current::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 1.8s ease infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ============================================
   CONTACT
   ============================================ */
#contact {
  border-top: 1px solid var(--border);
  text-align: center; padding: 8rem 3rem;
  position: relative; overflow: hidden;
}
.contact-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(255,189,118,0.12) 0%, transparent 70%);
  pointer-events: none;
}
#contact h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.1;
  margin-bottom: 1.5rem; position: relative; z-index: 1;
}
#contact h2 .outline { -webkit-text-stroke: 1.5px var(--text); color: transparent; }
#contact p { color: var(--muted); max-width: 460px; margin: 0 auto 2.5rem; position: relative; z-index: 1; }
#contact .btn-primary { margin: 0 auto; position: relative; z-index: 1; }

/* ============================================
   SOCIALS
   ============================================ */
.socials-bar {
  display: flex; justify-content: center; gap: 1.2rem;
  margin-top: 3rem; position: relative; z-index: 1;
  flex-wrap: wrap;
}
.social-link {
  width: 46px; height: 46px;
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); text-decoration: none; font-size: 0.85rem;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.social-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 2rem 3rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--text); }

/* ============================================
   RESPONSIVE — TABLET (max 900px)
   ============================================ */
@media (max-width: 900px) {

  /* NAV */
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* HERO */
  #hero {
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1.5rem 4rem;
    gap: 0;
    min-height: 100svh;
  }
  .hero-content {
    justify-content: flex-end;
    width: 100%;
  }
  .hero-scroll { display: none; }
  .hero-sub { font-size: 0.95rem; max-width: 100%; }
  .hero-photo-wrap {
    width: 140px;
    height: 140px;
    order: -1;
    align-self: center;
    margin-right: 0;
    margin-top: 6rem;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
  }

  /* SECTIONS */
  section { padding: 4rem 1.5rem; }

  /* ABOUT */
  #about { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .stat-box { padding: 1.5rem; }
  .stat-num { font-size: 2.2rem; }

  /* PORTFOLIO */
  .portfolio-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .portfolio-grid { grid-template-columns: 1fr; border-radius: 12px; }
  .work-card { grid-column: span 1 !important; min-height: unset !important; padding: 1.8rem; }

  /* EXPERIENCE */
  .experience-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .experience-timeline { padding-left: 1.5rem; }
  .exp-entry { padding-left: 1.5rem; }
  .exp-top { flex-wrap: wrap; gap: 0.8rem; }
  .exp-duration { text-align: left; white-space: normal; }
  .exp-card { padding: 1.5rem; }
  .exp-role { font-size: 1rem; }

  /* BLOG */
  .blog-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .blog-grid { grid-template-columns: 1fr; border-radius: 12px; }

  /* CONTACT */
  #contact { padding: 5rem 1.5rem; }
  #contact h2 { font-size: clamp(2rem, 10vw, 3.5rem); }

  /* FOOTER */
  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.5rem; }
}

/* ============================================
   RESPONSIVE — MOBILE (max 480px)
   ============================================ */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.6rem, 13vw, 3.5rem); }
  .hero-photo-wrap { width: 120px; height: 120px; margin-top: 5.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { width: 100%; justify-content: center; }

  .about-stats { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 2rem; }
  .stat-label { font-size: 0.72rem; }

  .exp-card { padding: 1.2rem; }
  .exp-logo { width: 38px; height: 38px; font-size: 0.65rem; }
  .exp-role { font-size: 0.95rem; }

  #contact h2 { font-size: clamp(1.8rem, 11vw, 2.5rem); }
  .socials-bar { gap: 0.8rem; }
  .social-link { width: 42px; height: 42px; }

  footer { font-size: 0.75rem; }
}

/* ============================================
   RESPONSIVE — TINY (max 360px)
   ============================================ */
@media (max-width: 360px) {
  .hero-title { font-size: clamp(2.2rem, 12vw, 3rem); }
  .hero-photo-wrap { width: 100px; height: 100px; }
  section { padding: 3.5rem 1.2rem; }
  .exp-top { flex-direction: column; }
  .about-stats { grid-template-columns: 1fr; }
}