@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --bg: #ffffff;
  --text: #0b0b12;
  --muted: #666666;
  --card: #ffffff;
  --card-border: #e6e6e6;
  --section: #f7f7f7;
  --accent: #0b0b12;
  --accent-hover: #1a1f2b;
  --input-bg: #fafafa;
  --input-border: #dcdcdc;
}

body.dark {
  --bg: #0f1115;
  --text: #f3f4f6;
  --muted: #b7bcc6;
  --card: #151a24;
  --card-border: #252b36;
  --section: #171c27;
  --accent: #f3f4f6;
  --accent-hover: #cfd3da;
  --input-bg: #10141c;
  --input-border: #2a3240;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

header {
  position: fixed;
  width: 100%;
  background: var(--bg);
  padding: 20px 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

nav {
  margin-left: auto;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
}

#home{
  background-color: var(--bg);
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: url("images/hero.jpg") center/cover no-repeat;
  color: white;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 60px;
}

.hero p{
  margin: 20px;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 25px;
  border: 2px solid var(--bg);
  border-radius: 10px;
  background-color: var(--bg);
  color: var(--text);
  text-decoration: none;
}


.wrapper {
  width: 90%;
  max-width: 1500px;
  margin-inline: auto;
  position: relative;
  height: 160px;
  margin: 1rem auto 5rem;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    rgba(0,0,0,0),
    rgba(0,0,0,1) 20%,
    rgba(0,0,0,1) 80%,
    rgba(0,0,0,0)
    );
}

/*.wrapper:hover  .scroll-item{
  animation-play-state: paused;
}*/

@keyframes scrollLeft {
  to{
    left: -200px;
  }
}

.scroll-item {
  width: 200px;
  height: 140px;
  background: linear-gradient(180deg, var(--card) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  position: absolute;
  left: max(calc(200px * 8), 100%);
  animation-name: scrollLeft;
  animation-duration: 30s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;

  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.review-text {
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.review-name {
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
}

.review-stars {
  color: #f2b01e;
  font-size: 12px;
  letter-spacing: 0.05em;
}

/*.scroll-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}*/

.item1 {
  animation-delay: calc(30s / 8 * (8 - 1) * -1);
}

.item2 {
  animation-delay: calc(30s / 8 * (8 - 2) * -1);
}

.item3 {
  animation-delay: calc(30s / 8 * (8 - 3) * -1);
}

.item4 {
  animation-delay: calc(30s / 8 * (8 - 4) * -1);
}

.item5 {
  animation-delay: calc(30s / 8 * (8 - 5) * -1);
}

.item6 {
  animation-delay: calc(30s / 8 * (8 - 6) * -1);
}

.item7 {
  animation-delay: calc(30s / 8 * (8 - 7) * -1);
}

.item8 {
  animation-delay: calc(30s / 8 * (8 - 8) * -1);
}






.portfolio {
  padding: 100px 15%;
  text-align: center;
}

.portfolio p{
  margin-top: 10px;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: 0;
}

.gallery-item:hover::after {
  opacity: 1;
}

.caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: 1;
}

.caption::before {
  content: "";
  position: absolute;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
}

.gallery-item:hover .caption {
  opacity: 1;
}




#about {
  padding: 100px 15%;
  text-align: left;
  background-color: var(--section);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
}

#about p{
  color: var(--muted);
  margin: 1rem 0;
}

.about-Container{
  flex: 0 0 50%;
  min-width: 0;
  align-self: center;
}

.card-Container{
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 0 0 50%;
  min-width: 0;
}

.about-card{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background-color: var(--card);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease;
  height: fit-content;
  width: auto;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.about-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--section);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex: 0 0 48px;
}

.about-card-text h3 {
  font-size: 28px;
  margin: 0 0 4px 0;
}

.about-card-text p {
  margin: 0;
  color: var(--muted);
}




#services {
  padding: 100px 20px;
  text-align: center;
  
}

#services h2{
  font-size: 48px;
  padding-bottom: 10px;
}

#services > p {
  margin-bottom: 20px;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  justify-content: center;
  width: 100%;
  padding: 0 10%;
  margin: 0 auto;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  color: var(--text);
  padding: 28px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.services-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--section);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
  flex: 0 0 52px;
  align-self: center;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  line-height: 1.6;
}

.service-divider {
  height: 1px;
  background: var(--card-border);
  margin: 18px 0;
}

.service-price {
  font-weight: 600;
  color: var(--text);
}





#contact {
  padding: 100px 20px;
  text-align: center;
  background-color: var(--section);
}

.contact-subtitle {
  color: var(--muted);
  margin: 10px 0 40px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.contact-info h3 {
  margin-bottom: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  color: var(--muted);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form label {
  font-weight: 600;
  margin-top: 6px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 16px;
  background: var(--input-bg);
  color: var(--text);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form button {
  margin-top: 14px;
  padding: 14px 18px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
}

.contact-form button:hover {
  background: var(--accent-hover);
}

#form-status {
  margin-top: 12px;
  color: var(--muted);
  min-height: 1.2em;
}




footer {
  padding: 40px;
  text-align: center;
  background: var(--accent);
  color: var(--bg);
}

body.dark footer {
  background: var(--bg);
  color: var(--text);
}

.footer{
  display: flex;
  justify-content: space-between;
}

.footer-links a{
  text-decoration: none;
  color: var(--text);
  margin: 0 1rem;
}



#menu-btn {
  display: none;
  background: none;
  color: var(--text);
  font-size: 25px;
  border: none;
  margin-left: 12px;
}

#theme-toggle {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 768px) {
  .logo {
    font-size: 24px;
  }

  .hero {
    min-height: 100vh;
    height: auto;
    padding: 120px 20px 72px;
  }

  .hero-content {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  .hero h2 {
    font-size: 38px;
    line-height: 1.1;
  }

  .hero p {
    margin: 16px 0 24px;
    font-size: 16px;
  }

  .btn {
    margin-top: 0;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background: var(--bg);
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 20px;
  }

  nav ul.active {
    display: flex;
  }

  #menu-btn {
    display: block;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .portfolio,
  #about,
  #services,
  #contact {
    padding-left: 20px;
    padding-right: 20px;
  }

  #about {
    flex-direction: column;
    text-align: left;
  }

  .about-Container {
    width: 100%;
  }

  .card-Container {
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}
