/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.2), 0 0 40px rgba(59, 130, 246, 0.1); }
  50% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.3), 0 0 60px rgba(59, 130, 246, 0.15); }
}

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

/* ============================================
   ROOT VARIABLES & BASE STYLES
   ============================================ */

:root {
  --bg: #050812;
  --bg-secondary: #0a0f1f;
  --card: #0f1423;
  --card-border: #1a2344;
  --muted: #6b7494;
  --white: #e8eef5;
  --accent: #3b82f6;
  --accent-light: #1e3a8a;
  --success: #10b981;
  --max-width: 1100px;
  --nav-height: 68px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  --transition-slow: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 100%);
  color: var(--white);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 18, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  animation: fadeInUp 0.6s ease-out;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
  color: var(--white);
}

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

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============================================
   MAIN LAYOUT
   ============================================ */

main {
  padding-top: calc(var(--nav-height) + 40px);
  display: flex;
  justify-content: center;
  padding-bottom: 60px;
  min-height: 100vh;
}

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

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============================================
   MAIN LAYOUT
   ============================================ */

main {
  padding-top: calc(var(--nav-height) + 40px);
  display: flex;
  justify-content: center;
  padding-bottom: 60px;
  min-height: 100vh;
}

/* ============================================
   HERO / PROFILE SECTION
   ============================================ */

.hero-section {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 20px;
  box-sizing: border-box;
}

.profile-hero {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.08) 0%, 
    rgba(59, 130, 246, 0.02) 50%, 
    rgba(0, 0, 0, 0) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  margin-bottom: 20px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  overflow: hidden;
}

.profile-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.profile-avatar-wrapper {
  flex: 0 0 180px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.profile-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.3), 
              inset 0 0 40px rgba(59, 130, 246, 0.1);
  animation: glow 4s ease-in-out infinite;
  transition: var(--transition-slow);
}

.profile-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.4), 
              inset 0 0 60px rgba(59, 130, 246, 0.2);
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-info h1 {
  margin: 0 0 8px 0;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -1px;
}

.profile-info .role {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 12px 0 16px 0;
  letter-spacing: 0.5px;
}

.profile-info p {
  color: var(--muted);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.profile-info .bio {
  color: var(--muted);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 0;
}

/* ============================================
   SKILLS SECTION
   ============================================ */

.skills-hero {
  margin-bottom: 50px;
  animation: slideInUp 0.8s ease-out;
}

.skills-hero .section-title {
  margin-bottom: 28px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}

.interest-badge,
.skill-badge {
  background: linear-gradient(135deg, 
    rgba(20, 25, 41, 0.8), 
    rgba(30, 38, 66, 0.5));
  border: 1.5px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  cursor: pointer;
  animation: slideInUp 0.6s ease-out both;
  min-width: 112px;
  text-align: center;
}

.skill-badge {
  background: linear-gradient(135deg, 
    rgba(20, 25, 41, 0.9), 
    rgba(30, 38, 66, 0.6));
  border-color: rgba(59, 130, 246, 0.3);
}

.interest-badge:hover,
.skill-badge:hover {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.15) 0%, 
    rgba(59, 130, 246, 0.08) 100%);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.skill-badge:hover {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.2) 0%, 
    rgba(59, 130, 246, 0.1) 100%);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

/* ============================================
   CARDS SECTION (Experience, Education, etc.)
   ============================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.card {
  background: linear-gradient(135deg, 
    rgba(20, 25, 41, 0.6), 
    rgba(30, 38, 66, 0.2));
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px;
  animation: slideInUp 0.6s ease-out both;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(59, 130, 246, 0.3), 
    transparent);
}

.card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.08), 
    rgba(30, 38, 66, 0.3));
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.section-title {
  margin: 0 0 32px 0;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
}

.card-subtitle {
  margin: 0 0 12px 0;
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.card-title {
  margin: 0 0 8px 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.card-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.card-description {
  margin: 12px 0 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ============================================
   CONTACTS SECTION
   ============================================ */

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 12px 0 32px;
}

.contacts-shell {
  margin-top: 4px;
  margin-bottom: 28px;
}

.education-list {
  display: grid;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.08), 
    rgba(59, 130, 246, 0.02));
  border: 1.5px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  animation: slideInUp 0.8s ease-out both;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.contact-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.15), 
    rgba(59, 130, 246, 0.08));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-link:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.15), 
    rgba(59, 130, 246, 0.08));
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
}

.contact-icon {
  width: 1.6rem;
  height: 1.6rem;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  margin-right: 6px;
  filter: brightness(0) invert(1);
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.education-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 28px 28px 26px;
  border-color: rgba(59, 130, 246, 0.34);
  background: linear-gradient(135deg, rgba(10, 15, 31, 0.95), rgba(20, 25, 41, 0.78));
  overflow: hidden;
}

.education-card::before {
  height: 1px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.7), transparent);
}

.education-card::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 20px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #37d7ff;
  box-shadow: 0 0 0 6px rgba(55, 215, 255, 0.12), 0 0 18px rgba(55, 215, 255, 0.35);
}

.education-card::after,
.education-card::before,
.education-timeline {
  pointer-events: none;
}

.education-timeline {
  position: relative;
  width: 1px;
  align-self: stretch;
  margin-top: 12px;
  margin-left: 6px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.65), rgba(59, 130, 246, 0.08));
}

.education-main {
  position: relative;
  min-width: 0;
}

.education-year {
  margin: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8e8e93;
  font-family: 'Poppins', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.education-degree {
  margin: 10px 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.18;
}

.education-arrow {
  color: #37d7ff;
  margin-right: 10px;
  font-weight: 900;
}

.education-school {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #b7bfd1;
}

.education-description {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.education-side {
  align-self: start;
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
}

.education-location-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 210px;
  padding: 11px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(15, 20, 35, 0.92));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color: #d7d7dd;
  white-space: nowrap;
}

.education-location-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8e8e93;
}

.education-location-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
}

.education-location-icon {
  color: #37d7ff;
  font-family: monospace;
  font-size: 0.95rem;
  line-height: 1;
}


.education-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.education-highlights li {
  position: relative;
  padding-left: 14px;
  color: #aeb6ca;
  font-size: 0.86rem;
  line-height: 1.45;
}

.education-highlights li::before {
  content: '';
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.85);
}

/* ============================================
   CANVA PRESENTATIONS
   ============================================ */

.presentations-section {
  margin-top: 28px;
}

.presentations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.presentation-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: linear-gradient(135deg, rgba(10, 15, 31, 0.96), rgba(20, 25, 41, 0.82));
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  transition: var(--transition);
  animation: slideInUp 0.8s ease-out both;
}

.presentation-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.presentation-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(20, 25, 41, 0.9));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.presentation-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
  background: transparent;
}

.presentation-preview-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(5, 8, 18, 0), rgba(5, 8, 18, 0.9));
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.presentation-body {
  padding: 18px 18px 20px;
}

.presentation-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.presentation-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.presentation-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--white);
}

.presentation-link {
  display: inline-flex;
  flex: 0 0 auto;
  margin-top: 0;
  justify-content: flex-start;
  color: #7fc7ff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: right;
}

/* ============================================
   DETAILS SECTIONS (Tools, etc.)
   ============================================ */

.details-section {
  background: linear-gradient(135deg, rgba(20, 25, 41, 0.5), rgba(30, 38, 66, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
  animation: slideInUp 0.8s ease-out both;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex: 0 0 120px;
}

.detail-value {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 700;
  margin: 6px 0 0 0;
  word-break: break-word;
}

/* ============================================
   TOOLS/SKILLS LIST
   ============================================ */

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tools-list li {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.1), 
    rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}

.tools-list li:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.1);
}

/* ============================================
   PORTFOLIO LINKS
   ============================================ */

.portfolio-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.portfolio-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.08), 
    rgba(59, 130, 246, 0.02));
  border: 1.5px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
}

.portfolio-link:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.15), 
    rgba(59, 130, 246, 0.08));
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

/* ============================================
   ICON STYLES
   ============================================ */

.skill-icon {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.contact-icon {
  width: 2rem;
  height: 2rem;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.contact-icon[alt]:not(img[src]) {
  display: none;
}

/* ============================================
   RESPONSIVE DESIGN - TABLET LANDSCAPE (1024px+)
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --max-width: 960px;
    --nav-height: 60px;
  }

  .profile-info h1 {
    font-size: 2.2rem;
  }

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

  .cards-grid {
    gap: 20px;
  }

  .hero-section {
    padding: 0 20px;
  }
}

/* ============================================
   RESPONSIVE DESIGN - TABLET PORTRAIT (768px - 1024px)
   ============================================ */

@media (max-width: 900px) {
  :root {
    --max-width: 90%;
    --nav-height: auto;
  }

  /* Navigation */
  nav {
    height: auto;
    padding: 12px 0;
  }

  .nav-inner {
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .brand {
    font-size: 1.1rem;
  }

  /* Main Layout */
  main {
    padding-top: 140px;
    padding-bottom: 50px;
  }

  /* Hero Section */
  .profile-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    padding: 40px 30px;
    margin-bottom: 30px;
  }

  .profile-avatar-wrapper {
    flex: 0 0 auto;
  }

  .profile-info h1 {
    font-size: 2rem;
  }

  .profile-info .role {
    font-size: 1rem;
  }

  .profile-info p {
    font-size: 1rem;
  }

  .profile-info .bio {
    max-width: 100%;
    font-size: 0.95rem;
  }

  /* Skills Section */
  .skills-grid {
    justify-content: center;
    gap: 12px;
  }

  .skill-badge,
  .interest-badge {
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  /* Cards Grid */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card {
    padding: 24px;
  }

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

  .card-title {
    font-size: 1.15rem;
  }

  /* Education Cards */
  .education-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px;
  }

  .education-timeline {
    display: none;
  }

  .education-side {
    justify-content: flex-start;
  }

  /* Contacts Grid */
  .contacts-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
  }

  .contact-link {
    padding: 16px 14px;
  }

  /* Details Section */
  .details-section {
    padding: 28px;
    margin-bottom: 36px;
  }

  .detail-row {
    flex-direction: column;
    gap: 12px;
  }

  .detail-label {
    flex: 1 1 auto;
  }

  /* Hero Section Padding */
  .hero-section {
    padding: 0 18px;
  }

  /* Tools List */
  .tools-list {
    gap: 10px;
  }

  .tools-list li {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE LANDSCAPE (640px - 768px)
   ============================================ */

@media (max-width: 768px) {
  :root {
    --nav-height: auto;
  }

  /* Hide navigation on mobile landscape */
  nav {
    display: none;
    height: 0;
    padding: 0;
  }

  body {
    font-size: 13px;
    line-height: 1.4;
  }

  main {
    padding-top: 16px;
    padding-bottom: 45px;
  }

  .profile-info h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.3rem;
    margin-bottom: 24px;
  }

  .cards-grid {
    gap: 14px;
  }

  .card {
    padding: 18px;
  }

  .contact-icon {
    width: 1.4rem;
    height: 1.4rem;
  }

  .education-location-badge {
    min-width: auto;
  }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE (640px)
   ============================================ */

@media (max-width: 640px) {
  :root {
    --nav-height: auto;
  }

  /* Hide navigation on mobile */
  nav {
    display: none;
    height: 0;
    padding: 0;
  }

  .nav-inner {
    display: none;
  }

  body {
    font-size: 13px;
    line-height: 1.4;
  }

  /* Navigation */
  nav {
    height: auto;
    padding: 12px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  }

  .nav-inner {
    flex-direction: column;
    gap: 14px;
    padding: 14px 16px;
  }

  .brand {
    font-size: 1rem;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  /* Main Layout */
  main {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  /* Hero Section */
  .profile-hero {
    padding: 28px 18px;
    gap: 20px;
    margin-bottom: 24px;
    border-radius: 20px;
  }

  .profile-avatar {
    width: 140px;
    height: 140px;
    border-width: 2px;
  }

  .profile-avatar-wrapper {
    flex: 0 0 140px;
  }

  .profile-info h1 {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.15;
  }

  .profile-info .role {
    font-size: 1rem;
    margin: 10px 0 12px 0;
  }

  .profile-info p {
    font-size: 0.95rem;
  }

  .profile-info .bio {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* Section Titles */
  .section-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
  }

  .skills-hero {
    margin-bottom: 36px;
  }

  /* Skills Grid */
  .skills-grid {
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .skill-badge,
  .interest-badge {
    min-width: 100px;
    padding: 10px 14px;
    font-size: 0.8rem;
    border-radius: 10px;
  }

  /* Cards Grid */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 40px;
  }

  .card {
    padding: 18px;
    border-radius: 16px;
    animation: slideInUp 0.6s ease-out both;
  }

  .card-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .card-subtitle {
    font-size: 0.85rem;
  }

  .card-description {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* Education Cards */
  .education-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 18px 16px 20px;
  }

  .education-timeline {
    display: none;
  }

  .education-card::after {
    left: 14px;
    top: 20px;
    width: 8px;
    height: 8px;
  }

  .education-side {
    justify-content: flex-start;
    padding-top: 8px;
  }

  .education-degree {
    font-size: 1.15rem;
    margin: 8px 0 6px;
  }

  .education-school {
    font-size: 0.9rem;
  }

  .education-location-badge {
    min-width: 100%;
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .education-highlights {
    gap: 4px;
  }

  .education-highlights li {
    font-size: 0.8rem;
    padding-left: 12px;
  }

  /* Contacts Grid */
  .contacts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 10px 0 24px;
  }

  .contacts-shell {
    margin-top: 0;
    margin-bottom: 20px;
  }

  .contact-link {
    padding: 14px 10px;
    border-radius: 12px;
    min-height: 70px;
  }

  .contact-icon {
    width: 1.3rem;
    height: 1.3rem;
    margin-right: 4px;
  }

  .contact-label {
    font-size: 0.7rem;
    line-height: 1.1;
  }

  /* Details Section */
  .details-section {
    padding: 18px;
    margin-bottom: 28px;
    border-radius: 16px;
  }

  .detail-row {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
  }

  .detail-label {
    font-size: 0.75rem;
    flex: 1 1 auto;
  }

  .detail-value {
    font-size: 0.9rem;
    font-weight: 600;
  }

  /* Tools List */
  .tools-list {
    gap: 8px;
    flex-wrap: wrap;
  }

  .tools-list li {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
  }

  /* Portfolio Links */
  .portfolio-links {
    gap: 10px;
    margin-top: 10px;
  }

  .portfolio-link {
    padding: 12px;
    font-size: 0.8rem;
    flex: 1;
    min-width: calc(50% - 5px);
  }

  /* Hero Section */
  .hero-section {
    padding: 0 14px;
  }

  /* Touch-friendly adjustments */
  a, button, .contact-link, .card, .portfolio-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ============================================
   RESPONSIVE DESIGN - SMALL MOBILE (480px - 640px)
   ============================================ */

@media (max-width: 560px) {
  :root {
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 10px;
  }

  body {
    font-size: 12px;
  }

  main {
    padding-top: 16px;
  }

  .profile-avatar {
    width: 130px;
    height: 130px;
  }

  .profile-avatar-wrapper {
    flex: 0 0 130px;
  }

  .profile-info h1 {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.2rem;
    margin-bottom: 18px;
  }

  .skill-badge,
  .interest-badge {
    padding: 8px 12px;
    font-size: 0.75rem;
    min-width: 90px;
  }

  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .contact-link {
    padding: 12px 8px;
    min-height: 65px;
  }

  .portfolio-link {
    padding: 10px;
    font-size: 0.75rem;
  }

  .education-location-badge {
    font-size: 0.75rem;
  }
}

/* ============================================
   RESPONSIVE DESIGN - EXTRA SMALL MOBILE (420px)
   ============================================ */

@media (max-width: 420px) {
  :root {
    --radius-lg: 16px;
    --radius-md: 14px;
    --radius-sm: 8px;
  }

  body {
    font-size: 12px;
  }

  main {
    padding-top: 16px;
    padding-bottom: 35px;
  }

  /* Navigation */
  .nav-inner {
    padding: 12px 14px;
    gap: 12px;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links a {
    font-size: 0.8rem;
    padding: 6px 0;
  }

  .brand {
    font-size: 0.95rem;
  }

  /* Hero Section */
  .profile-hero {
    padding: 20px 14px;
    gap: 16px;
    margin-bottom: 20px;
  }

  .profile-avatar {
    width: 120px;
    height: 120px;
    border-width: 2px;
  }

  .profile-avatar-wrapper {
    flex: 0 0 120px;
  }

  .profile-info h1 {
    font-size: 1.4rem;
    font-weight: 900;
  }

  .profile-info .role {
    font-size: 0.9rem;
    margin: 8px 0 10px 0;
  }

  .profile-info p {
    font-size: 0.85rem;
  }

  .profile-info .bio {
    font-size: 0.85rem;
  }

  /* Section Titles */
  .section-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }

  .skills-hero {
    margin-bottom: 28px;
  }

  /* Skills Grid */
  .skills-grid {
    gap: 8px;
    justify-content: center;
  }

  .skill-badge,
  .interest-badge {
    padding: 8px 10px;
    font-size: 0.72rem;
    min-width: 80px;
  }

  /* Cards */
  .card {
    padding: 14px;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-subtitle {
    font-size: 0.8rem;
  }

  .card-meta {
    font-size: 0.8rem;
  }

  .card-description {
    font-size: 0.8rem;
  }

  /* Education Cards */
  .education-card {
    padding: 16px 16px 14px 18px;
    gap: 8px;
  }

  .education-card::after {
    left: 12px;
    top: 18px;
    width: 7px;
    height: 7px;
  }

  .education-degree {
    font-size: 1.05rem;
  }

  .education-school {
    font-size: 0.85rem;
  }

  .education-highlights li {
    font-size: 0.75rem;
    padding-left: 10px;
  }

  /* Contacts Grid */
  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .contact-link {
    padding: 10px 8px;
    min-height: 60px;
    border-radius: 10px;
  }

  .contact-icon {
    width: 1.2rem;
    height: 1.2rem;
  }

  .contact-label {
    font-size: 0.65rem;
  }

  /* Details Section */
  .details-section {
    padding: 16px;
    margin-bottom: 24px;
  }

  .detail-row {
    margin-bottom: 14px;
  }

  .detail-label {
    font-size: 0.7rem;
  }

  .detail-value {
    font-size: 0.85rem;
  }

  /* Tools List */
  .tools-list {
    gap: 6px;
  }

  .tools-list li {
    padding: 5px 10px;
    font-size: 0.75rem;
    border-radius: 6px;
  }

  /* Portfolio Links */
  .portfolio-link {
    padding: 8px;
    font-size: 0.7rem;
    min-width: calc(50% - 4px);
  }

  /* Hero Section */
  .hero-section {
    padding: 0 12px;
  }

  /* Touch adjustments */
  a, button, .contact-link, .card, .portfolio-link {
    min-height: 40px;
  }

  .portfolio-links {
    gap: 8px;
  }
}

/* ============================================
   RESPONSIVE DESIGN - ULTRA SMALL MOBILE (< 380px)
   ============================================ */

@media (max-width: 380px) {
  :root {
    --radius-lg: 12px;
    --radius-md: 10px;
    --radius-sm: 6px;
  }

  body {
    font-size: 11px;
  }

  main {
    padding-top: 14px;
  }

  .profile-avatar {
    width: 100px;
    height: 100px;
  }

  .profile-avatar-wrapper {
    flex: 0 0 100px;
  }

  .profile-info h1 {
    font-size: 1.25rem;
  }

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

  .skill-badge,
  .interest-badge {
    padding: 6px 8px;
    font-size: 0.7rem;
    min-width: 70px;
  }

  .card {
    padding: 12px;
  }

  .details-section {
    padding: 12px;
  }

  .profile-hero {
    padding: 16px 12px;
    gap: 12px;
  }

  .contacts-grid {
    gap: 6px;
  }

  .contact-link {
    padding: 8px 6px;
  }
}
