/* ==================== RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  /* Vibrant cosmic palette */
  --bg1: #0f172a; /* deep indigo */
  --bg2: #38105a; /* violet plum */
  --bg3: #0a6560; /* teal */
  --bg4: #1d3a6b; /* sapphire */
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #64ffda;
  --accent-2: #00d4aa;
  --glass: rgba(100,255,218,0.06);
  --glass-strong: rgba(100,255,218,0.12);
  --stroke: rgba(100,255,218,0.16);
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  /* animated gradient background */
  background: linear-gradient(-45deg, var(--bg1), var(--bg2), var(--bg3), var(--bg4));
  background-size: 400% 400%;
  animation: gradientShift 22s ease infinite;
  min-height: 100vh;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Show default cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto !important; }
  .cursor-dot, .cursor-outline { display: none !important; }
}

/* ==================== CUSTOM CURSOR ==================== */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s ease, opacity 0.3s ease;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(100,255,218,.35);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.1s ease, opacity 0.3s ease;
  transform: translate(-50%, -50%);
}

/* ==================== NAVIGATION ==================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15,15,35,.55);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stroke);
  z-index: 1000;
  transition: all .3s ease;
}

.navbar.scrolled {
  background: rgba(15,15,35,.85);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .5px;
}

.logo-text { color: var(--text); }
.logo-accent { color: var(--accent); }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  position: relative;
  transition: color .3s ease;
  padding: 0.5rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 15px rgba(100,255,218,.4);
  transition: all .3s ease;
  transform: translateX(-50%);
}

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

.nav-link:hover::after,
.nav-link.active::after { 
  width: 80%; 
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
}

.bar {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: .3s;
  border-radius: 2px;
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

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

.floating-shapes {
  position: absolute;
  inset: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(100,255,218,.25), rgba(0,0,0,0));
  filter: blur(1px);
  animation: float 7s ease-in-out infinite;
}

.shape-1 { width: 90px; height: 90px; top: 18%; left: 10%; animation-delay: 0s; }
.shape-2 { width: 70px; height: 70px; top: 62%; right: 12%; animation-delay: 1.6s; }
.shape-3 { width: 120px; height: 120px; bottom: 12%; left: 18%; animation-delay: 3s; }
.shape-4 { width: 50px; height: 50px; top: 12%; right: 32%; animation-delay: .8s; }
.shape-5 { width: 85px; height: 85px; top: 42%; left: 6%; animation-delay: 2.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-18px) rotate(180deg); }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  animation: slideInLeft 1s ease-out;
}

.hero-title {
  margin-bottom: 2rem;
}

.title-line {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .5rem;
  letter-spacing: .6px;
}

.title-name {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: .5px;
  margin-bottom: 0.5rem;
}

.title-role {
  display: block;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--muted);
  min-height: 2rem;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  margin: 1.5rem 0 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: .3px;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0f0f23;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(100,255,218,.35);
}

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

.btn-secondary:hover {
  background: rgba(100,255,218,.12);
  transform: translateY(-3px);
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(100,255,218,.12);
  color: var(--accent);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: auto auto 0 -100%;
  width: 120%;
  height: 120%;
  transform: rotate(45deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: .5s;
}

.social-link:hover {
  background: var(--accent);
  color: #0f0f23;
  transform: translateY(-3px);
}

.social-link:hover::before {
  left: 100%;
}

.hero-image {
  display: flex;
  justify-content: center;
  animation: slideInRight 1s ease-out;
}

.profile-card {
  position: relative;
  text-align: center;
}

.profile-image {
  position: relative;
  width: clamp(200px, 25vw, 300px);
  height: clamp(200px, 25vw, 300px);
  margin-bottom: 1.2rem;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--accent);
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}

.profile-border {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* ==================== SECTIONS & TITLES ==================== */
section {
  padding: 4rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: .5px;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 1rem auto 0;
}

/* ==================== ABOUT ==================== */
.about {
  background: rgba(15,15,35,.45);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-card {
  background: var(--glass);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  box-shadow: 0 8px 25px rgba(0,0,0,.25);
}

.about-card h3 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.about-card p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--glass-strong);
  border-radius: 12px;
  border: 1px solid var(--stroke);
  transition: transform .3s ease, background .3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  background: rgba(100,255,218,.18);
}

.stat-item h4 {
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: 900;
  margin-bottom: .3rem;
}

.stat-item p {
  color: var(--muted);
  font-size: .85rem;
}

.about-features {
  display: grid;
  gap: 1rem;
}

.feature-card {
  background: var(--glass);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: auto -40% -40% auto;
  width: 120px;
  height: 120px;
  filter: blur(25px);
  background: radial-gradient(closest-side, rgba(100,255,218,.2), transparent);
  transition: opacity .3s ease;
  opacity: 0;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--glass-strong);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}

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

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0f0f23;
  font-size: 1.3rem;
}

.feature-card h4 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: .5rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==================== SKILLS ==================== */
.skills {
  padding: 5rem 0;
}

.skills-container {
  display: grid;
  gap: 2rem;
}

.skills-category {
  background: var(--glass);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--stroke);
}

.skills-category h3 {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: .5px;
}

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

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .6rem;
  padding: 1.2rem;
  background: var(--glass-strong);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

.skill-item:hover {
  transform: translateY(-6px) scale(1.02);
  background: rgba(100,255,218,.18);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.skill-item i {
  font-size: 2rem;
  color: var(--accent);
  transition: transform .3s ease;
}

.skill-item span {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

/* ==================== PROJECTS ==================== */
.projects {
  background: rgba(15,15,35,.45);
  padding: 5rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  isolation: isolate;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: -40% auto auto -40%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(35px);
  background: radial-gradient(closest-side, rgba(100,255,218,.15), transparent);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: -1;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}

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

.project-image {
  height: 180px;
  background: linear-gradient(135deg, rgba(100,255,218,.1), rgba(0,212,170,.1));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.project-overlay {
  display: flex;
  gap: 1rem;
  opacity: 0;
  transition: opacity .3s ease;
}

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

.project-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  background: var(--accent);
  color: #0f0f23;
  transition: transform .2s ease;
}

.project-link:hover {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
}

.project-category {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .6rem;
}

.project-content h3 {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: .6rem;
  line-height: 1.3;
}

.project-content p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.tech-tag {
  background: rgba(100,255,218,.1);
  color: var(--accent);
  padding: .3rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  border: 1px solid rgba(100,255,218,.25);
}

/* ==================== ACHIEVEMENTS ==================== */
.achievements {
  padding: 5rem 0;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.achievement-card {
  background: var(--glass);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

.achievement-card:hover {
  transform: translateY(-4px);
  background: var(--glass-strong);
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}

.achievement-icon {
  width: 65px;
  height: 65px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0f0f23;
  font-size: 1.8rem;
}

.achievement-content h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: .4rem;
  line-height: 1.3;
}

.achievement-content p {
  color: var(--muted);
  margin-bottom: .5rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.achievement-date {
  color: var(--accent);
  font-weight: 700;
  font-size: .85rem;
}

/* ==================== CONTACT ==================== */
.contact {
  background: rgba(15,15,35,.45);
  padding: 5rem 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2.5rem;
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.contact-card {
  text-align: center;
  background: var(--glass);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid var(--stroke);
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  background: var(--glass-strong);
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0f0f23;
  font-size: 1.2rem;
}

.contact-card h4 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: .3rem;
}

.contact-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-form {
  background: var(--glass);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--stroke);
}

.form-group {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group:first-child {
  grid-template-columns: 1fr 1fr;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(100,255,218,.2);
  background: rgba(100,255,218,.08);
  color: var(--text);
  font-size: .95rem;
  transition: all .25s ease;
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(100,255,218,.12);
}

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

/* ==================== FOOTER ==================== */
.footer {
  background: rgba(15,15,35,.7);
  padding: 1.5rem 0;
  border-top: 1px solid var(--stroke);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-text p {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color .25s ease;
  font-size: 0.9rem;
}

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

/* ==================== ANIMATIONS ==================== */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .container {
      padding: 0 1.5rem;
  }
  
  .hero-content {
      gap: 2rem;
  }
  
  .about-content {
      gap: 1.5rem;
  }
  
  .contact-content {
      gap: 2rem;
  }
}

/* Tablets */
@media (max-width: 768px) {
  /* Navigation */
  .nav-container {
      height: 60px;
      padding: 0 1rem;
  }
  
  .nav-menu {
      position: fixed;
      left: -100%;
      top: 60px;
      flex-direction: column;
      background: rgba(15,15,35,.95);
      width: 100%;
      text-align: center;
      transition: .3s;
      padding: 2rem 0;
      backdrop-filter: blur(12px);
      border-top: 1px solid var(--stroke);
  }
  
  .nav-menu.active {
      left: 0;
  }
  
  .nav-toggle {
      display: flex;
  }
  
  .nav-toggle.active .bar:nth-child(1) {
      transform: rotate(-45deg) translate(-4px, 4px);
  }
  
  .nav-toggle.active .bar:nth-child(2) {
      opacity: 0;
  }
  
  .nav-toggle.active .bar:nth-child(3) {
      transform: rotate(45deg) translate(-4px, -4px);
  }
  
  body.nav-open {
      overflow: hidden;
  }
  
  /* Hero */
  .hero {
      padding-top: 60px;
      min-height: 90vh;
  }
  
  .hero-content {
      grid-template-columns: 1fr;
      gap: 2rem;
      text-align: center;
  }
  
  .hero-buttons {
      justify-content: center;
      gap: 0.8rem;
  }
  
  .btn {
      padding: 0.8rem 1.3rem;
      font-size: 0.85rem;
  }
  
  /* About */
  .about-content {
      grid-template-columns: 1fr;
      gap: 1.5rem;
  }
  
  .stats-grid {
      grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
      gap: 0.8rem;
  }
  
  /* Skills */
  .skills-grid {
      grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
      gap: 0.8rem;
  }
  
  /* Projects */
  .projects-grid {
      grid-template-columns: 1fr;
      gap: 1.2rem;
  }
  
  /* Achievements */
  .achievement-card {
      flex-direction: column;
      text-align: center;
      gap: 1rem;
  }
  
  /* Contact */
  .contact-content {
      grid-template-columns: 1fr;
      gap: 2rem;
  }
  
  .form-group:first-child {
      grid-template-columns: 1fr;
  }
  
  /* Sections */
  section {
      padding: 3rem 0;
  }
  
  .section-header {
      margin-bottom: 2rem;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .container {
      padding: 0 1rem;
  }
  
  /* Hero */
  .hero-description {
      font-size: 0.95rem;
  }
  
  .hero-buttons {
      flex-direction: column;
      align-items: center;
      gap: 0.8rem;
  }
  
  .btn {
      width: 100%;
      max-width: 250px;
      justify-content: center;
  }
  
  .social-links {
      justify-content: center;
  }
  
  /* Profile image */
  .profile-image {
      width: 200px;
      height: 200px;
  }
  
  /* Stats */
  .stats-grid {
      grid-template-columns: 1fr;
      gap: 0.6rem;
  }
  
  .stat-item {
      padding: 0.8rem;
  }
  
  /* Skills */
  .skills-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.8rem;
  }
  
  .skill-item {
      padding: 1rem;
  }
  
  .skill-item i {
      font-size: 1.5rem;
  }
  
  /* Footer */
  .footer-content {
      flex-direction: column;
      text-align: center;
      gap: 1rem;
  }
  
  .footer-links {
      justify-content: center;
  }
  
  /* Form adjustments */
  .contact-form {
      padding: 1.5rem;
  }
  
  .form-group input,
  .form-group textarea {
      padding: 0.9rem;
      font-size: 0.9rem;
  }
  
  /* Cards */
  .about-card,
  .contact-card,
  .feature-card {
      padding: 1.2rem;
  }
  
  .skills-category {
      padding: 1.5rem;
  }
  
  .project-content {
      padding: 1.2rem;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .container {
      padding: 0 0.8rem;
  }
  
  .profile-image {
      width: 160px;
      height: 160px;
  }
  
  .btn {
      padding: 0.7rem 1rem;
      font-size: 0.8rem;
  }
  
  .social-link {
      width: 40px;
      height: 40px;
      font-size: 1rem;
  }
  
  .achievement-icon,
  .contact-icon,
  .feature-icon {
      width: 45px;
      height: 45px;
      font-size: 1.1rem;
  }
}

/* High resolution displays */
@media (min-width: 1200px) {
  .container {
      max-width: 1400px;
      padding: 0 2rem;
  }
  
  .hero-content {
      gap: 4rem;
  }
  
  .about-content {
      gap: 3rem;
  }
  
  .contact-content {
      gap: 3rem;
  }
}
