/* =====================================================
   PORTFOLIO – style.css
   Alex Ramadhan | Web Developer Portfolio
   ===================================================== */

/* ── 1. CSS CUSTOM PROPERTIES (DESIGN TOKENS) ── */
:root {
  /* --- Dark Theme (default) --- */
  --bg-primary:    #0a0a0f;
  --bg-secondary:  #0f0f1a;
  --bg-card:       #13131f;
  --bg-card-hover: #1a1a2e;

  --accent:        #00f5a0;       /* Neon green */
  --accent-glow:   rgba(0, 245, 160, 0.25);
  --accent-2:      #00d4ff;       /* Cyan highlight */
  --accent-2-glow: rgba(0, 212, 255, 0.2);

  --text-primary:  #e8e8f0;
  --text-secondary:#a0a0b8;
  --text-muted:    #606078;

  --border:        rgba(255, 255, 255, 0.07);
  --border-accent: rgba(0, 245, 160, 0.35);

  --nav-bg:        rgba(10, 10, 15, 0.85);
  --shadow:        0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 0 24px var(--accent-glow);

  /* Gradients */
  --grad-accent:   linear-gradient(135deg, #00f5a0 0%, #00d4ff 100%);
  --grad-card:     linear-gradient(135deg, #13131f 0%, #1a1a2e 100%);
  --grad-hero:     radial-gradient(ellipse at 60% 50%, rgba(0,245,160,0.08) 0%, transparent 60%),
                   radial-gradient(ellipse at 20% 80%, rgba(0,212,255,0.06) 0%, transparent 50%);

  /* Spacing */
  --container:     1180px;
  --section-py:    100px;

  /* Typography */
  --font-main:     'Poppins', sans-serif;
  --font-mono:     'Space Mono', monospace;

  /* Transitions */
  --tr-fast:       0.2s ease;
  --tr-normal:     0.35s ease;
  --tr-slow:       0.6s ease;

  /* Border radius */
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
}

/* --- Light Theme override --- */
[data-theme="light"] {
  --bg-primary:    #f4f6fb;
  --bg-secondary:  #eaeef6;
  --bg-card:       #ffffff;
  --bg-card-hover: #f0f4ff;

  --text-primary:  #0d0d1a;
  --text-secondary:#444466;
  --text-muted:    #9090aa;

  --border:        rgba(0, 0, 0, 0.08);
  --border-accent: rgba(0, 180, 120, 0.4);

  --nav-bg:        rgba(244, 246, 251, 0.9);
  --shadow:        0 8px 32px rgba(0, 0, 0, 0.1);
  --grad-hero:     radial-gradient(ellipse at 60% 50%, rgba(0,200,120,0.07) 0%, transparent 60%);
  --grad-card:     linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
}

/* ── 2. RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color var(--tr-normal), color var(--tr-normal);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ── 3. UTILITY CLASSES ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent { color: var(--accent); }
.text-accent-2 { color: var(--accent-2); }

.hidden { display: none !important; }

.section {
  padding: var(--section-py) 0;
  position: relative;
}

/* ── 4. PRELOADER ── */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-inner { position: relative; display: flex; align-items: center; justify-content: center; }
.preloader-ring {
  width: 72px;
  height: 72px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.preloader-text {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 5. NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--tr-normal), padding var(--tr-normal), box-shadow var(--tr-normal);
}
.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  padding: 12px 0;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.logo-bracket { color: var(--accent); }
.logo-accent   { color: var(--accent); }

/* Nav Links */
.nav-links {
  display: flex;
  gap: 8px;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--tr-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
  transition: width var(--tr-normal);
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}
.nav-link:hover::after,
.nav-link.active::after { width: 60%; }

/* Nav Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr-fast);
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--tr-normal);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── 6. BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-main);
  transition: all var(--tr-normal);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--grad-accent);
  color: #0a0a0f;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--accent-glow);
  filter: brightness(1.1);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #0a0a0f;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 7px 18px;
  font-size: 0.8rem;
}
.btn-full { width: 100%; justify-content: center; }

/* ── 7. SECTION HEADER ── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.section-line {
  width: 60px;
  height: 3px;
  background: var(--grad-accent);
  border-radius: 3px;
  margin: 0 auto;
}

/* ── 8. HERO SECTION ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  z-index: 0;
}

/* Animated grid overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,245,160,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,160,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}


.hero-container {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 5px;
}


/* Avatar */
.hero-avatar { display: flex; justify-content: center; }
.avatar-wrapper { position: relative; width: 320px; height: 320px; }
.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}
.ring-1 {
  border-color: var(--accent);
  opacity: 0.4;
  animation: rotateRing 8s linear infinite;
  border-style: dashed;
}
.ring-2 {
  inset: -20px;
  border-color: var(--accent-2);
  opacity: 0.2;
  animation: rotateRing 12s linear infinite reverse;
  border-style: dashed;
}
@keyframes rotateRing { to { transform: rotate(360deg); } }

.avatar-img {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-card);
  border: 3px solid var(--border-accent);
  box-shadow: var(--shadow-accent), inset 0 0 40px rgba(0,245,160,0.05);
}
.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: var(--accent);
  background: radial-gradient(circle, rgba(0,245,160,0.08) 0%, transparent 70%);
}

.avatar-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

/* Hero Content */
.hero-greeting {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.hero-name {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}
.hero-title {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.title-dynamic {
  color: var(--accent);
  font-weight: 600;
}
.cursor-blink {
  color: var(--accent);
  font-weight: 300;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  font-size: 0.975rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.8;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  font-family: var(--font-mono);
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: scrollAnim 2s ease infinite;
}
@keyframes scrollAnim {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  60%       { transform: translateX(-50%) translateY(10px); opacity: 0.4; }
}
.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollWheel 2s ease infinite;
}
@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ── 9. ABOUT SECTION ── */
.about { background: var(--bg-secondary); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-subtitle {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.about-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.8;
}
.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 32px;
}
.detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.detail-item i {
  color: var(--accent);
  font-size: 14px;
  width: 18px;
}

/* Skills */
.skills-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}
.tech-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.tech-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 2rem;
  cursor: default;
  transition: all var(--tr-normal);
  position: relative;
}
.tech-icon-item span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}
.tech-icon-item:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), var(--shadow-accent);
}

/* Skill progress bars */
.skill-bars { display: flex; flex-direction: column; gap: 18px; }
.skill-bar-item {}
.skill-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.skill-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.skill-percent {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}
.skill-bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: var(--grad-accent);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.skill-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 6px; height: 6px;
  background: white;
  border-radius: 50%;
}

/* ── 10. PORTFOLIO SECTION ── */
.portfolio { background: var(--bg-primary); }

/* Filter Buttons */
.portfolio-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--tr-fast);
  font-family: var(--font-main);
}
.filter-btn:hover,
.filter-btn.active {
  color: #0a0a0f;
  background: var(--grad-accent);
  border-color: transparent;
  box-shadow: 0 4px 18px var(--accent-glow);
}

/* Project Cards */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--tr-normal);
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow), 0 0 30px var(--accent-glow);
}
.project-card.hidden-card { display: none; }

/* Project image / placeholder */
.project-img {
  height: 210px;
  position: relative;
  overflow: hidden;
}
.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 48px;
  font-weight: 700;
  font-size: 2.8rem;
  transition: transform var(--tr-normal);
}
.project-placeholder span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.p1 { background: linear-gradient(135deg, #1a0533 0%, #2d1055 100%); color: #a259ff; }
.p2 { background: linear-gradient(135deg, #001a2e 0%, #003060 100%); color: #00d4ff; }
.p3 { background: linear-gradient(135deg, #001a1a 0%, #003333 100%); color: #00f5a0; }
.p4 { background: linear-gradient(135deg, #1a1a00 0%, #2e2e00 100%); color: #f0d060; }
.p5 { background: linear-gradient(135deg, #1a0a00 0%, #2e1800 100%); color: #ff8c42; }
.p6 { background: linear-gradient(135deg, #1a000a 0%, #3a0018 100%); color: #ff4d8d; }

.project-card:hover .project-placeholder { transform: scale(1.05); }

/* Project Overlay */
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--tr-normal);
  backdrop-filter: blur(4px);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-links {
  display: flex;
  gap: 12px;
}
.project-link {
  padding: 9px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--tr-fast);
}
.project-link:hover {
  background: var(--accent);
  color: #0a0a0f;
  border-color: var(--accent);
}

.project-info { padding: 22px 22px 24px; }
.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(0,245,160,0.1);
  color: var(--accent);
  border: 1px solid rgba(0,245,160,0.2);
  font-weight: 600;
}
.project-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.project-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}
.project-actions {
  display: flex;
  gap: 10px;
}

/* ── 11. SERVICES SECTION ── */
.services { background: var(--bg-secondary); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--tr-normal);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
}
.service-card:hover .service-glow {
  opacity: 1;
}
.service-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--tr-normal);
  pointer-events: none;
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(0,245,160,0.1);
  border: 1px solid rgba(0,245,160,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 20px;
  transition: all var(--tr-normal);
}
.service-card:hover .service-icon {
  background: var(--accent);
  color: #0a0a0f;
  transform: rotate(-5deg) scale(1.1);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.service-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--text-secondary);
}
.service-list li i {
  color: var(--accent);
  font-size: 11px;
}
.service-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  user-select: none;
}

/* ── 12. CONTACT SECTION ── */
.contact { background: var(--bg-primary); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.contact-heading {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--tr-fast);
}
.contact-card:hover {
  border-color: var(--border-accent);
  transform: translateX(6px);
}
.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0,245,160,0.1);
  border: 1px solid rgba(0,245,160,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-card-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.contact-card-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: color var(--tr-fast);
}
a.contact-card-value:hover { color: var(--accent); }

/* Social Links */
.social-links { display: flex; gap: 12px; flex-wrap: wrap; }
.social-link {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all var(--tr-normal);
}
.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--accent-glow);
}
.social-link.small {
  width: 38px;
  height: 38px;
  font-size: 0.875rem;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.input-wrapper {
  position: relative;
}
.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  z-index: 1;
  pointer-events: none;
  transition: color var(--tr-fast);
}
.textarea-wrapper .input-icon {
  top: 18px;
  transform: none;
}
.form-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--tr-fast);
  resize: none;
  outline: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon { color: var(--accent); }
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { padding-top: 14px; }
.form-error {
  font-size: 0.75rem;
  color: #ff4d6d;
  min-height: 16px;
}
.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(0,245,160,0.1);
  border: 1px solid rgba(0,245,160,0.3);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ── 13. FOOTER ── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 16px 0 24px;
  line-height: 1.8;
  max-width: 280px;
}
.footer-nav-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 20px;
}
.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav-list a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--tr-fast);
}
.footer-nav-list a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-made {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── 14. SCROLL TO TOP BUTTON ── */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #0a0a0f;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: all var(--tr-normal);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  z-index: 999;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

/* ── 15. SCROLL REVEAL ANIMATIONS ── */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal         { transform: translateY(40px); }
.reveal-left    { transform: translateX(-50px); }
.reveal-right   { transform: translateX(50px); }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* ── 16. RESPONSIVE ── */

/* Tablet */
@media (max-width: 1024px) {
  :root { --section-py: 80px; }

  .hero-container   { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-avatar      { order: -1; }
  .hero-desc        { margin: 0 auto 32px; }
  .hero-cta         { justify-content: center; }
  .hero-stats       { justify-content: center; }
  .avatar-wrapper   { width: 260px; height: 260px; }

  .about-grid       { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid     { grid-template-columns: 1fr; gap: 40px; }
  .footer-top       { grid-template-columns: 1fr 1fr; }
  .footer-brand     { grid-column: 1 / -1; }
}

/* Mobile Large: 768px */
@media (max-width: 768px) {
  :root { --section-py: 64px; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 80vw);
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 48px 32px;
    transition: right var(--tr-normal);
    border-left: 1px solid var(--border);
    z-index: 998;
    pointer-events: none;
  }
  .nav-links.open {
    right: 0;
    pointer-events: auto;
  }
  .nav-link { font-size: 1rem; padding: 12px 0; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .services-grid  { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .avatar-wrapper { width: 220px; height: 220px; }

  .about-details { grid-template-columns: 1fr; }
  .tech-icons    { grid-template-columns: repeat(4, 1fr); }

  .contact-form-wrapper { padding: 24px; }

  .scroll-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

/* Mobile Small */
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .btn      { width: 100%; justify-content: center; }
  .tech-icons { grid-template-columns: repeat(3, 1fr); }
  .hero-stats { gap: 16px; }
}
