﻿/* ==========================================
   PORTFOLIO - Modern Dark Design 2025
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;300;400;500;700;900&family=JetBrains+Mono:wght@300;400;700&display=swap');

:root {
  --bg-primary: #0f172a;
  --bg-secondary: #111e35;
  --bg-card: #16213a;
  --bg-card-hover: #1a2a46;
  /* Bump the version if you replace the file but the browser keeps caching it */
  --hero-bg-image: url('/images/home/theme.jpg?v=20260311');
  --accent: #00d4ff;
  --accent-2: #7c3aed;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --text-primary: #f0f4ff;
  --text-secondary: #8892b0;
  --text-muted: #4a5568;
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(0, 212, 255, 0.3);
  --gradient: linear-gradient(135deg, #00d4ff, #7c3aed);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --font-main: 'Vazirmatn', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 70px;
}

[data-theme="light"] {
  /* Slightly darker/softer light palette so tech backgrounds remain visible */
  --bg-primary: #e9eef7;
  --bg-secondary: #dde6f4;
  --bg-card: #f3f6fb;
  --bg-card-hover: #eaf0f9;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #a0aec0;
  --border: rgba(0, 0, 0, 0.08);
  --accent-glow: rgba(0, 212, 255, 0.1);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}

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

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

/* ---- Custom Cursor ---- */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
  mix-blend-mode: difference;
}

.cursor-trail {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease-out;
  opacity: 0.4;
}

@media (max-width: 768px) {

  .cursor,
  .cursor-trail {
    display: none;
  }
}

/* ---- Utilities ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 100px 0;
}

.tech-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-secondary);
}

.tech-section > .container {
  position: relative;
  z-index: 2;
}

.tech-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.82;
  pointer-events: none;
  mix-blend-mode: screen;
}

[data-theme="light"] .tech-bg-canvas {
  /* On light backgrounds, multiply keeps the mesh visible */
  opacity: 0.62;
  mix-blend-mode: multiply;
}

.tech-section::before,
.tech-section::after {
  content: '';
  position: absolute;
  inset: -2px;
  pointer-events: none;
  z-index: 0;
}

.tech-section::before {
  /* Removed (user requested): keep only the mesh/diagonal network */
  display: none;
}

.tech-section::after {
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.10) 0%, transparent 60%);
  background-size: cover;
  background-position: center;
  filter: blur(0.2px);
  animation: none;
}

[data-theme="light"] .tech-section::after {
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.07) 0%, transparent 60%);
}

@media (prefers-reduced-motion: reduce) {
  .tech-section::before,
  .tech-section::after {
    animation: none;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  /* Hide the small "// section_name" labels (keep only the main titles) */
  display: none;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::before {
  opacity: 0.1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-accent);
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .nav.scrolled {
  background: rgba(242, 244, 248, 0.92);
}

/* On light theme + hero background image, keep navbar text readable */
[data-theme="light"] .nav:not(.scrolled) .nav-logo,
[data-theme="light"] .nav:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.92);
}

[data-theme="light"] .nav:not(.scrolled) .nav-logo {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(255, 255, 255, 0.18);
}

[data-theme="light"] .nav:not(.scrolled) .nav-link:hover,
[data-theme="light"] .nav:not(.scrolled) .nav-link.active {
  color: #fff;
}

[data-theme="light"] .nav:not(.scrolled) .nav-toggle span {
  background: rgba(255, 255, 255, 0.92);
}

[data-theme="light"] .nav:not(.scrolled) .theme-toggle {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

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

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
  padding: 0.35rem 0.6rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.nav-logo .site-logo-img {
  width: 46px;
  height: 46px;
}

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

.logo-text {
  margin: 0 0.2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  /* Don't add extra border/padding on the image itself (some logos already have a border) */
  border: none;
  background: transparent;
  padding: 0;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
  border-radius: 1px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 1rem;
  right: 1rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

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

#langToggle {
  width: auto;
  min-width: 64px;
  padding: 0 0.65rem;
  gap: 0.35rem;
  font-size: 0.85rem;
}

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

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(ellipse at 30% 50%, rgba(0, 212, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.06) 0%, transparent 60%),
    var(--hero-bg-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#heroCanvas {
  width: 100%;
  height: 100%;
  opacity: 0.18;
}

[data-theme="light"] #heroCanvas {
  opacity: 0.10;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Keep background image fully visible (no veil) */
  background: transparent;
  pointer-events: none;
}

[data-theme="light"] .hero-bg::after {
  background: transparent;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background: transparent;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease both;
}

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

@keyframes pulse-dot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-greeting {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--text-secondary);
  font-weight: 400;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.hero-name {
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}

.hero-role {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--text-secondary);
  font-weight: 400;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .hero-greeting,
[data-theme="light"] .hero-role,
[data-theme="light"] .hero-description {
  /* In light mode the hero uses an image background, so keep these texts white for contrast */
  color: rgba(255, 255, 255, 0.88);
}

.hero-typewriter {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.tw-cursor {
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-description {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.6s both;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
}

.completed-projects-bar {
  margin-bottom: 3.5rem;
  animation: fadeInUp 0.8s ease 0.8s both;
  max-width: 860px;
}

.completed-projects-title {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.completed-projects-marquee {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  padding: 0.9rem;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.completed-projects-track {
  --marquee-duration: 34s;
  display: flex;
  align-items: stretch;
  gap: 0.9rem;
  width: max-content;
  will-change: transform;
  animation: marquee-ltr var(--marquee-duration) linear infinite;
}

.completed-projects-marquee:hover .completed-projects-track {
  animation-play-state: paused;
}

@keyframes marquee-ltr {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.cp-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 220px;
  max-width: 260px;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-decoration: none;
  transition: var(--transition);
}

.cp-item:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.cp-title {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cp-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.cp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--accent);
}

.cp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .completed-projects-track {
    animation: none;
  }

  .completed-projects-marquee {
    overflow-x: auto;
  }
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: fadeInUp 0.8s ease 1s both;
}

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

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: bounce 2s ease infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ---- ABOUT ---- */
.about {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-container {
  position: relative;
}

.image-frame {
  width: 320px;
  height: 380px;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--border-accent);
  position: relative;
  z-index: 2;
}

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

.profile-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  font-size: 5rem;
  color: var(--text-muted);
}

.image-decoration {
  position: absolute;
  top: 20px;
  right: -20px;
  width: 320px;
  height: 380px;
  border: 2px solid var(--accent);
  border-radius: 24px;
  opacity: 0.3;
  z-index: 1;
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--accent-glow), transparent);
  filter: blur(40px);
  z-index: 0;
}

.about-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: center;
}

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

.social-btn:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.about-name {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.about-title {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.about-bio {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.9;
}

.about-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.info-item i {
  color: var(--accent);
  width: 18px;
}

/* ---- SKILLS ---- */
.skills-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.skill-tab {
  padding: 0.6rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.skill-tab.active,
.skill-tab:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

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

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.skill-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skill-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.skill-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.skill-bar {
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 2px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-level {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-align: left;
  margin-top: 0.25rem;
}

/* ---- PROJECTS ---- */
.projects {
  background: var(--bg-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--border-accent);
}

.project-image {
  width: 100%;
  height: 200px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}

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

.project-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
}

.project-featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gradient);
  color: white;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 600;
}

.project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  flex: 1;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.tech-tag {
  padding: 3px 10px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: 50px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.project-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.project-link:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- EXPERIENCE ---- */
.timeline-container {
  position: relative;
}

.timeline {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-left: calc(50% + 40px);
  margin-bottom: 3rem;
  position: relative;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item[data-side="left"] {
  justify-content: flex-start;
  padding-left: 0;
  padding-right: calc(50% + 40px);
  transform: translateX(-30px);
}

.timeline-item[data-side="left"].visible {
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  z-index: 2;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 380px;
  transition: var(--transition);
}

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

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-company {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.timeline-tags span {
  padding: 2px 10px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.75rem;
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-info>p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ci-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.ci-value {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.ci-value:hover {
  color: var(--accent);
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: var(--transition);
  resize: none;
  outline: none;
  direction: ltr;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.btn-full {
  width: 100%;
  justify-content: center;
  border-radius: 12px;
}

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

/* ---- FOOTER ---- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text-primary);
  padding: 0.45rem 0.7rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.footer-logo-img {
  width: 54px;
  height: 54px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-social-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

.footer-text i {
  color: #ef4444;
}

.footer-text i.fa-coffee {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* ---- ANIMATIONS ---- */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .image-decoration {
    right: calc(50% - 320px + 20px);
  }

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

  .timeline::before {
    left: 24px;
  }

  .timeline-item {
    padding-left: 70px;
    justify-content: flex-start;
  }

  .timeline-item[data-side="left"] {
    padding-right: 0;
    padding-left: 70px;
    justify-content: flex-start;
  }

  .timeline-dot {
    left: 0;
    transform: none;
  }

  .timeline-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-stats {
    gap: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
  }

  .about-info {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }
}

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

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

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
}
