@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --background: 0 0% 4%;
  --foreground: 0 0% 98%;
  --card: 0 0% 6%;
  --card-foreground: 0 0% 98%;
  --popover: 0 0% 6%;
  --popover-foreground: 0 0% 98%;
  --primary: 0 0% 98%;
  --primary-foreground: 0 0% 4%;
  --secondary: 0 0% 12%;
  --secondary-foreground: 0 0% 98%;
  --muted: 0 0% 15%;
  --muted-foreground: 0 0% 55%;
  --accent: 0 0% 18%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 0 0% 18%;
  --input: 0 0% 18%;
  --ring: 0 0% 98%;
  --radius: 0.5rem;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

.link-underline {
  position: relative;
}

.link-underline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: hsl(var(--foreground));
  transition: all 300ms;
}

.link-underline:hover::after {
  width: 100%;
}

.hover-lift {
  transition: transform 300ms;
}

.hover-lift:hover {
  transform: translateY(-0.25rem);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-fade-up {
  animation: fadeUp 0.8s ease-out forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.animate-slide-in {
  animation: slideIn 0.8s ease-out forwards;
  opacity: 0;
}

.animation-delay-100 {
  animation-delay: 100ms;
}

.animation-delay-200 {
  animation-delay: 200ms;
}

.animation-delay-300 {
  animation-delay: 300ms;
}

.animation-delay-400 {
  animation-delay: 400ms;
}

.animation-delay-500 {
  animation-delay: 500ms;
}

.animation-delay-600 {
  animation-delay: 600ms;
}

.animate-marquee {
  animation: marquee 20s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Hero per-letter effect */
.hero__title {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

/* =========================================
   HERO SCRIBBLE TEXT (YELLOW AREA CONTENT)
   ========================================= */

/*
This text is designed to sit inside a hand-drawn yellow scribble shape.
Placement should feel organic, editorial, and slightly imperfect.
It must remain behind the main hero title.
*/



.hero-highlight {
  position: absolute;
  left: 8%;
  top: 58%;
  transform: rotate(-6deg);
  z-index: 1;
  max-width: 420px;
  pointer-events: none;
  animation: heroFloat 7s ease-in-out infinite;
}

/* Scribble-style circle around hero highlight */
.hero-highlight::before {
  content: "";
  position: absolute;

 inset: -60px -72px -96px -72px;


  border: 2px solid #fde047;
  border-radius: 50%;
  transform: rotate(-8deg);
  opacity: 0.85;
  z-index: -1;
  pointer-events: none;

  /* uneven stroke for hand-drawn feel */
  border-width: 2px 3px 2px 3px;
  animation: scribblePulse 4s ease-in-out infinite;
}
.hero-highlight::after {
  content: "";
  position: absolute;

  inset: -64px -76px -92px -76px;

  border: 1px solid rgba(253, 224, 71, 0.35);
  border-radius: 50%;
  transform: rotate(6deg);
  z-index: -2;
  pointer-events: none;
  animation: scribbleDrift 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-8px) rotate(-4deg); }
}

@keyframes scribblePulse {
  0%, 100% { opacity: 0.85; transform: rotate(-8deg) scale(1); }
  50% { opacity: 0.65; transform: rotate(-10deg) scale(1.02); }
}

@keyframes scribbleDrift {
  0%, 100% { opacity: 0.35; transform: rotate(6deg) scale(1); }
  50% { opacity: 0.5; transform: rotate(10deg) scale(1.04); }
}

.hero-highlight-text {
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 0.95vw, 0.95rem);
  line-height: 1.38;
  color: rgba(255, 255, 255, 0.75);
  max-width: 100%;
}


/* Hero scribble heading */
.hero-highlight-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fde047; /* scribble yellow */
  letter-spacing: -0.01em;
}

/* Hero scribble body text */
.hero-highlight-content {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.hero-highlight-content p {
  margin: 0.25rem 0;
}

/* Ensure hero titles sit ABOVE scribble text */
.hero__title__top,
.hero__title__bottom {
  position: relative;
  z-index: 2;
}

/* Hide decorative text on mobile */
@media (max-width: 768px) {
  .hero-highlight {
    display: none;
  }
}
/* Subtle brand emphasis inside scribble text */
.brand-accent {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  white-space: nowrap;
}



.hero__title__top {
  font-size: clamp(2.5rem, 8vw, 9rem);
  line-height: 1;
  font-weight: 700;
  margin-bottom: 0;
  display: block;
}

.hero__title__top > div {
  display: flex;
  align-items: baseline;
  gap: clamp(0.5rem, 2vw, 1.5rem);
}

.hero__title__left,
.hero__title__right {
  display: inline-flex;
  will-change: transform;
}

.hero__hover {
  display: inline-block;
  transition: transform 200ms ease, color 200ms ease;
  margin: 0 0.05em;
  color: hsl(var(--muted-foreground));
}

.hero__hover:hover {
  transform: translateY(-0.4em);
  color: hsl(var(--foreground));
}

.hero__title__dash {
  display: inline-block;
  line-height: 1;
  transform-origin: center;
  margin: 0 0.2em;
}

.hero__title__dash.desktop {
  display: none;
}

.hero__title__dash.tablet {
  display: inline-block;
}

/* Bottom line: DEVELOPER + About */
.hero__title__bottom {
  display: block;
  margin-top: 0;
}

.hero__title__bottom > div {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
}

.bottom__left {
  font-size: clamp(2rem, 6vw, 6rem);
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  white-space: nowrap;
  min-width: 0;
}

.bottom__left .hero__hover:hover {
  transform: translateY(0.4em);
}

.bottom__right {
  max-width: 32rem;
  padding-top: 1rem;
}

.code-snippet-container {
  background-color: hsl(0 0% 8%);
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.code-snippet-header {
  background-color: hsl(0 0% 10%);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid hsl(var(--border));
}

.window-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red {
  background-color: #ff5f56;
}

.dot-yellow {
  background-color: #ffbd2e;
}

.dot-green {
  background-color: #27c93f;
}

.language-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.hero__paragraph {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  background-color: hsl(0 0% 6%);
  padding: 1.5rem;
  overflow-x: auto;
}

.hero__paragraph code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.hero__paragraph .first-word {
  display: inline-block;
  margin-right: 0.25em;
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero__scroll p {
  margin: 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.c-infinite {
  display: inline-flex;
  color: hsl(var(--muted-foreground));
  transition: color 200ms ease;
}

.c-infinite:hover {
  color: hsl(var(--foreground));
}

.c-link__inner {
  display: flex;
}

/* Mobile styles */
.mobile {
  display: block;
}

/* Fallback colors for dynamic typing spans */
.text-purple-400 { color: #a78bfa; }
.text-yellow-300 { color: #fde047; }
.text-green-400 { color: #4ade80; }

/* Ensure code snippet colors override container text color */
.hero__paragraph code .text-purple-400 { color: #a78bfa !important; }
.hero__paragraph code .text-yellow-300 { color: #fde047 !important; }
.hero__paragraph code .text-green-400 { color: #4ade80 !important; }

/* Code token palette (works during typing) */
.tok-keyword { color: #c792ea; }
.tok-type { color: #82aaff; }
.tok-class { color: #ffcb6b; }
.tok-property { color: #f78c6c; }
.tok-method { color: #82aaff; }
.tok-string { color: #c3e88d; }
.tok-punctuation { color: #89ddff; }
.tok-number { color: #f78c6c; }
.tok-comment { color: #6b7280; }

.hero__paragraph code .tok-keyword { color: #c792ea !important; }
.hero__paragraph code .tok-type { color: #82aaff !important; }
.hero__paragraph code .tok-class { color: #ffcb6b !important; }
.hero__paragraph code .tok-property { color: #f78c6c !important; }
.hero__paragraph code .tok-method { color: #82aaff !important; }
.hero__paragraph code .tok-string { color: #c3e88d !important; }
.hero__paragraph code .tok-punctuation { color: #89ddff !important; }
.hero__paragraph code .tok-number { color: #f78c6c !important; }
.hero__paragraph code .tok-comment { color: #6b7280 !important; }

@media (max-width: 767px) {
  .hero__title__bottom > div {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .bottom__left {
    font-size: clamp(2rem, 12vw, 4rem);
  }
}

@media (min-width: 768px) {
  .hero__title__dash.desktop {
    display: inline-block;
  }
  .hero__title__dash.tablet {
    display: none;
  }
  .mobile {
    display: none;
  }
}

@media (min-width: 1024px) {
  .hero__title__top {
    font-size: clamp(4rem, 9vw, 10rem);
  }
  
  .bottom__left {
    font-size: clamp(3rem, 7vw, 7rem);
  }
}


/* =========================================
   GLOBAL HEADING CONSISTENCY
   Matches HERO typography DNA
   ========================================= */

h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display); /* Space Grotesk */
  font-weight: 700;
  letter-spacing: -0.015em;
  color: hsl(var(--foreground));
  margin: 0;
}

/* Tight, editorial rhythm like hero */
h2 { line-height: 1.15; }
h3 { line-height: 1.2; }
h4 { line-height: 1.25; }


.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
