/* ============================================
   PORTFOLIO — Fariz IKhsan
   style.css
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg:        #f7f6f3;
  --bg-card:   #ffffff;
  --bg-dark:   #1a1a1a;
  --text:      #1a1a1a;
  --text-muted:#6b6b6b;
  --accent:    #1a1a1a;
  --border:    #e2e2dc;
  --shadow:    0 4px 32px rgba(0,0,0,0.07);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  --radius:    12px;
  --font-display: 'DM Serif Display', serif;
  --font-body:    'DM Sans', sans-serif;
  --transition:   0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-logo: 'Unbounded', sans-serif;
  --font-new: 'ClashGrotesk-Variable', sans-serif;
}
*, *::before, *::after {
  transition: background-color 0.4s ease,
              color 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease !important;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Utility ---------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.dot { color: #c5a861; }

/* ---------- Section Labels ---------- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1px;
  background: var(--text-muted);
}


/* Efek saat hover elemen interaktif */
.cursor.hovered { transform: translate(-50%, -50%) scale(2.5); background: transparent; border: 1.5px solid #1a1a1a; }
.cursor-follower.hovered { transform: translate(-50%, -50%) scale(0); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 3rem;
}
.section-title em {
  font-style: italic;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}
.btn-primary:hover {
  background: #333;
  border-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  transform: translateY(-2px);
}
.btn-light {
  background: #fff;
  color: #1a1a1a;
  border-color: #fff;
  font-size: 0.85rem;
  padding: 0.7rem 1.6rem;
}
.btn-light:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-full { width: 100%; justify-content: center; }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.25s; }
.fade-in:nth-child(3) { animation-delay: 0.4s; }
.fade-in:nth-child(4) { animation-delay: 0.55s; }
.fade-in:nth-child(5) { animation-delay: 0.7s; }
.fade-in:nth-child(6) { animation-delay: 0.85s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.navbar.scrolled {
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  padding: 0.85rem 0;
}
.nav-menu {
  transition: opacity 0.4s ease; /* tambah ini */
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-logo);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.nav-menu {
  display: flex;
  gap: 2.5rem;
}
.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--text);
  transition: width 0.3s;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 4rem;
}
[data-theme="dark"] .hero-bg-text {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  color: transparent;
}
.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 16rem);
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,0,0,0.04);
  letter-spacing: -0.04em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
} 
.hero-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  margin-bottom: 2rem;
}
.hero-title {
  font-family: var(--font-new);
  font-size: clamp(4.5rem, 11vw, 9rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: normal;
}
.hero-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 42ch;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.hero-scroll {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-scroll span {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 60px;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--text);
  animation: scrollLine 1.8s ease infinite;
}
@keyframes scrollLine {
  to { left: 100%; }
}

/* Decorative circles */
.hero-decoration { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.deco-circle {
  position: absolute;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
}
.c1 { width: 400px; height: 400px; right: -100px; top: -100px; }
.c2 { width: 250px; height: 250px; right: 80px; top: 180px; }

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 8rem 0;
  background: var(--bg-card);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}
.about-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.about-img-frame {
  width: 340px;
  height: 420px;
  border-radius: 200px;
  overflow: hidden;
  position: relative;
}
.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.about-img-frame:hover .about-img { transform: scale(1.04); }
.about-img-tag {
  position: absolute;
  bottom: 1.5rem;
  right: -1rem;
  background: var(--bg-dark);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  line-height: 1.3;
}
.about-img-tag span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.about-text {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}
.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.highlight-item { text-align: center; }
.highlight-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.1;
}
.highlight-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}
@media (max-width: 640px) {
  *, *::before, *::after {
    transition: background-color 0.3s ease,
                color 0.3s ease !important;
    /* hapus filter, box-shadow, dll di mobile */
  }
}
/* ============================================
   PROJECTS
   ============================================ */
.projects {
  padding: 8rem 0;
  background: var(--bg);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.project-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.project-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .project-img-wrap img { transform: scale(1.06); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(2px);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-info {
  padding: 1.5rem;
}
.project-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.project-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin: 0.35rem 0 0.6rem;
}
.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================
   VIDEO LIST
   ============================================ */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 3rem auto 6rem auto;
  width: 100%;
  max-width: 1200px;
}

.video-card {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  display: block;
}
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-thumb:hover .video-overlay {
  opacity: 1;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
transition: filter 0.3s ease, transform 0.5s ease;
}

.video-card:hover .video-thumb img {
   filter: blur(4px);
  transform: scale(1.04);
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #1a1a1a;
  padding-left: 3px;
 opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-card:hover .video-play {
   opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
  padding: 1.75rem 1.75rem 1.75rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.video-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  width: fit-content;
  align-self: center;
  margin: 0 auto;
}

.video-title {
  font-family: var(--font-new);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.video-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.video-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.video-meta-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.video-meta-value {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: right;
}

.video-watch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
  margin-top: 0.25rem;
  text-align: center;
  justify-content: center;
}

.video-watch:hover {
  color: var(--text);
}

[data-theme="dark"] .video-tag {
  background: #2a2a2a;
}

[data-theme="dark"] .video-play {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

@media (max-width: 768px) {
  .video-card {
    grid-template-columns: 1fr;
  }
  .video-thumb {
    aspect-ratio: 16/9;
  }
  .video-info {
    padding: 1.25rem;
  }
}



/* ============================================
   SKILLS
   ============================================ */
/* .skills {
  padding: 8rem 0;
  background: var(--bg-card);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.skill-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.3s, transform 0.3s;
}
.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.skill-icon {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: monospace;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.skill-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.skill-bar-wrap {
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.skill-bar {
  height: 100%;
  background: var(--text);
  border-radius: 99px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.skill-percent {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
} */

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 8rem 0;
  background: var(--bg-card);
  text-align: center;
  margin: auto;
}
.contact-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.contact-info {
  text-align: center;
  width: 100%;
  max-width: 480px;
}

.contact-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  text-align: center;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
}
.contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;

}
.contact-value {
  font-size: 1rem;
  font-weight: 500;
}
.contact-value.available { color: #2d8a4e; }


/* Form */
/* .contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.3s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--text);
}
.form-group input.error,
.form-group textarea.error {
  border-color: #c0392b;
}
.form-error {
  font-size: 0.78rem;
  color: #c0392b;
  min-height: 1em;
}
.form-success {
  display: none;
  color: #2d8a4e;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 1rem;
  background: #f0faf4;
  border: 1px solid #a8d5b5;
  border-radius: 8px;
  text-align: center;
} */

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.55);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--font-logo);
  font-size: 1.3rem;
  color: #fff;
}
.footer-copy { font-size: 0.82rem; 
 position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
/* Tombol toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  margin-left: auto;
}
[data-theme="dark"] #contact,
[data-theme="dark"] #about {
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] #contact::before,
[data-theme="dark"] #about::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 200, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
}

/* Pastikan konten contact tetap di atas blur */
[data-theme="dark"] #contact .container
[data-theme="dark"] #about .container {
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .theme-icon {
  filter: grayscale(100%);
}
.theme-toggle:hover {
  background: var(--border);
}

/* Variabel dark mode */
[data-theme="dark"] {
  --bg:        #111111;
  --bg-card:   #1a1a1a;
  --bg-dark:   #000000;
  --text:      #f0f0f0;
  --text-muted:#888888;
  --border:    #2a2a2a;
  --shadow:    0 4px 32px rgba(0,0,0,0.3);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.4);
}
/* Transisi semua elemen navbar */
.navbar,
.navbar *,
.nav-menu,
.nav-link,
.nav-logo {
  transition: background 0.4s ease, 
              color 0.4s ease, 
              border-color 0.4s ease !important;
}


/* Dark mode navbar */
[data-theme="dark"] .navbar.scrolled {
  background: rgba(17, 17, 17, 0.92);
  border-bottom: 1px solid #2a2a2a;
}

[data-theme="dark"] .nav-menu {
  background: rgba(17, 17, 17, 0.95);
  border-color: #2a2a2a;
}

[data-theme="dark"] .nav-link {
  color: #888888;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #f0f0f0;
}
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #f0f0f0;
}
/* Transisi smooth saat ganti mode */
body {
  transition: background 0.4s ease, color 0.4s ease;
}
/* Mobile — hapus absolute, susun vertikal */
@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-copy {
    position: static;      /* kembalikan ke normal */
    transform: none;
    white-space: normal;
    order: 2;              /* urutan: logo → copyright → sosmed */
  }

  .footer-logo { order: 1; }
  .footer-socials { order: 3; }
}

.social-link {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  transition: color 0.3s;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
}
.social-link:hover { color: #fff; border-color: rgba(255,255,255,0.3); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--bg-dark);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s;
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover { background: #333; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .skills-grid   { grid-template-columns: 1fr 1fr; }
  .about-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrap { justify-content: flex-start; }
  .contact-grid  { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 640px) {
  *, *::before, *::after {
    transition: none !important;
  }
}
/* Mobile */
@media (max-width: 640px) {
  .about-image-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .about-img-frame {
    margin: 0 auto;
  }

  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: min(75vw, 320px);
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2rem;
    gap: 2rem;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
  }
  .nav-menu.open { right: 0; }
  .nav-link { font-size: 1.25rem; }

  .hero-title { font-size: clamp(3.5rem, 14vw, 5.5rem); }

  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid   { grid-template-columns: 1fr; }
  .about-img-frame { width: 280px; height: 340px; }
  .about-highlights { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }

  .deco-circle { display: none; }
}
