/* Reset and General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Montserrat', sans-serif;
  background: #1f1f2e;
  color: #f3f3f3;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* Hide scrollbar */
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body::-webkit-scrollbar {
  display: none;
}

/* Navbar Styles */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 60px 0 60px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: none;
  z-index: 10;
  transition: transform 0.3s ease, padding 0.3s ease, background 0.3s ease;
  will-change: transform;
}

/* Navbar hidden on scroll down */
.navbar.navbar-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

/* Shrink navbar padding and add background on scroll */
.navbar.navbar-scrolled {
  padding: 10px 60px;
  background: rgba(32, 32, 48, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Desktop Logo */
.logo img {
  height: 150px;
  width: auto;
  padding-left: 30px;
  display: block;
  transition: height 0.3s ease, transform 0.3s ease;
}

/* Shrink and move logo up on scroll */
.logo.logo-scrolled img {
  height: 80px;
  transform: translateY(-15px);
}

/* Mobile right container: hamburger + logo (logo moved after hamburger) */
.mobile-right {
  display: none;
  align-items: center;
  gap: 15px;
}

/* Mobile logo */
.mobile-logo img {
  height: 50px;
  width: auto;
  display: block;
  transition: height 0.3s ease, transform 0.3s ease;
}

/* Shrink mobile logo on scroll */
.mobile-logo.logo-scrolled img {
  height: 35px;
  transform: translateY(-10px);
}

/* Dropdown Arrow */
.nav-menu .arrow,
.side-menu .arrow {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}
/* Desktop nav menu */
.nav-menu {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
}

.nav-menu li {
  list-style: none;
  position: relative;
}

.nav-menu a {
  font-size: 1.2rem;
  color: #f3f3f3;
  padding: 12px 16px;
  transition: background 0.3s ease;
}

.nav-menu a:hover {
  background: #f9d784;
  color: #23232c;
  border-radius: 4px;
}

/* Dropdown menu */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: transparent;
  min-width: 220px;
  padding: 4px 0;
}

.nav-menu li:hover .dropdown {
  display: block;
}

.dropdown li {
  width: 100%;
}

.dropdown li a {
  display: block;
  width: 100%;
  padding: 10px 18px;
  font-size: 0.95rem;
  color: #fff;
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  text-align: left;
}

.dropdown li a:hover {
  background: #f9d784;
  color: #23232c;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 2.5rem;
  color: #f3f3f3;
  cursor: pointer;
  padding-right: 30px;
  user-select: none;
  z-index: 25;
  position: relative;
}

/* Side menu (mobile) */
.side-menu {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100%;
  background: rgba(32, 32, 48, 0.95);
  box-shadow: 3px 0 12px rgba(0, 0, 0, 0.7);
  padding-top: 100px;
  transition: left 0.3s ease;
  z-index: 30;
  overflow-y: auto;
}

.side-menu.open {
  left: 0;
}

.side-menu ul {
  list-style: none;
  padding-left: 0;
}

.side-menu li {
  padding: 15px 25px;
  border-bottom: 1px solid #444;
}

.side-menu li a {
  color: #f3f3f3;
  font-size: 1.2rem;
  display: block;
}

.side-menu li a:hover {
  background: #f9d784;
  color: #23232c;
  border-radius: 4px;
}

/* Dropdown inside side menu */
.side-menu li ul {
  padding-left: 15px;
  display: none;
}

.side-menu li.open > ul {
  display: block;
}

/* Overlay behind side menu */
.side-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.side-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Background Slideshow */
.background-slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  /* Prevent shifting on scroll */
  will-change: transform;
}

.background-slideshow .slide {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.background-slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.background-slideshow .slide.active {
  opacity: 1;
}

/* Hero Section */
.landing-section {
  position: relative;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 5;
}

/* Hero Content */
.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #f9d784;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.3rem;
  color: #f3f3f3;
  font-weight: 400;
}

/* Spacer below hero to allow scrolling and slideshow visibility */
.hero-spacer {
  height: 100vh; /* same height as hero */
  background: transparent;
}

/* Main Content */
.main-content {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 10;
}

/* Projects Section */
.projects-section {
  margin-top: 60px;
  text-align: center;
}

.projects-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f9d784;
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.project-cards {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.project-card {
  background: rgba(32, 32, 48, 0.85);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  width: 30%;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  margin-bottom: 40px;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.project-card h3 {
  color: #f9d784;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.project-card p {
  color: #f3f3f3;
  font-size: 1rem;
}

/* About Section */
.about-section {
  background: rgba(0, 0, 0, 0.6);
  padding: 60px 20px;
  text-align: center;
  margin-top: 60px;
  border-radius: 12px;
}

.about-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f9d784;
  margin-bottom: 20px;
}

.about-section p {
  font-size: 1.2rem;
  color: #e0e0e0;
  margin-bottom: 30px;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  background: #23232c;
  color: #f3f3f3;
  margin-top: 60px;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .navbar .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .project-cards {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    width: 80%;
    margin-bottom: 30px;
  }

  .landing-section .hero-content h1 {
    font-size: 2.5rem;
  }

  .landing-section .hero-content p {
    font-size: 1.1rem;
  }

  .about-section {
    padding: 40px 20px;
  }
}

@media (max-width: 600px) {
  /* Hide desktop nav menu and logo */
  .nav-menu {
    display: none !important;
  }

  /* Show hamburger */
  .hamburger {
    display: block;
    margin: 0;
    padding: 0;
  }

  /* Show side menu */
  .side-menu {
    display: block;
  }

  /* Show mobile right container */
  .mobile-right {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    display: flex;
    background: none;
    z-index: 999;
    transition: transform 0.3s ease, background 0.3s ease;
  }
 
  /* Slide mobile-right up when navbar is hidden */
  .navbar.navbar-hidden .mobile-right {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
  }

  /* Add background and shadow when scrolling down */
  .navbar.navbar-scrolled .mobile-right {
    background: rgba(32, 32, 48, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease, box-shadow 0.3s ease;
  }
  .mobile-logo {
    margin-left: auto;
  }

  .navbar {
    padding: 0 !important; /* overrides large padding */
  }
.mobile-logo {
    margin-left: auto;
  }

  /* Shrink mobile logo on scroll */
  .mobile-logo.logo-scrolled img {
    height: 35px;
    transform: translateY(-10px);
    transition: height 0.3s ease, transform 0.3s ease;
  }
  .logo {
    display: none !important;
  }

  /* Fix project cards spacing on mobile */
  .project-cards {
    flex-direction: column;
    gap: 20px;
  }

  .project-card {
    width: 100%;
    margin-bottom: 20px;
  }
}

/* Hide side menu and hamburger on desktop */
@media (min-width: 601px) {
  .side-menu {
    display: none !important;
  }
  .hamburger {
    display: none !important;
  }
  .mobile-right {
    display: none !important;
  }
}

/* Contact Page Specific Styles */
.contact-main {
  padding-top: 120px; /* to avoid overlap with fixed navbar */
  padding-bottom: 80px;
}

.contact-section h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #f9d784;
  margin-bottom: 15px;
  text-align: center;
}

.contact-section p {
  font-size: 1.2rem;
  color: #e0e0e0;
  margin-bottom: 40px;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-wrapper {
  display: flex;
  gap: 60px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Contact Form */
.contact-form {
  background: rgba(32, 32, 48, 0.85);
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  width: 450px;
  max-width: 100%;
  color: #f3f3f3;
  font-family: 'Montserrat', sans-serif;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: none;
  border-radius: 8px;
  background: #23232c;
  color: #f3f3f3;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  resize: vertical;
  transition: background 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: #3a3a4c;
  outline: none;
}

.btn-submit {
  background: #f9d784;
  color: #23232c;
  border: none;
  padding: 14px 30px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

.btn-submit:hover {
  background: #f7c94e;
}

/* Contact Info */
.contact-info {
  background: rgba(32, 32, 48, 0.85);
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  width: 350px;
  max-width: 100%;
  color: #f3f3f3;
  font-family: 'Montserrat', sans-serif;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #f9d784;
}

.contact-info p,
.contact-info a {
  font-size: 1rem;
  margin-bottom: 12px;
  display: block;
  color: #f3f3f3;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #f9d784;
}

/* Map Container */
.map-container {
  margin-top: 25px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* Responsive */
@media (max-width: 900px) {
  .contact-wrapper {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .contact-form,
  .contact-info {
    width: 100%;
    max-width: 500px;
  }
}

@media (max-width: 600px) {
  .contact-section h2 {
    font-size: 2rem;
  }

  .contact-section p {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .btn-submit {
    font-size: 1rem;
    padding: 12px 20px;
  }
}
