html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Poppins', 'Balsamiq Sans', Arial, sans-serif;
  color: #e0e6ed;
  min-height: 100vh;
  scroll-behavior: smooth;
  background-image: url('https://images.pexels.com/photos/546819/pexels-photo-546819.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2'); /* New background image */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center; /* Added to center the background image */
  background-attachment: fixed; /* Added to make background fixed */
  background-color: black;
}

.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background: linear-gradient(90deg, #232526 0%, #414345 100%);
  backdrop-filter: blur(8px);
  padding: 1.2rem 2.5rem;
  z-index: 100;
  box-shadow: 0 2px 24px 0 rgba(0,0,0,0.25);
}

.navbar-left {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #7afcff;
  text-shadow: 0 0 8px #7afcff88;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.navbar-subtitle {
  font-size: 1.01rem;
  font-weight: 400;
  color: #b2c2d6;
  margin-top: 0.18rem;
  letter-spacing: 0.2px;
  font-family: 'Inter', 'Poppins', Arial, sans-serif;
  text-shadow: none;
  line-height: 1.2;
}

.navbar-center {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.1rem;
}

.navbar-center a {
  color: #e0e6ed;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  position: relative;
  transition: color 0.2s;
}

.navbar-center a:hover, .navbar-center a:focus {
  color: #7afcff;
  text-shadow: 0 0 8px #7afcff88;
}

.section-fieldset {
  border: 2px solid #7afcff88;
  border-radius: 18px;
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  margin: 0;
  background: rgba(30, 34, 44, 0.9); /* Increased opacity */
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.18);
  position: relative;
  transition: box-shadow 0.25s, border 0.25s;
}

.section-fieldset:hover, .section-fieldset:focus-within {
  box-shadow: 0 0 24px 2px #7afcff99, 0 8px 32px 0 rgba(0,0,0,0.35);
  border: 2px solid #7afcff;
}

.section-fieldset legend {
  font-family: 'Poppins', 'Inter', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #7afcff;
  padding: 0 1.2rem;
  border-radius: 12px;
  background: rgba(24, 28, 36, 0.85);
  box-shadow: 0 0 12px #7afcff33;
  margin-left: 1rem;
  letter-spacing: 1px;
  text-shadow: 0 0 8px #7afcff33;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
  background: none;
}

h2 {
  font-family: 'Poppins', 'Inter', Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #7afcff;
  margin-bottom: 2rem;
  text-shadow: 0 0 12px #7afcff33;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(30, 34, 44, 0.9); /* Increased opacity */
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.25);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  transition: transform 0.25s cubic-bezier(.21,1.02,.73,1.01), box-shadow 0.25s, border 0.25s;
  border: 1.5px solid rgba(122,252,255,0.12);
  position: relative;
  overflow: hidden;
}

@keyframes flip-multi {
  0% { transform: rotateY(0deg); }
  60% { transform: rotateY(360deg); } /* Reduced to one full rotation */
  100% { transform: rotateY(360deg); } /* Removed scale and translateY from here */
}

.project-card:hover, .project-card:focus {
  transform: translateY(-10px) scale(1.03) rotateX(2deg);
  box-shadow: 0 0 24px 2px #7afcff99, 0 8px 32px 0 rgba(0,0,0,0.35);
  border: 1.5px solid #7afcff;
  animation: flip-multi 0.75s cubic-bezier(.21,1.02,.73,1.01); /* Reduced duration */
  backface-visibility: hidden;
}

.project-card h3 {
  color: #7afcff;
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
  font-family: 'Poppins', 'Inter', Arial, sans-serif;
  font-weight: 600;
  text-shadow: 0 0 8px #7afcff33;
}

.project-card p {
  color: #e0e6ed;
  font-size: 1rem;
  margin-bottom: 0;
}

.exp-item, .edu-item, .resume-viewer, .footer-contact {
  transition: transform 0.25s cubic-bezier(.21,1.02,.73,1.01), box-shadow 0.25s, border 0.25s;
}

.exp-item:hover, .exp-item:focus,
.edu-item:hover, .edu-item:focus,
.resume-viewer:hover, .resume-viewer:focus,
.footer-contact:hover, .footer-contact:focus {
  transform: translateY(-8px) scale(1.02) rotateX(1deg);
  box-shadow: 0 0 24px 2px #7afcff99, 0 8px 32px 0 rgba(0,0,0,0.35);
  border-left: 3px solid #7afcff;
  border: 1.5px solid #7afcff;
}

.exp-item, .edu-item {
  background: rgba(30, 34, 44, 0.9); /* Increased opacity */
  border-radius: 14px;
  padding: 1.5rem 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.18);
  border-left: 3px solid #7afcff;
}

.exp-item h3, .edu-item h3 {
  color: #7afcff;
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  font-family: 'Poppins', 'Inter', Arial, sans-serif;
}

.exp-item span, .edu-item span {
  color: #b2c2d6;
  font-size: 0.98rem;
  margin-bottom: 0.7rem;
  display: block;
}

.exp-item ul {
  margin: 0.5rem 0 0 1.2rem;
  padding: 0;
  color: #e0e6ed;
  font-size: 1rem;
}

.contact-info {
  background: rgba(30, 34, 44, 0.7);
  border-radius: 14px;
  padding: 1.5rem 1.2rem;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.18);
  border-left: 3px solid #7afcff;
  font-size: 1.08rem;
}

.contact-info a {
  color: #7afcff;
  text-decoration: underline;
  transition: color 0.2s;
}

.contact-info a:hover {
  color: #fff;
  text-shadow: 0 0 8px #7afcff88;
}

.resume-viewer {
  background: rgba(30, 34, 44, 0.9); /* Increased opacity */
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 24px 0 rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.button, .download-btn {
  display: inline-block;
  padding: 0.7rem 2.2rem;
  background: linear-gradient(90deg, #7afcff 0%, #00ffd0 100%);
  color: #181c24;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 0 16px 0 #7afcff55;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.button:hover, .button:focus, .download-btn:hover, .download-btn:focus {
  background: linear-gradient(90deg, #00ffd0 0%, #7afcff 100%);
  color: #181c24;
  box-shadow: 0 0 32px 2px #7afcff99;
}

.job-title-animation {
  position: relative;
  text-align: center;
  font-family: 'Balsamiq Sans', cursive;
  font-size: 2.5rem;
  font-weight: bold;
  color: #7afcff;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  max-width: 900px;
  height: 100px;
  margin: 30px auto;
  border: 2px solid #7afcff88;
  border-radius: 15px;
  box-shadow: 0 0 40px #5ee4ff;
  background-color: rgba(0, 0, 0, 0.7);
}

.job-title-animation span {
  opacity: 0;
  animation: typewriterEffect 6s infinite;
}

/* Re-added animation delays for 'Java Full Stack Developer' without ID prefix */
.job-title-animation span:nth-child(1) { animation-delay: 0.1s; }
.job-title-animation span:nth-child(2) { animation-delay: 0.2s; }
.job-title-animation span:nth-child(3) { animation-delay: 0.3s; }
.job-title-animation span:nth-child(4) { animation-delay: 0.4s; }
.job-title-animation span:nth-child(5) { animation-delay: 0.5s; } /* Space */
.job-title-animation span:nth-child(6) { animation-delay: 0.6s; }
.job-title-animation span:nth-child(7) { animation-delay: 0.7s; }
.job-title-animation span:nth-child(8) { animation-delay: 0.8s; }
.job-title-animation span:nth-child(9) { animation-delay: 0.9s; }
.job-title-animation span:nth-child(10) { animation-delay: 1.0s; } /* Space */
.job-title-animation span:nth-child(11) { animation-delay: 1.1s; }
.job-title-animation span:nth-child(12) { animation-delay: 1.2s; }
.job-title-animation span:nth-child(13) { animation-delay: 1.3s; }
.job-title-animation span:nth-child(14) { animation-delay: 1.4s; }
.job-title-animation span:nth-child(15) { animation-delay: 1.5s; }
.job-title-animation span:nth-child(16) { animation-delay: 1.6s; } /* Space */
.job-title-animation span:nth-child(17) { animation-delay: 1.7s; }
.job-title-animation span:nth-child(18) { animation-delay: 1.8s; }
.job-title-animation span:nth-child(19) { animation-delay: 1.9s; }
.job-title-animation span:nth-child(20) { animation-delay: 2.0s; }
.job-title-animation span:nth-child(21) { animation-delay: 2.1s; }
.job-title-animation span:nth-child(22) { animation-delay: 2.2s; }
.job-title-animation span:nth-child(23) { animation-delay: 2.3s; }
.job-title-animation span:nth-child(24) { animation-delay: 2.4s; }
.job-title-animation span:nth-child(25) { animation-delay: 2.5s; }

@keyframes typewriterEffect {
  0% { opacity: 0; transform: scale(0.8); }
  1.67% { opacity: 1; transform: scale(1); } /* (0.1s / 6s * 100)% */
  83.33% { opacity: 1; } /* (5s / 6s * 100)% */
  85% { opacity: 0; } /* (5.1s / 6s * 100)% */
  100% { opacity: 0; }
}

.footer {
  background: linear-gradient(90deg, #232526 0%, #414345 100%);
  backdrop-filter: blur(8px);
  padding: 2rem 0 1.5rem 0;
  margin-top: 2rem;
  box-shadow: 0 -2px 24px 0 rgba(0,0,0,0.25);
  border-top: 1.5px solid #7afcff33;
  opacity: 0.95;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.skill-group {
  min-width: 160px;
  flex: 1 1 180px;
  margin-bottom: 1.5rem;
  background: rgba(30, 34, 44, 0.9); /* Increased opacity */
  border: 1.5px solid #7afcff44;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
  padding: 1.2rem 1rem 1rem 1rem;
  transition: box-shadow 0.25s, border 0.25s, transform 0.25s;
}

.skill-group:hover, .skill-group:focus-within {
  box-shadow: 0 0 18px 2px #7afcff99, 0 4px 16px 0 rgba(0,0,0,0.18);
  border: 1.5px solid #7afcff;
  transform: translateY(-4px) scale(1.01);
}

.skill-group h4 {
  color: #7afcff;
  font-size: 1.08rem;
  font-family: 'Poppins', 'Inter', Arial, sans-serif;
  margin-bottom: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.skill-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 60px;
  background: rgba(24, 28, 36, 0.95); /* Increased opacity */
  border: 1.5px solid #7afcff22;
  border-radius: 10px;
  box-shadow: 0 2px 8px #7afcff11;
  padding: 0.5rem 0.5rem 0.3rem 0.5rem;
  transition: box-shadow 0.22s, border 0.22s, transform 0.22s;
}

.skill-item:hover, .skill-item:focus {
  box-shadow: 0 0 16px 2px #7afcff99, 0 4px 16px 0 rgba(0,0,0,0.18);
  border: 1.5px solid #7afcff;
  transform: translateY(-6px) scale(1.07) rotateX(2deg);
  z-index: 2;
}

.skill-item img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-bottom: 0.2rem;
  background: #23272f;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 2px 8px #7afcff22;
}

.skill-item span {
  color: #e0e6ed;
  font-size: 0.95rem;
  margin-top: 0.1rem;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  justify-content: center;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  background: none;
  border: none;
  box-shadow: none;
  font-size: 1.08rem;
  color: #e0e6ed;
  padding: 0.5rem 0;
}

.footer-contact span, .footer-contact a {
  color: #e0e6ed;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 400;
  transition: none;
  box-shadow: none;
  border: none;
  padding: 0 0.2rem;
}

.footer-contact a:hover, .footer-contact a:focus {
  color: #e0e6ed;
  text-shadow: none;
  box-shadow: none;
  border: none;
}

.footer-contact:hover, .footer-contact:focus {
  box-shadow: none;
  border: none;
}

@media (max-width: 900px) {
  .skills-grid {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 700px) {
  .skills-grid {
    flex-direction: column;
    gap: 1.2rem;
  }
  .footer-contact {
    gap: 1rem;
    font-size: 0.98rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 0;
  }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.2rem;
  }
  .navbar-center {
    width: 100%;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.7rem;
    flex-wrap: wrap;
  }
  .section {
    padding: 2.5rem 0.5rem 1.5rem 0.5rem;
    width: 100vw;
    box-sizing: border-box;
  }
  .section-fieldset {
    padding: 1.5rem 0.5rem 1rem 0.5rem;
  }
  .card-grid {
    gap: 1rem;
  }
  .navbar-left {
    font-size: 1.25rem;
  }
  .navbar-subtitle {
    font-size: 0.93rem;
    margin-top: 0.1rem;
  }
  .project-img {
    max-height: 90px;
    margin-bottom: 0.7rem;
  }
}

::-webkit-scrollbar {
  width: 8px;
  background: #22252e;
}
::-webkit-scrollbar-thumb {
  background: #7afcff44;
  border-radius: 8px;
}

.floating-titles {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  font-family: 'Poppins', 'Inter', Arial, sans-serif;
  color: #7afcff;
  background: rgba(30, 34, 44, 0.7);
  border: 2px solid #7afcff88;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.13);
  padding: 1.5rem 1rem;
  margin: 1.2rem 0 0 0;
  text-align: center;
  animation: floatY 3.5s ease-in-out infinite alternate;
  letter-spacing: 1px;
}

@keyframes floatY {
  0% { transform: translateY(0); }
  100% { transform: translateY(-18px); }
}

.footer-madeby {
  text-align: center;
  color: #b2c2d6;
  font-size: 1.05rem;
  margin-top: 0.7rem;
  letter-spacing: 0.5px;
  font-family: 'Poppins', 'Inter', Arial, sans-serif;
}

.yellow-heart {
  font-size: 1.15em;
  vertical-align: middle;
  filter: drop-shadow(0 0 4px #ffe06688);
}

@media (max-width: 700px) {
  .floating-titles {
    font-size: 1.05rem;
    padding: 1rem 0.5rem;
  }
  .footer-madeby {
    font-size: 0.98rem;
  }
}

.project-img {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 12px 12px 8px 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px #7afcff22;
  background: #23272f;
  display: block;
} 