/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0b0f17;
  --bg-alt: #111827;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --border: #1f2937;
  --card-bg: #151b27;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.25);
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(11,15,23,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem 1rem;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-greeting {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
  font-weight: 400;
}

.hero-name {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-cta {
  display: inline-block;
  padding: .75rem 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  font-weight: 500;
  font-size: .9375rem;
  transition: background var(--transition), transform var(--transition);
}

.hero-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(37,99,235,.06) 0%, transparent 100%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(37,99,235,.04) 0%, transparent 100%);
}

/* ===== SECTIONS ===== */
.section {
  padding: 1.5rem 2rem;
}

.section--alt {
  background: var(--bg-alt);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.container--narrow {
  max-width: 640px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1rem;
}

/* ===== ABOUT ===== */
.about-grid {
  max-width: 640px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.0625rem;
}

/* ===== VIDEO GRID ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1c2333;
}

.video-thumb iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-title {
  padding: .875rem 1rem .25rem;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.video-meta {
  padding: 0 1rem 1rem;
  font-size: .8125rem;
  color: var(--text-muted);
}

/* ===== PROJECT GRID ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-preview {
  background: linear-gradient(135deg, #1a2235 0%, #151b27 100%);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-preview img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.project-mockup {
  width: 100%;
  max-width: 220px;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  gap: 5px;
  padding: 10px 12px;
  background: #1c2333;
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #374151;
}

.mockup-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-line {
  height: 6px;
  background: #2a3347;
  border-radius: 3px;
}

.mockup-block {
  height: 40px;
  background: #1e2738;
  border-radius: 6px;
  width: 100%;
}

.project-info {
  padding: 1.25rem;
}

.project-name {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: .375rem;
}

.project-desc {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
  line-height: 1.5;
}

.project-tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.tag {
  font-size: .75rem;
  padding: .2rem .625rem;
  background: var(--bg-alt);
  border-radius: 50px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== CONTACT ===== */
.contact-text {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 500;
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-link:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

.contact-link svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* ===== BUTTONS ===== */
.section-cta {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-weight: 500;
  font-size: .9375rem;
  transition: border-color var(--transition), background var(--transition);
}

.btn:hover {
  border-color: var(--accent);
  background: rgba(59,130,246,.08);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  font-size: .8125rem;
  color: var(--text-muted);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    flex-direction: column;
    background: var(--bg);
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 110;
  }



  .video-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }
}
