:root {
  --bg: #181c24;
  --panel: #23283a;
  --accent1: #00e6ff;
  --accent2: #ff6bcb;
  --text: #f3f6fa;
  --muted: #b2b8c6;
}

* { 
  box-sizing: border-box; 
}

/* Base styles with better mobile defaults */
body {
  margin: 0;
  font-family: 'Fira Mono', 'Roboto Mono', monospace;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  padding-top: 60px;
  position: relative;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

section {
  margin: 4rem 0 2rem 0;
}

/* Hero */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent1) 30%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  opacity: 0;
  animation: hero-title-fadein 1.2s 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  letter-spacing: 1px;
  background-size: 200% auto;
  animation-name: hero-title-fadein, hero-gradient-move;
  animation-duration: 1.2s, 3s;
  animation-delay: 0.5s, 1.7s;
  animation-fill-mode: forwards, infinite;
  animation-iteration-count: 1, infinite;
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 1rem;
  color: var(--muted);
  opacity: 0;
  animation: hero-subtitle-fadein 1.2s 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  letter-spacing: 0.5px;
}

/* Animations */
@keyframes hero-title-fadein {
  0% { opacity: 0; transform: translateY(30px) scale(0.95);}
  100% { opacity: 1; transform: translateY(0) scale(1);}
}

@keyframes hero-gradient-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes hero-subtitle-fadein {
  0% { opacity: 0; transform: translateY(20px);}
  100% { opacity: 1; transform: translateY(0);}
}

/* Section Titles */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: 1px;
  line-height: 1.2;
}

.section-title.accent1 {
  color: var(--accent1);
}

.section-title.accent2 {
  color: var(--accent2);
}

/* About */
.about-section {
  margin: 4rem 0 2rem 0;
  position: relative;
  z-index: 2;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
}

.about-profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  animation: about-fade-in 1s 0.3s ease-out forwards;
}

.about-profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 4px solid var(--accent1);
  background: var(--panel);
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 0 var(--accent1),
    0 0 0 6px var(--panel),
    0 8px 32px rgba(0,230,255,0.2);
  animation: profile-border-anim 2.5s cubic-bezier(0.23, 1, 0.32, 1) 0.5s;
  animation-fill-mode: backwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-profile-img:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 0 0 var(--accent1),
    0 0 0 6px var(--panel),
    0 12px 40px rgba(0,230,255,0.3);
}

.about-name {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent1) 30%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.about-title {
  font-size: 1.2rem;
  color: var(--accent2);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.about-university {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.about-content {
  opacity: 0;
  animation: about-fade-in 1s 0.3s ease-out forwards;
}



.about-text {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  text-align: right;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.about-highlight {
  color: var(--accent2);
  font-weight: 600;
}

.about-details {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 40px auto 0 auto;
  padding: 0;
}

@media (max-width: 768px) {
  .about-details {
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
  }
}

.about-education,
.about-interests {
  background: linear-gradient(135deg, var(--panel) 0%, rgba(35, 40, 58, 0.8) 100%);
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 4px solid var(--accent1);
  position: relative;
  overflow: hidden;
}

.about-education::before,
.about-interests::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent1)20, transparent);
  border-radius: 0 12px 0 100%;
}

.about-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent1);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-section-icon {
  font-size: 1.4rem;
}

.about-education ul,
.about-interests ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-education li,
.about-interests li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  padding-left: 1.5rem;
}

.about-education li:last-child,
.about-interests li:last-child {
  border-bottom: none;
}

.about-education li::before {
  content: '🎓';
  position: absolute;
  left: 0;
  top: 0.8rem;
}

.about-interests li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0.8rem;
  color: var(--accent2);
  font-weight: bold;
}

.about-education strong {
  color: var(--accent2);
  font-weight: 600;
}

.about-gpa {
  color: var(--accent1);
  font-weight: 600;
  float: right;
}

@keyframes about-fade-in {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes profile-border-anim {
  0% {
    box-shadow:
      0 0 0 24px rgba(0,230,255,0.0),
      0 0 0 6px var(--panel),
      0 8px 32px rgba(0,230,255,0.0);
    opacity: 0;
    transform: scale(0.8) translateY(-30px);
  }
  60% {
    box-shadow:
      0 0 0 12px rgba(0,230,255,0.15),
      0 0 0 6px var(--panel),
      0 8px 32px rgba(0,230,255,0.15);
    opacity: 1;
    transform: scale(1.05) translateY(4px);
  }
  100% {
    box-shadow:
      0 0 0 0 var(--accent1),
      0 0 0 6px var(--panel),
      0 8px 32px rgba(0,230,255,0.2);
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Skills */
.skills-section {
  margin: 4rem 0 2rem 0;
  position: relative;
  z-index: 2;
}

/* Skills - Mobile optimized */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.skill-card {
  background: linear-gradient(120deg, #23283a 80%, #00e6ff11 100%);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  box-shadow: 0 2px 16px #00e6ff0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1.5px solid #23283a;
  transition: border 0.2s, box-shadow 0.2s, transform 0.2s;
  min-height: 160px;
}

.skill-card:hover {
  border: 1.5px solid var(--accent1);
  box-shadow: 0 4px 32px #00e6ff33;
  transform: translateY(-6px) scale(1.03);
  z-index: 2;
}

.skill-icon {
  font-size: 2.7rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: skill-icon-pop 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes skill-icon-pop {
  0% { transform: scale(0.7);}
  80% { transform: scale(1.15);}
  100% { transform: scale(1);}
}

.skill-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent1);
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: 0.5px;
}

.skill-desc {
  color: var(--muted);
  font-size: 1rem;
  text-align: center;
  line-height: 1.5;
}

.skills-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
  justify-content: center;
}

.skill-badge {
  background: linear-gradient(90deg, var(--accent1) 60%, var(--accent2) 100%);
  color: #181c24;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.18rem 0.7rem;
  margin: 0.1rem 0;
  opacity: 0.88;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 4px #00e6ff11;
  border: none;
  display: inline-block;
}

/* Experience */
.experience-section {
  margin: 4rem 0 2rem 0;
  position: relative;
  z-index: 2;
}

.experience-list {
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.experience-item {
  background: var(--panel);
  border-radius: 10px;
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px #00e6ff0a;
  border-left: 4px solid var(--accent1);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border 0.2s, box-shadow 0.2s;
}

.experience-item:last-child {
  margin-bottom: 0;
}

.experience-role {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent1);
  margin-bottom: 0.2rem;
}

.experience-org {
  color: var(--accent2);
  font-size: 1rem;
  font-weight: 500;
}

.experience-desc {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 0.2rem;
}

/* Projects */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.project-card {
  background: var(--panel);
  border-radius: 10px;
  padding: 1.5rem;
  width: 100%;
  box-shadow: 0 2px 8px #0002;
  transition: transform 0.18s, box-shadow 0.18s;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 8px 32px #00e6ff33, 0 2px 16px #ff6bcb22;
  z-index: 2;
}

.project-title {
  color: var(--accent2);
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}

.project-desc {
  color: var(--muted);
  font-size: 1rem;
}

.project-link {
  color: var(--accent1);
  text-decoration: none;
  font-weight: 600;
  margin-top: 0.7em;
  display: inline-block;
  border-radius: 4px;
  padding: 0.18em 0.9em 0.18em 0.7em;
  background: linear-gradient(90deg, #00e6ff22 60%, #ff6bcb22 100%);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 6px #00e6ff11;
}

.project-link:hover, .project-link:focus {
  background: linear-gradient(90deg, #ff6bcb33 60%, #00e6ff33 100%);
  box-shadow: 0 2px 12px #ff6bcb33;
}

.project-link-icon svg {
  color: var(--accent1);
  transition: color 0.18s;
}

/* Contact - Mobile optimized */
.contact-section-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  max-width: 100%;
  background: var(--panel);
  border-radius: 14px;
  box-shadow: 0 4px 32px #00e6ff11;
  padding: 1.5rem 1rem;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: center;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 7px;
  border: 1.5px solid #23283a;
  background: #20243a;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: border 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 6px #00e6ff11;
  touch-action: manipulation;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1.5px solid var(--accent1);
  outline: none;
  box-shadow: 0 2px 12px #00e6ff33;
}

.contact-form textarea {
  min-height: 90px;
  max-height: 220px;
  resize: vertical;
}

.contact-form button {
  background: linear-gradient(90deg, var(--accent1) 30%, var(--accent2) 100%);
  color: var(--bg);
  border: none;
  border-radius: 7px;
  padding: 0.8rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.18s;
  box-shadow: 0 2px 12px #00e6ff22;
  letter-spacing: 0.5px;
  touch-action: manipulation;
  min-height: 44px;
}

.contact-form button:hover, .contact-form button:focus {
  background: linear-gradient(90deg, var(--accent2) 30%, var(--accent1) 100%);
  color: #fff;
  box-shadow: 0 4px 24px #ff6bcb33;
}

.contact-note {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.03rem;
  text-align: center;
  letter-spacing: 0.2px;
}

    /* Bottom Navigation Styles */
    .bottom-navbar {
      position: fixed;
      bottom: 25px;
      left: 50%;
      transform: translateX(-50%);
      width: 50%;
      max-width: 320px;
      min-width: 250px;
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
      backdrop-filter: blur(25px);
      border: 1px solid rgba(255, 255, 255, 0.3);
      border-radius: 18px;
      padding: 8px 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 1000;
      box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08),
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
      transition: all 0.3s ease;
    }

    .bottom-navbar:hover {
      transform: translateX(-50%) translateY(-2px);
      box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }

    .nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-decoration: none;
      color: #555;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      padding: 6px 4px;
      border-radius: 12px;
      flex: 1;
      max-width: 50px;
      position: relative;
      overflow: hidden;
    }

    .nav-item::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      opacity: 0;
      border-radius: 12px;
      transform: scale(0.8);
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: -1;
    }

    .nav-item:hover::before,
    .nav-item.active::before {
      opacity: 0.15;
      transform: scale(1);
    }

    .nav-item:hover,
    .nav-item.active {
      color: #667eea;
      transform: translateY(-2px);
    }

    .nav-icon {
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    }

    .nav-item:hover .nav-icon,
    .nav-item.active .nav-icon {
      transform: scale(1.1) rotate(3deg);
      filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
    }

    /* Add padding to body to account for bottom navbar */
    body {
      padding-bottom: 80px;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
      .bottom-navbar {
        width: 80%;
        min-width: 230px;
        padding: 6px 12px;
      }
      
      .nav-item {
        padding: 5px 3px;
        max-width: 45px;
      }
    }

    /* Dark mode support */
    @media (prefers-color-scheme: dark) {
      .bottom-navbar {
        background: linear-gradient(145deg, rgba(28, 28, 30, 0.95), rgba(28, 28, 30, 0.85));
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 
          0 15px 35px rgba(0, 0, 0, 0.3),
          0 5px 15px rgba(0, 0, 0, 0.2),
          inset 0 1px 0 rgba(255, 255, 255, 0.1);
      }
      
      .bottom-navbar:hover {
        box-shadow: 
          0 20px 40px rgba(0, 0, 0, 0.4),
          0 8px 20px rgba(0, 0, 0, 0.3),
          inset 0 1px 0 rgba(255, 255, 255, 0.15);
      }
      
      .nav-item {
        color: #ccc;
      }
      
      .nav-item::before {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      }
      
      .nav-item:hover,
      .nav-item.active {
        color: #667eea;
      }
    }

    /* Custom scrollbar for better integration */
    ::-webkit-scrollbar {
      width: 8px;
    }

    ::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.1);
    }

    ::-webkit-scrollbar-thumb {
      background: linear-gradient(135deg, #667eea, #764ba2);
      border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(135deg, #764ba2, #667eea);
    }

/* Contact Social Section Styles */
.contact-social-section {
  margin-top: 40px;
  text-align: center;
}

.contact-social-section h3 {
  font-size: 1.4em;
  color: #667eea;
  margin-bottom: 25px;
  font-weight: 600;
}

.contact-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.contact-social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 12px 8px;
  border-radius: 8px;
  background: #2f3349;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  color: #ffffff;
  min-height: 60px;
  justify-content: center;
}

.contact-social-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 51, 73, 0.4);
}

.contact-social-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.contact-social-icon svg {
  width: 100%;
  height: 100%;
}

.contact-social-item:hover .contact-social-icon svg {
  transform: scale(1.1);
}

.contact-social-label {
  font-size: 10px;
  font-weight: 500;
  transition: color 0.3s ease;
  letter-spacing: 0.2px;
}

@media (max-width: 768px) {
  .contact-social-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 240px;
  }
  
  .contact-social-item {
    padding: 10px 6px;
    min-height: 50px;
  }
  
  .contact-social-icon {
    width: 16px;
    height: 16px;
  }
  
  .contact-social-label {
    font-size: 9px;
  }
}

/* Footer */
.footer {
  width: 100%;
  text-align: center;
  padding: 2rem 0 1rem 0;
  color: var(--muted);
  font-size: 1rem;
  background: none;
  margin-top: 3rem;
  border-top: 1px solid #23283a;
  letter-spacing: 0.5px;
}

.footer a {
  color: var(--accent1);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--accent2);
}

/* Background animations */
.bg-grid {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(90deg, #00e6ff22 1px, transparent 1px),
    linear-gradient(180deg, #ff6bcb22 1px, transparent 1px);
  background-size: 48px 48px;
  animation: grid-move 16s linear infinite;
}

@keyframes grid-move {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 48px 48px, 48px 48px; }
}

.bg-dots {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.bg-dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  animation: dot-float 7s linear infinite;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  filter: blur(0.5px);
}

@keyframes dot-float {
  0% { transform: translateY(0) scale(1);}
  50% { transform: translateY(-30px) scale(1.15);}
  100% { transform: translateY(0) scale(1);}
}

/* Responsive Design - Mobile First Approach */
@media (min-width: 480px) {
  body {
    padding-top: 70px;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }
  
  .contact-section-centered {
    max-width: 420px;
    padding: 2rem 1.5rem;
  }
}

@media (min-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  .navbar {
    padding: 0;
    height: 70px;
  }
  
  .navbar-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    padding: 0 1.5rem;
  }
  
  .navbar-logo {
    order: 0;
    font-size: 1.3rem;
  }
  
  .navbar-links {
    order: 0;
    gap: 2rem;
    margin-left: auto;
    margin-right: 2rem;
  }
  
  .navbar-link {
    font-size: 1rem;
    padding: 4px 0;
  }
  
  .navbar-socials {
    order: 0;
    gap: 1.2rem;
    margin-left: 0;
  }
  
  .navbar-cv-link {
    font-size: 0.95rem;
    padding: 0.4em 0.8em;
    margin-right: 1rem;
  }
  
  .navbar-social-link {
    width: 32px;
    height: 32px;
  }
  
  .navbar-social-link svg {
    width: 16px;
    height: 16px;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
  }
  
  .skill-card {
    padding: 2rem 1.2rem 1.5rem 1.2rem;
    min-height: 180px;
  }
}

@media (min-width: 900px) {
  .hero h1 { 
    font-size: 2.5rem; 
  }
  .hero h2 {
    font-size: 1.3rem;
  }
  .section-title {
    font-size: 1.9rem;
    margin-bottom: 2rem;
  }
  .projects-grid {
    max-width: 600px;
  }
  
  .navbar-links {
    gap: 2.5rem;
  }
  
  .navbar-cv-link {
    font-size: 0.97rem;
    padding: 0.45em 0.9em;
  }
}

@media (min-width: 1200px) {
  .hero h1 { 
    font-size: 3rem; 
  }
  .hero h2 {
    font-size: 1.5rem;
  }
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
  }
  .projects-grid {
    max-width: 800px;
  }
}

@media (max-width: 1024px) {
  .navbar-links {
    gap: 1.5rem;
  }
  
  .navbar-link {
    font-size: 0.95rem;
  }
  
  .navbar-cv-link {
    font-size: 0.9rem;
    padding: 0.35em 0.7em;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 140px;
  }
  
  .navbar {
    height: auto;
    min-height: 140px;
    padding: 1rem 0;
  }
  
  .navbar-container {
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .navbar-logo {
    font-size: 1.2rem;
    order: 1;
  }
  
  .navbar-links {
    order: 2;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .navbar-link {
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
  }
  
  .navbar-socials {
    order: 3;
    gap: 1rem;
    justify-content: center;
  }
  
  .navbar-cv-link {
    font-size: 0.85rem;
    padding: 0.4em 0.8em;
    margin-right: 0;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
  }
  
  .skill-card {
    padding: 2rem 1.2rem 1.5rem 1.2rem;
    min-height: 180px;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 160px;
  }
  
  .navbar {
    min-height: 160px;
    padding: 1.2rem 0;
  }
  
  .navbar-container {
    gap: 1.2rem;
  }
  
  .navbar-links {
    gap: 0.8rem;
  }
  
  .navbar-link {
    font-size: 0.85rem;
    padding: 0.3rem 0.4rem;
  }
  
  .navbar-cv-link {
    font-size: 0.8rem;
    padding: 0.4em 0.7em;
  }
  
  .navbar-social-link {
    width: 34px;
    height: 34px;
  }
  
  .navbar-social-link svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 767px) {
  body {
    padding-top: 140px;
  }
  
  .navbar {
    padding: 1rem 0;
  }
  
  .navbar-container {
    gap: 1rem;
  }
  
  .navbar-links {
    gap: 1rem;
  }
  
  .navbar-link {
    font-size: 0.9rem;
  }
  
  .navbar-cv-link {
    font-size: 0.85rem;
    padding: 0.4em 0.8em;
  }
}

/* Mobile specific fixes */
@media (max-width: 479px) {
  body {
    padding-top: 150px;
  }
  
  .navbar {
    padding: 1.2rem 0;
  }
  
  .navbar-container {
    gap: 1.2rem;
  }
  
  .navbar-links {
    gap: 0.8rem;
  }
  
  .navbar-link {
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
  }
  
  .navbar-cv-link {
    font-size: 0.8rem;
    padding: 0.4em 0.7em;
  }
  
  .navbar-social-link {
    width: 34px;
    height: 34px;
  }
  
  .hero {
    min-height: 50vh;
    padding: 1rem 0;
  }
  
  .hero h1 { 
    font-size: 1.8rem;
    line-height: 1.2;
  }
  
  .hero h2 {
    font-size: 1rem;
    margin-top: 0.8rem;
    line-height: 1.4;
  }
  
  .about-profile-img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
  }
  
  .about-name {
    font-size: 1.2rem;
    line-height: 1.3;
  }
  
  .about-title {
    font-size: 1rem;
  }
  
  .about-text {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
    padding: 0;
  }
  
  .section-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }
  
  .skill-card {
    padding: 1.2rem 1rem;
    min-height: 140px;
  }
  
  .skill-title {
    font-size: 1rem;
    line-height: 1.3;
  }
  
  .skill-desc {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .project-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .project-title {
    font-size: 1.1rem !important;
    line-height: 1.3;
  }
  
  .project-desc {
    font-size: 0.9rem !important;
    line-height: 1.5;
  }
  
  .experience-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .contact-section-centered {
    margin: 0 0.5rem;
    padding: 1.2rem 1rem;
    border-radius: 10px;
  }
  
  .contact-form input,
  .contact-form textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.8rem;
  }
  
  .contact-form button {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    width: 100%;
  }
  
  .footer {
    font-size: 0.9rem;
    padding: 1.5rem 1rem;
    text-align: center;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .container {
    padding: 0 0.8rem;
  }
  
  .hero h1 { 
    font-size: 1.6rem;
  }
  
  .hero h2 {
    font-size: 0.95rem;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .navbar-links {
    gap: 0.6rem;
  }
  
  .navbar-link {
    font-size: 0.8rem;
    padding: 0.25rem 0.4rem;
  }
  
  .navbar-cv-link {
    font-size: 0.75rem;
  }
  
  .skill-card {
    padding: 1rem 0.8rem;
  }
  
  .contact-section-centered {
    padding: 1rem 0.8rem;
  }
}

/* Touch improvements */
@media (pointer: coarse) {
  .navbar-link,
  .navbar-cv-link,
  .navbar-social-link,
  .project-link,
  .contact-form button {
    min-height: 44px;
    min-width: 44px;
  }
  
  .skill-card:hover,
  .project-card:hover {
    transform: none; /* Disable hover transforms on touch devices */
  }
}
