/* General Styles */
html {
  scroll-behavior: smooth;
}

/* About Section: Side by Side Layout */
.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* Style for the photo */
.about-img {
  flex: 0 0 250px;
}
.about-img img {
  width: 100%;
  max-width: 250px;
  border-radius: 50%;
  object-fit: cover;
}

/* Text container takes the remaining space */
.about-text {
  flex: 1;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #4f4f4f;
}

.container {
  width: 80%;
  margin: 0 auto;
  padding: 20px;
}

.section {
  padding: 60px 0;
}

h1 {
  color: #d7dff3;
  font-size: 2em; /* Reduced font size */
}
/* Center content */
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

/* Input styling */
#usernameInput {
  width: 250px;
  padding: 12px 15px;
  border: 2px solid #cccccc82;
  border-radius: 100px;
  outline: none;
  font-size: 16px;
  transition: 0.3s ease;
}

/* Focus effect */
#usernameInput:focus {
  border-color: #4A90E2; /* Blue highlight */
  box-shadow: 0 0 6px rgba(74, 144, 226, 0.4);
}

/* Button styling */
button {
  padding: 12px 20px;
  background: #e24a4a6f;
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
}

/* Hover effect */
button:hover {
  background: #c03a3a;
  transform: translateY(-2px);
}

/* Click effect */
button:active {
  transform: translateY(1px);
}

h2, h3 {
  color: #3e4246;
  font-size: 1.5em; /* Reduced font size */
}

/* Navigation Bar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 0;
  z-index: 1000;
  transition: background 0.3s ease-in-out;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  transition: color 0.3s ease, transform 0.2s ease;
}

nav ul li a:hover {
  color: #ff6347;
  transform: scale(1.1);
}

/* Home Section */
#home {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.home-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.home-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-text {
  z-index: 1;
  color: white;
  font-size: 1.5em; /* Reduced font size */
  font-weight: bold;
}

.home-text .btn {
  background: #ff6347;
  color: white;
  padding: 12px 24px;
  font-size: 1.1em; /* Reduced font size */
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 20px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.home-text .btn:hover {
  background: #e5533d;
  transform: scale(1.05);
}

/* Smooth Scroll Effect */
html {
  scroll-behavior: smooth;
}

/* Projects Section - Slideshow */
.slideshow-container {
  position: relative;
  margin: auto;
  max-width: 100%;
}

.mySlides {
  display: none;
  position: relative;
  text-align: center;
}

.mySlides img {
  max-width: 60%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

/* Updated Caption Style */
.caption {
  text-align: center;
  background: rgba(255,255,255,0.8);
  padding: 15px;
  width: 100%;
  margin-top: 10px;  /* Adds space between the image and description */
  position: static;  /* Removes absolute positioning */
}

.fade {
  animation: fadeEffect 1.5s;
}

@keyframes fadeEffect {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Navigation arrows and dots for the slideshow */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -20px;
  padding: 16px;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.2);
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Skills Section */
.skills-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills-list li {
  background: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.skills-list li:hover {
  background: #ff6347;
  transform: scale(1.05);
}

/* Contact Section */
.contact-links {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.contact-links a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-links a:hover {
  color: #ff6347;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 10px 0;
}

/* View on GitHub Button (No Underline) */
.btn {
  background: #ff6347;
  color: white;
  padding: 12px 24px;
  font-size: 1.1em; /* Reduced font size */
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  margin-top: 20px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background: #e5533d;
  transform: scale(1.05);
}

/* GitHub Button */
.btn-github {
  background: #333;
  color: white;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-github:hover {
  background: #242424;
  transform: scale(1.05);
}

/* Adjusting the buttons in the Project Section */
.projects .caption .btn {
  background-color: #ff6347;
  color: white;
  padding: 10px 20px;
  font-size: 1em; /* Reduced font size */
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 15px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.projects .caption .btn:hover {
  background: #e5533d;
  transform: scale(1.05);
}

/* Contact Links */
.contact-links a {
  display: inline-block;
  margin: 10px;
  padding: 12px 20px;
  background-color: #333;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-links a:hover {
  background-color: #242424;
  transform: scale(1.05);
}

/* Responsive Styles */
@media (max-width: 768px) {
  /* Adjust container width */
  .container {
    width: 90%;
  }
  
  /* Stack the About section vertically */
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-img {
    margin-bottom: 20px;
  }
  
  /* Adjust Home Section for smaller screens */
  #home {
    height: auto;
    padding: 80px 0;
  }
  .home-text {
    font-size: 1.2em;
  }
  
  /* Make slideshow images larger on mobile */
  .mySlides img {
    max-width: 90%;
  }
  
  /* Optional: Stack nav items if needed */
  nav ul {
    flex-wrap: wrap;
  }
  nav ul li {
    margin: 5px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5em;
  }
  h2, h3 {
    font-size: 1.3em;
  }
  .home-text {
    font-size: 1em;
  }
  .btn, .home-text .btn {
    padding: 10px 20px;
    font-size: 1em;
  }
  /* Reduce padding for sections */
  .section {
    padding: 40px 0;
  }
}

