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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url("images/overall-backgroud-image.avif") no-repeat center center fixed;
  background-size: cover;
  color: #eee;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #222;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00bcd4;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #eee;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #00bcd4;
  outline: none;
}

.btn {
  background-color: #00bcd4;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover,
.btn:focus {
  background-color: #0097a7;
  outline: none;
}

/* Responsive nav toggle button */
.nav-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #00bcd4;
  cursor: pointer;
}

/* Sections */
.section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1, h2, h3 {
  margin-bottom: 1rem;
  color: #00bcd4;
}

.skills-list,
.project-categories ul,
.social-links {
  list-style: none;
  padding-left: 0;
}

.skills-list li,
.project-categories li,
.social-links li {
  margin-bottom: 0.6rem;
}

.project-categories {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.category {
  flex: 1 1 250px;
}

.social-links a {
  color: #eee;
  text-decoration: none;
  font-weight: 600;
}

.social-links a:hover,
.social-links a:focus {
  color: #00bcd4;
  outline: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #222;
  color: #777;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #222;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .project-categories {
    flex-direction: column;
  }
}

/* Active nav link style */
.nav-links a.active {
  color: #ff6f61; /* highlight color */
  font-weight: 700;
}

/* Fade in animation */
.project-categories .category {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.project-categories .category.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Projects grid layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Updated Project cards styling with enhanced hover effect */
.project-card {
  background-color: rgba(30, 30, 30, 0.85);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(0, 188, 212, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 188, 212, 0.6);
}

.project-card h3 {
  color: #00bcd4;
  margin: 1rem 0 0.5rem;
}

.project-card p {
  color: #ddd;
  flex-grow: 1;
}

.project-card a {
  margin-top: 1rem;
  display: inline-block;
  background-color: #00bcd4;
  color: #121212;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.project-card a:hover {
  background-color: #0097a7;
}

/* Updated Thumbnail image style with hover zoom & shadow */
.project-thumbnail {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  margin-bottom: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-thumbnail:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 188, 212, 0.7);
}

/* About Me section layout */
.about-content {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-image {
  flex: 1 1 200px;
  max-width: 200px;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.about-text {
  flex: 2 1 400px;
}

.about-text p {
  margin-bottom: 1.2rem;
}

/* Background for About Me section */
.about-section {
  background: url("images/home-section-background.jpg") no-repeat center center/cover;
  padding: 4rem 1rem;
  border-radius: 10px;
  color: #f0f0f0;
  position: relative;
  z-index: 1;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6); /* dark overlay for readability */
  z-index: -1;
  border-radius: 10px;
}

/* Skills Section Container */
#skills {
  position: relative;
  background: url('images/skills-section-image.png') no-repeat center center/cover;
  padding: 4rem 1rem 3rem;
  color: #fff;
  overflow: hidden;
}

/* Dark overlay layer for contrast */
#skills::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

/* Make sure content is above overlay */
.skills-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Skill cards styling stays, add higher z-index */
.skill-category {
  position: relative;
  background-color: #1e1e1ecc; /* slightly transparent for layering */
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.98);
  transition: all 0.5s ease;
  z-index: 1;
}

/* Keep your animation classes */
.skill-category.visible {
  opacity: 1;
  transform: scale(1);
}

/* Section heading strip style remains */
.section h2 {
  position: relative;
  z-index: 1;
  width: 100%;
  background-color: #00bcd4;
  color: #121212;
  text-align: center;
  font-size: 2rem;
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.6s ease-in-out;
}

.section h2.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Text and icon colors inside skill cards */
.skill-category h3 {
  color: #00bcd4;
  margin-bottom: 1rem;
}

.skill-category ul {
  list-style-type: none;
  padding: 0;
}

.skill-category li {
  margin-bottom: 0.5rem;
  color: #ddd;
  font-size: 0.95rem;
}

.skill-category i {
  color: #00bcd4;
  margin-right: 0.5rem;
  min-width: 20px;
  font-size: 1rem;
}

/* Project Fade-in */
.project-categories .category {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
.project-categories .category.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Toggle Button */
.toggle-btn {
  background-color: #00bcd4;
  color: #121212;
  border: none;
  padding: 0.6rem 1rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.4);
  transition: background-color 0.3s ease;
}
.toggle-btn:hover {
  background-color: #0097a7;
}

/* Hide skills when toggled */
.skill-category.hidden {
  display: none;
}

/* === Contact Section with Background Image === */
#contact {
  background: url('images/contact-section-image.jpg') no-repeat center center/cover;
  padding: 4rem 1rem;
  color: #fff;
  position: relative;
}

#contact::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* dark overlay for contrast */
  z-index: 0;
}

.contact-details {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background-color: rgba(30, 30, 30, 0.9); /* semi-transparent dark box */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 188, 212, 0.2);
  font-size: 1.1rem;
}

.contact-details p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-details i {
  color: #00bcd4;
  min-width: 20px;
}

.contact-details a {
  color: #00bcd4;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: #0097a7;
}

/* Projects Section with Background Image */
#projects {
  position: relative;
  background: url('images/project-section-image.avif') no-repeat center center/cover;
  padding: 4rem 1rem 3rem;
  color: #fff;
  overflow: hidden;
}

/* Dark overlay for contrast */
#projects::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

/* Projects grid content above overlay */
.projects-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* =================== CURRENTLY LEARNING SECTION =================== */

/* Container section styling */
#learning {
  position: relative;
  background: url('images/learning-background-.png') no-repeat center center/cover; 
  padding: 4rem 1rem 4rem;
  color: #fff;
  overflow: hidden;
}

/* Dark overlay for readability */
#learning::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* slightly lighter overlay for better text visibility */
  z-index: 0;
}

/* Heading style consistent with other sections */
#learning h2 {
  position: relative;
  z-index: 2; /* ensures text sits above overlay */
  width: 100%;
  background-color: #00bcd4;
  color: #121212;
  text-align: center;
  font-size: 2rem;
  padding: 1rem 0;
  margin-bottom: 2.5rem;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  opacity: 1; /* immediately visible */
  transform: translateY(0); /* remove hidden offset */
  transition: all 0.6s ease-in-out;
}

/* Learning items container (card wrapper) */
#learning .learning-card {
  position: relative;
  z-index: 2; /* ensures content is above overlay */
  background-color: rgba(30,30,30,0.85); /* semi-transparent dark box for readability */
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(0, 188, 212, 0.3);
  max-width: 650px;
  margin: 0 auto; /* center on page */
}

/* List styling for learning items */
#learning ul {
  list-style: none; /* remove default bullets */
  padding: 0;
  margin: 0;
}

/* Individual learning item */
#learning ul li {
  color: #f0f0f0; /* brighter text for readability */
  font-size: 1.05rem;
  margin-bottom: 1rem;
  display: flex; /* align icon and text */
  align-items: center;
  gap: 0.6rem; /* space between icon and text */
  opacity: 1; /* immediately visible */
  transform: translateY(0); /* remove hidden offset */
  transition: all 0.5s ease;
}

/* Learning item icon styling */
#learning ul li i {
  color: #00bcd4;
  min-width: 20px;
  font-size: 1.2rem;
}

/* Optional fade-in animation (if you want items to animate on scroll) */
#learning ul li.fade-in {
  opacity: 1;
  transform: translateY(0);
}

