/* ═══════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════ */
:root {
  /* Colors */
  --bg-primary: #0f1117;
  --bg-secondary: #161822;
  --bg-card: #1a1d2e;
  --bg-card-hover: #1f2337;
  --bg-elevated: #222640;

  --accent: #2dd4a8;
  --accent-dim: rgba(45, 212, 168, 0.15);
  --accent-glow: rgba(45, 212, 168, 0.08);
  --accent-hover: #38eabd;

  --text-primary: #e8ecf4;
  --text-secondary: #8892a4;
  --text-muted: #5a6478;

  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(45, 212, 168, 0.2);

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1140px;
  --container-padding: 0 24px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-btn: 14px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.3);
  --shadow-elevated: 0 12px 48px rgba(0, 0, 0, 0.4);
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

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

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

input,
textarea {
  font-family: inherit;
}

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

.section {
  padding: var(--section-padding);
  position: relative;
}

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

/* ═══════════════════════════════════════════════
   SECTION TITLES
   ═══════════════════════════════════════════════ */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-number {
  color: var(--accent);
  font-weight: 500;
  font-size: 1rem;
  margin-right: 8px;
  font-family: 'Courier New', monospace;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 500px;
}

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 17, 23, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(15, 17, 23, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: var(--accent-glow);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  padding: 8px;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: all var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--accent);
}

.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--accent);
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  outline: none;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(45, 212, 168, 0.25);
  transform: translateY(-2px);
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

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

.coming-soon-badge {
  cursor: default;
  opacity: 0.5;
  font-size: 0.78rem;
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
  pointer-events: none;
}

.client-badge {
  cursor: default;
  opacity: 0.6;
  font-size: 0.78rem;
}

.client-badge:hover {
  transform: none;
  color: #ff4d4d;
  border-color: rgba(255, 77, 77, 0.3);
  opacity: 0.9;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
}

.btn i {
  font-size: 0.85em;
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-greeting {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.hero-name {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.title-divider {
  color: var(--text-muted);
  margin: 0 4px;
}

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

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

/* Code Window */
.code-window {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
}

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

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.code-filename {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
}

.code-body {
  padding: 24px;
  font-size: 0.88rem;
  line-height: 1.9;
  overflow-x: auto;
}

.code-body code {
  font-family: 'Courier New', 'Fira Code', monospace;
}

.code-keyword { color: #c792ea; }
.code-var { color: #82aaff; }
.code-key { color: var(--accent); }
.code-string { color: #c3e88d; }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.4;
  animation: scrollBounce 2s infinite;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.wheel {
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

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

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(8px); }
}

/* ═══════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.highlight:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.highlight i {
  color: var(--accent);
  font-size: 0.9rem;
  width: 20px;
  text-align: center;
}

.about-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 48px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-card--photo {
  padding: 0;
  min-height: 360px;
}

.about-profile-img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.about-card-inner {
  position: relative;
  z-index: 1;
}

.about-icon-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.about-icon-large i {
  font-size: 2rem;
  color: var(--accent);
}

.about-card-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  font-style: italic;
}

.about-card-decoration {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════
   TECH STACK
   ═══════════════════════════════════════════════ */
.tech-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.tech-category {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px;
  transition: all var(--transition-base);
}

.tech-category:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card-hover);
}

.tech-category-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-category-title i {
  color: var(--accent);
}

.tech-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-base);
  cursor: default;
}

.tech-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  color: var(--text-primary);
  transform: translateX(4px);
}

.tech-card i,
.tech-card .tech-icon-svg {
  font-size: 1.3rem;
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-icon-svg {
  fill: var(--accent);
}

.tech-card-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: -2px;
}

/* ═══════════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.project-image {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-elevated));
  overflow: hidden;
}

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

.project-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.project-image-placeholder i {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 23, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

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

.project-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  transition: all var(--transition-fast);
  transform: translateY(10px);
}

.project-card:hover .project-link {
  transform: translateY(0);
}

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

.project-info {
  padding: 24px;
}

.project-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

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

.tag {
  padding: 4px 12px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.project-actions {
  display: flex;
  gap: 10px;
}

/* ═══════════════════════════════════════════════
   EXPERIENCE / TIMELINE
   ═══════════════════════════════════════════════ */
.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 720px;
}

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

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent);
  z-index: 1;
}

.timeline-item:first-child .timeline-marker {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.timeline-content {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 28px;
  transition: all var(--transition-base);
}

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

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.timeline-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 12px;
  background: var(--accent-dim);
  border-radius: 20px;
}

.timeline-company {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

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

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  outline: none;
  resize: vertical;
}

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

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

.form-submit {
  margin-top: 4px;
}

.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 36px;
}

.contact-card-header {
  margin-bottom: 32px;
}

.contact-card-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-card-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}

.contact-link-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.contact-link-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-link-icon i {
  color: var(--accent);
  font-size: 1.1rem;
}

.contact-link-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-link-value {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-word;
}

/* Form Validation & States */
.form-status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-base);
}

.form-status.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.form-status.success {
  background: rgba(40, 200, 64, 0.1);
  color: #28c840;
  border: 1px solid rgba(40, 200, 64, 0.2);
}

.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-status.sending {
  background: rgba(45, 212, 168, 0.1);
  color: var(--accent);
  border: 1px solid rgba(45, 212, 168, 0.2);
}

/* Required field indicator */
.required {
  color: #ef4444;
  font-weight: 600;
}

/* Form Error States */
.form-error {
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 4px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all var(--transition-fast);
  display: none;
  align-items: center;
  gap: 6px;
}

.form-error.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.form-error::before {
  content: "\f06a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  flex-shrink: 0;
}

/* Input Error States */
.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input.error:focus,
.form-group textarea.error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Character Counter */
.char-counter {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-family: 'Monaco', 'Menlo', monospace;
}

.char-counter.warning {
  color: #f59e0b;
}

.char-counter.error {
  color: #ef4444;
}

/* Button States */
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-spinner {
  position: absolute;
  display: none;
}

.btn.loading .btn-text,
.btn.loading .btn-icon {
  opacity: 0;
}

.btn.loading .btn-spinner {
  display: block;
}

.btn.success {
  background: #28c840 !important;
  border-color: #28c840 !important;
}

.btn.success .btn-text::before {
  content: "\f00c ";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* Focus Improvements */
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Placeholder Improvements */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  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(--transition-fast);
}

.footer-socials a:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — LARGE DESKTOP (1440+)
   ═══════════════════════════════════════════════ */
@media (min-width: 1440px) {
  :root {
    --container-width: 1280px;
  }

  .projects-grid {
    gap: 32px;
  }

  .project-image {
    height: 240px;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

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

  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-card {
    max-width: 400px;
    margin: 0 auto;
  }

  .tech-categories {
    grid-template-columns: 1fr 1fr;
  }

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

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

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
    --container-padding: 0 20px;
  }

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

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 36px;
  }

  /* Nav Mobile */
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(15, 17, 23, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition-base);
    z-index: 999;
  }

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

  .nav-link {
    padding: 14px 16px;
    font-size: 1rem;
    width: 100%;
    text-align: left;
    border-radius: var(--radius-sm);
  }

  .nav-link:hover {
    background: var(--accent-glow);
  }

  /* Hero Mobile */
  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 80px;
  }

  .hero-name {
    font-size: 2.8rem;
  }

  .hero-title {
    font-size: 1.05rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-visual {
    display: none;
  }

  .hero-container {
    gap: 24px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .stat {
    align-items: center;
  }

  .code-window {
    border-radius: var(--radius-md);
  }

  .code-body {
    font-size: 0.78rem;
    padding: 16px;
  }

  .scroll-indicator {
    display: none;
  }

  /* About mobile */
  .about-text p {
    font-size: 0.92rem;
  }

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

  .about-card {
    padding: 36px 24px;
  }

  .about-card--photo {
    padding: 0;
  }

  .about-profile-img {
    min-height: 300px;
  }

  .about-card-text {
    font-size: 0.95rem;
  }

  /* Tech Mobile */
  .tech-categories {
    grid-template-columns: 1fr;
  }

  .tech-category {
    padding: 24px;
  }

  /* Projects Mobile */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-image {
    height: 200px;
  }

  .project-info {
    padding: 20px;
  }

  .project-name {
    font-size: 1.05rem;
  }

  .project-description {
    font-size: 0.85rem;
  }

  /* Timeline Mobile */
  .timeline {
    padding-left: 32px;
  }

  .timeline-marker {
    left: -32px;
    width: 14px;
    height: 14px;
  }

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

  .timeline-header {
    flex-direction: column;
    gap: 6px;
  }

  .timeline-content {
    padding: 20px;
  }

  .timeline-description {
    font-size: 0.85rem;
  }

  /* Contact Mobile */
  .contact-grid {
    gap: 32px;
  }

  .contact-card {
    padding: 24px;
  }

  .contact-link-item {
    padding: 12px;
    gap: 12px;
  }

  .contact-link-icon {
    width: 40px;
    height: 40px;
  }

  .contact-link-value {
    font-size: 0.85rem;
    word-break: break-word;
  }

  .form-group {
    gap: 4px;
  }

  .form-group label {
    font-size: 0.8rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .char-counter {
    font-size: 0.7rem;
    margin-top: 4px;
  }

  .form-status {
    padding: 12px;
    font-size: 0.85rem;
  }

  .form-error {
    font-size: 0.75rem;
  }

  /* Footer Mobile */
  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
  :root {
    --container-padding: 0 16px;
  }

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

  .hero-name {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 0.95rem;
  }

  .hero-greeting {
    font-size: 0.88rem;
  }

  .hero-description {
    font-size: 0.88rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

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

  .stat-number {
    font-size: 1.5rem;
  }

  .code-body {
    font-size: 0.7rem;
    padding: 12px;
    line-height: 1.7;
  }

  .code-header {
    padding: 12px 14px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .about-highlights .highlight {
    font-size: 0.82rem;
    padding: 10px 12px;
  }

  .tech-category {
    padding: 20px;
  }

  .tech-card {
    padding: 12px 14px;
    font-size: 0.82rem;
  }

  .tech-card i,
  .tech-card .tech-icon-svg {
    font-size: 1.1rem;
    width: 20px;
    height: 20px;
  }

  .project-image {
    height: 180px;
  }

  .project-info {
    padding: 18px;
  }

  .project-name {
    font-size: 1rem;
  }

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

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

  .tag {
    font-size: 0.7rem;
    padding: 3px 10px;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-marker {
    left: -24px;
    width: 12px;
    height: 12px;
  }

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

  .timeline-content {
    padding: 16px;
  }

  .timeline-header h3 {
    font-size: 1rem;
  }

  .timeline-tags .tag {
    font-size: 0.68rem;
  }

  .contact-card {
    padding: 20px;
  }

  .contact-link-item {
    padding: 12px;
    gap: 12px;
  }

  .contact-link-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .contact-link-icon i {
    font-size: 0.95rem;
  }

  .contact-link-label {
    font-size: 0.7rem;
  }

  .contact-link-value {
    font-size: 0.82rem;
    word-break: break-word;
  }

  .form-status {
    font-size: 0.8rem;
    padding: 10px 12px;
  }

  .form-error {
    font-size: 0.72rem;
  }

  .char-counter {
    font-size: 0.68rem;
  }

  .form-submit {
    width: 100%;
    justify-content: center;
  }

  .footer-socials a {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — EXTRA SMALL (320px)
   ═══════════════════════════════════════════════ */
@media (max-width: 360px) {
  :root {
    --container-padding: 0 12px;
  }

  .hero-name {
    font-size: 1.75rem;
  }

  .hero-title {
    font-size: 0.85rem;
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  .nav-container {
    height: 64px;
    padding: 0 16px;
  }

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

  .project-image {
    height: 160px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.82rem;
  }

  .btn-sm {
    padding: 8px 14px;
    font-size: 0.75rem;
  }
}
