/* Global Styles */
/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: #f9fafb;
  color: hsl(0, 0%, 0%);
}
a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover, a:focus {
  color: #ffffff;
  outline: none;
}
/* Header */
.main-header {
  background: #fff;
  border-bottom: 1px solid #ccc;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 45px;
  width: auto;
  transform: translateY(20px);
  animation: slide-in 1s ease forwards;
  animation-delay: 0.3s;
}

.site-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #000000;
  white-space: nowrap;
}

/* Navigation links */
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.nav-links li a:hover {
  color: #ff2e2e;
}

/* Mobile Toggle Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background: #ff2e2e;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 65px;
    left: 0;
    border-top: 1px solid #ddd;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}
@keyframes slide-in {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  text-align: center;
}
.hero-slideshow {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.hero-slideshow .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}


.slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}
.slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  padding: 20px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
}
.hero p {
  font-size: 1.9rem;
  max-width: 600px;
  margin: 0 auto 30px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.6s;
}
.btn {
  background-color: #000000a4;
  color: white;
  padding: 14px 36px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  display: inline-block;
  user-select: none;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.9s;
}
.btn:hover, .btn:focus {
  background-color: #000000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  outline: none;
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 30px;
  padding: 40px 30px;
  background-color: #fff;
}

.project-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  animation: fadeInUp 0.8s ease;
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-card img {
  width: 100%;
  object-fit: cover;
}

.project-card h3 {
  margin: 15px;
  font-size: 1.3rem;
  color: #ff3030;
  text-align: center;
}

.project-card p {
  margin: 0 15px 15px;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Footer */
footer.footer {
  background: #222;
  color: #eee;
  padding: 30px 20px 10px;
  font-size: 0.9rem;
  user-select: none;
}
.footer-section {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.footer-section.left ul {
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.footer-section.left ul li a {
  color: #ccc;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.footer-section.left ul li a:hover,
.footer-section.left ul li a:focus {
  color: #25D366;
  outline: none;
}
.footer-section.center,
.footer-section.right {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #ddd;
  justify-content: center;
}
.social-icon {
  color: #ffffff;
  font-size: 1.8rem;
  transition: color 0.3s ease;
}
.social-icon:hover, .social-icon:focus {
  color: #128c4a;
  outline: none;
}
.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 10px;
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  user-select: none;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Tweaks */
@media (max-width: 600px) {
  .projects-grid {
    padding: 20px 10px;
  }

  .explore-header h1 {
    font-size: 2rem;
  }
}
