/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f8f8f8;
  line-height: 1.6;
  color: #333;
  padding-top: 60px; /* Prevent header overlap */
}

a {
  text-decoration: none;
  color: inherit;
}

h2, h3 {
  color: #333;
}

/* Header Section */
header {
  background-color: #4CAF50;
  color: white;
  padding: 40px 20px;
  text-align: center;
  border-bottom: 3px solid #388E3C;
}

header h1 {
  font-size: 3em;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2em;
  font-weight: 300;
}

/* Navigation Section */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #333;
  padding: 10px 0;
  z-index: 1000;
}

nav ul {
  list-style: none;
  text-align: center;
}

nav ul li {
  display: inline-block;
  margin: 0 20px;
}

nav ul li a {
  color: white;
  font-size: 1.2em;
  padding: 0;
}

nav ul li a:hover {
  background-color: #4CAF50;
  border-radius: 5px;
}

/* About Section */
#about {
  background-color: white;
  padding: 60px 20px;
  margin-top: 80px; /* Offset the sticky nav */
  text-align: center;
}

#about h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

#about p {
  font-size: 1.2em;
  color: #555;
  line-height: 1.8;
}

/* Skills Section */
#skills {
  background-color: #f4f4f4;
  padding: 60px 20px;
  text-align: center;
}

#skills h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
}

.skills-list {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.skill {
  background-color: white;
  width: 45%;
  margin: 20px 0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.skill h3 {
  font-size: 1.8em;
  margin-bottom: 10px;
}

.skill p {
  font-size: 1.1em;
  color: #666;
}

/* Projects Section */
#projects {
  padding: 60px 20px;
  text-align: center;
  background-color: white;
}

#projects h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
}

.project-gallery {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.project {
  background-color: #f9f9f9;
  padding: 20px;
  width: 45%;
  margin: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.project h3 {
  font-size: 1.8em;
  margin-bottom: 10px;
}

.project p {
  font-size: 1.1em;
  color: #555;
}

.project a {
  color: #4CAF50;
  font-weight: bold;
}

.project a:hover {
  text-decoration: underline;
}

/* Contact Section */
#contact {
  background-color: #f4f4f4;
  padding: 60px 20px;
  margin-top: 40px;
  text-align: center;
}

#contact h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

#contact p {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 30px;
}

#contact a {
  color: #4CAF50;
  font-size: 1.2em;
  font-weight: bold;
}

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

/* Footer Section */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

footer p {
  font-size: 1.1em;
}

/* Carousel Section */
.carousel {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: auto;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;      /* fill the carousel container */
  max-width: 100%;
}


.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  transition: transform 0.3s ease-in-out;
  padding: 0;
  margin: 0;
  list-style: none;
  width: auto; /* let it expand with flex items */
}

.carousel-slide {
  min-width: 100%;   /* fill the carousel container */
  max-width: 100%;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 5px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .carousel-slide {
    min-width: 100%; /* same as above */
  }
}

.carousel-slide img {
  display: block;
  margin: 10px auto; /* this centers it */
  max-width: 200px;
  height: auto;
  width: 100%;
}


.carousel-slide h3,
.carousel-slide p {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 10px auto;
  text-align: center;
  overflow-wrap: anywhere;
  white-space: normal;
  padding: 0 10px; /* Optional: better spacing on narrow screens */}

.carousel-slide h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.carousel-slide p {
  font-size: 1rem;
  color: #555;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 12px 16px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1;
  border-radius: 50%;
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

.hidden {
  display: none;
}

.link-button {
  background: none;
  border: none;
  color: #007BFF;
  font-size: 1rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  transition: color 0.3s ease;
}

.link-button:hover {
  color: #0056b3;
  text-decoration: none;
}

.skill img:not(:last-child) {
  margin-right: 10px;
}

