/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: #222;
  scroll-behavior: smooth;
}

.container {
  max-width: 960px;
  margin: auto;
  padding: 40px 20px;
}

/* Navbar */
nav {
  background: #e0f7fa;
  box-shadow: 4px 4px 10px #b2ebf2, -4px -4px 10px #ffffff;
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: top 0.3s;
}

nav.hide {
  top: -100px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00796b;
}

.more-menu {
  position: relative;
}

.more-btn {
  background: #00796b;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 40px;
  background: #ffffff;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1000;
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.dropdown a:hover {
  background: #00796b;
  color: #fff;
}

.dropdown.open {
  display: block;
}

/* Hero Section */
header.hero {
  background: #fff8e1;
  padding: 60px 20px 40px;
  text-align: center;
  box-shadow: inset 6px 6px 12px #fce4ec, inset -6px -6px 12px #ffffff;
}

.hero-line {
  width: 120px;
  height: 5px;
  background-color: #fbc02d;
  margin: 0 auto 30px;
  border-radius: 10px;
}

.profile-pic {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid #ddd;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.loading-img {
  filter: blur(20px);
  transition: filter 1s ease;
}

.loading-img.loaded {
  filter: blur(0);
}

/* Typing Box */
.typing-box {
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  flex-wrap: wrap;
  gap: 5px;
  background: linear-gradient(to right, #fff8e1, #fce4ec);
  padding: 10px 18px;
  border-radius: 12px;
  box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.1), -4px -4px 10px #ffffff;
}

.typing-box .prefix {
  color: #e91e63;
  font-weight: 700;
  text-shadow:
      1px 1px 0 #fff,
      2px 2px 0 #e91e63,
      3px 3px 5px rgba(0, 0, 0, 0.3),
      0 0 10px #e91e63;
  letter-spacing: 1px;
}

#typed-text {
  color: #4caf50;
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 0 10px #8bc34a;
}

.cursor {
  display: inline-block;
  animation: blink 0.8s infinite;
  color: #00b4d8;
}

@keyframes blink {
  0%,
  100% {
      opacity: 1;
  }
  50% {
      opacity: 0;
  }
}

.ankit {
  color: #ff9800;
  text-shadow: 0 0 8px #ffc107;
}

.raj {
  color: #9c27b0;
  text-shadow: 0 0 8px #ba68c8;
}

h1,
h2 {
  text-align: center;
}

h1 {
  margin: 20px 0 10px;
  font-size: 2.5rem;
  font-weight: 600;
  text-shadow: 0 0 15px #fbc02d;
}

/* Scroll Animation */
.section-box {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
  border-radius: 20px;
  box-shadow: 10px 10px 30px #d1d9e6, -10px -10px 30px #ffffff;
  padding: 30px;
  margin-bottom: 40px;
}

.section-box.show {
  opacity: 1;
  transform: translateY(0);
}

/* Section Colors */
#about.section-box {
  background: #fce4ec;
}

#skills.section-box {
  background: #e3f2fd;
}

#education.section-box {
  background: #e8f5e9;
}

#experience.section-box {
  background: #fff3e0;
}

#projects.section-box {
  background: #e0f7fa;
}

/* Typewriter About */
#about-description {
  font-size: 1.1rem;
  color: #333;
  margin-top: 15px;
  line-height: 1.6;
}

#about-description h3 {
  color: #2196f3;
  margin-bottom: 5px;
}

#about-description .tag {
  background-color: #f44336;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: bold;
  margin-left: 10px;
}

#about-description .box-container {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

#about-description .box {
  flex: 1 1 150px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

#about-description .box p {
  margin-bottom: 5px;
}

#about-description .box p span {
  font-weight: bold;
  color: #00796b;
}

.about-line {
  width: 80px;
  height: 3px;
  background-color: #fbc02d;
  margin-bottom: 20px;
  border-radius: 10px;
  opacity: 0; /* Initially hidden */
  transform: translateX(-50px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.about-line.show {
  opacity: 1;
  transform: translateX(0);
}

/* Skills */
.skills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  list-style: none;
  padding: 0;
}

.skills li {
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: bold;
  background: #fff;
  transition: all 0.3s ease;
  box-shadow: 6px 6px 12px #cbced1, -6px -6px 12px #fff;
}

.skills li:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px #00b4d8;
  cursor: pointer;
}

.skill-html {
  color: #e44d26;
}

.skill-css {
  color: #2965f1;
}

.skill-js {
  color: #f0db4f;
}

.skill-react {
  color: #61dafb;
}

.skill-node {
  color: #68a063;
}

.skill-mongo {
  color: #4db33d;
}

.skill-flutter {
  color: #02569b;
}

.skill-git {
  color: #f1502f;
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  color: #333;
  font-size: 1.3rem;
  background: #f0f0f3;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 4px 4px 8px #cbced1, -4px -4px 8px #ffffff;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #00b4d8;
  transform: scale(1.1);
}

/* Footer */
.footer-section {
  background: linear-gradient(to right, #e0f7fa, #fce4ec);
  padding: 40px 20px;
  text-align: center;
  border-top: 5px solid #00b4d8;
}

.footer-title {
  font-size: 1.8rem;
  color: #00b4d8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-shadow: 0 0 8px rgba(0, 180, 216, 0.3), 0 0 15px #00b4d8;
}

.footer-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.footer-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 30px;
  box-shadow: 6px 6px 12px #d1d9e6, -6px -6px 12px #ffffff;
  text-align: left;
  min-width: 240px;
}

.footer-card h3 {
  margin-bottom: 10px;
  color: #00796b;
  font-size: 1.2rem;
  border-bottom: 2px solid #00b4d8;
  display: inline-block;
  padding-bottom: 5px;
}

.footer-card ul {
  list-style: none;
  padding: 0;
}

.footer-card li {
  margin-bottom: 8px;
}

.footer-card a {
  text-decoration: none;
  color: #444;
  transition: 0.3s;
}

.footer-card a:hover {
  color: #00b4d8;
  font-weight: bold;
}

.footer-glow {
  animation: blinkGlow 1.2s infinite alternate;
  text-shadow: 0 0 5px #00b4d8, 0 0 10px #00b4d8;
  color: #00b4d8;
  font-weight: bold;
  margin-top: 20px;
}

@keyframes blinkGlow {
  from {
      opacity: 1;
      text-shadow: 0 0 5px #00b4d8, 0 0 10px #00b4d8;
  }
  to {
      opacity: 0.6;
      text-shadow: 0 0 10px #00b4d8, 0 0 20px #00b4d8;
  }
}

/* Heading Colors */
#about h2 {
  color: #1a5235; /* dark green */
  text-shadow: 2px 2px 5px #b0f2b6;
}

#skills h2 {
  color: #8e44ad; /* dark purple */
  text-shadow: 2px 2px 5px #d395d3;
}

#education h2 {
  color: #2c3e50; /* very dark blue */
  text-shadow: 2px 2px 5px #829cbc;
}

#experience h2 {
  color: #e67e22; /* orange-red */
  text-shadow: 2px 2px 5px #f5b041;
}

#projects h2 {
  color: #3498db; /* blue */
  text-shadow: 2px 2px 5px #85c1e9;
}

#contact h2 {
  color: #c0392b; /* dark red */
  text-shadow: 2px 2px 5px #e6b0aa;
}

/* Contact Form Redesign */
#contact .contact-container {
  background-color: #f0f0f0;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 600px;
  margin: auto;
}

#contact .contact-title {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 600;
}

#contact .contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  margin: auto;
}

#contact .contact-input,
#contact .contact-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #bdc3c7;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

#contact .contact-input:focus,
#contact .contact-textarea:focus {
  border-color: #3498db;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

#contact .contact-textarea {
  resize: vertical;
  height: 120px;
}

#contact .contact-button {
  padding: 12px 30px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: fit-content;
}

#contact .contact-button:hover {
  background-color: #217dbb;
  transform: translateY(-2px);
}

#contact .contact-button:active {
  background-color: #1a5275;
  transform: translateY(0);
}

/* Resume Button Style */
.resumebtn {
  margin-top: 20px;
  text-align: center;
}

.resumebtn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background-color: #4caf50;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.resumebtn a:hover {
  background-color: #45a049;
  transform: translateY(-2px);
}

.resumebtn a i {
  margin-left: 10px;
  font-size: 1.2rem;
}

/* Back to Top Button */
.back-to-top-button {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed position on the page */
  bottom: 20px; /* Distance from the bottom */
  right: 30px; /* Distance from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove default border */
  outline: none; /* Remove default outline */
  background-color: #00b4d8; /* Set a background color */
  color: white; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  border-radius: 50%; /* Rounded corners */
  font-size: 1.2rem; /* Increase font size */
  transition: background-color 0.3s ease;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.back-to-top-button:hover {
  background-color: #0086b3; /* Darker background on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
      padding: 30px 15px;
  }

  nav {
      padding: 10px 15px;
  }

  .nav-logo {
      font-size: 1.3rem;
  }

  .nav-more-menu {
      display: block;
  }

  .nav-more-menu .more-btn {
      padding: 6px 12px;
      font-size: 0.9rem;
  }

  .nav-dropdown {
      position: absolute;
      top: 50px;
      right: 15px;
      width: 150px;
      box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  }

  .nav-dropdown a {
      padding: 8px 15px;
      font-size: 0.9rem;
  }

  header.hero {
      padding: 40px 15px 30px;
  }

  h1 {
      font-size: 2rem;
  }

  .typing-box {
      font-size: 1rem;
      padding: 8px 12px;
  }

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

  .social-icons a {
      font-size: 1.1rem;
      padding: 8px;
  }

  .skills ul {
      gap: 10px;
  }

  .skills li {
      padding: 8px 15px;
      font-size: 0.9rem;
  }

  #about-description {
      font-size: 1rem;
  }

  #about-description .box-container {
      gap: 10px;
  }

  #about-description .box {
      flex: 1 1 120px;
      padding: 8px;
      font-size: 0.9rem;
  }

  .about-line {
      margin-bottom: 15px;
  }

  .footer-grid {
      gap: 20px;
  }

  .footer-card {
      min-width: 150px;
      padding: 15px 20px;
  }

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

  .contact-container {
      padding: 30px 15px;
  }

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

  .contact-input,
  .contact-textarea,
  .contact-button {
      font-size: 0.9rem;
      padding: 10px 12px;
  }

  .contact-textarea {
      height: 100px;
  }

  .resumebtn a {
      font-size: 0.9rem;
      padding: 8px 15px;
  }

  .resumebtn a i {
      font-size: 1rem;
      margin-left: 5px;
  }
}

@media (max-width: 480px) {
  h1 {
      font-size: 1.7rem;
  }

  .typing-box {
      font-size: 0.9rem;
  }

  .skills li {
      font-size: 0.8rem;
  }

  #about-description .box {
      flex-basis: 100%;
  }

  .footer-grid {
      flex-direction: column;
      align-items: center;
  }

  .footer-card {
      width: 90%;
      text-align: center;
  }
}
