/* ==========================================================
   DESIGN TOKENS
   ========================================================== */
:root {
  /* Colors */
  --bg-primary: #0b0e14;
  --bg-secondary: #12161f;
  --bg-panel: #161b26;
  --line: #232938;
  --text-primary: #ecebe6;
  --text-secondary: #8b92a5;
  --text-dim: #565e70;
  --accent: #f2a93b;
  --accent-soft: rgba(242, 169, 59, 0.14);
  --accent-dim: rgba(242, 169, 59, 0.35);

  /* Type */
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Layout */
  --max-width: 1160px;
  --edge: 32px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  

}

.contact-value {
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
a {
  color: inherit;
  text-decoration: none;
}
section {
  padding: 50px 0;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--edge);
}

::selection {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Themed scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dim);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dim) var(--bg-primary);
  overflow-x: hidden;
}

/* Prevents a flash of fully-visible content before the
   entrance animation plays. Only hides these elements while
   html has the "preload" class (added by an inline script,
   removed by main.js once GSAP takes over, and removed
   automatically after 2.5s either way as a safety net). */
html.preload .hero-eyebrow,
html.preload .hero-name,
html.preload .hero-role-line,
html.preload .hero-tagline,
html.preload .hero-actions .btn,
html.preload .hero-meta,
html.preload .hero-photo,
html.preload .float-icon {
  opacity: 0;
}

/* Focus visibility for keyboard users */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================
   HERO
   ========================================================== */

  .hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 90%);
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
}

.eyebrow-text-wrap {
  display: inline;
}

.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  margin-top: 5px;
  flex-shrink: 0;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-role-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  color: var(--text-secondary);
  margin-top: 10px;
  height: 1.4em;
  display: flex;
  align-items: center;
}

#role-text {
  color: var(--accent);
  margin-left: 0.4ch;
}

.hero-tagline {
  max-width: 560px;
  margin-top: 28px;
  font-size: clamp(0.9rem, 3.5vw, 1.05rem);
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 14px 26px;
  border-radius: 6px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #12161f;
  border-color: var(--accent);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-meta {
  position: absolute;
  bottom: 40px;
  left: var(--edge);
  right: var(--edge);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  z-index: 2;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--accent), transparent);
}

/* @media (max-width: 600px) {
  .hero-meta {
    flex-direction: column;
    gap: 8px;
    bottom: 24px;
  }
} */
/* ---------- Hero two-column layout + photo ---------- */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-photo {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  justify-self: center;
}

.hero-photo-frame {
  position: relative;
  border-radius: 16px;
  padding: 2px;
  overflow: hidden;
}

.hero-photo-frame::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent 0%, var(--accent) 6%, transparent 14%, transparent 100%);
  animation: spin 4s linear infinite;
}
.hero-photo-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.hero-photo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), transparent 35%, transparent 65%, var(--accent));
  z-index: 1;
  animation: spin 5s linear infinite;
}

.hero-orbit {
  position: absolute;
  inset: -26px;
  border: 1px dashed var(--line);
  border-radius: 50%;
  z-index: 1;
  animation: spin 12s linear infinite;
}

.hero-orbit::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  transform: translateX(-50%);
}

.float-icon {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  z-index: 3;
}

.float-icon-1 { top: -75px;  left: 55px;   opacity: 0.9; }
.float-icon-2 { top: -55px;  left: 270px;  opacity: 0.85; }
.float-icon-3 { top: 150px;  left: 350px;  opacity: 0.8; }
.float-icon-4 { top: 355px;  left: 245px;  opacity: 0.85; }
.float-icon-5 { top: 335px;  left: 10px;   opacity: 0.9; }

/* @media (max-width: 800px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-photo {
    order: -1;
    width: 200px;
    height: 200px;
  }
  .hero-actions {
    justify-content: center;
  }
} */

/* ==========================================================
   SECTION HEADINGS (shared across sections)
   ========================================================== */

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.25;
  max-width: 700px;
}

/* ==========================================================
   ABOUT
   ========================================================== */
.about {
  padding: 50px 0;
  position: relative;
}

.about-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  margin-top: 56px;
}

.about-bio p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 22px;
}

.about-bio p:last-child {
  margin-bottom: 0;
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-portrait-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  max-width: 340px;
  margin: 0 auto 24px;
}

.about-portrait-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 14px var(--accent);
  animation: scanline 3s ease-in-out infinite;
}

@keyframes scanline {
  0% {
    top: 0%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.about-portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

.stat-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 16px 14px;
  border-radius: 8px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
  display: block;
  line-height: 1.35;
}

.currently-learning {
  margin-top: 36px;
  padding: 20px 26px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cl-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cl-label i {
  color: var(--accent);
}

.cl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cl-tag {
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 20px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cl-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.4s ease-in-out infinite;
}
/* @media (max-width: 800px) {
  .about {
    padding: 90px 0;
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
} */

/* ==========================================================
   SKILLS
   ========================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.skill-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.skill-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
}
.skill-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--accent-soft), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.skill-card:hover::after {
  opacity: 1;
}

.skill-icon {
  font-size: 1.4rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  border-radius: 8px;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
  transform: scale(1.1) rotate(-4deg);
}

.skill-category {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 12px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.skill-tag:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}


/* ==========================================================
   EXPERIENCE — vertical timeline
   ========================================================== */
.timeline {
  position: relative;
  margin-top: 56px;
  padding-left: 40px;
}

.timeline-line {
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
  transform-origin: top;
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px var(--accent-dim);
}

.timeline-duration {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

.timeline-role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.timeline-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-points li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

.timeline-points li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}


/* ==========================================================
   PROJECTS
   ========================================================== */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 56px;



}

.project-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  transition: border-color 0.3s ease;
}

.project-card:hover {
  border-color: var(--accent-dim);
}
.project-info {
  min-width: 0;
}
.project-preview {
  grid-column: 1 / -1;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 4px;
}

.project-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .project-preview img {
  transform: scale(1.03);
}

.preview-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 14, 20, 0.8);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}
.project-domain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.project-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.project-summary {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 22px;
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.project-tool {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-tool i {
  color: var(--accent);
  font-size: 0.85rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.project-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.project-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.project-link-accent {
  border-color: var(--accent-dim);
  color: var(--accent);
}
.project-highlights {
  background: var(--bg-secondary);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  min-width: 0;
}

.highlight-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.highlight-icon {
  color: var(--accent);
  font-size: 0.75rem;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.highlight-text {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.65;
}

.highlight-text .num {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
}

.projects-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.projects-more-wrap .btn {
  cursor: pointer;
}

.projects-more-wrap .btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.all-projects-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 3vw, 0.88rem);
  font-weight: 600;
  color: #12161f;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 12px 20px;
  margin-top: 26px;
  transition: gap 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.all-projects-link:hover {
  gap: 14px;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-dim);
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact-inner {
  display: grid;
    grid-template-columns: 0.9fr 1.1fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin-top: 56px;
}

.contact-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.contact-visual::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.contact-visual-inner {
  position: relative;
  width: 100%;
  max-width: 260px;
}

.contact-visual-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
}

.contact-visual-outline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.contact-visual-outline path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--accent));
  stroke-dasharray: 250 11314;
  animation: snake-trace 14s linear infinite;
}

@keyframes snake-trace {
  to {
    stroke-dashoffset: -11564;
  }
}

.contact-info,
.contact-form {
  min-width: 0;
}

.contact-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-hint {
  position: absolute;
  bottom: 100%;
  left: 50px;
  margin-bottom: 8px;
  background: var(--bg-panel);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 5;
  pointer-events: none;
}

.contact-hint.show {
  opacity: 1;
  transform: translateY(0);
}

.contact-text {
  flex: 1;
  min-width: 0;
}

.contact-eye-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-eye-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.contact-copy-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-copy-btn.copied {
  border-color: #4ade80;
  color: #4ade80;
}

.contact-item:first-child {
  padding-top: 0;
}

.contact-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 3px;
}

.contact-value {
  color: var(--text-primary);
  font-size: clamp(0.85rem, 3vw, 0.98rem);
  transition: color 0.2s ease;
  overflow-wrap: anywhere;
}

a.contact-value:hover {
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.25s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-dim);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-dim);
}

.contact-form .btn {
  align-self: flex-start;
}
.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#form-status {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-height: 1.2em;
}

#form-status.success {
  color: #6fcf97;
}

#form-status.error {
  color: #eb5757;
}
/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-socials {
  display: flex;
  gap: 18px;
}

.footer-socials a {
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.footer-socials a:hover {
  color: var(--accent);
}

.back-to-top {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.back-to-top:hover {
  color: var(--accent);
}


/* ==========================================================
   YOUTUBE
   ========================================================== */
.youtube-intro {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 620px;
  margin-top: 20px;
}

.yt-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 44px;
}

.yt-track-wrap {
  overflow: hidden;
  flex: 1;
}

.yt-track {
  display: flex;
  gap: 20px;
  width: max-content;
}

.yt-card {
  width: 300px;
  flex-shrink: 0;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.yt-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
}

.yt-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
}

.yt-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  background: rgba(11, 14, 20, 0.75);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  transition: transform 0.25s ease, background 0.25s ease;
}

.yt-card:hover .yt-play-icon {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--accent);
  color: #12161f;
}

.yt-card-title {
  padding: 14px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.yt-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.yt-channel-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 22px;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.yt-channel-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.yt-channel-link i {
  color: #ff0000;
  font-size: 1.15rem;
}


/* ==========================================================
   PROJECTS PAGE (projects.html)
   ========================================================== */
.projects-page-header {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.projects-page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-home-link {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.back-home-link:hover {
  color: var(--accent);
}

.projects-page-brand {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
}

.projects-page {
  padding: 80px 0 120px;
}

.projects-page-intro {
  color: var(--text-secondary);
  margin-top: 18px;
  font-size: 1rem;
}

.domain-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.domain-tab {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.domain-tab:hover {
  border-color: var(--accent-dim);
  color: var(--text-primary);
}

.domain-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #12161f;
  font-weight: 600;
}

.domain-tab-count {
  font-size: 0.72rem;
  opacity: 0.75;
}

.domain-panel {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.no-projects {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-secondary);
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.no-projects i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.no-projects p {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}


/* ==========================================================
   CASE STUDY PAGE (case-study-*.html)
   ========================================================== */
.case-study {
  padding: 70px 0 120px;
}

.case-study-narrow {
  max-width: 760px;
}

.case-study-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-top: 16px;
}

.case-study-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-top: 18px;
}

.case-study-hero-image {
  margin-top: 40px;
  border-radius: 10px;
}

.case-study-body {
  margin-top: 50px;
}

.case-study-body .section-eyebrow {
  margin-top: 44px;
  margin-bottom: 16px;
  color: #5fd0c0;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.case-study-body .section-eyebrow:first-child {
  margin-top: 0;
}

.case-study-body p {
  color: var(--text-secondary);
  font-size: 1.03rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

.case-study-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 50px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
/* ==========================================================
   QUICK FACTS (Contact section)
   ========================================================== */
.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.quick-fact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
}

.quick-fact i {
  color: var(--accent);
}

.quick-fact-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: blink 1.4s ease-in-out infinite;
}

/* ==========================================================
   SERVICES
   ========================================================== */
.services-intro {
  color: var(--text-secondary);
  margin-top: 18px;
  font-size: 1rem;
  max-width: 560px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.service-card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  padding-right: 190px;
  overflow: visible;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
}

.service-image {
  position: absolute;
  top: -14px;
  right: -14px;
  transform: rotate(6deg);
  width: 190px;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.service-card:hover .service-image {
  transform: rotate(2deg) scale(1.05);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.service-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.service-description {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}
.services-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
/* ==========================================================
   404 PAGE
   ========================================================== */
.not-found-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.not-found-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
  padding: 0 24px;
}

.not-found-content .hero-eyebrow {
  justify-content: center;
}

.not-found-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 15vw, 8rem);
  color: var(--accent);
  line-height: 1;
  margin: 20px 0;
}

.not-found-message {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ==========================================================
   CURSOR EFFECT
   ========================================================== */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0.6;
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.cursor-ring-hover {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
}

/* ==========================================================
   WHATSAPP FLOATING BUTTON
   ========================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.7rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  z-index: 999;
  animation: whatsapp-pulse 2.5s ease-out infinite;
}

.whatsapp-float:hover {
  animation-play-state: paused;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}
/* ==========================================================
   RESPONSIVE
   All breakpoints for every section live here, in one
   place, biggest screen down to smallest. When we add a
   new section, its responsive rules get added to this
   same block, at the matching breakpoint.
   ========================================================== */

/* Tablets / small laptops */
@media (max-width: 1024px) {
  :root {
    --edge: 24px;
  }
  section {
    padding: 100px 0;
  }
  .hero-inner {
    gap: 28px;
  }
  .hero-photo {
    max-width: 480px;
    width: 100%;
  }
  .about-inner {
    gap: 40px;
  }
    .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large phones / portrait tablets */
@media (max-width: 800px) {
  .hero {
    min-height: auto;
    flex-direction: column;
    padding: 130px 0 60px;
  }
  .hero-meta {
    position: static;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    width: 100%;
  }
  .hero-role-line {
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-photo {
    order: -1;
    max-width: 400px;
    width: 100%;
  }
  .float-icon {
    display: none;
  }
  .hero-actions {
    justify-content: center;
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

    .about-portrait {
    max-width: 260px;
  }

   .skills-grid {
    grid-template-columns: 1fr;
  }
   .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    padding-right: 28px;
  }
  .service-image {
    position: static;
    transform: none;
    width: 90px;
    margin-top: 16px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4));
  }
  .service-card:hover .service-image {
    transform: none;
  }
  .project-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }
    .contact-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact-visual {
    order: -1;
  }
    .contact-visual-inner {
    max-width: 200px;
  }
  .yt-card {
    width: 240px;
  }
  .yt-arrow {
    width: 36px;
    height: 36px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  section {
    padding: 80px 0;
  }
}

/* Phones */
@media (max-width: 480px) {
  :root {
    --edge: 18px;
  }
  .hero-photo {
    max-width: 320px;
    width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    text-align: center;
  }
  .stat-card {
    padding: 18px 20px;
  }
  .timeline {
    padding-left: 28px;
  }
  .timeline-dot {
    left: -28px;
  }

    .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    bottom: 18px;
    right: 18px;
  }
}