:root {
  --bg-color: #050505;
  --accent-primary: #00ffd5;
  --accent-secondary: #ff0055;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: rgba(0, 255, 213, 0.15);
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-color);
  color: #fff;
  font-family: var(--font-display);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* Three.js Background */
/* ───────────────────────────────────────────────────────────────────────── */
#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* Layout & Header */
/* ───────────────────────────────────────────────────────────────────────── */
.master-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  mix-blend-mode: difference;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo .dot {
  width: 10px;
  height: 10px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent-primary);
}

.logo .text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
}

.glass-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.2em;
  padding: 8px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.glass-link:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px var(--glass-glow);
}

/* ───────────────────────────────────────────────────────────────────────── */
/* Hero Section */
/* ───────────────────────────────────────────────────────────────────────── */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

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

.liquid-text {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.9;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(255,255,255,0.2));
  animation: float 6s ease-in-out infinite;
}

.subtitle {
  font-size: 18px;
  font-weight: 200;
  letter-spacing: 0.5em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-bottom: 60px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.scroll-hint {
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  opacity: 0.5;
}

.scroll-hint span {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.scroll-hint .line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

/* ───────────────────────────────────────────────────────────────────────── */
/* Works Section */
/* ───────────────────────────────────────────────────────────────────────── */
.works-section {
  padding: 150px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 11px;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 60px;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 20px;
  padding: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
}

.card-inner {
  position: relative;
  z-index: 2;
}

.project-card .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-primary);
  margin-bottom: 12px;
  letter-spacing: 0.2em;
}

.project-card h3 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #fff;
}

.project-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 30px;
  height: 0;
  opacity: 0;
  transition: all 0.4s ease;
}

.project-card:hover p {
  height: auto;
  opacity: 1;
  margin-bottom: 30px;
}

.card-arrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s ease;
}

.project-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, var(--accent-primary) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.project-card:hover .card-glow {
  opacity: 0.05;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* Footer */
/* ───────────────────────────────────────────────────────────────────────── */
.master-footer {
  padding: 60px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--glass-border);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.3);
}

.master-footer .accent {
  color: var(--accent-primary);
}

/* ───────────────────────────────────────────────────────────────────────── */
/* Responsive */
/* ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .master-header, .works-section, .master-footer {
    padding-left: 30px;
    padding-right: 30px;
  }
}
