/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Body styling with dark mode */
body {
  line-height: 1.6;
  color: #e0e0e0; /* Light text for contrast */
  background-color: #0a0a0a; /* Dark background for entire site */
  scroll-behavior: smooth;
}

/* Container for content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header styling integrated with intro theme */
header {
  background: transparent; /* Blend with intro dark theme */
  color: white;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px); /* Subtle blur effect to match theme */
  border-bottom: 1px solid rgba(255, 215, 0, 0.2); /* Subtle gold border */
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #ffd700; /* Gold color for branding */
}

.nav-right {
  display: flex;
  gap: 1.5rem;
}

.nav-btn {
  background: transparent;
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700; /* Gold on hover */
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero/About section with dark background and canvas */
.hero {
  background: #0a0a0a; /* Dark background */
  padding: 5rem 2rem;
  text-align: center;
  min-height: 100vh; /* Fit to viewport height */
  height: 100vh; /* Ensure it fits the first window */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
}

.dots-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.6;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #ffd700; /* Gold color for heading */
  animation: fadeIn 1s ease-in;
}

.hero p {
  font-size: 1.2rem;
  color: #e0e0e0;
  max-width: 700px;
  margin: 0 auto;
  font-family: "Exo 2", sans-serif; /* Clearer futuristic font */
  letter-spacing: 0.5px;
  font-weight: 400;
}

/* Typing animation cursor */
.typing-text::after {
  content: "|";
  display: inline-block;
  animation: blink 0.7s infinite;
}

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

/* Section styling */
section {
  padding: 4rem 2rem;
}

/* Ensure dark mode across all sections */
.skills, .contact {
  background-color: #121212; /* Slightly lighter dark for contrast */
  color: #e0e0e0;
  min-height: auto;
}

section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: #ffd700; /* Gold for headings */
  position: relative;
}

section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #ffd700, #ffcc00);
  margin: 1rem auto 0;
}

/* Skills section */
.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-item {
  background-color: #1a1a1a; /* Darker card background */
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
}

.skill-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.1);
}

.skill-item h3 {
  margin-bottom: 0.8rem;
  color: #ffd700; /* Gold for headings */
  font-size: 1.5rem;
}

/* Contact section with canvas background */
.contact {
  background-color: #121212; /* Dark mode */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-dots-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Lighter opacity for subtle effect */
}

.contact .container {
  position: relative;
  z-index: 2;
}

.contact p {
  margin: 1.5rem 0;
  font-size: 1.2rem;
  font-family: "Montserrat", sans-serif; /* Clean, professional font */
  font-weight: 500;
  color: #e0e0e0; /* Light text for contrast */
}

.contact a {
  color: #ffd700; /* Gold for links */
  text-decoration: none;
  transition: color 0.3s;
}

.contact a:hover {
  color: #ffcc00;
  text-decoration: underline;
}

/* Footer */
footer {
  background: #0a0a0a; /* Match body background */
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 1rem;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
}

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

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

/* Responsive design */
@media (max-width: 768px) {
  header .container {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-right {
    margin-top: 1rem;
    justify-content: center;
    width: 100%;
  }

  header h1 {
    align-self: center;
  }

  .menu-toggle {
    display: none; /* Not needed since buttons are used */
  }

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

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

  section h2 {
    font-size: 2rem;
  }

  .skills-list {
    grid-template-columns: 1fr;
  }
}

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

  .hero {
    padding: 3rem 1rem;
  }

  .nav-right {
    gap: 0.5rem;
  }

  .nav-btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
}