* {
  user-select: none;
}

body {
  font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
 margin: 0;
  overflow-x: hidden; /* Keep horizontal overflow hidden */
  background: rgb(0, 0, 0);
  position: relative;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  height: 100%;
  opacity: 0.8;
  pointer-events: none;
  animation: twinkle 2s infinite ease-in-out;
}

.stars,
.comets {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 0.3;
  }
}

.comet {
  position: fixed;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00faff;
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
  animation: cometMove 3.5s linear forwards;
}

@keyframes cometMove {
  0% {
    transform: translate(calc(-20vw), calc(-20vh)) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform: translate(calc(120vw), calc(120vh)) rotate(45deg);
    opacity: 0;
  }
}

.comet::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 2px;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(to left, #00eaffcc, transparent);
  border-radius: 50%;
}

.highlight-cycle span {
  animation: neon 2.5s infinite alternate;
}

@keyframes neon {
  0% { color:#00eaff; text-shadow:0 0 10px #00faff; }
  100% { color:#fff; text-shadow:0 0 0px transparent; }
}

/* 1. THE CONTAINER (Handles Position Only) */
/* It sits still, so the browser doesn't have to recalculate layout */
.astro-container {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 5%; /* Position from left */
    width: 380px; /* Width is handled here now */
    height: auto;
    z-index: 1;
    pointer-events: none;
    
    /* Center the container perfectly without animation interference */
    transform: translateY(-50%); 
}

/* 2. THE IMAGE (Handles Animation Only) */
/* It floats inside the container */
.hero-astronaut {
    width: 100%; /* Take full width of container */
    height: auto;
    display: block;
    
    /* The Animation - Purely GPU based */
    animation: floatAstro 6s ease-in-out infinite;
    
    /* Force GPU Rendering */
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

/* 3. THE ANIMATION (Simple & Clean) */
/* Since the container handles the centering, this just moves up/down */
@keyframes floatAstro {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        /* Move 10px Right, 20px Up */
        transform: translate3d(10px, -20px, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* =========================================
   RESPONSIVE UPDATES
   Target the CONTAINER width/left, not the image
   ========================================= */

@media (min-width: 1400px) {
    .astro-container {
        width: 420px;
        left: 7%;
    }
}

@media (max-width: 1300px) {
    .astro-container {
        width: 300px;
        left: -5%;
    }
}

@media (max-width: 768px) {
    /* Reset for mobile if needed, or hide */
    .astro-container {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 220px;
        margin: 0 auto 20px auto;
    }
}
/* Add this new rule for Desktop only */
@media (min-width: 1025px) {
  .hero-content {
    /* Pushes the text center 100px to the right to avoid the astronaut */
    margin-left: 180px; 
    position: relative;
    z-index: 2; /* Ensures text goes OVER the astronaut if they do touch */
  }
}

/* Responsive fix for laptops so images don't overlap */
/* Responsive updates for the new 'top' centering strategy */
@media (max-width: 1300px) {
    .hero-astronaut {
        width: 300px;
        left: -5%;
        /* Adjust centering for smaller image size */
        top: calc(50% - 150px); 
    }
}

.navbar {
  width: 100%;
  position: relative;
  padding: 20px 30px;
}

.logo {
  position: absolute;
  left: 30px;
  text-decoration: none;
  background: rgba(0, 255, 255, 0.08);
  color: #00faff;
  padding: 6px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(0, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
  z-index: 1001;
  transition: all 0.3s ease;
}
.logo:hover {
  background: rgba(0, 255, 255, 0.15);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
  transform: translateY(-2px);
}

.logo h1 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}


.logo:hover h1 {
  color: #fff;
  text-shadow: 0 0 10px #00faff;
}

.nav-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  display: flex;
  gap: 35px;
  margin: 0;
  padding: 10px 25px;
  background: rgba(0, 255, 255, 0.1);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
}

.nav-menu li {
  font-size: 15px;
  transition: 0.25s;
}

.nav-menu a {
  text-decoration: none;
  color: #00faff;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 10px;
  display: inline-block;
}

.nav-menu a:hover {
  color: #fff;
  text-shadow: 0 0 10px #00faff, 0 0 20px #00faff;
  transform: translateY(-2px);
}
.nav-menu a.active {
  color: #fff;
  text-shadow: 0 0 8px #00faff;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #00faff;
  transform: translateX(-50%);
  transition: width 0.3s ease;
  box-shadow: 0 0 5px #00faff;
}
.nav-menu a:hover::after {
  width: 80%;
}

section {
  width: 70%;
  margin-left: auto;
  margin-right: auto;
}

#about,
#skills {
  padding-top: 160px;
  padding-bottom: 160px;
  margin-top: 0; /* optional: cleanup */
  margin-bottom: 0;
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero {
    width: 100% !important; 
    max-width: 100vw;
    padding: 0;
    margin: 0;
    overflow: hidden; /* Prevents scrollbar if astro hangs off edge */
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Since hero is now 100%, we need to ensure text doesn't touch edges */
    max-width: 800px; 
    margin: 0 auto; /* Keeps text perfectly centered */
}

.hero-content h1 {
    /* font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif; */
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 4px;
  /* font-family: "Outfit", sans-serif; */
  font-weight: 700;
  z-index: 2;
  position: relative;
}

.name {
  color: #00faff;
  /* text-shadow: 0 0 12px #00faff; */
}

.hero-content h2 {
  font-size: 3rem;
  color: #fff;
  /* font-family: "Outfit", sans-serif; */
    font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  margin-top: 10px;
  margin-bottom: 12px;
  white-space: nowrap;
}

.hero-content h2 span {
  color: #00faff;
  /* text-shadow: 0 0 12px #00faff; */
}

.hero-content p {
  font-size: 1.2rem;
  color: #b7faff;
  margin-top: 6px; /* closer to tagline */
  margin-bottom: 18px; /* less space before icons */
}

.socials {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.socials .icon {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  text-decoration: none;
  border: 1.5px solid rgba(0, 255, 255, 0.4);
  background: rgba(0, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: #00faff;
  font-size: 1.3rem;
  transition: 0.3s ease;
}

.socials .icon i {
  font-size: 1.4rem;
   margin: 0;
}

.socials .icon:hover {
  background: rgba(0, 255, 255, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 0 15px #00faff, 0 0 30px #00faff80;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-in-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 5px;
  color: #fff;
  font-family: "Outfit", sans-serif;
}

.section-title span {
    font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #00faff;
  /* text-shadow: 0 0 12px #00faff; */
}

.underline {
  width: 85px;
  height: 3.5px;
  background: #00faff;
  margin: 0 auto 50px;
  border-radius: 3px;
  /* box-shadow: 0 0 10px #00faff; */
}

.about-container {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
}

/*** LEFT SIDE ***/
.about-text {
  font-family: "Outfit", sans-serif;
  width: 60%;
  color: #d0faff;
  font-size: 1.1rem;
}

.about-text .highlight {
  color: #00faff;
}

.list li {
  margin-bottom: 6px;
}

/*** RIGHT SIDE UI ***/
.about-info {
 width: 35%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.info-row {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 22px;
}

.info-card {
  flex: 1;
  padding: 20px 0;
  height: 110px;
  border-radius: 16px;
  width: 100%;
  height: 120px; /* Equal height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0,255,255,0.08);
  border: 1px solid rgba(0,255,255,0.25);
  backdrop-filter: blur(12px);
  text-align: center;
  color: #fff;
  transition: 0.25s;
}

.info-card:hover {
  box-shadow: 0 0 18px #00faff80;
  transform: translateY(-4px);
}

.info-card h4 {
  font-size: 1.1rem;
  color: #00faff;
  margin-bottom: 6px;
}

.info-card p {
  font-size: 0.9rem;
  color: #b7faff;
}

.connect-title {
  text-align: center;
  margin-bottom: -5px;
  color: #fff;
  font-size: 1.2rem;
  margin:10px;
}

/* Social Icons reused */
.about-socials {
  justify-content: center;
}

.resume-btn {
  width: fit-content;
  margin: 8px auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  background: linear-gradient(45deg, rgb(20, 222, 124) 0%, rgb(20, 222, 124) 21%,rgb(25, 190, 119) 21%, rgb(25, 190, 119) 37%,rgb(30, 158, 113) 37%, rgb(30, 158, 113) 46%,rgb(35, 126, 108) 46%, rgb(35, 126, 108) 53%,rgb(39, 94, 103) 53%, rgb(39, 94, 103) 59%,rgb(44, 62, 97) 59%, rgb(44, 62, 97) 77%,rgb(49, 30, 92) 77%, rgb(49, 30, 92) 100%);
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.resume-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 12px #00faff;
}

/* Tech Section */

.tech-grid {
 width: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  justify-items: center;
  padding: 20px 0 10px;
}

.skills p {
  color: #b7faff;
  font-size: 1.15rem;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 20px;
  font-family: "Outfit", sans-serif;
}

.tech-card {
  width: 160px;
  height: 150px;
  background: rgba(0,255,255,0.08);
  border: 1px solid rgba(0,255,255,0.25);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

.tech-card img {
  width: 55px;
}

.tech-card p {
  margin-top: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-family: "Outfit";
}

.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 14px #00faff80;
}

/* Buttons under tech cards */
.tech-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.tech-btn {
  background: rgba(0,255,255,0.1);
  border: 1px solid rgba(0,255,255,0.3);
  padding: 12px 22px;
  border-radius: 50px;
  color: #0ff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.3s;
}

.tech-btn:hover {
  background: rgba(0,255,255,0.3);
  transform: translateY(-4px);
}

.tech-card:hover {
  box-shadow: 0 0 18px #00faff, 0 0 30px #00faff80;
}

.projects-nav-btn {
  display: flex;
  justify-content: center;
  margin-top: -20px;
}

.btn-projects {
  padding: 12px 28px;
  border-radius: 30px;
  background: linear-gradient(45deg, rgb(20, 222, 124) 0%, rgb(20, 222, 124) 21%,rgb(25, 190, 119) 21%, rgb(25, 190, 119) 37%,rgb(30, 158, 113) 37%, rgb(30, 158, 113) 46%,rgb(35, 126, 108) 46%, rgb(35, 126, 108) 53%,rgb(39, 94, 103) 53%, rgb(39, 94, 103) 59%,rgb(44, 62, 97) 59%, rgb(44, 62, 97) 77%,rgb(49, 30, 92) 77%, rgb(49, 30, 92) 100%);
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  box-shadow: 0 0 10px #00f5ff;
}

.btn-projects:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px #00f5ff;
}

.contact-section {
  padding: 120px 0 160px;
  width: 80%;
  margin-inline: auto;
  text-align: center;
}

.contact-sub {
  margin-top: -8px;
  font-size: 1.1rem;
  color: #b7faff;
}

.contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding-top: 40px;
  position: relative;
}

.contact-form {
  width: 480px;
  background: rgba(0,255,255,0.05);
  border: 1px solid rgba(0,255,255,0.25);
  padding: 35px 30px;
  border-radius: 20px;
  backdrop-filter: blur(15px);
}

.input-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 14px;
  margin: 14px 0;
  border-radius: 12px;
  transition: 0.3s;
}

.input-box i {
  color: #00eaff;
  margin-right: 12px;
  font-size: 1.2rem;
}

.input-box input,
.input-box textarea {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  color: #fff;
  font-size: 1rem;
  font-family: "Outfit";
}

.textarea-box textarea {
  height: 110px;
  resize: none;
}

.send-btn {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(45deg, rgb(20, 222, 124) 0%, rgb(20, 222, 124) 21%,rgb(25, 190, 119) 21%, rgb(25, 190, 119) 37%,rgb(30, 158, 113) 37%, rgb(30, 158, 113) 46%,rgb(35, 126, 108) 46%, rgb(35, 126, 108) 53%,rgb(39, 94, 103) 53%, rgb(39, 94, 103) 59%,rgb(44, 62, 97) 59%, rgb(44, 62, 97) 77%,rgb(49, 30, 92) 77%, rgb(49, 30, 92) 100%);
  border: none;
  border-radius: 50px;
  transition: 0.35s;
  cursor: pointer;
}

.send-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px #00eaff;
}

.astro-contact {
  width: 350px;
  animation: floatAstro 5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px #00eaff50);
}

@media(max-width:900px) {
  .contact-wrapper {
    flex-direction: column;
  }
  .astro-contact {
    width: 250px;
  }
}

.footer {
  width: 100%;
  padding: 70px 0 35px;
  text-align: center;
  background: transparent;
  position: relative;
}

.footer-title {
  color: #00faff;
  font-size: 1.6rem;
  margin-bottom: 18px;
  font-family: "Orbitron", sans-serif;
  text-shadow: 0 0 10px #00eaffc7;
}

.footer-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 0;
  margin-bottom: 28px;
}

.footer-nav a {
  color: #b7faff;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.25s;
}

.footer-nav a:hover {
  color: #00faff;
  text-shadow: 0 0 8px #00faff;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 25px;
  text-decoration: none;
}

.footer-icon {
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgba(0,255,255,0.12);
  border: 1.5px solid rgba(0,255,255,0.3);
  color: #00faff;
  font-size: 1.2rem;
  transition: 0.3s ease;
  text-decoration: none;
}

.footer-icon:hover {
  background: rgba(0,255,255,0.4);
  transform: scale(1.15);
  box-shadow: 0 0 15px #00faff;
}

.footer-copy {
  margin-top: 10px;
  color: #9feaffb4;
  font-size: 0.9rem;
}

.footer-copy .highlight {
  color: #00faff;
}

/* .rock-astro {
  position: absolute;
  right: 20px;
  bottom: 0;
  width: 220px;
  pointer-events: none;
  z-index: 5;
} */

/* Large desktops - more space for astronaut */
@media (min-width: 1400px) {
  .hero-astronaut {
    width: 350px;
    left: 5%;
  }
}

/* Medium desktops - balanced layout */
@media (min-width: 1025px) and (max-width: 1399px) {
  .hero-astronaut {
    width: 300px;
    left: 3%;
  }
}

/* Smaller desktops - reduce astronaut size */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-astronaut {
    width: 250px;
    left: 2%;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content h2 {
    font-size: 2.3rem;
  }
}/* ========================================
   MOBILE RESPONSIVE FIXES - COMPLETE
   Add to your styles.css or replace mobile section
   ======================================== */

/* ========== BASE FIXES ========== */
* {
  user-select: none;
  box-sizing: border-box;
}

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

body {
  font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: rgb(0, 0, 0);
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
}

/* Hide scrollbar completely across all browsers */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: transparent;
}

/* Firefox */
* {
  scrollbar-width: none;
}

/* IE and Edge */
body {
  -ms-overflow-style: none;
}

/* ========== NAVIGATION - DESKTOP & MOBILE ========== */

.navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px 30px;
  z-index: 1000;
  background: transparent;
}

.logo {
  position: absolute;
  left: 30px;
  text-decoration: none;
  background: rgba(0, 255, 255, 0.08);
  color: #00faff;
  padding: 6px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(0, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
  z-index: 1001;
}

.logo h1 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo h1:hover {
  color: #fff;
  text-shadow: 0 0 8px rgb(0, 225, 255);
}

/* Hamburger Menu Button */
.nav-toggle {
  display: none;
  position: fixed;
  right: 15px;
  top: 15px;
  background: rgba(0, 255, 255, 0.08);
  border: 1.5px solid rgba(0, 255, 255, 0.3);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1001;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: 0.3s;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #00faff;
  border-radius: 2px;
  transition: 0.3s;
}

.nav-toggle:hover {
  background: rgba(0, 255, 255, 0.15);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
}

/* Hamburger Animation */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop Navigation */
.nav-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  display: flex;
  gap: 35px;
  margin: 0;
  padding: 10px 25px;
  background: rgba(0, 255, 255, 0.1);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
  transition: 0.4s ease;
}

/* Hide mobile resume button on desktop */
.mobile-resume-btn {
  display: none !important;
}
.nav-menu li {
  font-size: 15px;
  transition: 0.25s;
}

.nav-menu a {
  text-decoration: none;
  color: #fff;
  transition: 0.25s;
}

.nav-menu a:hover {
  color: #fff;
  text-shadow: 0 0 8px #fff;
}

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

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 80px 20px 40px;
  overflow-x: hidden;
  overflow: visible;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 600px;
  width: 100%;
}

/* Mobile - Different animation */
@media (max-width: 768px) {
  .hero-astronaut {
    position: relative;
    left: auto;
    top: auto;
    width: 220px;
    height: auto;
    margin-bottom: 20px;
    transform: none;
    animation: floatMobile 5s ease-in-out infinite;
    order: -1;
    /* Prevent jitter on mobile */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  @keyframes floatMobile {
    0%, 100% { 
      transform: translateZ(0) translateY(0); 
    }
    50% { 
      transform: translateZ(0) translateY(-20px); 
    }
  }
}

@media (max-width: 576px) {
  .hero-astronaut {
    width: 170px;
    margin-bottom: -5px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero-astronaut {
    width: 120px;
    margin-bottom: 0;
  }
}
/* ========== TABLET STYLES (768px - 1024px) ========== */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 80px 20px 40px;
  }

  .hero-astronaut {
    width: 280px;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content h2 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

/* ========== MOBILE STYLES ========== */
@media (max-width: 768px) {
  
  /* Navbar Mobile */
  .navbar {
    padding: 15px 10px;
    width: 100vw;
    max-width: 100vw;
    left: 0;
    right: 0;
  }

  .logo {
    left: 10px;
    padding: 5px 12px;
  }

  .logo h1 {
    font-size: 1rem;
  }

  /* Show hamburger on mobile */
  .nav-toggle {
    display: flex;
  }

  /* Mobile menu - GLASSMORPHIC */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70vw;
    max-width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
    background: rgba(0, 20, 30, 0.7);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 0;
    border: none;
    border-left: 2px solid rgba(0, 255, 255, 0.4);
    box-shadow: -10px 0 50px rgba(0, 255, 255, 0.15), inset 0 0 60px rgba(0, 255, 255, 0.03);
    transform: none;
    left: auto;
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu li {
    font-size: 1.3rem;
    opacity: 0;
    transform: translateX(30px);
  }

  .nav-menu.open li {
    animation: slideIn 0.4s forwards;
  }

  .nav-menu.open li:nth-child(1) { animation-delay: 0.1s; }
  .nav-menu.open li:nth-child(2) { animation-delay: 0.2s; }
  .nav-menu.open li:nth-child(3) { animation-delay: 0.3s; }
  .nav-menu.open li:nth-child(4) { animation-delay: 0.4s; }

  @keyframes slideIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .nav-menu a {
    font-size: 1.2rem;
    padding: 8px 16px;
    display: block;
  }

  /* Mobile-only Resume Button in Nav */
  @media (max-width: 768px) {
  /* Mobile-only Resume Button in Nav */
  .nav-menu::after {
    content: '';
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    margin: 10px 0;
  }


  .mobile-resume-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    background: linear-gradient(45deg, rgb(20, 222, 124) 0%, rgb(20, 222, 124) 21%, rgb(25, 190, 119) 21%, rgb(25, 190, 119) 37%, rgb(30, 158, 113) 37%, rgb(30, 158, 113) 46%, rgb(35, 126, 108) 46%, rgb(35, 126, 108) 53%, rgb(39, 94, 103) 53%, rgb(39, 94, 103) 59%, rgb(44, 62, 97) 59%, rgb(44, 62, 97) 77%, rgb(49, 30, 92) 77%, rgb(49, 30, 92) 100%);
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    opacity: 0;
    transform: translateX(30px);
    margin-top: 5px;
  }

  .nav-menu.open .mobile-resume-btn {
    animation: slideIn 0.4s forwards;
    animation-delay: 0.5s;
  }


 .mobile-resume-btn:hover,
  .mobile-resume-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  }


   .mobile-resume-btn i {
    font-size: 1rem;
  }
}
  /* Menu overlay */
  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    animation: fadeIn 0.3s;
  }

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

  /* ========== HERO MOBILE ========== */
  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 100px 20px 60px;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
  }

  /* Show astronaut on mobile above name */
  .hero-astronaut {
    position: relative;
    left: auto;
    top: auto;
    width: 220px;
    height: auto;
    margin-bottom: 20px;
    transform: none;
    animation: floatMobile 5s ease-in-out infinite;
    order: -1;
  }

  @keyframes floatMobile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
  }

  .hero-content h1 {
    font-size: 2rem;
    margin: 0;
    padding: 0;
  }

  .hero-content p {
    font-size: 0.9rem;
    padding: 0 10px;
    margin: 5px 0;
    line-height: 1.4;
  }

  .hero-content h2 {
    font-size: 1.5rem;
    margin: 10px 0 20px 0;
    padding: 0 10px;
  }

  .socials {
    gap: 18px;
    margin-top: 15px;
    order: 4;
  }

  .socials .icon {
    width: 42px;
    height: 42px;
  }

  .socials .icon i {
    font-size: 1.2rem;
  }

  /* ========== ABOUT SECTION MOBILE - FIXED LAYOUT ========== */
  section {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  #about,
  #skills {
    padding-top: 80px;
    padding-bottom: 80px;
  }

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

  .underline {
    width: 70px;
    height: 3px;
    margin-bottom: 35px;
  }

  /* About Container - Stack Vertically */
  .about-container {
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .about-text {
    width: 100%;
    max-width: 100%;
    order: 1;
    font-size: 1rem;
    padding: 0;
  }

  .about-text h3 {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .list li {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  /* About Info - Full Width Stack */
  .about-info {
    width: 100%;
    max-width: 100%;
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 0;
  }

  /* Info Cards - Stack Vertically */
  .info-row {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    gap: 15px;
  }

  .info-card {
    width: 100%;
    max-width: 100%;
    height: 100px;
    padding: 15px;
    box-sizing: border-box;
  }

  .info-card h4 {
    font-size: 1rem;
  }

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

  .connect-title {
    font-size: 1.1rem;
    margin: 10px 0;
    text-align: center;
  }

  /* Socials centered */
  .about-socials {
    justify-content: center;
    margin: 0 auto;
  }

  /* Resume button full width */
  .resume-btn {
    width: 100%;
    max-width: 280px;
    margin: 8px auto;
    padding: 12px 20px;
    font-size: 0.95rem;
    box-sizing: border-box;
    justify-content: center;
  }

  /* ========== CONTACT SECTION MOBILE ========== */
  .contact-section {
    padding: 80px 10px 100px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    margin: 0;
  }

  .contact-sub {
    font-size: 0.95rem;
    padding: 0 10px;
    max-width: 100%;
  }

  .contact-wrapper {
    flex-direction: column;
    gap: 35px;
    padding-top: 30px;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .contact-form {
    width: calc(100% - 20px);
    max-width: 100%;
    padding: 25px 15px;
    box-sizing: border-box;
    margin: 0 auto;
    border-radius: 16px;
  }

  .input-box {
    padding: 12px;
    margin: 12px 0;
    width: 100%;
    box-sizing: border-box;
  }

  .input-box i {
    font-size: 1.1rem;
    margin-right: 10px;
    flex-shrink: 0;
  }

  .input-box input,
  .input-box textarea {
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
  }

  .textarea-box {
    width: 100%;
  }

  .textarea-box textarea {
    height: 100px;
    width: 100%;
  }

  .send-btn {
    padding: 13px;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Extra small screens */
@media (max-width: 576px) {
  .hero-astronaut {
    width: 170px;
    margin-bottom: -5px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content h2 {
    font-size: 1.4rem;
  }

  .hero-content p {
    font-size: 0.85rem;
  }

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

  .about-text {
    font-size: 0.95rem;
  }

  .nav-menu {
    width: 75vw;
  }
}

/* Landscape mode */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 80px 20px 40px;
  }

  .hero-astronaut {
    width: 120px;
    margin-bottom: 0;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content h2 {
    font-size: 1.3rem;
    margin-top: 5px;
    margin-bottom: 10px;
  }

  .socials {
    margin-top: 10px;
    gap: 12px;
  }

  #about,
  #skills {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  section {
    width: 85%;
  }

  .about-container {
    gap: 45px;
  }

  .about-text {
    width: 58%;
  }

  .about-info {
    width: 38%;
  }
}

/* Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  z-index: 10000;
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Modal Container */
.modal-container {
  background: rgba(10, 10, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 50px 40px;
  position: relative;
  animation: slideUp 0.4s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  margin: auto;
}

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

/* Close Button */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  padding: 0;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

/* Modal Title */
.modal-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 40px;
  text-align: left;
  font-weight: 600;
}

/* Category Sections */
.tech-category {
  margin-bottom: 40px;
}

.tech-category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Tech Grid */
.tech-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

/* Tech Item Card */
.tech-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tech-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.tech-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.tech-name {
  color: #fff;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
}

/* SOFTWARE MODAL SPECIFIC STYLES */
.software-modal {
  max-width: 800px;
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.software-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.software-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.software-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.software-icon img {
  width: 36px;
  height: 36px;
}

.software-info h4 {
  color: #fff;
  font-size: 1.1rem;
  font-family: 'Outfit', sans-serif;
  margin: 0 0 4px 0;
  font-weight: 500;
}

.software-info p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-family: 'Outfit', sans-serif;
  margin: 0;
  font-weight: 400;
}

/* Custom Scrollbar for Modal */
.modal-container::-webkit-scrollbar {
  width: 8px;
}

.modal-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 15px;
    align-items: flex-start;
  }

  .modal-container {
    padding: 40px 25px;
    max-height: 90vh;
    margin-top: 20px;
  }

  .modal-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  .category-title {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .tech-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .tech-item {
    padding: 16px 14px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .tech-icon {
    width: 30px;
    height: 30px;
  }

  .tech-name {
    font-size: 0.85rem;
  }

  /* Software Modal Mobile */
  .software-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .software-card {
    padding: 20px;
  }

  .software-icon {
    width: 50px;
    height: 50px;
  }

  .software-icon img {
    width: 30px;
    height: 30px;
  }

  .software-icon i {
    font-size: 2rem !important;
  }

  .software-info h4 {
    font-size: 1rem;
  }

  .software-info p {
    font-size: 0.8rem;
  }

  .modal-close {
    width: 38px;
    height: 38px;
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .modal-title {
    font-size: 1.4rem;
  }

  .tech-items {
    grid-template-columns: 1fr;
  }

  .tech-item {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}