/* ============================================
   HANNAD — Graphic Design Portfolio
   Palette: Noir Editorial
   Fonts: Cormorant Garamond + Outfit
   ============================================ */

:root {
  --black:    #0A0A0A;
  --dark:     #141414;
  --surface:  #1C1C1C;
  --border:   #2A2A2A;
  --muted:    #5A5A5A;
  --warm:     #C8B8A0;
  --cream:    #E8E4DF;
  --gold:     #C9A96E;
  --gold-dim: #8A6E42;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; width: 100%; }

/* ── Custom Cursor ── */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s var(--ease-out), background 0.2s;
}
.cursor-follower {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out), width 0.3s, height 0.3s, border-color 0.3s;
}
body:has(a:hover) .cursor-follower,
body:has(.project:hover) .cursor-follower {
  width: 60px; height: 60px;
  border-color: rgba(201, 169, 110, 0.7);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  transition: background 0.4s, padding 0.4s;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cream);
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm);
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { width: 100%; }

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}
.nav-menu-btn span {
  display: block;
  width: 24px; height: 1px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}
.mobile-link {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--cream);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--gold); }

/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--black);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.hero-orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #C9A96E 0%, transparent 70%);
  top: -150px; left: -100px;
  animation: orbFloat1 12s ease-in-out infinite;
}
.hero-orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #8A6E42 0%, transparent 70%);
  bottom: -100px; right: -50px;
  animation: orbFloat2 15s ease-in-out infinite;
}
.hero-orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #C8B8A0 0%, transparent 70%);
  top: 50%; left: 55%;
  animation: orbFloat3 10s ease-in-out infinite;
}
.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");
  background-size: 200px;
  opacity: 0.5;
  pointer-events: none;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, -60px) scale(1.05); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  max-width: 900px;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  transition-delay: 0.1s;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}
.hero-title-line {
  display: block;
  overflow: hidden;
}
.hero-title-line--italic {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3rem;
  transition-delay: 0.3s;
}
.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid var(--gold-dim);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  overflow: hidden;
  transition: color 0.4s, border-color 0.4s;
  transition-delay: 0.4s;
}
.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease-in-out);
  z-index: -1;
}
.hero-cta:hover { color: var(--black); border-color: var(--gold); }
.hero-cta:hover::before { transform: translateX(0); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-scroll-line {
  width: 40px; height: 1px;
  background: var(--muted);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--gold);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ── Marquee ── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  background: var(--dark);
}
.marquee-track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee-dot { color: var(--gold); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Section Shared ── */
.section-header {
  padding: 0 3rem;
  margin-bottom: 4rem;
  display: flex;
  align-items: baseline;
  gap: 2rem;
}
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1;
  transition-delay: 0.1s;
}

/* ── Work / Projects ── */
.work {
  padding: 8rem 0 6rem;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  padding: 0 3rem;
}

.project {
  position: relative;
  overflow: hidden;
}
.project--large {
  grid-column: span 7;
}
.project--small {
  grid-column: span 5;
}
.project--full {
  grid-column: span 12;
}

.project-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.project--full .project-img-wrap {
  aspect-ratio: 21/9;
}

.project-img {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease-out);
}
.project-img--1 {
  background: linear-gradient(135deg, #1a1208 0%, #3d2b0a 40%, #8A6E42 100%);
  background-image: url('https://images.unsplash.com/photo-1634986666676-ec8fd927c23d?w=900&q=80');
}
.project-img--2 {
  background: linear-gradient(135deg, #0a0a0a 0%, #2a2a2a 100%);
  background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=700&q=80');
}
.project-img--3 {
  background: linear-gradient(135deg, #1a0f0a 0%, #4a2c1a 100%);
  background-image: url('https://images.unsplash.com/photo-1586717791821-3f44a563fa4c?w=700&q=80');
}
.project-img--4 {
  background: linear-gradient(135deg, #0a0a14 0%, #1a1a3a 100%);
  background-image: url('https://images.unsplash.com/photo-1561070791-2526d30994b5?w=900&q=80');
}
.project-img--5 {
  background: linear-gradient(135deg, #0f0a00 0%, #2a1f00 50%, #C9A96E 100%);
  background-image: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?w=1400&q=80');
}

.project:hover .project-img {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}
.project:hover .project-overlay { opacity: 1; }
.project-view {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.project-info {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.2rem 0 0;
}
.project-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
  padding-top: 4px;
  flex-shrink: 0;
}
.project-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.3rem;
  transition: color 0.2s;
}
.project:hover .project-title { color: var(--gold); }
.project-tags {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── About ── */
.about {
  padding: 8rem 3rem;
  border-top: 1px solid var(--border);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.about-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
  margin-top: 2rem;
}
.about-title em {
  font-style: italic;
  color: var(--gold);
}
.about-text {
  color: var(--warm);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.about-stats {
  display: flex;
  gap: 3rem;
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}
.about-cta {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.about-cta:hover { color: var(--cream); border-color: var(--cream); }

/* ── Services ── */
.services {
  padding: 8rem 0;
  border-top: 1px solid var(--border);
}
.services-list {
  padding: 0 3rem;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
  cursor: default;
}
.service-item:first-child { border-top: 1px solid var(--border); }
.service-item:hover { background: rgba(201, 169, 110, 0.03); }
.service-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
  width: 2.5rem;
  flex-shrink: 0;
}
.service-body { flex: 1; }
.service-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}
.service-item:hover .service-title { color: var(--gold); }
.service-desc {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.7;
}
.service-arrow {
  font-size: 1.5rem;
  color: var(--border);
  transition: color 0.3s, transform 0.3s;
}
.service-item:hover .service-arrow {
  color: var(--gold);
  transform: translate(4px, -4px);
}

/* ── Contact ── */
.contact {
  padding: 10rem 3rem;
  border-top: 1px solid var(--border);
  background: var(--dark);
  text-align: center;
}
.contact-inner {
  max-width: 700px;
  margin: 0 auto;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1;
  color: var(--cream);
  margin: 1.5rem 0 2rem;
  transition-delay: 0.1s;
}
.contact-title em {
  font-style: italic;
  color: var(--gold);
}
.contact-sub {
  font-size: 0.9rem;
  color: var(--warm);
  line-height: 1.8;
  margin-bottom: 3rem;
  transition-delay: 0.2s;
}
.contact-email {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.05em;
  margin-bottom: 3rem;
  position: relative;
  transition: color 0.3s;
  transition-delay: 0.3s;
}
.contact-email::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-out);
}
.contact-email:hover { color: var(--gold); }
.contact-email:hover::after { width: 100%; }
.contact-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition-delay: 0.4s;
}
.social-link {
  color: var(--muted);
  transition: color 0.2s;
}
.social-link:hover { color: var(--gold); }

/* ── Footer ── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .project--large, .project--small, .project--full { grid-column: span 2; }
  .project--small { grid-column: span 1; }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav { padding: 1.2rem 1.5rem; }
  .nav.scrolled { padding: 0.8rem 1.5rem; }
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }

  .hero-title { font-size: clamp(3.5rem, 16vw, 6rem); }
  .hero-scroll-hint { display: none; }

  .section-header { padding: 0 1.5rem; flex-direction: column; gap: 0.5rem; }
  .projects-grid { padding: 0 1.5rem; grid-template-columns: 1fr; gap: 1rem; }
  .project--large, .project--small, .project--full { grid-column: span 1; }
  .project--full .project-img-wrap { aspect-ratio: 4/3; }

  .about { padding: 5rem 1.5rem; }
  .about-stats { gap: 1.5rem; }
  .services { padding: 5rem 0; }
  .services-list { padding: 0 1.5rem; }
  .service-title { font-size: 1.4rem; }
  .contact { padding: 6rem 1.5rem; }
  .footer { padding: 1.5rem; flex-direction: column; gap: 0.5rem; text-align: center; }

  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
}