:root {
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --accent-dark: #0891b2;
  --text: #f1f5f9;
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --card-bg: rgba(30, 41, 59, 0.6);
  --border: rgba(51, 65, 85, 0.5);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.3);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  min-height: 100vh;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: radial-gradient(ellipse at top, #1e293b 0%, #0f172a 50%, #020617 100%);
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(8, 145, 178, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.bg-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-decoration::before,
.bg-decoration::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float-slow 20s ease-in-out infinite;
}

.bg-decoration::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  top: -250px;
  right: -250px;
  animation-delay: 0s;
}

.bg-decoration::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
  bottom: -200px;
  left: -200px;
  animation-delay: 10s;
}

@keyframes float-slow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

main {
  padding: 10rem 0 4rem;
  position: relative;
  z-index: 1;
}

section {
  padding: 4rem 0;
  position: relative;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

header {
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-brand h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profession {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-links a:hover::before {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger-line {
  width: 2rem;
  height: 3px;
  background: var(--text);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.profile-overlay {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  z-index: 1000;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  background: rgba(30, 41, 59, 0.1);
}

.profile-overlay:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(6, 182, 212, 0.5);
  border-color: var(--accent-light);
}


.card {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.hero {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 0;
  color: var(--text-light);
  line-height: 1.8;
  text-align: left;
  max-width: none;
}

.skills {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 3rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.skills::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.skills h3 {
  color: var(--accent);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.projects {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 3rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}


.tech-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.badge {
  background: rgba(6, 182, 212, 0.1);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  border: 1px solid rgba(6, 182, 212, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.2), transparent);
  transition: left 0.6s;
}

.badge:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-md), 0 0 20px rgba(6, 182, 212, 0.3);
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
}

.badge:hover::before {
  left: 100%;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  min-height: 350px;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 30px rgba(6, 182, 212, 0.2);
  border-color: var(--accent);
}

.project-card:hover::before {
  transform: scaleX(1);
}

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

.project-card > * {
  margin-bottom: 0;
}

.project-card h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  letter-spacing: -0.02em;
}

.project-card h3::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width 0.3s ease;
}

.project-card:hover h3::after {
  width: 100%;
}

.project-card p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 1.5rem;
  min-height: 4rem;
  font-weight: 400;
}

.project-card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.tech-tag {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-light);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tech-tag:hover {
  transform: translateY(-3px) scale(1.08);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4), 0 0 20px rgba(6, 182, 212, 0.3);
  border-color: var(--accent-light);
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  flex-shrink: 0;
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 120px;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
  box-shadow: var(--shadow-sm), 0 0 15px rgba(6, 182, 212, 0.2);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(6, 182, 212, 0.4);
}

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

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn.disabled:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.btn.disabled::before {
  display: none;
}

.contact {
  text-align: center;
  position: relative;
  padding-top: 2rem;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.contact-info {
  max-width: 600px;
  margin: 0 auto;
}

.contact-info p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.05);
  border: 2px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.social-icon:hover {
  color: var(--accent-light);
  border-color: var(--accent);
  background: rgba(6, 182, 212, 0.15);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

footer {
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 8rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    align-items: flex-start;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
    margin-bottom: 1rem;
  }

  .nav-links a {
    font-size: 1.5rem;
    padding: 0.75rem 0;
    display: block;
    width: 100%;
  }

  .nav-links a::before {
    height: 3px;
  }

  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .container { padding: 0 1.25rem; }
  section::before {
    left: 1.25rem;
    right: 1.25rem;
  }
  main { padding-top: 8rem; }
  .profile-overlay { width: 75px; height: 75px; top: 1rem; right: 1rem; }
  header {
    padding: 1.25rem 0;
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-brand h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }
  .profession { font-size: 0.9rem; }
  h2 { font-size: 1.75rem; margin-bottom: 1.75rem; }
  h3 { font-size: 1.2rem; }
  .hero { padding: 2rem; margin-bottom: 2rem; border-radius: 16px; }
  .hero p { font-size: 1rem; line-height: 1.75; }
  .skills { padding: 2rem; margin-top: 2.5rem; border-radius: 16px; }
  .skills h3 { font-size: 1.4rem; margin-bottom: 1.75rem; padding-bottom: 1rem; }
  .projects { padding: 2rem; border-radius: 16px; }
  .tech-badges { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
  .badge { padding: 0.7rem 0.9rem; font-size: 0.85rem; }
  .projects-grid { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.75rem; }
  .project-card { padding: 2rem; min-height: 300px; border-radius: 16px; }
  .project-card h3 { font-size: 1.3rem; margin-bottom: 1.25rem; }
  .project-card p { font-size: 0.95rem; margin-bottom: 1.25rem; min-height: 3.5rem; line-height: 1.6; }
  .tech-tag { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
  .project-links { flex-direction: row; gap: 0.75rem; margin-top: auto; flex-wrap: wrap; }
  .btn { padding: 0.7rem 1.5rem; font-size: 0.9rem; min-width: 110px; }
  .contact { padding-top: 2rem; }
  .contact-info p { font-size: 1.15rem; margin-bottom: 1.5rem; }
  .social-links { gap: 1rem; }
  .social-icon { width: 2.75rem; height: 2.75rem; }
  .social-icon svg { width: 22px; height: 22px; }
  footer { padding: 1.75rem 0; }
  footer p { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.1rem;
  }


  .container { padding: 0 1rem; }
  section::before {
    left: 1rem;
    right: 1rem;
  }
  section { padding: 2.5rem 0; }
  main { padding-top: 7rem; }
  .profile-overlay { width: 65px; height: 65px; top: 0.75rem; right: 0.75rem; }
  header { padding: 1rem 0; }
  .nav-container { padding: 0 1rem; gap: 0.75rem; }
  .nav-brand h1 { font-size: 1.3rem; margin-bottom: 0.25rem; }
  .profession { font-size: 0.85rem; }
  .nav-links { gap: 0.75rem; }
  .nav-links a { font-size: 0.9rem; padding: 0.4rem 0; }
  h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
  h3 { font-size: 1.1rem; }
  .hero { padding: 1.5rem; margin-bottom: 1.5rem; border-radius: 14px; }
  .hero p { font-size: 0.95rem; line-height: 1.65; }
  .skills { padding: 1.5rem; margin-top: 2rem; border-radius: 14px; }
  .skills h3 { font-size: 1.25rem; margin-bottom: 1.5rem; padding-bottom: 0.75rem; }
  .projects { padding: 1.5rem; border-radius: 14px; }
  .tech-badges { grid-template-columns: repeat(auto-fit, minmax(85px, 1fr)); gap: 0.6rem; margin-top: 0.75rem; }
  .badge { padding: 0.6rem 0.75rem; font-size: 0.8rem; }
  .projects-grid { gap: 1.25rem; margin-top: 1.5rem; }
  .project-card { padding: 1.5rem; min-height: 280px; border-radius: 14px; }
  .project-card h3 { font-size: 1.15rem; margin-bottom: 1rem; }
  .project-card p { font-size: 0.9rem; margin-bottom: 1rem; min-height: 3rem; line-height: 1.55; }
  .tech-tag { padding: 0.35rem 0.7rem; font-size: 0.75rem; }
  .project-links { gap: 0.75rem; margin-top: auto; flex-direction: row; flex-wrap: wrap; }
  .btn { padding: 0.6rem 1.25rem; font-size: 0.85rem; min-width: 100px; }
  .contact { padding-top: 1.5rem; }
  .contact-info p { font-size: 1.05rem; margin-bottom: 1.25rem; word-break: break-word; }
  .social-links { gap: 0.85rem; }
  .social-icon { width: 2.5rem; height: 2.5rem; }
  .social-icon svg { width: 20px; height: 20px; }
  footer { padding: 1.5rem 0; }
  footer p { font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  section::before {
    left: 1rem;
    right: 1rem;
  }
  section { padding: 2.5rem 0; }
  main { padding-top: 7rem; }
  .profile-overlay { width: 65px; height: 65px; top: 0.5rem; right: 0.5rem; }
  header { padding: 1rem 0; }
  .nav-container { padding: 0 1rem; gap: 0.75rem; align-items: center; }
  .nav-brand h1 { font-size: 1.3rem; margin-bottom: 0.25rem; }
  .profession { font-size: 0.85rem; }
  .nav-links { gap: 0.75rem; }
  .nav-links a { font-size: 0.9rem; padding: 0.4rem 0; }
  h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
  h3 { font-size: 1.1rem; }
  .hero { padding: 1.5rem; margin-bottom: 1.5rem; border-radius: 14px; }
  .hero p { font-size: 0.95rem; line-height: 1.65; }
  .skills { padding: 1.5rem; margin-top: 2rem; border-radius: 14px; }
  .skills h3 { font-size: 1.25rem; margin-bottom: 1.5rem; padding-bottom: 0.75rem; }
  .projects { padding: 1.5rem; border-radius: 14px; }
  .tech-badges { grid-template-columns: repeat(auto-fit, minmax(85px, 1fr)); gap: 0.6rem; margin-top: 0.75rem; }
  .badge { padding: 0.6rem 0.75rem; font-size: 0.8rem; }
  .projects-grid { gap: 1.25rem; margin-top: 1.5rem; }
  .project-card { padding: 1.5rem; min-height: 280px; border-radius: 14px; }
  .project-card h3 { font-size: 1.15rem; margin-bottom: 1rem; }
  .project-card p { font-size: 0.9rem; margin-bottom: 1rem; min-height: 3rem; line-height: 1.55; }
  .tech-tag { padding: 0.35rem 0.7rem; font-size: 0.75rem; }
  .project-links { gap: 0.75rem; margin-top: auto; flex-direction: row; flex-wrap: wrap; }
  .btn { padding: 0.6rem 1.25rem; font-size: 0.85rem; min-width: 100px; }
  .contact { padding-top: 1.5rem; }
  .contact-info p { font-size: 1.05rem; margin-bottom: 1.25rem; word-break: break-word; }
  .social-links { gap: 0.85rem; }
  .social-icon { width: 2.5rem; height: 2.5rem; }
  .social-icon svg { width: 20px; height: 20px; }
  footer { padding: 1.5rem 0; }
  footer p { font-size: 0.85rem; }
}