/* ===================================================================
   DOLCETT — ULTRA CLEAN PORTFOLIO (style.css)
   =================================================================== */

/* ---------- CSS Reset & Global Variables ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Light Theme (Warm Minimalist) */
  --bg:               #fcfcfb;
  --bg-alt:           #f4f4f2;
  --bg-card:          #ffffff;
  --bg-glass:         rgba(252, 252, 251, 0.82);
  --fg:               #111113;
  --fg-secondary:     #3f3f46;
  --fg-muted:         #71717a;
  --border:           rgba(0, 0, 0, 0.08);
  --border-hover:     rgba(0, 0, 0, 0.18);
  --cta-bg:           #111113;
  --cta-fg:           #ffffff;
  --accent:           #4f46e5;
  --accent-tint:      rgba(79, 70, 229, 0.07);
  --accent-border:    rgba(79, 70, 229, 0.22);
  --green:            #10b981;
  --shadow-sm:        0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md:        0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg:        0 20px 50px rgba(0, 0, 0, 0.09);
  --radius-sm:        8px;
  --radius-md:        14px;
  --radius-lg:        20px;
  --nav-h:            68px;
  --max-w:            1020px;
  --font-main:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:        'JetBrains Mono', monospace;
}

[data-theme="dark"] {
  /* Dark Theme (Obsidian & Deep Indigo) */
  --bg:               #09090b;
  --bg-alt:           #101014;
  --bg-card:          #141418;
  --bg-glass:         rgba(9, 9, 11, 0.82);
  --fg:               #f4f4f6;
  --fg-secondary:     #d4d4d8;
  --fg-muted:         #82828e;
  --border:           rgba(255, 255, 255, 0.08);
  --border-hover:     rgba(255, 255, 255, 0.2);
  --cta-bg:           #f4f4f6;
  --cta-fg:           #09090b;
  --accent:           #818cf8;
  --accent-tint:      rgba(129, 140, 248, 0.1);
  --accent-border:    rgba(129, 140, 248, 0.28);
  --shadow-sm:        0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md:        0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg:        0 20px 50px rgba(0, 0, 0, 0.6);
}

/* ---------- Document & Body Settings ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

/* ===================================================================
   LOADER
   =================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader-name {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  animation: loaderPulse 1.4s ease-in-out infinite;
}

.loader-bar-wrap {
  width: 100px;
  height: 2px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  animation: loaderFill 1.05s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loaderFill {
  from { width: 0%; }
  to   { width: 100%; }
}

@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.98); }
}

/* ===================================================================
   NAVBAR
   =================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: navSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.85s;
}

@keyframes navSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}

.logo:hover { opacity: 0.75; }

.logo-icon {
  color: var(--accent);
  font-size: 0.85rem;
  display: inline-block;
  animation: logoTwinkle 3s ease-in-out infinite;
}

@keyframes logoTwinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50%       { transform: scale(1.25) rotate(45deg); opacity: 0.85; }
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 450;
  color: var(--fg-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--fg);
}

.nav-link:hover::after {
  width: 100%;
}

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

.theme-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.3s ease;
}

.theme-toggle:hover {
  color: var(--fg);
  border-color: var(--border-hover);
  background: var(--bg-alt);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

[data-theme="light"] .icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: none;  }
[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="dark"]  .icon-moon { display: none;  }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  border-radius: 99px;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.cta-btn svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.cta-btn:hover svg {
  transform: translate(1px, -1px);
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  overflow: hidden;
}

#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 80px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 56px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-border);
  border-radius: 99px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1.05s;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70%  { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Hero Title */
.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 22px;
}

.hero-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero-title .word span {
  display: inline-block;
  animation: wordReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title .word:nth-child(1) span { animation-delay: 1.12s; }
.hero-title .word:nth-child(2) span { animation-delay: 1.24s; }
.hero-title .word:nth-child(3) span { animation-delay: 1.36s; }

@keyframes wordReveal {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--fg-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 34px;
  opacity: 0;
  animation: fadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1.48s;
}

.hero-actions {
  opacity: 0;
  animation: fadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1.62s;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  border-radius: 99px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hero-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-btn:hover svg {
  transform: translateX(4px);
}

/* Hero Avatar Photo */
.hero-photo {
  flex-shrink: 0;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1.65s;
}

.hero-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 3px;
  background: linear-gradient(135deg, var(--border-hover), var(--border));
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.hero-photo-frame:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.hero-img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 3px);
  display: block;
}

/* ===================================================================
   SHARED SECTION STYLES
   =================================================================== */
.section {
  padding: 96px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.section-header {
  margin-bottom: 40px;
}

.label {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-heading {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
}

/* ===================================================================
   ACCORDION PROJECTS
   =================================================================== */
.projects-list {
  display: flex;
  flex-direction: column;
}

.acc-item {
  border-top: 1px solid var(--border);
  transition: background 0.25s ease;
}

.acc-item:last-child {
  border-bottom: 1px solid var(--border);
}

.acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 0;
  background: transparent;
  border: none;
  font-family: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  gap: 20px;
  transition: padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.acc-header:hover {
  padding-left: 8px;
}

.acc-header-left {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
}

.project-num {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--fg-muted);
  font-feature-settings: 'tnum';
  margin-top: 3px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.acc-header:hover .project-num,
.acc-item.open .project-num {
  color: var(--accent);
}

.acc-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.015em;
  transition: color 0.2s ease;
}

.acc-header:hover .project-title,
.acc-item.open .project-title {
  color: var(--accent);
}

.project-desc {
  font-size: 0.84rem;
  color: var(--fg-muted);
}

.acc-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.project-tags {
  display: flex;
  gap: 6px;
}

.tag-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--fg-muted);
  background: var(--bg);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.acc-header:hover .tag-badge,
.acc-item.open .tag-badge {
  border-color: var(--accent-border);
  color: var(--accent);
}

.acc-chevron {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease;
}

.acc-chevron svg {
  width: 15px;
  height: 15px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.acc-header:hover .acc-chevron {
  color: var(--fg);
  border-color: var(--border-hover);
}

.acc-item.open .acc-chevron {
  background: var(--cta-bg);
  color: var(--cta-fg);
  border-color: var(--cta-bg);
}

.acc-item.open .acc-chevron svg {
  transform: rotate(180deg);
}

/* Accordion Collapsible Body */
.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              visibility 0.35s;
}

.acc-item.open .acc-body {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
}

.acc-body-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 24px;
  padding-left: 36px;
}

/* Accordion Link Button Card */
.acc-link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--fg);
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: border-color 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.2s ease;
  max-width: 520px;
  box-shadow: var(--shadow-sm);
}

.acc-link-btn:hover {
  border-color: var(--accent-border);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.acc-link-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.acc-link-icon.discord-icon {
  background: rgba(88, 101, 242, 0.1);
  color: #5865F2;
}

.acc-link-icon.tg-icon {
  background: rgba(34, 158, 217, 0.1);
  color: #229ED9;
}

.acc-link-icon.web-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.acc-link-icon.server-icon {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.acc-link-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--bg-alt);
  color: var(--fg-muted);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  margin-left: auto;
  flex-shrink: 0;
}

.acc-link-btn:hover .acc-link-badge {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-tint);
}

.acc-link-badge.copied {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  font-weight: 600;
}

.acc-link-icon svg {
  width: 18px;
  height: 18px;
}

.acc-link-btn:hover .acc-link-icon {
  transform: scale(1.08);
}

.acc-link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.acc-link-text strong {
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.acc-link-text small {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--fg-muted);
}

.acc-link-arrow {
  font-size: 0.95rem;
  color: var(--fg-muted);
  transition: transform 0.2s ease, color 0.2s ease;
  margin-left: auto;
}

.acc-link-btn:hover .acc-link-arrow {
  transform: translate(2px, -2px);
  color: var(--accent);
}

/* ===================================================================
   ABOUT & CONTACT SECTION
   =================================================================== */
.about-contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: stretch;
}

.about-card, .contact-card {
  display: flex;
  flex-direction: column;
}

.about-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.about-paragraphs p {
  font-size: 1.02rem;
  color: var(--fg-secondary);
  line-height: 1.75;
}

.text-highlight {
  color: var(--fg);
  font-weight: 600;
}

.contact-sub-inline {
  font-size: 0.98rem;
  color: var(--fg-secondary);
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 24px;
}

/* Premium Contact Box */
.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-box:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.contact-box-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-tint);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.contact-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-box-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.contact-name {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.contact-handle {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--fg-muted);
}

.contact-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--green);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 4px 10px;
  border-radius: 99px;
}

.online-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.contact-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.btn-icon-wrap {
  display: flex;
  align-items: center;
}

.btn-icon-wrap svg {
  width: 16px;
  height: 16px;
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.contact-btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--fg-muted);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-dot {
  color: var(--border);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.back-to-top svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.back-to-top:hover {
  color: var(--fg);
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

/* ===================================================================
   SCROLL REVEAL ANIMATIONS
   =================================================================== */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal {
  transform: translateY(24px);
}

.reveal-left {
  transform: translateX(-24px);
}

.reveal-right {
  transform: translateX(24px);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

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

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 24px;
  }

  .hero-photo {
    order: -1;
  }

  .hero-img {
    width: 220px;
    height: 220px;
  }

  .about-contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 62px;
  }

  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .acc-header-right .project-tags {
    display: none;
  }

  .acc-body-inner {
    padding-left: 0;
  }

  .section {
    padding: 64px 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ===================================================================
   CUSTOM SCROLLBAR
   =================================================================== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--fg-muted);
}
