/* ============================================================
   PORTFOLIO — CSS (Figma Community Design Replica)
   Color Palette:
     Background:    #282C33
     Surface:       #1E2127
     Border:        #ABB2BF
     Text Primary:  #FFFFFF
     Text Secondary:#ABB2BF
     Accent:        #C778DD
   Font: Fira Code (monospace)
   ============================================================ */

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

:root {
  --bg: #282C33;
  --bg-surface: #1E2127;
  --border: #ABB2BF;
  --text: #FFFFFF;
  --text-secondary: #ABB2BF;
  --accent: #C778DD;
  --accent-hover: #a855c7;
  --font: 'Fira Code', monospace;
  --container: 1100px;
  --radius: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(40, 44, 51, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  background: rgba(40, 44, 51, 0.95);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
}

.logo__icon {
  width: 40px;
  height: 40px;
}

.logo__text {
  color: var(--text);
  position: relative;
  transition: text-shadow 0.3s ease;
}

.logo:hover .logo__text {
  animation: glitch 0.4s ease;
}

/* Navigation */
.nav__list {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease, transform 0.3s ease;
  transform-style: preserve-3d;
}

.nav__link:hover {
  transform: perspective(400px) rotateX(-10deg) translateY(-2px);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text);
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============ SOCIAL SIDEBAR ============ */
.social-sidebar {
  position: fixed;
  left: 24px;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 100;
}

.social-sidebar__line {
  width: 2px;
  height: 200px;
  background: var(--text-secondary);
}

.social-sidebar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.social-sidebar__link img {
  width: 24px;
  height: 24px;
}

.social-sidebar__link:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 1rem;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  position: relative;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(199, 120, 221, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: perspective(500px) translateZ(-5px) scale(0.97);
}

.btn--primary {
  background: transparent;
  color: var(--text);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: rgba(199, 120, 221, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--accent);
}

.btn--outline:hover {
  background: rgba(199, 120, 221, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
}

.btn--ghost {
  border-color: var(--text-secondary);
}

.btn--ghost:hover {
  border-color: var(--accent);
}

/* ============ SECTION COMMON ============ */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2rem;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.4s ease;
  transform-style: preserve-3d;
}

.section-title:hover {
  transform: perspective(500px) rotateY(-5deg) translateZ(10px);
}

.section-title:hover .nav__hash {
  text-shadow: 0 0 15px rgba(199, 120, 221, 0.6);
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--accent);
  position: relative;
  overflow: hidden;
}

.section-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(199, 120, 221, 0.6), transparent);
  animation: lineGlow 3s ease-in-out infinite;
}

.section-link {
  font-size: 1rem;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.section-link:hover {
  color: var(--text);
}

/* ============ FULL-PAGE VANTA BACKGROUND ============ */
.vanta-fullpage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

/* ============ HERO ============ */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero__content {
  flex: 1;
  max-width: 540px;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 32px;
}

/* Animated gradient text */
.gradient-text {
  background: linear-gradient(90deg, #C778DD, #a855c7, #7c3aed, #C778DD);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

.hero__description {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Glowing image ring */
.hero__image-wrapper {
  position: relative;
  flex-shrink: 0;
}

.hero__image-ring {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: 45px;
  border: 2px solid var(--accent);
  opacity: 0.3;
  animation: ringPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.02); }
}

.hero__image {
  width: 340px;
  height: auto;
  object-fit: cover;
  filter: grayscale(0%);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.hero__image:hover {
  filter: grayscale(30%);
  transform: scale(1.02);
}

.hero__image-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--text-secondary);
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hero__badge-dot {
  width: 16px;
  height: 16px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero__badge-dot.pulse {
  opacity: 0.5;
}

/* Decorations */
.hero__decoration {
  position: absolute;
  pointer-events: none;
}

.hero__decoration--dots {
  right: 80px;
  top: 120px;
  width: 84px;
  height: 84px;
  background-image: radial-gradient(circle, var(--text-secondary) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.4;
  animation: floatDots 6s ease-in-out infinite;
}

.hero__decoration--square {
  right: 140px;
  bottom: 40px;
  width: 52px;
  height: 52px;
  border: 1px solid var(--text-secondary);
  opacity: 0.3;
  animation: geoCubeFloat 10s ease-in-out infinite;
}

/* ============ QUOTE ============ */
.quote-section {
  padding: 60px 0;
}

.quote {
  max-width: 900px;
  margin: 0 auto;
  text-align: right;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.quote:hover {
  transform: perspective(800px) rotateY(-3deg) rotateX(2deg);
}

.quote:hover .quote__text {
  box-shadow: 8px 8px 0 rgba(199, 120, 221, 0.15);
}

.quote__text {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  padding: 32px;
  border: 1px solid var(--text-secondary);
  position: relative;
}

.quote__text::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 20px;
  width: 42px;
  height: 20px;
  background: var(--bg);
}

.quote__author {
  display: inline-block;
  border: 1px solid var(--text-secondary);
  border-top: none;
  padding: 16px;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ============ PROJECTS ============ */
.projects {
  padding: 60px 0;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-card {
  border: 1px solid var(--text-secondary);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
  will-change: transform;
  transform-style: preserve-3d;
}

.project-card:hover {
  transform: translateY(-8px) perspective(800px) rotateX(2deg);
  box-shadow: 0 20px 40px rgba(199, 120, 221, 0.15), 0 0 30px rgba(199, 120, 221, 0.08);
  border-color: var(--accent);
}

.project-card__image {
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--text-secondary);
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card__image img {
  transform: scale(1.05);
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid var(--text-secondary);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.project-card__body {
  padding: 16px;
}

.project-card__title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.project-card__desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 16px;
}

.project-card__actions {
  display: flex;
  gap: 16px;
}

/* ============ SKILLS ============ */
.skills {
  padding: 60px 0;
}

.skills__inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.skills__decorations {
  flex: 1;
  position: relative;
  min-height: 420px;
  margin-top: -30px;
}

.skills__decoration-grid {
  position: absolute;
  width: 64px;
  height: 64px;
  background-image: radial-gradient(circle, var(--text-secondary) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.3;
}

.skills__decoration-grid--1 {
  top: 0;
  left: 20px;
}

.skills__decoration-grid--2 {
  top: 100px;
  left: 100px;
  border: 1px solid var(--text-secondary);
  background-image: none;
  width: 52px;
  height: 52px;
}

.skills__decoration-image {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border: 1px solid var(--text-secondary);
  overflow: hidden;
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}

.skills__decoration-image:hover {
  transform: translate(-50%, -50%) perspective(800px) rotateY(5deg) rotateX(-3deg);
}

.skills__decoration-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skills__decoration-grid--3 {
  top: 200px;
  left: 40px;
}

.skills__cards {
  flex: 1.5;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.skill-card {
  border: 1px solid var(--text-secondary);
  min-width: 170px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.skill-card:hover {
  border-color: var(--accent);
  transform: perspective(600px) rotateX(-4deg) rotateY(3deg) translateY(-4px) translateZ(10px);
  box-shadow: 0 8px 25px rgba(199, 120, 221, 0.12);
}

.skill-card__title {
  font-size: 1rem;
  font-weight: 600;
  padding: 8px;
  border-bottom: 1px solid var(--text-secondary);
}

.skill-card__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ============ ACHIEVEMENTS ============ */
.achievements {
  padding: 60px 0;
}

.achievements__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.achievements__category {
  border: 1px solid var(--text-secondary);
  padding: 24px;
  transition: border-color 0.3s ease, transform 0.5s ease, box-shadow 0.5s ease;
  transform-style: preserve-3d;
}

.achievements__category:hover {
  border-color: var(--accent);
  transform: perspective(800px) rotateX(-2deg) rotateY(3deg) translateZ(10px);
  box-shadow: 8px 8px 0 rgba(199, 120, 221, 0.1);
}

.achievements__category-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.achievements__icon {
  font-size: 1.5rem;
}

.achievements__list {
  list-style: none;
  padding: 0;
}

.achievements__item {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 10px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
  border-bottom: 1px solid rgba(171, 178, 191, 0.2);
}

.achievements__item:last-child {
  border-bottom: none;
}

.achievements__item::before {
  content: '•';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Achievements Slider */
.achievements__slider {
  position: relative;
  margin-top: 20px;
  outline: none;
}

.achievements__slider-container {
  overflow: hidden;
  border: 1px solid var(--text-secondary);
}

.achievements__slider-track {
  display: flex;
  transition: transform 0.4s ease;
}

.achievements__slider-slide {
  min-width: 100%;
  position: relative;
  background: var(--bg-surface);
}

.achievements__slider-slide img {
  width: 100%;
  height: 500px;
  object-fit: contain;
}

.achievements__slider-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--text);
  padding: 40px 20px 20px;
  font-size: 1rem;
  text-align: center;
}

.achievements__slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font);
  z-index: 10;
}

.achievements__slider-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.achievements__slider-btn--prev {
  left: 16px;
}

.achievements__slider-btn--next {
  right: 16px;
}

.achievements__slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.achievements__slider-dot {
  width: 12px;
  height: 12px;
  border: 1px solid var(--accent);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.achievements__slider-dot.active,
.achievements__slider-dot:hover {
  background: var(--accent);
}

/* ============ ABOUT ============ */
.about {
  padding: 60px 0;
}

.about__inner {
  display: flex;
  gap: 60px;
  align-items: center;
}

.about__content {
  flex: 1;
}

.about__text {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.about__text:first-child {
  color: var(--text);
  font-size: 1rem;
}

.about__image {
  flex-shrink: 0;
  position: relative;
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}

.about__image:hover {
  transform: perspective(800px) rotateY(-5deg) rotateX(3deg) scale(1.02);
}

.about__image:hover img {
  box-shadow: 12px 12px 0 rgba(199, 120, 221, 0.12);
}

.about__image img {
  width: 300px;
  height: auto;
  object-fit: cover;
}

.about__image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 84px;
  height: 84px;
  background-image: radial-gradient(circle, var(--text-secondary) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.3;
}

.about__image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 52px;
  height: 52px;
  border: 1px solid var(--text-secondary);
  opacity: 0.3;
}

/* ============ CONTACTS ============ */
.contacts {
  padding: 60px 0;
}

.contacts__inner {
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.contacts__text {
  flex: 1;
  max-width: 500px;
}

.contacts__text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Contact Form */
.contact-form {
  width: 100%;
}

.contact-form__group {
  margin-bottom: 20px;
}

.contact-form__label {
  display: block;
  color: var(--text);
  font-size: 0.875rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--text-secondary);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--accent);
  transform: perspective(600px) rotateX(-1deg) translateZ(5px);
  box-shadow: 0 8px 25px rgba(199, 120, 221, 0.1);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  margin-top: 8px;
}

/* Honeypot (hidden from users, catches bots) */
.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* Submit button states */
.contact-form__submit {
  position: relative;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-form__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.contact-form__submit.loading .contact-form__btn-text {
  opacity: 0.7;
}

.contact-form__submit.loading .contact-form__spinner {
  display: block;
}

.contact-form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Status messages */
.contact-form__status {
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 0.9rem;
  border-radius: 0;
  display: none;
}

.contact-form__status.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

.contact-form__status.success {
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid #4CAF50;
  color: #4CAF50;
}

.contact-form__status.error {
  background: rgba(244, 67, 54, 0.15);
  border: 1px solid #F44336;
  color: #F44336;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Input validation states */
.contact-form__input:invalid:not(:placeholder-shown),
.contact-form__textarea:invalid:not(:placeholder-shown) {
  border-color: #F44336;
}

.contact-form__input:valid:not(:placeholder-shown),
.contact-form__textarea:valid:not(:placeholder-shown) {
  border-color: #4CAF50;
}

.contacts__sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 280px;
}

.contacts__card {
  border: 1px solid var(--text-secondary);
  padding: 20px;
  transition: border-color 0.3s ease;
}

.contacts__card:hover {
  border-color: var(--accent);
}

.contacts__card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
  position: relative;
  padding-bottom: 12px;
}

.contacts__card-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.contacts__card-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contacts__card-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.25s ease;
}

.contacts__card-link img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.contacts__card-link:hover img {
  opacity: 1;
}

.contacts__card-address {
  cursor: default;
}

.contacts__card-link:hover {
  color: var(--text);
}

.contacts__card-address:hover {
  color: var(--text-secondary);
}

.contacts__card-address:hover img {
  opacity: 0.7;
}

/* Social icon buttons */
.contacts__socials {
  display: flex;
  gap: 12px;
}

.contacts__social-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
  background: rgba(255, 255, 255, 0.03);
}

.contacts__social-btn img {
  width: 24px;
  height: 24px;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  filter: brightness(1.1);
}

.contacts__social-btn:hover {
  border-color: var(--accent);
  background: rgba(199, 120, 221, 0.1);
  transform: perspective(400px) rotateY(15deg) translateY(-3px) scale(1.15);
  box-shadow: 0 8px 20px rgba(199, 120, 221, 0.2);
}

.contacts__social-btn:hover img {
  opacity: 1;
}

/* ============ WHAT I'M BUILDING NOW ============ */
.building-now {
  padding: 60px 0;
}

.building-now__terminal {
  background: #0d1117;
  border: 1px solid var(--text-secondary);
  overflow: hidden;
  max-width: 700px;
}

.building-now__terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(171, 178, 191, 0.08);
  border-bottom: 1px solid rgba(171, 178, 191, 0.15);
}

.building-now__terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.building-now__terminal-dot--red { background: #ff5f57; }
.building-now__terminal-dot--yellow { background: #febc2e; }
.building-now__terminal-dot--green { background: #28c840; }

.building-now__terminal-title {
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.building-now__terminal-body {
  padding: 20px 24px;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.building-now__line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.building-now__prompt {
  color: var(--accent);
  font-weight: 700;
}

.building-now__status-dot {
  width: 10px;
  height: 10px;
  background: #28c840;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.building-now__typed {
  color: var(--text);
}

.building-now__cursor {
  color: var(--accent);
  animation: cursorBlink 0.8s steps(2) infinite;
  font-weight: 300;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============ CERTIFICATIONS ============ */
.certifications {
  padding: 60px 0;
}

.certifications__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cert-card {
  border: 1px solid var(--text-secondary);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transform-style: preserve-3d;
}

.cert-card:hover {
  border-color: var(--accent);
  transform: perspective(800px) rotateY(4deg) translateY(-4px);
  box-shadow: 0 12px 30px rgba(199, 120, 221, 0.12);
}

.cert-card__icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.cert-card__body {
  flex: 1;
  min-width: 0;
}

.cert-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.cert-card__issuer {
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.cert-card__date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.cert-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  padding: 3px 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.3s ease, color 0.3s ease;
}

.cert-card:hover .cert-card__badge {
  background: var(--accent);
  color: var(--bg);
}

/* ============ BLOG / ARTICLES ============ */
.blog {
  padding: 60px 0;
}

.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  border: 1px solid var(--text-secondary);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

.blog-card:hover {
  border-color: var(--accent);
  transform: perspective(800px) rotateY(-3deg) translateY(-6px);
  box-shadow: 0 16px 35px rgba(199, 120, 221, 0.12);
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-card__date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.blog-card__tag {
  font-size: 0.75rem;
  padding: 2px 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.blog-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}

.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(171, 178, 191, 0.2);
}

.blog-card__read-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.blog-card__link {
  font-size: 0.85rem;
  color: var(--accent);
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.blog-card__link:hover {
  color: var(--text);
  transform: translateX(4px);
}

/* ============ FOOTER ============ */
.footer {
  padding: 32px 0;
  margin-top: 60px;
  border-top: 1px solid var(--text-secondary);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 24px;
}

.footer__branding {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 12px;
}

.footer__email {
  color: var(--text-secondary);
  font-size: 1rem;
}

.footer__tagline {
  color: var(--text-secondary);
  font-size: 1rem;
}

.footer__heading {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.footer__socials {
  display: flex;
  gap: 8px;
}

.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.footer__socials a img {
  width: 24px;
  height: 24px;
}

.footer__socials a:hover {
  transform: perspective(400px) rotateY(15deg) translateY(-3px) scale(1.15);
}

.footer__copy {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding-top: 24px;
  border-top: 1px solid rgba(171, 178, 191, 0.2);
}

/* ============ SCROLL REVEAL (3D Enhanced) ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px) perspective(800px) rotateX(5deg);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) perspective(800px) rotateX(0deg);
}

/* Stagger project cards */
.project-card.reveal:nth-child(2) {
  transition-delay: 0.15s;
}

.project-card.reveal:nth-child(3) {
  transition-delay: 0.3s;
}

.project-card.reveal:nth-child(4) {
  transition-delay: 0.45s;
}

.project-card.reveal:nth-child(5) {
  transition-delay: 0.6s;
}

/* Stagger skill cards */
.skill-card.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.skill-card.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.skill-card.reveal:nth-child(4) {
  transition-delay: 0.3s;
}

.skill-card.reveal:nth-child(5) {
  transition-delay: 0.4s;
}

/* Stagger cert cards */
.cert-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.cert-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.cert-card.reveal:nth-child(4) { transition-delay: 0.24s; }
.cert-card.reveal:nth-child(5) { transition-delay: 0.32s; }
.cert-card.reveal:nth-child(6) { transition-delay: 0.4s; }
.cert-card.reveal:nth-child(7) { transition-delay: 0.48s; }
.cert-card.reveal:nth-child(8) { transition-delay: 0.56s; }

/* ============ FLOATING 3D GEOMETRIC SHAPES ============ */
.geo-float {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.geo-float--cube {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  transform-style: preserve-3d;
  animation: geoCubeFloat 12s ease-in-out infinite;
}

.geo-float--ring {
  width: 60px;
  height: 60px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: geoRingFloat 10s ease-in-out infinite;
}

.geo-float--triangle {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 35px solid var(--accent);
  opacity: 0.12;
  animation: geoTriFloat 14s ease-in-out infinite;
}

.geo-float--cross {
  width: 30px;
  height: 30px;
  position: relative;
  animation: geoCrossFloat 11s ease-in-out infinite;
}

.geo-float--cross::before,
.geo-float--cross::after {
  content: '';
  position: absolute;
  background: var(--accent);
}

.geo-float--cross::before {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.geo-float--cross::after {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes geoCubeFloat {
  0%, 100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  25% { transform: translateY(-25px) rotateX(90deg) rotateY(45deg) rotateZ(20deg); }
  50% { transform: translateY(-10px) rotateX(180deg) rotateY(90deg) rotateZ(45deg); }
  75% { transform: translateY(-30px) rotateX(270deg) rotateY(135deg) rotateZ(60deg); }
}

@keyframes geoRingFloat {
  0%, 100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg) scale(1); }
  33% { transform: translateY(-20px) rotateX(40deg) rotateY(60deg) scale(1.1); }
  66% { transform: translateY(-35px) rotateX(-20deg) rotateY(120deg) scale(0.9); }
}

@keyframes geoTriFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(180deg); }
}

@keyframes geoCrossFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
  25% { transform: translateY(-18px) rotate(90deg) scale(1.15); }
  50% { transform: translateY(-8px) rotate(180deg) scale(1); }
  75% { transform: translateY(-28px) rotate(270deg) scale(0.85); }
}

/* ============ 3D TILT ON CARDS (Enhanced) ============ */
.tilt-3d {
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tilt-3d .tilt-3d__inner {
  transform: translateZ(20px);
}

/* ============ GLOW TRAIL / CURSOR FOLLOWER ============ */
.cursor-glow {
  position: fixed;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 120, 221, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}

@keyframes glitch {
  0%, 100% { text-shadow: none; transform: translate(0); }
  20% { text-shadow: -2px 0 #C778DD, 2px 0 #7c3aed; transform: translate(-1px, 1px); }
  40% { text-shadow: 2px 0 #C778DD, -2px 0 #7c3aed; transform: translate(1px, -1px); }
  60% { text-shadow: -1px 0 #C778DD, 1px 0 #7c3aed; transform: translate(-1px, 0); }
  80% { text-shadow: 1px 0 #C778DD, -1px 0 #7c3aed; transform: translate(1px, 1px); }
}

/* ============ FLOATING DOTS ANIMATION ============ */
@keyframes floatDots {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-15px) rotate(5deg); opacity: 0.5; }
}

@keyframes lineGlow {
  0% { left: -60%; }
  100% { left: 100%; }
}

/* ============ SCROLLBAR GLOW ============ */
::-webkit-scrollbar-thumb:hover {
  box-shadow: 0 0 10px rgba(199, 120, 221, 0.5);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .geo-float,
  .cursor-glow,
  .section-line::after,
  .hero__decoration--dots,
  .hero__decoration--square {
    animation: none !important;
  }

  .reveal {
    transform: none;
    opacity: 1;
  }

  .tilt-3d,
  .skill-card,
  .cert-card,
  .blog-card,
  .project-card,
  .quote,
  .about__image,
  .achievements__category {
    transform: none !important;
  }
}

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

/* Tablet */
@media (max-width: 900px) {
  .social-sidebar {
    display: none;
  }

  .hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__image {
    width: 280px;
  }

  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills__inner {
    flex-direction: column;
  }

  .skills__decorations {
    display: none;
  }

  .skills__cards {
    width: 100%;
  }

  .achievements__inner {
    grid-template-columns: 1fr;
  }

  .achievements__slider-slide img {
    height: 400px;
  }

  .about__inner {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about__image img {
    width: 250px;
    margin: 0 auto;
  }

  .contacts__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contacts__text {
    max-width: 100%;
  }

  .contacts__sidebar {
    width: 100%;
    max-width: 500px;
    flex-direction: column;
    gap: 20px;
  }

  .contacts__card {
    width: 100%;
  }

  .contacts__card-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contacts__socials {
    justify-content: center;
    gap: 16px;
  }

  .contacts__social-btn {
    width: 52px;
    height: 52px;
    border: 1.5px solid var(--text-secondary);
  }

  .contacts__social-btn img {
    width: 26px;
    height: 26px;
    opacity: 0.95;
    filter: brightness(1.2);
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .building-now__terminal {
    max-width: 100%;
  }

  .skill-bar::before {
    min-width: 62px;
    font-size: 0.75rem;
  }

  .certifications__grid {
    grid-template-columns: 1fr;
  }

  .blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 75%;
    height: 100vh;
    background: rgba(30, 33, 39, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  }

  .nav.active {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    padding: 20px;
  }

  .nav__link {
    font-size: 1.15rem;
    padding: 8px 16px;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .hero__image {
    width: 220px;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .achievements__slider-slide img {
    height: 300px;
  }

  .achievements__slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .achievements__slider-btn--prev {
    left: 8px;
  }

  .achievements__slider-btn--next {
    right: 8px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .quote__text {
    font-size: 1.125rem;
    padding: 20px;
  }

  .hero__decoration {
    display: none;
  }

  .hero__image-ring {
    display: none;
  }

  .building-now__terminal-body {
    padding: 16px;
  }

  .building-now__line {
    font-size: 0.85rem;
  }

  .skill-bar::before {
    min-width: 55px;
    font-size: 0.7rem;
  }

  .skill-bar__fill {
    height: 5px;
  }

  .blog__grid {
    grid-template-columns: 1fr;
  }

  .cert-card {
    padding: 16px;
  }

  .cert-card__title {
    font-size: 0.9rem;
  }
}

/* ============ SELECTION ============ */
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ============ INTERACTIVE RUBIK'S CUBE ============ */
/* ============ RUBIK'S CUBE FLOATING WIDGET ============ */
.rubiks-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  font-family: 'Fira Code', monospace;
}

/* Trigger button */
.rubiks-widget__trigger {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  border: 2px solid var(--accent);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 0 12px rgba(199, 120, 221, 0.25);
  transition: transform 0.25s, box-shadow 0.25s;
}

.rubiks-widget__trigger:hover {
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(199, 120, 221, 0.4);
}

.rubiks-widget__trigger svg {
  pointer-events: none;
}

/* Popup panel */
.rubiks-widget__popup {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 340px;
  background: var(--bg-surface);
  border: 1px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 18px rgba(199, 120, 221, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: rubiks-popup-in 0.3s ease;
}

.rubiks-widget__popup.open {
  display: flex;
}

@keyframes rubiks-popup-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.rubiks-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(171, 178, 191, 0.15);
}

.rubiks-widget__title {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.rubiks-widget__close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s;
}

.rubiks-widget__close:hover {
  color: var(--text);
}

/* Canvas */
.rubiks-widget__popup .rubiks__canvas-wrap {
  width: 100%;
  height: 280px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: radial-gradient(circle at 50% 50%, rgba(199, 120, 221, 0.04), transparent 70%);
}

.rubiks__canvas-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Controls inside popup */
.rubiks-widget__popup .rubiks__controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px 16px;
}

.rubiks__hint {
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

.rubiks__face-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.rubiks__face-btn {
  padding: 6px 0 !important;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 0;
}

.rubiks__action-btns {
  display: flex;
  gap: 10px;
}

.rubiks__action-btns .btn {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  padding: 7px 0;
}

/* Responsive */
@media (max-width: 480px) {
  .rubiks-widget {
    bottom: 16px;
    right: 16px;
  }

  .rubiks-widget__trigger {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .rubiks-widget__trigger svg {
    width: 34px;
    height: 34px;
  }

  .rubiks-widget__popup {
    width: calc(100vw - 32px);
    right: 0;
    bottom: 64px;
  }

  .rubiks-widget__popup .rubiks__canvas-wrap {
    height: 250px;
  }
}

/* ============ FOCUS STYLES ============ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ============ PROJECT DETAIL PAGE ============ */
.project-detail {
  padding: 120px 0 60px;
  min-height: 100vh;
}

.back-link {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 32px;
  transition: color 0.25s ease;
}

.back-link:hover {
  color: var(--accent);
}

.project-detail__header {
  margin-bottom: 24px;
}

.project-detail__title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.project-detail__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 800px;
  line-height: 1.8;
}

.project-detail__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--text-secondary);
}

.project-detail__tech span {
  padding: 4px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--text-secondary);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.project-detail__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.project-detail__content {
  max-width: 900px;
}

.project-detail__content h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 48px 0 24px;
  color: var(--text);
}

.project-detail__content h2:first-child {
  margin-top: 0;
}

.project-detail__content h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 24px 0 16px;
  color: var(--accent);
}

.project-detail__content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.project-detail__content ul {
  margin-bottom: 24px;
  padding-left: 0;
}

.project-detail__content li {
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
  line-height: 1.7;
}

.project-detail__content li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.project-detail__content li strong {
  color: var(--text);
}

.project-detail__content pre {
  background: var(--bg-surface);
  border: 1px solid var(--text-secondary);
  padding: 20px;
  overflow-x: auto;
  margin: 16px 0 24px;
}

.project-detail__content code {
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.project-detail__stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.stack-group {
  background: var(--bg-surface);
  border: 1px solid var(--text-secondary);
  padding: 20px;
}

.stack-group h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--text-secondary);
}

.stack-group ul {
  margin-bottom: 0;
}

.stack-group li {
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.stack-group li:last-child {
  margin-bottom: 0;
}

/* Project Detail Responsive */
@media (max-width: 768px) {
  .project-detail {
    padding: 100px 0 40px;
  }

  .project-detail__title {
    font-size: 1.75rem;
  }

  .project-detail__subtitle {
    font-size: 0.9rem;
  }

  .project-detail__actions {
    flex-direction: column;
  }

  .project-detail__actions .btn {
    width: 100%;
    text-align: center;
  }

  .project-detail__content h2 {
    font-size: 1.25rem;
    margin: 32px 0 16px;
  }

  .project-detail__stack {
    grid-template-columns: 1fr;
  }
}

/* ============ PROJECT VIDEO ============ */
.project-video {
  width: 100%;
  max-width: 900px;
  margin: 32px 0;
  border: 1px solid var(--text-secondary);
  background: var(--bg-surface);
  border-radius: 4px;
  overflow: hidden;
}

.project-video video {
  width: 100%;
  display: block;
}

/* ============ PROJECT IMAGE SLIDER ============ */
.project-slider {
  width: 100%;
  max-width: 900px;
  margin: 32px 0;
  border: 1px solid var(--text-secondary);
  background: var(--bg-surface);
}

.project-slider__wrapper {
  display: flex;
  align-items: center;
  gap: 0;
}

.project-slider__container {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.project-slider__track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.project-slider__slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
}

.project-slider__slide img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  display: block;
}

.project-slider__btn {
  flex-shrink: 0;
  width: 48px;
  height: 80px;
  background: var(--bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 1.5rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-slider__btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.project-slider__btn--prev {
  border-right: none;
}

.project-slider__btn--next {
  border-left: none;
}

.project-slider__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  background: var(--bg-surface);
  border-top: 1px solid var(--text-secondary);
}

.project-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-secondary);
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
}

.project-slider__dot.active {
  background: var(--accent);
}

.project-slider__dot:hover {
  background: var(--accent);
}

/* Slider Responsive */
@media (max-width: 768px) {
  .project-slider__slide img {
    max-height: 350px;
  }

  .project-slider__btn {
    width: 32px;
    height: 60px;
    font-size: 1.25rem;
  }

  .project-slider__dots {
    padding: 12px;
    gap: 6px;
  }

  .project-slider__dot {
    width: 8px;
    height: 8px;
  }
}
