/* ============ DESIGN SYSTEM ============ */
:root {
  --bg-0: #0a0a0c;
  --bg-1: #111114;
  --bg-2: #1a1a1f;
  --bg-3: #26262d;
  --line: #2a2a32;
  --line-2: #3a3a44;
  --text: #e8e8ec;
  --text-dim: #8b8b95;
  --text-faint: #55555c;

  --accent-cyan: #64ffda;
  --accent-green: #31FF31;
  --accent-blue: #3a9eff;
  --accent-purple: #c77dff;
  --accent-gold: #FFD700;
  --accent-orange: #FFB347;

  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-display: "Space Grotesk", system-ui, sans-serif;
}

/* ============ RESET & BASE ============ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-mono);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Film grain overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.15;
  mix-blend-mode: overlay;
}

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 40;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.15em;
  color: var(--text);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: #ff4444;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff4444;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: all 0.3s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-cyan);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* ============ HERO SECTION ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #14141a 0%, var(--bg-0) 70%);
  padding: 2rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(100, 255, 218, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(58, 158, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-title span {
  display: block;
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-title .line-1 { animation-delay: 0s; color: var(--accent-cyan); }
.hero-title .line-2 { animation-delay: 0.2s; color: var(--accent-blue); }
.hero-title .line-3 { animation-delay: 0.4s; color: var(--accent-purple); }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
  opacity: 0;
  flex-wrap: wrap;
}

/* ============ BUTTONS ============ */
.btn {
  padding: 14px 32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 2px solid;
  transition: all 0.3s;
  cursor: pointer;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--text);
  color: var(--bg-0);
  border-color: var(--text);
}

.btn-primary:hover {
  background: transparent;
  color: var(--text);
  box-shadow: 0 0 20px rgba(232, 232, 236, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.btn-secondary:hover {
  background: rgba(100, 255, 218, 0.1);
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
  transform: translateY(-2px);
}

/* ============ CONTAINER & LAYOUT ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 3rem;
  text-align: center;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 50%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ WORK / PROJECTS SECTION ============ */
.work-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(20, 20, 26, 0.5) 0%, rgba(10, 10, 12, 0.8) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(100, 255, 218, 0.15);
  transform: translateY(-4px);
}

.project-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.project-info h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.project-meta {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-info p:last-of-type {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  transition: all 0.3s;
}

.project-card:hover .tag {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

a.project-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* ============ SKILLS SECTION ============ */
.skills-section {
  padding: 6rem 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 2rem;
  transition: all 0.3s;
}

.skill-category:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(58, 158, 255, 0.15);
}

.skill-category h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--accent-blue);
  letter-spacing: 0.05em;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.skill-list li {
  font-size: 13px;
  color: var(--text-dim);
  padding-left: 1rem;
  position: relative;
}

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

/* ============ ABOUT SECTION ============ */
.about-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(20, 20, 26, 0.3) 0%, rgba(10, 10, 12, 0.5) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.stat-block {
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.stat-block:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(199, 125, 255, 0.15);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* ============ CONTACT SECTION ============ */
.contact-section {
  padding: 6rem 0;
}

.contact-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
  cursor: pointer;
}

.contact-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(100, 255, 218, 0.05);
  box-shadow: 0 0 30px rgba(100, 255, 218, 0.15);
  transform: translateY(-4px);
}

.contact-card i {
  font-size: 28px;
  color: var(--accent-cyan);
  transition: all 0.3s;
}

.contact-card:hover i {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px var(--accent-cyan));
}

.contact-card span {
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
  letter-spacing: 0.1em;
}

.footer p {
  margin: 0.5rem 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav-menu {
    gap: 1rem;
    font-size: 10px;
  }

  .hero-title {
    font-size: clamp(32px, 6vw, 56px);
  }

  .hero-cta {
    flex-direction: column;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

/* ============ ART SECTION ============ */
.art-section {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(20, 20, 26, 0.5) 0%, rgba(10, 10, 12, 0.8) 100%);
}

.art-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
}

.art-instagram-link {
  color: var(--accent-purple);
  text-decoration: none;
  transition: color 0.3s;
}

.art-instagram-link:hover {
  color: var(--accent-cyan);
}

/* ============ CAROUSEL ============ */
.carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-track-wrapper {
  flex: 1;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  flex: 0 0 calc((100% - 3rem) / 3);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  display: block;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  display: block;
}

.carousel-slide:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 30px rgba(199, 125, 255, 0.2);
}

.carousel-slide:hover img {
  transform: scale(1.04);
}

.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover:not(:disabled) {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(199, 125, 255, 0.2);
}

.carousel-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

@media (max-width: 900px) {
  .carousel-slide {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 560px) {
  .carousel-slide {
    flex: 0 0 100%;
  }
}

/* ============ POINT-UP HAND ============ */
.point-up-hand {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 130px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 35;
  filter: drop-shadow(0 -4px 12px rgba(0, 0, 0, 0.6));
}
