:root {
  --bg: #0b0b0d;
  --bg-soft: #111114;
  --text: #ffffff;
  --muted: #9ca3af;
  --accent: #22d3ee;
  --border: rgba(255,255,255,0.08);
  --accent-glow: rgba(34,211,238,0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 24px 40px;
  display: flex;
  justify-content: flex-end;
  gap: 32px;
  backdrop-filter: blur(10px);
  z-index: 100;
}

nav a {
  font-size: 14px;
  color: var(--muted);
}

nav a:hover {
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent-glow);
}

section {
  padding: 120px 10vw;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-gif {
  position: absolute;
  top: 52%;
  right: 8%;
  transform: translateY(-50%);
  width: 650px;
  max-width: 60%;
  opacity: 0.25;
  pointer-events: none; 
  z-index: 0; 
}

.hero-gif img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -2px;
}

.hero span {
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent-glow);
}

.hero p {
  margin-top: 16px;
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 40px;
  margin-top: 56px;
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, border 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 30px 70px rgba(34,211,238,0.18);
}

.project-image.full {
  height: 360px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.project-image.full img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;      
  object-position: center;
  transition: transform 0.6s ease;
}

.project-image.full::after {
  content: "View Project →";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.4s ease;
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent-glow);
}

.card:hover img {
  transform: scale(1.08);
}

.card:hover .project-image.full::after {
  opacity: 1;
}

.project-content {
  padding: 28px;
}

.project-content h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--accent);
  text-shadow: 0 0 4px var(--accent-glow);
}

.project-content p {
  font-size: 14px;
  color: var(--muted);
}

.about p {
  max-width: 600px;
  color: var(--muted);
}

.contact a {
  display: inline-block;
  margin-right: 24px;
  margin-top: 16px;
  font-weight: 600;
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent-glow);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.project-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  min-height: 100vh;
  align-items: center;
}

.project-page {
  max-width: 700px;
}

.project-page h1 {
  font-size: 42px;
  margin-bottom: 12px;
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent-glow);
}

.project-page h3 {
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--accent);
  text-shadow: 0 0 4px var(--accent-glow);
}

.project-page ul {
  margin-left: 20px;
  color: var(--muted);
}

.project-page li {
  margin-bottom: 6px;
}

.project-links a {
  display: inline-block;
  margin-right: 24px;
  margin-top: 20px;
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 0 6px var(--accent-glow);
}

.project-visual {
  position: relative;
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.75), rgba(0,0,0,0.2));
}

@media (max-width: 900px) {
  .project-wrapper {
    grid-template-columns: 1fr;
  }

  .project-visual {
    display: none;
  }
}

@media (max-width: 600px) {
  nav {
    padding: 20px;
  }

  section {
    padding: 100px 24px;
  }

  .project-image.full {
    height: 240px;
  }
}
