/* ============================================
   DevPolok Portfolio CMS - Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --accent: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.3);
  --primary-glow: rgba(99, 102, 241, 0.3);

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* DARK THEME (default) */
[data-theme="dark"] {
  --bg: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1d1d28;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(99,102,241,0.4);
  --text: #f0f0f5;
  --text-muted: #8b8ba7;
  --text-secondary: #c4c4d4;
  --navbar-bg: rgba(10, 10, 15, 0.85);
  --code-bg: #13131a;
  --shadow: rgba(0,0,0,0.4);
}

/* LIGHT THEME */
[data-theme="light"] {
  --bg: #f8f8ff;
  --bg-secondary: #f0f0f8;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5fd;
  --border: rgba(0,0,0,0.07);
  --border-hover: rgba(99,102,241,0.4);
  --text: #0f0f1a;
  --text-muted: #6b6b80;
  --text-secondary: #3d3d56;
  --navbar-bg: rgba(248, 248, 255, 0.9);
  --code-bg: #1a1a26;
  --shadow: rgba(0,0,0,0.1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== CUSTOM CURSOR ===== */
.cursor-dot, .cursor-outline {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--primary);
  transform: translate(-50%, -50%);
}
.cursor-outline {
  width: 36px; height: 36px;
  border: 2px solid rgba(99,102,241,0.5);
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}
@media (hover: none) { .cursor-dot, .cursor-outline { display: none; } }

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 30px var(--shadow);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo { display: flex; align-items: center; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.logo-img { height: 40px; width: auto; }
.accent { color: var(--primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
}
.nav-link:hover::after, .nav-link.active::after { width: 60%; }

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

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition);
}
.theme-toggle:hover { background: var(--primary); color: white; border-color: var(--primary); }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  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); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  transition: var(--transition);
}
.mobile-menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}
.mobile-link {
  display: block;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: var(--transition);
}
.mobile-link:hover { background: var(--bg-card-hover); color: var(--primary); }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-secondary); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--primary);
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--primary);
  transition: var(--transition);
}
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-2px); }

/* ===== HERO ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 { width: 500px; height: 500px; background: var(--primary); top: -100px; right: -100px; }
.blob-2 { width: 350px; height: 350px; background: var(--accent); bottom: 0; left: -100px; animation-delay: -3s; }
.blob-3 { width: 250px; height: 250px; background: #ec4899; top: 50%; left: 30%; animation-delay: -6s; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.3);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.typing-text {
  color: var(--primary);
  font-weight: 600;
}
.typing-cursor {
  color: var(--accent);
  animation: blink 1s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 540px;
  line-height: 1.8;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-socials {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition);
}
.social-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* Code Card */
.hero-visual { position: relative; }
.code-card {
  background: var(--code-bg);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
.code-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.code-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.code-title { font-size: 0.85rem; color: #6b7280; font-family: 'Courier New', monospace; }
.code-content {
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #9ca3af;
  overflow-x: auto;
}
.kw { color: #c084fc; }
.cn { color: #67e8f9; }
.var { color: #fca5a5; }
.str { color: #86efac; }
.fn { color: #fbbf24; }

.floating-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.float-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 8px 20px var(--shadow);
  animation: floatBadge 4s ease-in-out infinite;
}
.fb-1 { top: -20px; left: -20px; animation-delay: 0s; }
.fb-2 { top: 30%; right: -30px; animation-delay: -1.5s; }
.fb-3 { bottom: 30%; left: -30px; animation-delay: -3s; }
.fb-4 { bottom: -10px; right: 20px; animation-delay: -2s; }
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  animation: fadeInUp 1s 1.5s both;
}
.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid var(--border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.stats-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.stat-divider { width: 1px; height: 60px; background: var(--border); }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: center;
}
.about-image-wrap { position: relative; }
.about-img-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  max-width: 420px;
}
.about-img { width: 100%; height: 100%; object-fit: cover; }
.about-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: rgba(255,255,255,0.3);
}
.img-decoration {
  position: absolute;
  inset: -10px -10px 10px 10px;
  border: 2px solid rgba(99,102,241,0.3);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 30px var(--primary-glow);
}
.exp-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.exp-text { font-size: 0.78rem; font-weight: 500; line-height: 1.4; }

.about-bio {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}
.about-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}
.about-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== SKILLS ===== */
.skills-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}
.skill-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.skill-tab.active, .skill-tab:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 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);
}
.skill-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.skill-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.skill-icon { font-size: 2rem; line-height: 1; }
.skill-info { flex: 1; display: flex; justify-content: space-between; align-items: center; }
.skill-name { font-weight: 600; color: var(--text); }
.skill-pct { font-weight: 700; color: var(--primary); font-family: var(--font-display); }
.skill-bar { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  animation-delay: var(--delay, 0s);
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px var(--shadow);
}
.service-card:hover .service-icon-wrap { background: var(--primary); }
.service-card:hover .service-icon { color: white; }
.service-icon-wrap {
  width: 60px; height: 60px;
  background: rgba(99,102,241,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
.service-icon { font-size: 1.5rem; color: var(--primary); }
.service-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.service-number {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  transition: var(--transition);
}
.service-card:hover .service-number { color: rgba(99,102,241,0.1); }

/* ===== PROJECTS ===== */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px var(--shadow);
}
.project-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.project-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.project-card:hover .project-img { transform: scale(1.08); }
.project-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(99,102,241,0.4);
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .project-overlay { opacity: 1; }
.proj-link-btn {
  width: 48px; height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 1.1rem;
  transition: var(--transition);
}
.proj-link-btn:hover { background: var(--primary); color: white; transform: scale(1.1); }
.project-featured-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--accent);
  color: #0f0f1a;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}
.project-info { padding: 1.5rem; }
.project-category-label {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.project-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.project-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.6; }
.project-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.stack-tag {
  background: rgba(99,102,241,0.1);
  color: var(--primary);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ===== TESTIMONIALS ===== */
.testimonials-slider { position: relative; }
.testimonials-track {
  display: flex;
  overflow: hidden;
  gap: 1.5rem;
}
.testimonial-card {
  min-width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: none;
}
.testimonial-card.active { display: block; }
.testi-stars { color: var(--accent); font-size: 1.2rem; letter-spacing: 3px; margin-bottom: 1rem; }
.testi-review { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.9; margin-bottom: 2rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 1rem; }
.testi-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testi-avatar-placeholder {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-display);
}
.testi-name { font-weight: 700; color: var(--text); }
.testi-role { font-size: 0.85rem; color: var(--text-muted); }
.testi-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.testi-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.testi-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.testi-dots { display: flex; gap: 0.5rem; }
.testi-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.testi-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: var(--transition);
}
.contact-card:hover { border-color: var(--border-hover); transform: translateX(5px); }
.contact-icon { font-size: 1.5rem; color: var(--primary); width: 40px; text-align: center; }
.contact-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }
.contact-value { color: var(--text); font-weight: 600; font-size: 0.95rem; display: block; transition: color 0.2s; }
.contact-value:hover { color: var(--primary); }
.whatsapp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #25d366;
  color: white;
  padding: 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  margin-top: 1.5rem;
}
.whatsapp-cta:hover { background: #128c7e; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,211,102,0.3); }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.submit-btn { align-self: flex-start; }
.form-message {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
}
.form-message.success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #22c55e; }
.form-message.error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #ef4444; }
.hidden { display: none !important; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.footer-container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-socials a {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition);
}
.footer-socials a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.admin-link { color: var(--text-muted); transition: color 0.2s; }
.admin-link:hover { color: var(--primary); }

/* ===== ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible, .reveal-right.visible { opacity: 1; transform: translate(0); }

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-content { max-width: 700px; margin: 0 auto; }
  .hero-socials, .hero-cta { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { max-width: 400px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-container { gap: 2rem; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: 2.5rem; }
  .section { padding: 70px 0; }
  .skills-grid, .services-grid, .projects-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; text-align: center; }
  .stats-container { flex-direction: column; }
  .stat-divider { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .nav-container { padding: 0 1rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
