/* ---------------- GLOBAL ---------------- */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #f8fafc;
  color: #333;
}

h1, h2, h3 {
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------------- NAV ---------------- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 2px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
}

nav .logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #4a90e2;
}

nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

nav ul li a {
  font-weight: 500;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #4a90e2;
}
/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  height: 90vh;
  width: 100%;
  overflow: hidden;
}

/* ⭐ FIXED HERO IMAGE — PERFECTLY RESPONSIVE ⭐ */
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* keeps proportions */
  object-position: center;  /* keeps subject centered */
}

/* HERO CONTENT */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  max-width: 700px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  border-radius: 1.3rem;
}

.hero-content h1 {
  font-size: 3.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin: 20px 0;
}

.hero-content button {
  padding: 15px 40px;
  background: #4a90e2;
  border: none;
  color: white;
  font-size: 1.1rem;
  border-radius: 40px;
  cursor: pointer;
  transition: 0.3s;
}

.hero-content button:hover {
  background: #3a78c2;
}
@media (max-width: 600px) {
    .hero-content {
        width: 75%;
        padding: 20px;
        top: 75%;
        background: rgba(0, 0, 0, 0.25);
    }
}
/* ---------------- SERVICES ---------------- */
.services {
  padding: 50px 8%;
  text-align: center;
}

.services-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.service-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-card img {
  width: 80px;
  margin-bottom: 20px;
}

.service-card h3 {
  color: #4a90e2;
  margin-bottom: 10px;
}

/* ---------------- GALLERY ---------------- */
.gallery {
  padding: 50px 8%;
  text-align: center;
}

.gallery-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 15px;
  transition: 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.02);
}

/* ---------------- CONTACT CTA ---------------- */
.contact-cta {
  padding: 20px 8%;
  text-align: center;
  background: #eaf4ff;
  border-top: 1px solid #d6e8ff;
}

.contact-cta h2 {
  font-size: 2.5rem;
}

.contact-cta p {
  margin: 20px 0;
  font-size: 1.2rem;
}

.contact-cta button {
  padding: 15px 40px;
  background: #4a90e2;
  border: none;
  color: white;
  font-size: 1.1rem;
  border-radius: 40px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-cta button:hover {
  background: #3a78c2;
}

/* ---------------- FOOTER ---------------- */
footer {
  text-align: center;
  padding: 30px;
  background: #f0f6ff;
  border-top: 1px solid #d6e8ff;
  font-size: 0.9rem;
}

/* ---------------- MOBILE BREAKPOINTS ---------------- */
@media (max-width: 900px) {
  nav ul {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .hero {
    height: 70vh; /* better for tablets */
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .hero {
    height: 60vh; /* perfect for mobile */
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .contact-cta h2 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
  }
  .hero-content button {
    padding: 12px 30px;
    background: #4a90e2;
    border: none;
    color: white;
    font-size: 0.9rem;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.3s;
}
}


  /* Overlay */
  #imgEditorOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
  }

  /* Editor window */
  #imgEditorWindow {
    position: relative;
    display: flow;
    gap: 16px;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

  /* Wrapper (crop area) */
  .editor-canvas-wrapper {
    position: relative;
    background: #111;
    overflow: hidden;
    touch-action: none;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    scale: 0.4;
    margin: -20vh;
  }
  @media (max-width: 575.98px) {
  .editor-canvas-wrapper {
    position: relative;
    background: #111;
    overflow: hidden;
    touch-action: none;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    scale: 0.25;
    margin: -25vh;
  }
}
  .editor-canvas-wrapper canvas {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
  }

  /* Controls */
  .editor-controls {
    display: flow;
    align-items: center;
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translate(-22%, -50%);
    z-index: 9999;
    width: 50vh;
  }
  .editor-controls button {
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    background: #fff;
    color: #111;
    font-weight: 600;
    cursor: pointer;
    margin-right: 20px;
  }

  .editor-controls button.cancel {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
  }

  /* Zoom slider (desktop only) */
  .zoom-row {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 200px;
  }

  .zoom-row input[type="range"] {
    width: 140px;
  }

  .zoom-label {
    color: #fff;
    width: 40px;
    text-align: center;
  }

  @media (max-width: 768px) {
    .zoom-row { display: none; }
  }

  .editor-hint {
    position: fixed;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    color: rgb(0 0 0);
    font-size: 20px;
    opacity: 0.9;
    font-weight: bold;
    pointer-events: none;
    background: white;
    z-index: 99999;
    content: "and Scroll or use slider to zoom";
  }
@media (max-width: 768px) {
    .editor-hint {
    position: fixed;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    color: rgb(0 0 0);
    font-size: 20px;
    opacity: 0.9;
    font-weight: bold;
    pointer-events: none;
    background: white;
    z-index: 99999;
    content: "and Pinch to zoom";
  }
  }
.resize-nw { top: -10px; left: -10px; cursor: nwse-resize; }
.resize-ne { top: -10px; right: -10px; cursor: nesw-resize; }
.resize-sw { bottom: -10px; left: -10px; cursor: nesw-resize; }
.resize-se { bottom: -10px; right: -10px; cursor: nwse-resize; }
