/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: url('assets/background.jpg') no-repeat center top;
  background-attachment: fixed; /* parallax-like effect on desktop */
  background-size: cover;
  color: #fff;
  scroll-behavior: smooth;
}

/* Add a subtle global overlay on top of background for readability */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
}

/* Links */
a {
  color: #00bfff;
  text-decoration: none;
}
a:hover {
  color: #1de9b6;
}

/* Navigation Bar */
nav {
  position: fixed;
  width: 100%;
  background: rgba(15, 15, 15, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.25);
}

nav .logo {
  font-weight: 600;
  font-size: 1.5rem;
  color: #00bfff;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  font-weight: 500;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #1de9b6;
}

/* Sections: make sections transparent so single background shows through.
   Use an inner container (.section-box) for readable content boxes if needed */
section {
  padding: 100px 20px;
  min-height: 100vh;
  text-align: center;
  background: transparent; /* ensure no solid background here */
  position: relative;
  z-index: 1;
}

/* Optional inner box for better readability and consistent spacing */
.section-box {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(0,0,0,0.45); /* semi-transparent box so text is readable */
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* HOME SECTION styles */
#home .home-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 60px; /* account for fixed navbar */
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-bottom: 20px;
  object-fit: cover;
  border: 3px solid #00bfff;
  box-shadow: 0 0 25px rgba(0, 188, 212, 0.5);
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.03);
}

#home h1 {
  font-size: 2.8rem;
  color: #00bfff;
  text-shadow: 0 0 10px #00bfff;
  margin-bottom: 6px;
}

#home h2 {
  font-size: 1.5rem;
  color: #ffffff;
  margin: 10px 0 20px;
  letter-spacing: 1px;
}

#home p {
  max-width: 700px;
  margin: 0 auto;
  color: #d0d0d0;
  font-size: 1.2rem;
  line-height: 1.9;
  font-weight: 400;
  letter-spacing: 0.4px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
}

/* About Section */
#about h2 {
  color: #00bfff;
  margin-bottom: 30px;
}

#about p {
  max-width: 800px;
  margin: 20px auto;
  color: #f0f0f0;
  font-size: 1.2rem;
  line-height: 2.1;
  font-weight: 400;
  letter-spacing: 0.5px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: justify;
}

/* Projects Section */
#projects h2 {
  color: #00bfff;
  margin-bottom: 30px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
  padding: 0 20px;
}

.project-card {
  background: rgba(255,255,255,0.04);
  padding: 25px;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255,255,255,0.03);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0, 188, 212, 0.12);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.project-card h3 {
  color: #fff;
  margin: 10px 0;
  font-size: 1.15rem;
}
.project-card p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Gallery Section */
#gallery h2 {
  color: #00bfff;
  margin-bottom: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  padding: 0 20px;
}

.gallery-item {
  background: rgba(255,255,255,0.03);
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s, background 0.3s;
}

.gallery-item:hover {
  transform: scale(1.03);
  background: rgba(0,191,255,0.06);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid #00bfff;
}

.gallery-item p {
  padding: 12px;
  font-size: 0.95rem;
  color: #ddd;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 191, 255, 0.3);
}


/* Contact Section */
#contact h2 {
  color: #00bfff;
  margin-bottom: 20px;
}

/* Footer */
footer {
  background: rgba(0,0,0,0.35);
  padding: 15px;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.03);
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background: #111;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    display: none;
    border-left: 2px solid #00bfff;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin: 1rem 0;
  }

  #home h1 {
    font-size: 2rem;
  }

  #home p {
    width: 90%;
  }

  .profile-img {
    width: 160px;
    height: 160px;
  }
}
