/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styling */
body {
  font-family: 'Orbitron', sans-serif;
  background: #0d0d0d;
  color: #f2f2f2;
}

/* Header styling */
header {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.9);
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
}

/* Navigation menu */
.nav-links {
  list-style: none;
  display: flex;
  justify-content: space-evenly; /* Center the links inside the navigation bar */
  /* flex-wrap:nowrap; Allow wrapping on small screens */
  gap: 2rem; /* Add some space between links */
}



.nav-links li a {
  text-decoration: none;
  color: #f2f2f2;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #00ccff;
}

/* Intro section */
.intro {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #000, #001a33);
  position: relative;
  z-index: 1; /* Lower z-index so it goes behind the next section */
  overflow: hidden; /* Ensure nothing leaks when scrolling */
  padding-bottom: 2rem;
}

.neon-text {
  color: #00ccff;
  text-shadow: 0 0 10px #00ccff, 0 0 20px #00ccff;
  font-size: 4rem;
}

.tagline {
  color: #f2f2f2;
  font-size: 1.5rem;
  margin-top: 1rem;
}

/* Services Section */
.services {
  padding-top: 0; /* Remove padding at the top */
  margin-top: 0;  /* Ensure no margin is added at the top */
  background: #111;
  text-align: center;
  position: relative;
  z-index: 100; /* Higher z-index to bring this in front of the intro section */
}

/* Add more padding to the top of sections to prevent the header from covering the section title */
section {
  padding-top: 120px; /* Increased padding for better spacing on mobile screens */
}

.section-title {
  color: #00ccff;
  text-shadow: 0 0 10px #00ccff, 0 0 20px #00ccff;
  font-size: 3rem;
  padding-bottom: 2rem;
}

.service-list {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap; /* Ensure items wrap on smaller screens */
}

.service-card {
  background: #1a1a1a;
  padding: 1.5rem; /* Decrease padding to fit within the section */
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 204, 255, 0.5);
  transition: transform 0.3s ease;
  max-width: 350px; /* Ensure each service card has a maximum width */
  margin-bottom: 2rem; /* Add spacing between rows */
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card h3 {
  font-size: 1.8rem; /* Decrease the title font size */
}

.service-card p {
  font-size: 1.1rem; /* Adjust the paragraph font size */
  line-height: 1.5;
}

.service-card:hover {
  transform: translateY(-10px);
}

/* About Section */
.about {
  background: #0d0d0d;
  padding: 4rem 2rem;
  text-align: center;
}

.about p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.8;
}

.about img {
  margin-top: 2rem;
  width: 300px;
  border-radius: 50%;
}

/* Portfolio section */
.portfolio {
  background: #0d0d0d;
  padding: 4rem 0;
  text-align: center;
}

.portfolio-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  flex-wrap: wrap;
}

.portfolio-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

/* Footer section */
footer {
  text-align: center;
  padding: 2rem 0;
  background: #111;
  color: #f2f2f2;
  font-size: 1.2rem;
}

/* Footer links with icons */
footer a {
  color: #00ccff;
  text-decoration: none;
  font-size: 1rem;
  margin-left: 0.5rem;
}

footer a:hover {
  text-decoration: underline;
}

/* Social icons */
footer i {
  margin-right: 0.2rem; /* Space between icon and text */
}

/* Ensure space between links */
footer ul li {
  margin-right: 1.5rem;
}
  
/* Ensure the "Contact me at" text and links are properly spaced */
footer p {
  margin-bottom: 1rem; /* Space between text and social links */
}

footer {
  text-align: center;
  padding: 1.5rem;
  background: #111;
}

footer .social-list {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
}

footer .social-list__item {
  margin-right: 1rem;
}

footer .social-list__item:last-child {
  margin-right: 0;
}

footer .social-list__item a {
  color: #00ccff;
  font-size: 1rem;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Main content should flex to fill the available space */
.main-content {
  flex: 1; /* Ensure the main content takes up the remaining space */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center the content vertically */
}

/* Adjusted intro section */
.intro {
  height: 20vh; /* Further reduced height */
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #000, #001a33);
  color: #f2f2f2;
  margin-top: 3.5rem;
  border: none; /* Remove any borders causing the white space */
}

.intro__content {
  text-align: center;
}

.section__title--intro {
  font-size: 2.5rem;
  color: #00ccff;
  text-shadow: 0 0 10px #00ccff, 0 0 20px #00ccff;
  margin-bottom: 0; /* Removed unnecessary bottom margin */
}

.section__subtitle--intro {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  color: #f2f2f2;
}

/* Portfolio section styling */
.portfolio-item-individual {
  background: #0d0d0d;
  padding: 0.5rem 0;
  text-align: center;
  color: #f2f2f2;
  margin-bottom: 0; /* Ensuring no white space before footer */
  border: none; /* Remove any unwanted borders */
}

.portfolio-item-individual p {
  font-size: 1.3rem; /* Increased font size */
  line-height: 1.6;
  max-width: 80%; /* Limit the width to avoid excessive stretching */
  margin: 0 auto 1rem; /* Center and add space at the bottom */
  word-wrap: break-word; /* Ensure text wraps properly */
}

.portfolio-item-individual img {
  width: 60%; /* Increased image size */
  max-width: 320px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 204, 255, 0.5);
  margin-top: 0.5rem;
}

