/* ==========================================
   PREMIUM DEVELOPER PORTFOLIO - CSS
   Complete Rewrite v4 — Premium Avatar
   ========================================== */

/* ==========================================
   CSS VARIABLES
   ========================================== */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-accent: #f0f2f5;
  --text-primary: #1a1a1a;
  --text-secondary: #6c757d;
  --text-accent: #495057;
  --accent-primary: #0066ff;
  --accent-secondary: #4d94ff;
  --accent-gradient: linear-gradient(135deg, #0066ff 0%, #4d94ff 100%);
  --border-color: #e9ecef;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --overlay: rgba(0, 0, 0, 0.7);
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --nav-height: 72px;
}

[data-theme="dark"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #151515;
  --bg-accent: #1f1f1f;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-accent: #d0d0d0;
  --border-color: #2a2a2a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --overlay: rgba(0, 0, 0, 0.85);
}

/* ==========================================
   RESET & BASE
   ========================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--bg-primary);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all var(--transition-base);
}

.nav-container {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo .logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active { color: var(--accent-primary); }
.nav-link:hover::after { width: 100%; }

.theme-toggle {
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-secondary);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--bg-accent);
  transform: scale(1.05);
}

.theme-icon { font-size: 1.25rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
  display: block;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 4rem;
  min-height: 100svh;
  overflow-x: hidden;
}

.hero-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2.5rem;
  width: 100%;
}

.hero-content > * { min-width: 0; }

.hero-image {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* ==========================================
   AVATAR — Premium v4
   ========================================== */

.avatar {
  position: relative;
  width: clamp(180px, 42vw, 280px);
  height: clamp(180px, 42vw, 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-image:hover .avatar { transform: scale(0.97); }

/* Ambient radial glow — breathes in/out */
.avatar::before {
  content: "";
  position: absolute;
  inset: -45px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 68%);
  border-radius: 50%;
  animation: pulse-glow 3.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Remove old second ring */
.avatar::after { display: none; }

/* ── Photo ── */
.avatar img {
  position: relative;
  width: 86%;
  height: 86%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  z-index: 3;
  box-shadow:
    0 0 0 3px rgba(0, 102, 255, 0.25),
    0 0 32px rgba(0, 102, 255, 0.12);
  transition: box-shadow 0.4s ease;
}

.hero-image:hover .avatar img {
  box-shadow:
    0 0 0 3px rgba(0, 102, 255, 0.45),
    0 0 48px rgba(0, 102, 255, 0.22);
}

/* ── Dashed slow orbit ring ── */
.orbit-ring-dashed {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 102, 255, 0.28);
  animation: spin-slow 22s linear infinite;
  pointer-events: none;
  z-index: 1;
}

/* ── Glowing conic arc (fast) ── */
.orbit-arc {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(0, 102, 255, 0.85) 16%,
    rgba(77, 148, 255, 0.45) 30%,
    transparent 46%,
    transparent 100%
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 2.5px),
    white calc(100% - 2.5px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 2.5px),
    white calc(100% - 2.5px)
  );
  animation: spin-fast 2.8s linear infinite;
  pointer-events: none;
  z-index: 2;
}

/* ── Large glowing dot (clockwise) ── */
.orbit-dot {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  animation: spin-medium 7s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.orbit-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -4px;
  width: 11px;
  height: 11px;
  background: #0066ff;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow:
    0 0 8px  rgba(0, 102, 255, 1),
    0 0 20px rgba(0, 102, 255, 0.55),
    0 0 40px rgba(0, 102, 255, 0.25);
}

/* ── Small glowing dot (counter-clockwise) ── */
.orbit-dot-2 {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  animation: spin-medium 7s linear infinite reverse;
  animation-delay: -3.5s;
  pointer-events: none;
  z-index: 2;
}

.orbit-dot-2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -3px;
  width: 7px;
  height: 7px;
  background: #4d94ff;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow:
    0 0 6px  rgba(77, 148, 255, 1),
    0 0 14px rgba(77, 148, 255, 0.6),
    0 0 28px rgba(77, 148, 255, 0.3);
}

/* ── "Available for work" badge ── */
.avatar-status {
  position: absolute;
  bottom: 4px;
  right: -4px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 5px 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  z-index: 10;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.avatar-status-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
  animation: blink 1.8s ease-in-out infinite;
}

/* Dark mode glow boost */
[data-theme="dark"] .avatar::before {
  background: radial-gradient(circle, rgba(0, 102, 255, 0.22) 0%, transparent 68%);
}

[data-theme="dark"] .avatar img {
  box-shadow:
    0 0 0 3px rgba(0, 102, 255, 0.4),
    0 0 40px rgba(0, 102, 255, 0.2);
}

[data-theme="dark"] .orbit-ring-dashed {
  border-color: rgba(0, 102, 255, 0.4);
}

/* ==========================================
   HERO TEXT
   ========================================== */

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.hero-text {
  width: 100%;
  max-width: 540px;
  min-width: 0;
}

.hero-title {
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  overflow-wrap: break-word;
  font-weight: 700;
}

.hero-role {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

.hero-tagline {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-top: 0.5rem;
}

.hero-cta .btn { width: 100%; }

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before { width: 300px; height: 300px; }

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(0, 102, 255, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/* ==========================================
   SECTION COMMON
   ========================================== */

section { padding: var(--spacing-xl) 0; }

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-label {
  display: inline-block;
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

.about { background: var(--bg-secondary); }

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

.about-images {
  width: 100%;
  max-width: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-image-main {
  grid-column: 1 / -1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 320px;
}

.about-image-main .about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform var(--transition-slow);
  display: block;
}

.about-image-main:hover .about-img { transform: scale(1.04); }

.about-image-secondary {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 150px;
}

.about-image-secondary .about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform var(--transition-slow);
  display: block;
}

.about-image-secondary:hover .about-img { transform: scale(1.04); }

.about-text {
  width: 100%;
  max-width: 480px;
}

.about-description {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.85;
  font-size: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.stat-item { text-align: center; }

.stat-number {
  display: block;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.35rem;
  line-height: 1;
}

.stat-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.4;
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.project-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image img { transform: scale(1.07); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  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: 1rem; }

.project-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.project-link:hover {
  background: var(--accent-primary);
  color: white;
  transform: scale(1.1);
}

.project-info { padding: 1.5rem; }

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.35rem 0.8rem;
  background: var(--bg-accent);
  color: var(--text-accent);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

/* ==========================================
   SKILLS SECTION
   ========================================== */

.skills { background: var(--bg-secondary); }

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.skill-category {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.skill-category:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.category-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  color: var(--accent-primary);
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill-name { font-weight: 600; font-size: 0.95rem; }
.skill-percent { color: var(--text-secondary); font-size: 0.9rem; }

.skill-bar {
  height: 8px;
  background: var(--bg-accent);
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 10px;
  animation: progressBar 1.5s ease;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group { position: relative; }

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-input::placeholder { color: var(--text-secondary); }

textarea.form-input {
  resize: vertical;
  min-height: 150px;
}

.form-error {
  display: none;
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.form-error.active { display: block; }

.form-success {
  display: none;
  padding: 1rem;
  background: #d4edda;
  color: #155724;
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.form-success.active { display: block; }
.btn-submit { width: 100%; margin-top: 0.5rem; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
}

.social-link:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  background: var(--bg-secondary);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-content { text-align: center; }
.footer-logo { margin-bottom: 1rem; }

.footer-logo .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-text { color: var(--text-secondary); font-size: 0.9rem; }

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
@keyframes spin-fast {
  to { transform: rotate(360deg); }
}
@keyframes spin-medium {
  to { transform: rotate(360deg); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50%       { opacity: 1;    transform: scale(1.07); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes progressBar {
  from { width: 0; }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
  .avatar, .avatar img { transition: none; }
  .orbit-ring-dashed,
  .orbit-arc,
  .orbit-dot,
  .orbit-dot-2,
  .avatar::before { animation: none; }
}

/* ==========================================
   TABLET (640px+)
   ========================================== */

@media (min-width: 640px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid   { grid-template-columns: repeat(2, 1fr); }

  .hero-cta {
    flex-direction: row;
    justify-content: center;
    width: auto;
  }
  .hero-cta .btn { width: auto; }
}

/* ==========================================
   TABLET LARGE (768px+)
   ========================================== */

@media (min-width: 768px) {
  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
    align-items: center;
    gap: 4rem;
  }

  .hero-image { order: 2; justify-content: flex-end; }
  .hero-text  { order: 1; max-width: 100%; }
  .hero-cta   { justify-content: flex-start; }

  .about-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
  }

  .about-images     { max-width: 380px; flex-shrink: 0; }
  .about-image-main { height: 300px; }
  .about-image-secondary { height: 155px; }
  .about-text       { max-width: 100%; flex: 1; }

  .contact-content {
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
  }

  .nav-menu {
    position: static;
    flex-direction: row;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    border: none;
    overflow: visible;
  }

  .nav-toggle { display: none !important; }
}

/* ==========================================
   DESKTOP (1024px+)
   ========================================== */

@media (min-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .skills-grid   { grid-template-columns: repeat(3, 1fr); }

  .about-images         { max-width: 440px; }
  .about-image-main     { height: 340px; }
  .about-image-secondary { height: 170px; }
  .stat-number          { font-size: 2.5rem; }
}

/* ==========================================
   MOBILE ONLY (max 767px)
   ========================================== */

@media (max-width: 767px) {
  section { padding: var(--spacing-lg) 0; }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100dvh - var(--nav-height));
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    transition: left var(--transition-base);
    border-top: 1px solid var(--border-color);
    overflow-y: auto;
  }

  .nav-menu.active { left: 0; }
  .nav-toggle      { display: flex; }

  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg)  translate(7px, 7px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

  .about-content    { align-items: center; }
  .about-images     { max-width: 100%; }
  .about-image-main { height: 320px; }
  .about-image-secondary { height: 140px; }
  .about-stats      { gap: 0.75rem; }
}

/* ==========================================
   SMALL MOBILE (max 480px)
   ========================================== */

@media (max-width: 480px) {
  .container     { padding: 0 1rem; }
  .nav-container { padding: 0 1rem; }

  .hero-cta      { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }

  .about-images          { grid-template-columns: 1fr; }
  .about-image-main      { height: 280px; }
  .about-image-secondary { height: 160px; }
  .project-image         { height: 190px; }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.text-center { text-align: center; }

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }