/* =========================================================
   KAAY DEV — style.css
   Mobile-first · min-width media queries
   Breakpoints: 320px (base) → 768px → 1200px
   ========================================================= */

/* ── CSS Custom Properties ── */
:root {
  --clr-bg:        #080808;
  --clr-surface:   #111111;
  --clr-surface2:  #181818;
  --clr-border:    #222222;
  --clr-accent:    #d4a843;
  --clr-accent-dim:#a07d28;
  --clr-text:      #f0ece4;
  --clr-text-muted:#7a7570;
  --clr-text-dim:  #3d3a36;

  --ff-display: 'Syne', sans-serif;
  --ff-body:    'DM Sans', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.65;
  min-width: 320px;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Utility ── */
.section-label {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.75rem;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.25rem;
}

.nav__logo {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--clr-accent);
  letter-spacing: 0.05em;
}

.nav__links {
  display: flex;
  gap: 1.5rem;
}

.nav__links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--clr-accent);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 1.25rem 3rem;
  overflow: hidden;
  border-bottom: 1px solid var(--clr-border);
}

/* Grain texture overlay */
.hero__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Accent glow blob */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, rgba(212,168,67,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* ── Profile Photo ── */
.hero__photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.hero__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--clr-border);
  position: relative;
  z-index: 1;
}

.hero__photo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px dashed var(--clr-accent);
  opacity: 0.4;
  animation: spin 20s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Hero Text ── */
.hero__intro {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.hero__name {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 10vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--clr-text);
}

.hero__name::after {
  content: '.';
  color: var(--clr-accent);
}

.hero__tagline {
  margin-top: 1rem;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: var(--clr-text-muted);
  font-weight: 300;
  line-height: 1.6;
}

/* ── Social Links ── */
.hero__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  background: var(--clr-surface);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.social-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.social-link:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: rgba(212,168,67,0.06);
}

/* ── Scroll Hint ── */
.hero__scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-dim);
  animation: nudge 2s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(5px); }
}

/* =========================================================
   PROJECTS
   ========================================================= */
.projects {
  padding: 4rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Grid ── */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* ── Card ── */
.project-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(212,168,67,0.04), transparent 60%);
  pointer-events: none;
}

.project-card:hover {
  border-color: rgba(212,168,67,0.35);
  transform: translateY(-3px);
}

.project-card--featured {
  border-color: rgba(212,168,67,0.25);
  background: linear-gradient(135deg, #141410 0%, var(--clr-surface) 100%);
}

.project-card__tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.project-card__title {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.project-card__desc {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  flex: 1;
}

.project-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.project-card__stack span {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  background: var(--clr-surface2);
}

.project-card__link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-accent);
  letter-spacing: 0.03em;
  transition: letter-spacing var(--transition);
}

.project-card__link:hover {
  letter-spacing: 0.08em;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: 4rem 1.25rem;
}

.about__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about__text h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.about__text p {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
  max-width: 60ch;
}

.about__text p + p {
  margin-top: 0.85rem;
}

.about__text strong {
  color: var(--clr-text);
  font-weight: 500;
}

.about__skills h3 {
  font-family: var(--ff-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skills-grid li {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  color: var(--clr-text-muted);
  background: var(--clr-bg);
  transition: border-color var(--transition), color var(--transition);
}

.skills-grid li:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  padding: 5rem 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.contact__sub {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  margin-bottom: 2.5rem;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.contact__btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.contact__btn:hover {
  transform: translateY(-2px);
}

.contact__btn--primary {
  background: var(--clr-accent);
  color: #0a0a0a;
}

.contact__btn--primary:hover {
  background: #e0b84e;
}

.contact__btn--secondary {
  background: transparent;
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
}

.contact__btn--secondary:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--clr-border);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer__back {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-dim);
  transition: color var(--transition);
}

.footer__back:hover {
  color: var(--clr-accent);
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--clr-text-dim);
}

.footer__copy a {
  color: var(--clr-text-muted);
  transition: color var(--transition);
}

.footer__copy a:hover {
  color: var(--clr-accent);
}

/* =========================================================
   MEDIA QUERIES — 768px
   ========================================================= */
@media (min-width: 768px) {

  .nav {
    padding: 2rem 2.5rem;
  }

  .hero {
    padding: 7rem 2.5rem 4rem;
  }

  .hero__content {
    flex-direction: row;
    align-items: center;
    gap: 3.5rem;
  }

  .hero__photo {
    width: 180px;
    height: 180px;
  }

  .projects {
    padding: 5rem 2.5rem;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card--featured {
    grid-column: span 2;
  }

  .about {
    padding: 5rem 2.5rem;
  }

  .about__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
  }

  .about__text {
    flex: 1;
  }

  .about__skills {
    flex-shrink: 0;
    width: 220px;
  }

  .contact {
    padding: 6rem 2.5rem;
  }

  .footer {
    flex-direction: row;
    justify-content: space-between;
    padding: 1.5rem 2.5rem;
  }
}

/* =========================================================
   MEDIA QUERIES — 1200px
   ========================================================= */
@media (min-width: 1200px) {

  .nav {
    padding: 2rem 4rem;
  }

  .hero {
    padding: 8rem 4rem 5rem;
  }

  .hero__photo {
    width: 210px;
    height: 210px;
  }

  .hero__content {
    gap: 5rem;
  }

  .projects {
    padding: 7rem 4rem;
  }

  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-card--featured {
    grid-column: span 1;
  }

  .about {
    padding: 7rem 4rem;
  }

  .contact {
    padding: 8rem 4rem;
  }

  .footer {
    padding: 1.75rem 4rem;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}