/* ========================
   CINEMATIC PORTFOLIO DESIGN
   Modern Developer Aesthetic
   ======================== */

/* === CSS Variables === */
:root {
  /* Colors */
  --bg-primary: #0a0e14;
  --bg-secondary: #111827;
  --bg-elevated: #1a2332;
  --surface: rgba(26, 35, 50, 0.6);
  --surface-solid: #1a2332;
  
  /* Accents */
  --accent-primary: #3b82f6;
  --accent-secondary: #06b6d4;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --accent-glow-strong: rgba(59, 130, 246, 0.5);
  
  /* Text */
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-tertiary: #6b7280;
  
  /* Borders */
  --border: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.05);
  
  /* Spacing */
  --section-spacing: 120px;
  --container-width: 1200px;
  --container-small: 800px;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  
  /* Transitions */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Global Reset === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'><path fill='%23FFF' stroke='%23FFFFFF' stroke-width='0.25' d='M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.35Z'/></svg>") 4 4, auto;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'><path fill='%23FFF' stroke='%23FFFFFF' stroke-width='0.25' d='M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.35Z'/></svg>") 4 4, pointer;
}

button,
.btn,
.nav-link,
.contact-card {
  cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'><path fill='%23FFF' stroke='%23FFFFFF' stroke-width='0.25' d='M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.35Z'/></svg>") 4 4, pointer;
}

button:hover,
.btn:hover {
  cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'><path fill='%23D1D5DB' stroke='%23D1D5DB' stroke-width='0.25' d='M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.35Z'/></svg>") 4 4, pointer;
}

/* === Layout Containers === */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

.section-dark {
  background: var(--bg-secondary);
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 32px;
  width: auto;
  transition: transform var(--transition-base);
}

.nav-brand:hover .brand-logo {
  transform: scale(1.05);
}

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

.nav-link {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-bottom: 6px;
}

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

.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
}

.nav-number {
  color: var(--accent-primary);
  font-weight: 500;
}

.nav-separator {
  color: var(--text-tertiary);
}

.nav-link-highlight {
  color: var(--text-primary);
  font-weight: 500;
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.6; transform: translateX(-50%) scale(1.1); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--border-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-secondary);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 48px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-tech {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow-strong);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

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

.btn:hover {
  animation: pulseGlow 1.6s ease-in-out infinite;
}

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

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 6px 24px var(--accent-glow);
  }
  50% {
    box-shadow: 0 10px 36px var(--accent-glow-strong);
  }
}

/* === Section Header === */
.section-header {
  margin-bottom: 64px;
}

.section-header.center {
  text-align: center;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-primary);
  font-weight: 500;
  text-transform: lowercase;
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

/* === About Section === */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-text {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base);
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-secondary);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 14px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === Expertise Section === */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.expertise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(8px);
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
}

.expertise-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.expertise-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 48px var(--accent-glow);
}

.expertise-icon {
  font-size: 48px;
  margin-bottom: 24px;
  display: block;
}

.expertise-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.expertise-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

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

.expertise-tags span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 4px 12px;
  border-radius: 6px;
}

/* === Portfolio Section === */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(8px);
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 32px;
  gap: 16px;
}

.project-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-secondary);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 6px 14px;
  border-radius: 6px;
  white-space: nowrap;
}

.project-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.project-detail {
  padding: 20px;
  background: rgba(10, 14, 20, 0.4);
  border-radius: 12px;
  border-left: 3px solid var(--accent-primary);
}

.detail-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
  font-weight: 600;
}

.project-detail p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.project-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tech span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 4px 12px;
  border-radius: 6px;
}

.btn-gallery {
  width: 100%;
  margin-top: 24px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid var(--accent-primary);
  color: var(--accent-secondary);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-gallery:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: var(--accent-secondary);
  transform: translateY(-2px);
}

/* === Gallery Modal === */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.gallery-modal.active {
  display: flex;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.gallery-container {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: slideUp 0.3s ease-out;
}

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

.gallery-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  font-size: 36px;
  color: white;
  cursor: pointer;
  padding: 0;
  transition: transform var(--transition-fast);
}

.gallery-close:hover {
  transform: scale(1.2);
}

.gallery-viewer {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: rgba(20, 20, 30, 0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.gallery-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gallery-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  justify-content: center;
}

.gallery-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: 8px;
  font-size: 24px;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: scale(1.1);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.gallery-counter {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.gallery-thumbnails {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-height: 100px;
  overflow-y: auto;
  padding: 8px;
}

.gallery-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid var(--border);
  overflow: hidden;
  transition: all var(--transition-fast);
  opacity: 0.6;
}

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

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
  border-color: var(--accent-primary);
  opacity: 1;
  transform: scale(1.05);
}

.gallery-caption {
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: center;
  font-style: italic;
  font-family: var(--font-mono);
  padding: 0 16px;
  max-width: 100%;
}

/* === Experience Section === */
.timeline {
  max-width: 800px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
}

.timeline-item {
  position: relative;
  padding-left: 48px;
  margin-bottom: 64px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all var(--transition-base);
}

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

.timeline-marker {
  position: absolute;
  left: -6px;
  top: 0;
  width: 14px;
  height: 14px;
  background: var(--accent-primary);
  border: 3px solid var(--bg-secondary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.timeline-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.timeline-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === Contact Section === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.contact-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.contact-icon {
  font-size: 32px;
}

.contact-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.contact-label {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.contact-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  backdrop-filter: blur(8px);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(10, 14, 20, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  transition: all var(--transition-base);
}

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

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* === Footer === */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

.footer-content {
  text-align: center;
}

.footer-content p {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  opacity: 0.6;
}

/* === Animations === */
.fade-in {
  animation: fadeIn 0.8s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.delay-1 {
  animation-delay: 0.2s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.delay-2 {
  animation-delay: 0.4s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.delay-3 {
  animation-delay: 0.6s;
  opacity: 0;
  animation-fill-mode: forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* === Responsive Design === */
@media (max-width: 1024px) {
  :root {
    --section-spacing: 80px;
  }
  
  .nav-links {
    gap: 24px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .about-stats {
    flex-direction: row;
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 60px;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 20px;
    padding: 16px 24px;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  
  .nav-link {
    font-size: 13px;
  }
  
  .hero {
    min-height: 80vh;
    padding-top: 120px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .about-stats {
    flex-direction: column;
  }
  
  .expertise-card {
    padding: 32px 24px;
  }
  
  .project-card {
    padding: 32px 24px;
  }
  
  .project-header {
    flex-direction: column;
    align-items: start;
  }
  
  .contact-form {
    padding: 32px 24px;
  }
  
  .timeline {
    margin-left: 0;
  }
  
  .timeline-item {
    padding-left: 32px;
  }

  .gallery-container {
    width: 95%;
    gap: 16px;
  }

  .gallery-close {
    top: -35px;
  }

  .gallery-viewer {
    aspect-ratio: auto;
    min-height: 300px;
  }

  .gallery-nav {
    gap: 16px;
    flex-wrap: wrap;
  }

  .gallery-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .gallery-counter {
    flex-basis: 100%;
  }

  .gallery-thumbnails {
    max-height: 80px;
  }

  .gallery-thumbnail {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .container,
  .container-small {
    padding: 0 16px;
  }
  
  .hero-badge {
    font-size: 11px;
    padding: 6px 12px;
  }
  
  .tech-badge {
    font-size: 11px;
    padding: 5px 12px;
  }
  
  .nav-number,
  .nav-separator {
    display: none;
  }
}
