/* General Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #ddd;
  background-color: #121212;
  width: 100%;
  overflow-x: hidden;
}

/* Header */
header {
  background: #1a1a1a;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  position: relative;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 10px 0;
}

.icon {
  text-decoration: none;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #03DAC6;
  border-radius: 50%;
  color: black;
  font-size: 24px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.icon:hover {
  background: #018786;
  transform: scale(1.1);
}

/* Navbar */
.nav-bar {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
  margin: 0;
  background: #03DAC6;
}

.nav-bar li {
  flex: 1;
  text-align: center;
}

.nav-bar li a {
  display: block;
  padding: 10px;
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

.nav-bar li a:hover {
  background: #018786;
  color: #fff;
}

/* About Section */
.about-section {
  padding: 30px;
  background: #1f1f1f;
  border-radius: 10px;
  margin: 20px;
}

.about-details {
  display: flex;
  gap: 20px;
  align-items: center;
}

.about-photo img {
  width: 200px;
  height: auto;
  border-radius: 10px;
}

.about-info ul {
  list-style: none;
  padding: 0;
}

.about-info ul li {
  margin-bottom: 10px;
}

.about-info ul li strong {
  color: #03DAC6;
}

/* Work Experience */
.work-experience {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.work-experience th, .work-experience td {
  border: 1px solid #555;
  padding: 10px;
  text-align: left;
}

.work-experience th {
  background: #03DAC6;
  color: black;
}

/* CV Download */
.cv-download {
  text-align: center;
  margin: 20px 0;
}

.cv-button {
  text-decoration: none;
  background: #03DAC6;
  color: black;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  transition: background 0.3s ease;
}

.cv-button:hover {
  background: #018786;
  color: white;
}

/* Projects */
.projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.projects-tile, .gallery-tile {
  flex: 1;
  background: #1f1f1f;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

.github-button {
  text-decoration: none;
  background: #03DAC6;
  color: black;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  transition: background 0.3s ease;
}

.github-button:hover {
  background: #018786;
  color: white;
}

/* Carousel Gallery */
.gallery-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;
}

.gallery {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.gallery-item {
  min-width: 100%;
  text-align: center;
}

.gallery-item img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.2);
}

.gallery-item p {
  margin-top: 10px;
  font-size: 1rem;
  color: #ccc;
}

/* Contact Section */
.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-info, .contact-form {
  flex: 1;
  max-width: 45%;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #03DAC6;
  background: #222;
  color: white;
  border-radius: 5px;
}

.contact-form button {
  background: #03DAC6;
  color: black;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #018786;
  color: white;
}

/* === RESPONSIVE FIXES === */

/* Navbar Responsive */
@media (max-width: 768px) {
  .nav-bar {
    flex-direction: column;
    align-items: center;
  }

  .nav-bar li {
    width: 100%;
  }
}

/* Responsive About Section */
@media (max-width: 900px) {
  .about-details {
    flex-direction: column;
    text-align: center;
  }
}

/* Responsive Table */
@media (max-width: 768px) {
  .work-experience {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Responsive Gallery */
@media (max-width: 768px) {
  .gallery-container {
    max-width: 100%;
  }
}

/* Responsive Contact */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-info, .contact-form {
    max-width: 100%;
  }
}

/* ✅ Footer Fix - Now Centered on Mobile */
footer {
  background: #1a1a1a;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Footer Responsive Fix */
@media (max-width: 768px) {
  footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  footer p {
    font-size: 0.9rem;
    margin: 5px;
  }

  .footer .social-icons {
    flex-wrap: wrap;
    justify-content: center;
  }
}
