/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #e0e0e0; /* Off-white text */
  background: linear-gradient(135deg, #0a002a 0%, #2a005a 100%); /* Dark gradient background */
  overflow-x: hidden;
  background-attachment: fixed; /* Fix background during scroll */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.section {
  padding: 6rem 0; /* Increased padding for sections */
  position: relative; /* Needed for potential pseudo-elements */
}

.section-title {
  text-align: center;
  font-size: 2.8rem; /* Larger title */
  margin-bottom: 4rem; /* More space below title */
  color: #e0e0e0;
  position: relative;
  font-weight: 700;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 5px; /* Thicker underline */
  background: linear-gradient(45deg, #00d8ff, #ff00cc); /* Gradient underline */
  margin: 1rem auto;
  border-radius: 3px;
}

/* ===== Navigation ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  background: rgba(10, 0, 42, 0.8); /* Darker semi-transparent nav */
  backdrop-filter: blur(15px); /* Stronger blur */
  box-shadow: 0 4px 20px rgba(0,0,0,0.3); /* Stronger shadow */
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.5s ease; /* Smooth transition for nav changes */
}

.logo {
  font-size: 1.8rem; /* Larger logo */
  font-weight: 700;
  color: #e0e0e0;
  letter-spacing: 1px; /* Slight letter spacing */
}

.nav-links {
  display: flex;
  gap: 2.5rem; /* More space between links */
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #ccc; /* Lighter grey for links */
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
  position: relative;
  padding-bottom: 5px; /* Space for underline */
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #00d8ff, #ff00cc); /* Gradient underline */
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #00d8ff; /* Teal on hover */
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== Hero Section ===== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center; /* Center content */
  padding: 0 5%;
  text-align: center; /* Center text */
  position: relative;
  overflow: hidden; /* Crucial for background animation */
}

/* Animated Background Gradient */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #0a002a, #2a005a, #0a002a, #2a005a);
  background-size: 400% 400%; /* Larger background for animation */
  animation: gradientBG 15s ease infinite; /* Animation for background */
  z-index: -1; /* Behind content */
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content {
  max-width: 800px; /* Wider content area */
}

.hero h1 {
  font-size: 4rem; /* More impactful */
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(0, 216, 255, 0.4); /* Neon glow */
}

.hero h1 span {
  color: #00d8ff; /* Teal for name */
  text-shadow: 0 0 25px rgba(0, 216, 255, 0.6);
}

.hero h2 {
  font-size: 2.5rem; /* Larger subtitle */
  font-weight: 400;
  margin-bottom: 2rem;
  color: #bdbdbd; /* Lighter grey for subtitle */
  text-shadow: 0 0 10px rgba(189, 189, 189, 0.3);
}

.hero p {
  font-size: 1.3rem; /* Larger paragraph */
  margin-bottom: 3rem;
  color: #e0e0e0;
  max-width: 700px; /* Limit width */
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  padding: 1.2rem 2.8rem; /* Larger button */
  background: linear-gradient(45deg, #00d8ff, #ff00cc); /* Gradient button */
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700; /* Bolder text */
  transition: all 0.4s ease; /* Smoother transition */
  box-shadow: 0 5px 25px rgba(255, 0, 204, 0.4); /* Pink glow */
  letter-spacing: 1px;
}

.btn-primary:hover {
  background: linear-gradient(-45deg, #00d8ff, #ff00cc); /* Reverse gradient on hover */
  transform: translateY(-5px); /* Lift effect */
  box-shadow: 0 8px 35px rgba(255, 0, 204, 0.6); /* Stronger glow */
}

/* ===== About Section ===== */
.about {
  background: linear-gradient(135deg, #1f0a38 0%, #0a002a 100%); /* Darker section background */
}

.about .content {
  max-width: 850px; /* Wider content */
  margin: 0 auto;
  font-size: 1.2rem; /* Larger text */
  line-height: 1.9;
  text-align: center;
  color: #bdbdbd; /* Lighter text */
}

.about .content p {
  margin-bottom: 2rem; /* More space between paragraphs */
}

/* ===== Skills Section ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly wider cards */
  gap: 2rem;
}

.skill-category {
  background: rgba(31, 10, 56, 0.7); /* Semi-transparent card background */
  padding: 2.5rem; /* More padding */
  border-radius: 20px; /* More rounded corners */
  box-shadow: 0 10px 30px rgba(0,0,0,0.4); /* Darker shadow */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative; /* For potential animations */
  overflow: hidden; /* Clip content */
}

.skill-category:hover {
  transform: perspective(1000px) rotateX(5deg) translateY(-10px); /* Tilt effect */
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.skill-category h3 {
  color: #00d8ff; /* Teal for category titles */
  margin-bottom: 1.8rem;
  font-size: 1.7rem;
  position: relative;
  padding-bottom: 8px;
}

.skill-category h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #ff00cc; /* Pink underline */
}

.skill-category ul {
  list-style: none;
}

.skill-category li {
  padding: 0.8rem 0; /* More padding */
  border-bottom: 1px solid rgba(255,255,255,0.1); /* Subtle separator */
  transition: color 0.3s ease;
}

.skill-category li:hover {
  color: #ff00cc; /* Pink on hover */
}

.skill-category li:last-child {
  border-bottom: none;
}

/* ===== Projects Section ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Slightly larger cards */
  gap: 2.5rem; /* More gap */
}

.project-card {
  background: rgba(31, 10, 56, 0.7); /* Semi-transparent card background */
  border-radius: 20px; /* More rounded corners */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4); /* Darker shadow */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer; /* Indicate interactivity */
}

.project-card:hover {
  transform: perspective(1000px) rotateX(3deg) translateY(-10px); /* Subtle tilt */
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease; /* Image zoom effect */
}

.project-card:hover img {
  transform: scale(1.05); /* Zoom image slightly */
}

.project-content {
  padding: 2rem; /* More padding */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-content h3 {
  font-size: 1.6rem; /* Larger title */
  margin-bottom: 1.2rem;
  color: #00d8ff; /* Teal title */
  position: relative;
  padding-bottom: 8px;
}

.project-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #ff00cc; /* Pink underline */
}

.project-content p {
  color: #bdbdbd; /* Lighter text */
  flex-grow: 1;
  margin-bottom: 1.5rem; /* Space before tech */
}

.tech {
  font-size: 0.9rem;
  color: #999; /* Subtle tech info color */
  font-style: italic;
  margin-bottom: 1.8rem;
}

.btn-secondary {
  display: inline-block;
  padding: 1rem 2rem; /* Larger button */
  background: linear-gradient(45deg, #00d8ff, #ff00cc); /* Gradient button */
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700; /* Bolder text */
  transition: all 0.4s ease;
  align-self: flex-start;
  letter-spacing: 0.5px;
}

.btn-secondary:hover {
  background: linear-gradient(-45deg, #00d8ff, #ff00cc);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(255, 0, 204, 0.5);
}

/* ===== Contact Section ===== */
.contact {
  background: linear-gradient(135deg, #1f0a38 0%, #0a002a 100%); /* Darker section background */
  padding: 7rem 0; /* More padding */
}

.contact .section-title {
  margin-bottom: 2rem; /* Less space below title here */
}

.contact p {
  max-width: 650px; /* Adjusted width */
  margin: 0 auto 2.5rem;
  font-size: 1.3rem;
  color: #bdbdbd; /* Lighter text */
}

.contact-info {
  max-width: 650px;
  margin: 2.5rem auto;
  text-align: left;
  background: rgba(31, 10, 56, 0.7); /* Semi-transparent card */
  padding: 2.5rem; /* More padding */
  border-radius: 20px; /* More rounded */
  box-shadow: 0 10px 30px rgba(0,0,0,0.4); /* Darker shadow */
}

.contact-info p {
  margin: 1.2rem 0; /* More spacing */
  font-size: 1.1rem;
  color: #e0e0e0;
}

.contact-info a {
  color: #00d8ff; /* Teal links */
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
  color: #ff00cc; /* Pink on hover */
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 2.5rem; /* More padding */
  background: #0a002a; /* Very dark background */
  color: #9ca3af; /* Muted text */
  font-size: 1rem; /* Slightly larger footer text */
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Subtle top border */
}

/* ===== Animations (using AOS Library) ===== */
/* AOS styles are loaded from CDN, but we'll use its classes */

/* General Fade/Slide Animations for Sections */
[data-aos="fade-up"] {
  transform: translateY(50px); /* Start slightly lower */
  opacity: 0;
  transition-property: transform, opacity;
}
[data-aos="fade-up"].aos-animate { /* Class applied by AOS */
  transform: translateY(0);
  opacity: 1;
}

/* Specific class for the hero title and button */
[data-aos="fade-up"] h1,
[data-aos="fade-up"] h2,
[data-aos="fade-up"] p,
[data-aos="fade-up"] .btn-primary {
  /* Use the same fade-up animation defined above */
}

/* ===== Custom WhatsApp Button Style ===== */
.whatsapp-btn {
  background: linear-gradient(45deg, #25D366, #075E54); /* WhatsApp Green Gradient */
  box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4); /* Green glow */

  /* --- Start of Fix for Centering --- */
  display: block; /* Ensure it behaves like a block element for margin auto */
  margin: 2rem auto 0; /* Center horizontally with some top margin */
  /* --- End of Fix for Centering --- */

}

.whatsapp-btn:hover {
  background: linear-gradient(-45deg, #25D366, #075E54); /* Reverse gradient on hover */
  box-shadow: 0 8px 35px rgba(37, 211, 102, 0.6); /* Stronger green glow */
}

/* ===== End of WhatsApp Button Style ===== */


/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  .nav-links {
    gap: 1.5rem;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .hero h2 {
    font-size: 2rem;
  }
  .section-title {
    font-size: 2.3rem;
  }
  .project-card, .skill-category {
      min-width: 280px; /* Ensure minimum size */
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 5%; /* Smaller nav padding */
  }
  .logo {
    font-size: 1.5rem;
  }
  .nav-links {
    display: none; /* Hide desktop nav on mobile */
  }
  .hero {
    text-align: center;
    padding: 0 5%;
  }
  .hero-content {
      padding-top: 100px; /* Make space for fixed nav */
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero h2 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .btn-primary {
    padding: 1rem 2rem;
  }
  .section {
    padding: 4rem 0; /* Reduced section padding */
  }
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  .skills-grid, .projects-grid {
    grid-template-columns: 1fr; /* Stack columns on small screens */
    gap: 1.5rem;
  }
  .project-card, .skill-category {
    width: 100%; /* Full width */
  }
  .contact-info {
      padding: 1.5rem;
  }
}

/* ===== Custom Cursor Effect (Optional - requires JS to be truly smooth) ===== */
/* For simplicity and performance, we'll skip complex JS cursor effects here. */
/* If you want a custom cursor, it usually involves JS libraries. */