/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --radius: 0.75rem;
  --background: #f9f8f5;
  --foreground: #1e2030;
  --card: #ffffff;
  --card-foreground: #1e2030;
  --secondary: #f2f1ec;
  --muted-foreground: #6b7080;
  --accent: #3a6ec8;
  --border: #e3e1d8;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

img, video { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: rgba(249, 248, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background-color: var(--foreground);
  color: var(--card);
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.nav {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav { display: flex; }
}

.nav-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--foreground); }

/* ============================================================
   Hamburger
   ============================================================ */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 768px) {
  .hamburger { display: none; }
}

/* ============================================================
   Mobile Nav
   ============================================================ */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  gap: 0.75rem;
}
.mobile-nav.open { display: flex; }

.mobile-nav-link {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--foreground); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding-inline: 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, background-color 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--foreground);
  color: var(--card);
}
.btn-primary:hover { opacity: 0.88; }

.btn-outline {
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
}
.btn-outline:hover { background-color: var(--secondary); }

.btn-sm {
  height: 2.25rem;
  padding-inline: 1rem;
}

/* ============================================================
   Badge
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background-color: var(--secondary);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-block: 4rem 5rem;
}

@media (min-width: 768px) {
  .hero { padding-top: 6rem; }
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

.hero-heading {
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.accent { color: var(--accent); }

.hero-desc {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero image */
.hero-image-wrap { position: relative; }

.hero-glow {
  position: absolute;
  inset: -1rem;
  border-radius: 1.5rem;
  background-color: rgba(200, 129, 58, 0.1);
  filter: blur(32px);
  pointer-events: none;
}

.hero-img-card {
  position: relative;
  overflow: hidden;
  border-radius: 50cap;
  border: 1px solid var(--border);
  background-color: var(--card);
  box-shadow: 0 10px 10px -5px grey;
  width: 400px;
  float: right;
}

.social-btn{
  width: 40px;
  padding-top: 2px;
}


.hero-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.hero-img-small {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  width: 10rem;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none;
}

@media (min-width: 768px) {
  .hero-img-small { display: block; }
}

.hero-img-small-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding-block: 5rem; }

.section-alt {
  border-top: 1px solid var(--border);
  background-color: rgba(242, 241, 236, 0.4);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

.section-heading {
  margin-top: 0.5rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 100rem;
}

.section-desc {
  margin-top: 1.25rem;
  max-width: 100rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}



/* ============================================================
   Project Category Filter
   ============================================================ */
.project-filter-section {
  padding-block: 4rem 1rem;
}

.project-filter-buttons {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-btn {
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
  border-radius: 9999px;
  padding: 0.65rem 1.25rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.filter-btn:hover {
  background-color: var(--secondary);
  transform: translateY(-1px);
}

.filter-btn.active {
  background-color: var(--foreground);
  color: var(--card);
  border-color: var(--foreground);
}

.project-category.hide {
  display: none;
}

/* ============================================================
   Projects Grid
   ============================================================ */
.projects-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  transition: box-shadow 0.2s;
}
.project-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.project-img-wrap {
  overflow: hidden;
  background-color: var(--secondary);
}

.project-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-img { transform: scale(1.05); }

.project-body { padding: 1.25rem; }

.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project-desc {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Tags */
.tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  border: 1px solid var(--border);
  background-color: var(--secondary);
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ============================================================
   Featured Animation Card
   ============================================================ */
.featured-card {
  margin-top: 1.5rem;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  display: grid;
}

@media (min-width: 1024px) {
  .featured-card { grid-template-columns: 3fr 2fr; }
}

.featured-video-wrap { background-color: #000; }

.featured-video {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.featured-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.featured-title {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.featured-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* ============================================================
   Skills Grid
   ============================================================ */
.skills-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .skills-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
}

.skill-card {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1.25rem;
}

.skill-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.skill-note {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ============================================================
   Contact
   ============================================================ */
.contact-box {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 2rem 1.5rem;
  text-align: left ;
}

@media (min-width: 768px) {
  .contact-box { padding: 4rem; }
}

.contact-desc {
  margin-top: 1rem;
  max-width: 40rem;
  color: var(--muted-foreground);
  font-size: 1rem;
}

.contact-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background-color: rgba(242, 241, 236, 0.4);
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-inner p {
  margin: 0;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-btn-foot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-btn-foot img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
