/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}



@font-face {
  font-family: "Chermoni";
  src: url("/fonts/CHERMONI.woff2") format("woff2"),
       url("/fonts/CHERMONI.woff") format("woff"),
       url("/fonts/chermoni.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* helps with rendering fallback behavior */
}
/* body {
  font-family: 'Chermoni', sans-serif;
} */

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}


/* Header */
header {
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  padding: 0.5rem 2rem; /* reduce padding if needed */
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px; /* set fixed height for navbar */
  overflow: hidden; /* prevent logo from expanding navbar */
}

/* Logo inside h1 */
header h1 {
  font-size: 1.4rem;
  margin: 0;
  height: 100%; /* ensures it aligns with header height */
  display: flex;
  align-items: center; /* vertically center logo */
}

/* Logo Image */
.logoblack {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  transform: scale(4); /* visually enlarge the logo */
  transform-origin: left center; /* keeps scaling direction consistent */
}


/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: rgb(0, 0, 0);
}

/* Navigation */
nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  /* font-weight: 500; */
  line-height: 1;
}

nav a:hover {
  text-decoration: underline;
}
/* Hero Image Slider */
.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.slides {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}

.slides.active {
  opacity: 1;
  z-index: 1;
}

/* Arrows */
/* .slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  z-index: 2;
  transition: background 0.3s;
} */

/* .slider-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.slider-arrow.left {
  left: 20px;
}

.slider-arrow.right {
  right: 20px;
} */

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: white;
}

/* Portfolio Grid (4 per row, responsive) */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-item {
  position: relative;
  background-size: cover;
  background-position: center;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: #333;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.portfolio-item span {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 4px 8px;
  border-radius: 4px;
}

.portfolio-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

/* About & Services */
.about,
.services {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

.about h2,
.services h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.services ul {
  list-style: none;
  padding-left: 0;
}

.services li {
  background: #f9f9f9;
  margin: 0.5rem 0;
  padding: 1rem;
  border-left: 4px solid #ff7e5f;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #111;
  color: white;
  margin-top: 0;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
  }

  .hamburger {
    display: block;
    font-size: 2rem;
    cursor: pointer;
    color: rgb(0, 0, 0);
  }

  nav {
    position: fixed;
    top: 0;
    right: -250px;
    height: 100%;
    width: 250px;
    background-color: #111;
    display: flex;
    flex-direction: column;
    padding-top: 5rem;
    transition: right 0.3s ease-in-out;
    z-index: 99;
  }

  nav.show {
    right: 0;
  }

  nav a {
    padding: 1rem 2rem;
    border-bottom: 1px solid #333;
    color: white;
    text-decoration: none;
    font-size: 1rem;
  }

  nav a:hover {
    background-color: #222;
  }
}

/* Mobile Banner - hidden on desktop */
.mobile-banner {
  display: none;
}

.mobile-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Media Query: Hide hero, show banner */
@media (max-width: 768px) {
  .hero-slider {
    display: none;
  }

  .mobile-banner {
    display: block;
  }
}

/* GLOBAL SCROLL FIX FOR MOBILE */
html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Ensure all elements respect box model */
*, *::before, *::after {
  box-sizing: inherit;
}

/* Services Grid Mobile Fix */
.services-grid {
  display: grid;
  grid-template-columns: 1fr; /* One column on mobile */
  gap: 0;
  padding: 0;
  margin: 0;
  max-width: 100vw; /* Force grid to stay in viewport */
  overflow-x: hidden;
}

/* Prevent individual post overflow */
.service-post {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

/* Make image containers responsive */
.service-image {
  width: 100%;
  height: auto;
  padding-top: 100%; /* keep square ratio */
  background-size: cover;
  background-position: center;
  position: relative;
}

@media (max-width: 768px) {
  header {
    height: 60px; /* slightly smaller navbar for mobile */
    padding: 0.5rem 1rem;
  }

  .logoblack {
    width: 200px; /* reset scale to avoid oversized logo on mobile */
  }

  nav {
    flex-direction: column;
    gap: 15px;
  }
}

h3, h2 {
  font-family: 'Chermoni', sans-serif;
}

