html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Playfair Display", serif;
  line-height: 1.6;
  color: #222;
  scroll-behavior: smooth;
  background: #fff;
}

/* Headings font */
h1, h2, h3, .tagline, .header-menu {
  font-family: "Raleway", sans-serif;
}

/* Header Menu */
.header-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(50,50,50,0.55);
  padding: 0.1rem 2rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

.header-menu h1 {
  font-size: 1.5rem;
  color: #fff;
}

.top-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap; /* allow wrapping so it doesn't blow the width */
}

.top-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.menu-icon {
  width: 20px;
  height: 20px;
}

.menu-logo {
  width: 80px;
  height: 70px;
}

/* Hero Section */
.hero {
  position: relative;
  background: url("../img/hero.jpg") center center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

/* Hero logo */
.hero-logo {
  width: 400px;
  max-width: 80vw;
  height: auto;
  margin-bottom: 1.5rem;
}

/* Tagline */
.tagline {
  font-weight: 700;
  font-size: 2.2rem;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.5;
  color: #fff;
}

/* Discover button */
.discover {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 0.9rem 2rem;
  text-decoration: none;
  border-radius: 30px;
  border: 2px solid #fff;
  transition: 0.3s ease;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.discover:hover {
  box-shadow: inset 0 0 0 2px #fff;
  background: transparent;
  color: #fff;
}

/* Sections */
section {
  padding: 6rem 2rem;
  position: relative;
}

.tilted-gray {
  background-color: #f4f4f4;
  clip-path: polygon(0 5%, 100% 0%, 100% 95%, 0 100%);
}

.white-section {
  background-color: #fff;
}

/* Headings */
h2 {
  text-align: center;
  font-weight: 700;
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

h2::after {
  content: "";
  display: block;
  width: 160px;
  height: 2px;
  background: #333;
  margin: 0.8rem auto 2rem;
}

/* Paragraphs & general text */
p,
.contact-text,
.service-item p,
.about-content p,
.modal-content p {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 1rem;
  color: #222;
  line-height: 1.6;
}

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 2rem 2rem;
  justify-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.service-item {
  max-width: 280px;
}

.service-item img {
  width: 60px;
  height: 60px;
  margin-bottom: 1.2rem;
  opacity: 0.85;
}

.service-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.service-item p {
  font-size: 0.95rem;
  color: #555;
}

/* About Me Section */
.about-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.about-me-image {
  width: 105%;
  max-width: 700px;
  height: auto;
  margin-bottom: 1.2rem;
  border-radius: 8px;
}

/* New About layout (profile + text side by side) */
.about-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
}

.about-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-list li {
  margin-bottom: 8px;
  font-size: 1rem;
  padding-left: 20px;
  position: relative;
}

.about-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #777;
  font-size: 1.4rem;
  line-height: 1rem;
}

/* Contact Section */
#contact h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
}

.contact-text {
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* CTA Button */
.cta {
  text-align: center;
  margin: 4rem auto 5rem;
}

/* Original CTA link style (for when you use <a>) */
.cta a {
  display: inline-block;
  background: #222;
  color: #fff;
  padding: 0.9rem 2rem;
  text-decoration: none;
  border-radius: 30px;
  border: 2px solid #222;
  transition: 0.3s ease;
}

.cta a:hover {
  background: #fff;
  color: #222;
  border: 2px solid #222;
}

/* Contact Me Button (CTA) – you use <button> now */
#contact-btn {
  display: inline-block;
  background: transparent;
  color: #222;
  padding: 0.9rem 2rem;
  text-decoration: none;
  border-radius: 30px;
  border: 2px solid #222;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}

#contact-btn:hover {
  background: #222;
  color: #fff;
  border-color: #222;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  padding: 2rem 1rem 3rem;
  border-top: 1px solid #ddd;
  position: relative;
}

#imprint-btn {
  background: transparent;
  color: #777;
  border: none;
  outline: none;
  font-weight: 400;
  padding: 0.4rem 1rem;
  margin: 0.1rem 0.4rem;
  border-radius: 25px;
  font-family: "Playfair Display", serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover effect: subtle outline */
#imprint-btn:hover {
  box-shadow: inset 0 0 0 2px #777;
  background: rgba(255, 255, 255, 0.05);
}

/* Imprint Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  padding-top: 100px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.95);
}

.modal-content {
  background: transparent;
  margin: auto;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  border-radius: 10px;
  color: #fff;
  text-align: left;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.modal-content h2 {
  border-bottom: 1px solid #555;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.modal-content h3 {
  border-top: 1px solid #555;
  padding-top: 0.5rem;
  margin-top: 1rem;
}

.modal-content p,
.modal-content ul {
  margin-left: 1rem;
  color: #fff;
}

.modal-content a {
  text-decoration: underline;
  color: #fff;
}

.close {
  color: #fff;
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #ddd;
}

/* Contact Modal – Clean, Modern, Spacious */
#contact-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
}

.contact-modal {
  background: #fff;
  padding: 3rem 3.5rem;
  width: 95%;
  max-width: 640px;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  color: #222;
  font-family: "Playfair Display", serif;
  position: relative;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-modal h2 {
  text-align: center;
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.8rem;
  font-size: 1.8rem;
}

.contact-modal label {
  display: block;
  margin-top: 1rem;
  font-family: "Raleway", sans-serif;
  font-size: 0.9rem;
  color: #444;
  font-weight: 600;
}

.contact-modal input,
.contact-modal textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  margin-top: 0.4rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: #222;
  background: #fafafa;
  transition: border 0.2s ease, background 0.2s ease;
}

.contact-modal input:focus,
.contact-modal textarea:focus {
  outline: none;
  border: 1px solid #222;
  background: #fff;
}

.contact-modal textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.5;
}

.submit-btn {
  display: block;
  width: 100%;
  background: #222;
  color: #fff;
  border: none;
  padding: 1rem;
  margin-top: 2rem;
  border-radius: 40px;
  cursor: pointer;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background 0.3s ease, transform 0.1s ease;
}

.submit-btn:hover {
  background: #444;
  transform: translateY(-1px);
}

#form-success {
  text-align: center;
  margin-top: 1.5rem;
  color: #007a2d;
  font-weight: 600;
  font-family: "Raleway", sans-serif;
  font-size: 1rem;
}

.contact-modal .close {
  position: absolute;
  right: 22px;
  top: 18px;
  font-size: 1.7rem;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease;
}

.contact-modal .close:hover {
  color: #000;
}

/* Prevent background scroll and layout shift when modal opens */
body.modal-open {
  overflow: hidden;
  position: relative;
}

body.modal-open::before {
  content: "";
  display: block;
  position: fixed;
  right: 0;
  top: 0;
  width: var(--scrollbar-width, 0px);
  height: 100%;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  /* General spacing */
  section {
    padding: 4rem 1.5rem;
  }

  /* Header */
  .header-menu {
    padding: 0.4rem 1rem;
    flex-wrap: nowrap;
    row-gap: 0.5rem;
  }

  .menu-logo {
    width: 80px;
  }

  .top-nav {
    width: 100%;
  }

  .top-nav ul {
    justify-content: flex-end;
    gap: 0.8rem;
  }

  .top-nav a {
    font-size: 0.9rem;
  }

  /* Hero */
  .hero {
    height: auto;
    min-height: 80vh;
    padding: 0 1rem;
  }

  .hero-content {
    padding: 1.5rem 1rem;
  }

  .hero-logo {
    width: 220px;
    height: auto;
    margin-bottom: 1rem;
  }

  .tagline {
    font-size: 1.3rem;
    max-width: 100%;
  }

  .discover {
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
  }

  /* Service grids: single column on mobile */
  .service-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
  }

  .service-item {
    max-width: 100%;
  }

  /* About section: stack image and text */
  .about-container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
  }

  .about-photo {
    width: 150px;
    height: 150px;
  }

  .about-text p {
    font-size: 1rem;
  }

  .about-list li {
    text-align: left;
    font-size: 0.95rem;
  }

  /* Contact section */
  .contact-content {
    padding: 0;
  }

  #contact-btn {
    width: 100%;
    max-width: 260px;
  }

  /* Contact modal spacing */
  .contact-modal {
    padding: 2rem 1.5rem;
    width: 92%;
  }

  .contact-modal h2 {
    font-size: 1.5rem;
  }

  /* Modal content (imprint) */
  .modal-content {
    width: 92%;
    padding: 1.8rem 1.4rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .tagline {
    font-size: 1.1rem;
  }

  h2 {
    font-size: 2rem;
  }

  .header-menu {
    padding: 0.3rem 0.8rem;
  }
}
