/* ===============================
   RESET AND GLOBAL STYLES
   =============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  font-family: 'Funnel Display', Times, serif;
  color: rgb(0, 0, 0);
  display: flex;
  flex-direction: column;
}

html, body {
  height: 100%;
}

main {
  flex: 1;
}

/* ===============================
   NAVIGATION BAR
   =============================== */
.navbar {
  background-color: #f0f0f0;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative; /* Keep this for now, but it'll change on mobile */
  z-index: 1000; /* Ensure navbar is above other content */
}

.logo {
  display: inline-block;
  padding: 0;
  border-radius: 0;
  line-height: 0;
}

.logo:hover {
  background-color: transparent;
  transition: all 0.3s ease;
}

.logo img {
  width: 50px;
  height: 50px;
  display: block;
}

.nav-links { /* Target this class specifically for the list */
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; /* Default to flex for desktop */
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.navbar li {
  margin: 0;
}

.navbar a {
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-size: 1.2rem;
  padding: 10px 15px;
  display: block;
  border-radius: 5px;
  transition: background-color 0.3s ease, border-radius 0.3s ease, transform 0.05s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.navbar a:active {
  transform: scale(0.90);
  transition: transform 0.05s ease;
}

.navbar a:not(.logo):hover {
  background-color: #cecccc;
  transition: all 0.3s ease;
}

/* Hamburger menu toggle button (hidden by default on large screens) */
.menu-toggle {
  display: none; /* Hidden by default */
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  order: 2; /* Ensures it appears after logo on large screens if flex is row */
}

/* ===============================
   MEDIA QUERIES FOR RESPONSIVENESS
   =============================== */
/* Inside your @media (max-width: 768px) block */

/* Style the new close button */
.close-menu {
  display: none; /* Hidden by default */
  position: absolute; /* Position relative to the .nav-links parent */
  top: 20px; /* Adjust as needed */
  right: 20px; /* Adjust as needed */
  font-size: 2.5rem; /* Large enough to be easily tappable */
  background: none;
  border: none;
  color: #000; /* Match your text color */
  cursor: pointer;
  z-index: 1002; /* Ensure it's above the menu links and navbar if needed */
  transition: transform 0.2s ease;
}

.close-menu:hover {
    transform: scale(1.1);
}
.close-menu:active {
    transform: scale(0.9);
}

/* When .nav-links is active, show the close button */
.nav-links.active .close-menu {
    display: block;
}

/* Optional: Hide the original hamburger when the menu is open */
.nav-links.active + .menu-toggle { /* Selects the menu-toggle right after active nav-links */
    display: none;
}
/* Or, if the menu-toggle is not a sibling, you might need a JS approach
   or adjust z-index more carefully. Given your HTML, this should work. */

/* ===============================
   MEDIA QUERIES FOR RESPONSIVENESS
   =============================== */
@media (max-width: 768px) {
  /* ... existing mobile styles for .navbar, .menu-toggle, .nav-links ... */

  /* Ensure body content is pushed down by the fixed navbar */
  body {
    padding-top: 100px; /* Adjust this value if your navbar height changes */
  }

  /*
    Note: If specific sections like .home-hero, .about-section, etc.
    already have top padding/margin, you might need to adjust them
    to ensure they don't double up or cause too much space.
    The goal is for the *visible content* to start below the navbar.
    A padding-top on the body is usually the most robust solution.
  */

  /* ... rest of your existing @media (max-width: 768px) styles ... */

  .navbar {
    position: fixed; /* Make it stick to the top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001; /* Higher z-index to be above the overlay (1000 is still good for desktop) */
    background-color: #f0f0f0; /* Explicitly set background if it might become transparent */
  }

  /* Show the hamburger icon on small screens */
  .menu-toggle {
    display: block;
    /* No need for order here as navbar is fixed and nav-links is an overlay */
  }

  /* Ensure the logo stays on the left and the toggle on the right */
  .navbar .logo {
    margin-right: auto; /* Pushes the menu toggle to the right */
  }

  /* Full-screen overlay for navigation links */
  .nav-links {
    display: none; /* Hide by default */
    position: fixed; /* Position relative to the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(240, 240, 240, 0.95); /* Semi-transparent background matching navbar */
    flex-direction: column; /* Stack links vertically */
    justify-content: center; /* Center links vertically */
    align-items: center; /* Center links horizontally */
    z-index: 1000; /* This is now lower than the fixed .navbar */
    overflow-y: auto; /* Enable scrolling if content exceeds screen height */
    transition: all 0.3s ease-in-out; /* Smooth transition */
    padding-top: 80px; /* Add padding to push content below the fixed navbar */
  }

  /* Display navigation links when the 'active' class is present */
  .nav-links.active {
    display: flex;
  }

  /* Ensure individual list items and links fill width and are styled for the overlay */
  .nav-links li {
    width: 80%; /* Adjust as needed for spacing */
    max-width: 300px; /* Optional: limit max width for very wide screens */
    margin-bottom: 20px; /* Space between links */
  }

  .nav-links a {
    font-size: 1.8rem; /* Larger font size for full-screen menu */
    padding: 15px 0;
    border-radius: 8px; /* Slightly more prominent border-radius */
    transition: background-color 0.3s ease, transform 0.05s ease;
  }

  .nav-links a:hover {
    background-color: #cecccc;
  }

  .nav-links a:active {
    transform: scale(0.95); /* Slightly less dramatic scale for larger buttons */
  }

  /* Existing mobile-specific adjustments - keep these as they are good */
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .image-text-wrapper {
    flex-direction: column;
  }

  .home-hero {
    padding: 40px 15px;
  }

  .home-hero #home-header h1,
  .services-header h1,
  .gallery-title {
    font-size: 2rem;
  }

  .home-hero .intro-section,
  .about-section,
  .contact-section,
  .services-header,
  .services-grid,
  .image-text-section {
    padding: 20px;
  }

  .service-card {
    max-width: 100%;
  }

  .container .image-container {
    column-count: 1;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
  }

  .image-text-content h2 {
    font-size: 1.5rem;
  }

  .image-text-content p,
  .intro-section p,
  .contact-section p,
  .service-card p {
    font-size: 1rem;
  }

  .footer-wrapper {
    flex-direction: column;
    gap: 10px;
  }
}

/* ===============================
   HOME PAGE STYLES
   =============================== */
#home-header h1 {
  text-align: center;
  font-size: 3rem;
  margin: 40px 0 20px;
  font-family: "Funnel Display", sans-serif;
}

.home-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
}

.intro-section {
  max-width: 800px;
}

.intro-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: #333;
  transform: scale(1.03);
}

.cta-button:active {
  transform: scale(1);
}

a .cta-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

a .cta-button:hover {
  background-color: #333;
  transform: scale(1.03);
}

a .cta-button:active {
  transform: scale(1);
}

/* ===============================
   HOME HERO SECTION WITH BACKGROUND
   =============================== */
.home-hero {
  background-image: url('images/final_photos/home/main.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 60px 20px;
}

/* Header inside hero */
.home-hero #home-header h1 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 40px;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 10px;
}

/* Intro section text styles */
.home-hero .intro-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 10px;
}

.home-hero .intro-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.home-hero .intro-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.home-hero .cta-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #000000;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.home-hero .cta-button:hover {
  background-color: #4d4d4d;
  transition: all 0.3s ease;
}
/* ===============================
   ABOUT PAGE STYLES
   =============================== */
.about-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  color: #222;
}

.about-section h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5rem;
}

.about-content {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap; /* Mobile-friendly */
}

.about-portrait {
  width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.about-text {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ===============================
   CONTACT PAGE STYLES
   =============================== */
#contact-header h1 {
  text-align: center;
  font-family: "Funnel Display", sans-serif;
  font-size: 2.5rem;
  margin: 40px 0 20px;
}

.contact-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.contact-section p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 5px;
  font-size: 1rem;
  width: 100%;
}

.contact-form button {
  padding: 12px;
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #4d4d4d;
  transition: all 0.3s ease;
}

/* ===============================
   FOOTER STYLES
   =============================== */
footer {
  background-color: #f0f0f0;
  color: #333;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  margin-top: 40px;
  border-top: 1px solid #ccc;
}

footer p {
  margin: 0;
  font-family: 'Funnel Display', Times, serif
}

.footer-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #f0f0f0;
  padding: 20px 0;
}

.footer-instagram {
  position:absolute;
  left: 20px;
}

.footer-instagram img {
  width: 30px;
  height: 30px;
}

.footer-wrapper p {
  margin: 0;
  font-size: 0.9rem;
  font-family: 'Funnel Display', Times, serif;
  color: #333;
}

.footer-wrapper a{
  text-decoration: underline;
  color: #000;
}

.footer-wrapper a:hover{
  background-color: #00000027;
}
/* ===============================
   SERVICES PAGE STYLES
   =============================== */
.services-header {
  text-align: center;
  padding: 40px 20px 30px;
  background-color: #f8f8f8;
}

.services-header h1 {
  font-size: 2.8rem;
  font-family: "Funnel Display", sans-serif;
  margin-bottom: 10px;
}

.services-header p {
  font-size: 1.1rem;
  color: #555;
}

.services-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 350px;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card img {
  max-width: 350px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.service-card h2 {
  font-size: 1.8rem;
  margin: 20px 0 10px;
}

.service-card p {
  font-size: 1rem;
  padding: 0 20px;
  color: #333;
  line-height: 1.6;
}

.service-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  filter: none !important;
  background-color: transparent !important;
}

/* Fade-in animation for service cards */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Float & scale service card on hover */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

/* Zoom-in effect on image hover */
.service-card img {
  transition: transform 0.4s ease;
}

.service-card:hover img {
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.service-card:nth-child(1) {
  animation-delay: 0.2s;
}
.service-card:nth-child(2) {
  animation-delay: 0.4s;
}

/* ============ HERO TEXT ANIMATION ============ */
#home-header h1,
.intro-section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 1s ease-out forwards;
}

/* Delay intro-section to animate after h1 */
.intro-section {
  animation-delay: 0.5s;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   BACK BUTTON
   =============================== */
.back-button-wrapper {
  text-align: left;
  margin: 40px 20px;
}

.back-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #000;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.back-button:hover {
  background-color: #444;
  transform: scale(1.05);
}

.back-button:active {
  transform: scale(0.9);
}

/* ===============================
   IMAGE GALLERY STYLES
   =============================== */
.container {
  position: relative;
  min-height: 100vh;
  background: white;
}

.container .image-container {
  column-count: 3;
  column-gap: 20px;
  padding: 20px;
}

.container .gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  display: block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.container .gallery-item img {
  width: 100%;
  height: auto; /* ← allows natural portrait/landscape aspect */
  display: block;
  object-fit: cover;
  border-radius: 5px;
}

.container .image-container .image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.gallery-title {
  text-align: center;
  font-size: 2.5rem;
  margin: 20px 0 30px;
  font-family: "Funnel Display", sans-serif;
  color: #222;
}

/* Return to Top Button */
.return-top-wrapper {
  text-align: center;
  margin: 40px 0 20px;
}

.return-top-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #000;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.return-top-button:hover {
  background-color: #444;
  transform: scale(1.05);
}

.return-top-button:active {
  transform: scale(0.90);
}

.image-text-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.image-text-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.image-text-img {
  flex: 1 1 40%;
}

.image-text-img img {
  width: 100%;
  border-radius: 10px;
}

.image-text-content {
  flex: 1 1 50%;
}

.image-text-content h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.image-text-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.image-text-content .cta-button {
  background-color: #000;
  color: #fff;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.image-text-content .cta-button:hover {
  background-color: #333;
}

.carousel-section {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.carousel-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-track img {
  width: 100%;
  flex: 0 0 100%;
  border-radius: 10px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgb(0, 0, 0);
  color: white;
  border: none;
  width: 45px;
  height: 50px;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.footer-instagram {
  text-align: center;
  margin-top: 20px;
}

.footer-instagram img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.footer-instagram img:hover {
  transform: scale(1.1);
}

footer .footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-instagram img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.footer-instagram img:hover {
  transform: scale(1.2);
}

.image-text-content a{
  text-decoration: underline;
  color: #000;
  transition: all 0.3s ease;
}

.image-text-content a:hover{
  background-color: #00000027;
  text-decoration: underline;
}

.logo a:hover {
  background-color: transparent !important;
  filter: none !important;
  transition: none !important;
}