/* Font & Reset */
body, html {
  margin: 0;
  padding: 0;
  font-family: "Roboto Serif", serif;
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
}

:root {
  --bg: #f5f7f9;
  --text: #333;
  --primary: #fb9805;
  --secondary: #56b013;
  --accent: #ff7043;
  --light: #fff;
  --btn-bg: var(--primary);
}

body.dark {
  --bg: #121212;
  --text: #f0f0f0;
  --btn-bg: var(--accent);
}

/* Containers & Sections */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem;
}

.section {
  padding: 4rem 1rem;
}
@media (max-width: 600px) {
  .section {
    padding: 2rem 1rem;
  }
}

.alt-bg {
  background: #e0f2f1;
}
/* Header */
header {
  background: white;
  color: white;
  /* padding: 1rem 0; */
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo{
  height: 70px;
}
.logo img {
  height: 70px;
}
/* nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
}
nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
nav a:hover {
  text-decoration: underline;
} */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* background-color: #333; */
  /* padding: 0.7rem 1.5rem; */
  /* color: white; */
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--primary);;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  text-decoration: underline;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: black;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    right: 0;
    top: 100%;
    flex-direction: column;
    background-color: #333;
    width: 100%;
    display: none;
    text-align: center;
    padding: 1rem 0;
    margin-top: 0;
  }

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

  .hamburger {
    display: flex;
  }

  .hero-carousel {
    transition: margin-top 0.3s ease;
  }

  .nav-open {
    margin-top: 234px;
  }
}


#theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  margin-left: 1rem;
}
/* Hero Carousel */
.hero-carousel {
  height: 400px;
  overflow: hidden;
  position: relative;
}
/* .slides {
  display: flex;
  animation: slide 15s infinite;
} */
.slide {
  flex: 1 0 100%;
  background-size: cover;
  background-position: center;
  height: 400px;
  position: relative;
}

#slide1 { background-image: url('images/banner.jpg'); }
/* #slide2 { background-image: url('images/slide2.jpg'); }
#slide3 { background-image: url('images/slide3.jpg'); }
#slide4 { background-image: url('images/slide4.jpg'); } */
.overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: var(--primary);
  background: rgba(0,0,0,0.5);
  padding: 0 20px;
  border-radius: 5px;
  text-align: center;
}

@keyframes slide {
  0% { transform: translateX(0); }
  33% { transform: translateX(-100%); }
  66% { transform: translateX(-200%); }
  100% { transform: translateX(-300%); }
}

#about p {
  text-align: justify;
}

/* Projects */
.grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 300px;
}
.card img {
  width: 100%;
  border-radius: 5px;
}


/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
input, textarea {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.btn-primary, .btn-secondary {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}
.btn-primary {
  background: var(--btn-bg);
  color: white;
}
.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--primary);
  color: white;
}

/* Animation Effects */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease forwards;
}
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.slide-up-fade-in {
  opacity: 0;
  transform: translateY(40px);
  animation: slideFadeIn 1s ease forwards;
}
@keyframes slideFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }
  .grid {
    flex-direction: column;
  }
}

.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.lightbox.hidden {
  display: none;
}
#lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}
#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--btn-bg);
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 1000;
}

