/* ============================================
   PORTFOLIO STYLESHEET
   Theme: Dark Teal / Tosca
   ============================================ */

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

:root {
  /* Colors */
  --bg-primary: #030014;
  --bg-secondary: #0a0a1a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);

  /* Teal/Tosca Accent */
  --accent-1: #0d9488;
  --accent-2: #14b8a6;
  --accent-3: #5eead4;
  --accent-glow: rgba(20, 184, 166, 0.3);

  /* Text */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  /* Border */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(20, 184, 166, 0.3);

  /* Shadows */
  --shadow-glow: 0 0 40px rgba(20, 184, 166, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

  /* Font */
  --font: 'Poppins', sans-serif;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-slow: all 0.6s ease;
}

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

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }

/* ===== PARTICLE CANVAS ===== */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(20, 184, 166, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--accent-2);
  border: 1.5px solid var(--accent-2);
}

.btn-outline:hover {
  background: rgba(20, 184, 166, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.2);
}

.btn-full { width: 100%; justify-content: center; }

/* ===== SECTION BASE ===== */
.section {
  position: relative;
  padding: 100px 0;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
  border-radius: 2px;
  margin: 16px auto;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(3, 0, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-bracket {
  color: var(--accent-2);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 50px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-2);
  background: rgba(20, 184, 166, 0.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 100px 24px 60px;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hero Content */
.hero-content {
  animation: fadeInLeft 0.8s ease forwards;
}

.hero-greeting {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.greeting-line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent-2);
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.typewriter {
  color: var(--accent-2);
  font-weight: 600;
}

.cursor {
  color: var(--accent-2);
  animation: blink 1s infinite;
  font-weight: 300;
}

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

.hero-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.social-icon:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
  background: rgba(20, 184, 166, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(20, 184, 166, 0.2);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  isolation: isolate;
  animation: fadeInRight 0.8s ease 0.2s forwards;
  opacity: 0;
}

.profile-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.24) 0%, rgba(99, 102, 241, 0.08) 38%, transparent 72%);
  filter: blur(4px);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.world {
  position: absolute;
  width: 280px;
  height: 375px;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg);
  z-index: 3;
  pointer-events: auto;
  opacity: 1;
  overflow: visible;
  border-radius: 0;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.26)) drop-shadow(0 0 30px rgba(20, 184, 166, 0.18));
}

.world::after {
  display: none;
}

.world canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.profile-photo {
  width: 280px;
  height: 375px;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 2;
  border: 0;
  opacity: 0;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-visual.webgl-fallback .world {
  display: none;
}

.hero-visual.webgl-fallback .profile-photo {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .world {
    display: none;
  }

  .profile-photo {
    opacity: 1;
  }
}

/* Keep the user's About photo polished without the old hero ring treatment. */
.about-profile-photo {
  width: 220px;
  height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  border: 3px solid rgba(20, 184, 166, 0.5);
  box-shadow: 0 0 35px rgba(20, 184, 166, 0.25);
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.about-image-card:hover .about-profile-photo {
  transform: scale(1.03);
}

.avatar-placeholder {
  font-size: 5rem;
  color: rgba(255,255,255,0.3);
}

/* ===== CSS ART AVATAR ===== */
.css-avatar {
  transform: scale(0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.css-avatar--large {
  transform: scale(1.2);
}

.css-avatar__head {
  width: 100px;
  height: 110px;
  background: linear-gradient(180deg, #f5c9a0 0%, #e8a87c 100%);
  border-radius: 50% 50% 45% 45%;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.css-avatar__hair {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 104px;
  height: 55px;
  background: #2d1a0e;
  border-radius: 50% 50% 0 0;
  z-index: 1;
}

.css-avatar__hair::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -8px;
  width: 18px;
  height: 35px;
  background: #2d1a0e;
  border-radius: 0 0 10px 50%;
}

.css-avatar__hair::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -8px;
  width: 18px;
  height: 35px;
  background: #2d1a0e;
  border-radius: 0 0 50% 10px;
}

.css-avatar__ear {
  position: absolute;
  width: 16px;
  height: 22px;
  background: #e8a87c;
  border-radius: 50%;
  top: 42px;
}

.css-avatar__ear--left { left: -8px; }
.css-avatar__ear--right { right: -8px; }

.css-avatar__face {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  z-index: 2;
}

.css-avatar__eyes {
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  margin-bottom: 10px;
}

.css-avatar__eye {
  width: 16px;
  height: 16px;
  background: #1a1a2e;
  border-radius: 50%;
  position: relative;
}

.css-avatar__eye::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  background: white;
  border-radius: 50%;
  top: 2px;
  right: 2px;
}

.css-avatar__nose {
  width: 10px;
  height: 8px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top: none;
  border-radius: 0 0 8px 8px;
  margin: 0 auto 10px;
}

.css-avatar__mouth {
  width: 28px;
  height: 12px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top: none;
  border-radius: 0 0 20px 20px;
  margin: 0 auto;
  position: relative;
}

.css-avatar__mouth::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 8px;
  background: #c0392b;
  border-radius: 0 0 16px 16px;
}

.css-avatar__neck {
  width: 28px;
  height: 18px;
  background: linear-gradient(180deg, #e8a87c, #d4956a);
}

.css-avatar__body {
  width: 110px;
  height: 70px;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  border-radius: 40px 40px 0 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.css-avatar__collar {
  width: 40px;
  height: 20px;
  background: white;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  opacity: 0.9;
}

/* About section avatar container */
.about-css-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px 0;
}

/* Floating Badges */
.float-badge {
  position: absolute;
  background: rgba(3, 0, 20, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  z-index: 3;
  white-space: nowrap;
}

.badge-html { top: 10%; left: 0; animation: float-badge 3s ease-in-out infinite; }
.badge-css { bottom: 15%; left: -5%; animation: float-badge 3s ease-in-out infinite 0.5s; }
.badge-js { top: 15%; right: 0; animation: float-badge 3s ease-in-out infinite 1s; }
.badge-react { bottom: 10%; right: -5%; animation: float-badge 3s ease-in-out infinite 1.5s; }

.badge-html i { color: #e34f26; }
.badge-css i { color: #1572b6; }
.badge-js i { color: #f7df1e; }
.badge-react i { color: #61dafb; }

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-decoration: none;
  animation: fadeIn 1s ease 1s forwards;
  opacity: 0;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 50px;
  display: flex;
  justify-content: center;
  padding: 4px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--accent-2);
  border-radius: 2px;
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: linear-gradient(180deg, transparent, rgba(20, 184, 166, 0.03), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-image-card {
  width: 280px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.about-image-card:hover {
  transform: translateY(-5px);
}

.about-avatar-placeholder {
  font-size: 7rem;
  color: var(--accent-1);
  opacity: 0.5;
}

.about-image-decor {
  position: absolute;
  border-radius: 12px;
  border: 2px solid var(--accent-2);
  opacity: 0.3;
}

.decor-1 { width: 60px; height: 60px; top: -10px; right: -10px; }
.decor-2 { width: 40px; height: 40px; bottom: -10px; left: -10px; }

.about-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: rgba(3, 0, 20, 0.9);
  border: 1px solid var(--border-accent);
  border-radius: 50px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-2);
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.about-subtitle {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-3);
  margin-bottom: 16px;
}

.about-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin: 32px 0;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-2);
  display: block;
  line-height: 1;
}

.stat-plus {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-2);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  display: block;
  margin-top: 4px;
}

.about-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== SKILLS SECTION ===== */
.skills-section {
  background: linear-gradient(180deg, transparent, rgba(20, 184, 166, 0.02), transparent);
}

.skills-categories {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.skills-group-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skills-group-title i {
  color: var(--accent-2);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.skill-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  cursor: default;
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-5px);
}

.skill-icon {
  font-size: 2rem;
}

.skill-card span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.skill-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
  border-radius: 2px;
  transition: width 1.2s ease;
}

/* ===== PROJECTS SECTION ===== */
.projects-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 24px;
  border-radius: 50px;
  border: 1.5px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: rgba(20, 184, 166, 0.1);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.project-card {
  transition: var(--transition);
  overflow: hidden;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card.hidden {
  display: none;
}

.project-image {
  height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-1) 0%, rgba(3, 0, 20, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.3);
}

.project-placeholder[style*="--ph-color"] {
  background: linear-gradient(135deg, var(--ph-color, var(--accent-1)) 0%, rgba(3, 0, 20, 0.8) 100%);
}

/* Project category colors */
.proj-instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045) !important;
  color: white;
}

.proj-canva {
  background: linear-gradient(135deg, #00c4cc, #7b2ff7) !important;
}

.proj-tiktok {
  background: linear-gradient(135deg, #010101, #69c9d0, #ee1d52) !important;
}

.proj-office {
  background: linear-gradient(135deg, #0078d4, #00bcf2) !important;
}

.proj-poster {
  background: linear-gradient(135deg, #e63946, #f4a261) !important;
}

.proj-schedule {
  background: linear-gradient(135deg, #0d9488, #34d399) !important;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 0, 20, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.project-link:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: scale(1.1);
}

.project-content {
  padding: 20px;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.2);
  color: var(--accent-3);
  font-size: 0.72rem;
  font-weight: 500;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.projects-cta {
  text-align: center;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: linear-gradient(180deg, transparent, rgba(20, 184, 166, 0.03), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateX(6px);
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent-2);
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-card a,
.contact-card span {
  font-size: 0.9rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.contact-card a:hover {
  color: var(--accent-2);
}

.contact-socials {
  margin-top: 8px;
}

.contact-socials p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.socials-row {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
  background: rgba(20, 184, 166, 0.1);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
  padding: 36px;
  transition: var(--transition);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-2);
  background: rgba(20, 184, 166, 0.05);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  color: #22c55e;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 16px;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-color);
  overflow: hidden;
  z-index: 1;
}

.footer-glow {
  position: absolute;
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(20, 184, 166, 0.06) 0%, transparent 70%);
  top: 0; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--accent-2);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  z-index: 999;
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(20, 184, 166, 0.5);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrapper { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 260px; height: 100vh;
    background: rgba(3, 0, 20, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 90px 24px 40px;
    gap: 4px;
    border-left: 1px solid var(--border-color);
    transition: right 0.3s ease;
  }

  .nav-links.open { right: 0; }
  .hamburger { display: flex; }

  .hero { padding: 120px 24px 80px; text-align: center; }
  .hero-container { justify-items: center; }
  .hero-greeting { justify-content: center; }
  .hero-title { justify-content: center; }
  .hero-description { text-align: left; }
  .hero-buttons { justify-content: center; }
  .hero-socials { justify-content: center; }

  .profile-avatar { width: 180px; height: 180px; }
  .ring-1 { width: 220px; height: 220px; }
  .ring-2 { width: 260px; height: 260px; }
  .ring-3 { width: 300px; height: 300px; }
  .profile-glow { width: 260px; height: 260px; }

  .float-badge { display: none; }

  .about-stats { flex-direction: column; gap: 20px; }
  .about-actions { justify-content: center; }

  .section { padding: 70px 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .skills-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.2rem; }
  .about-image-card { width: 240px; height: 270px; }
}
