/* ===============================
   BASE STYLES
=============================== */
.hidden { display: none; }

body {
  margin: 0;
  padding: 0;
  font-family: Georgia, serif;
  background-color: black;
  margin-top: 120px;
}
section { scroll-margin-top: 130px; }

.section-divider {
  border: none;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, goldenrod 25%, maroon 75%, transparent 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  width: 100%;
  margin: 60px auto;
  border-radius: 2px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

header {
  position: fixed; top: 0; left: 0; width: 100%;
  background: black;
  border: 3px solid goldenrod;
  border-radius: 1px;
  padding: 10px; margin: 0; box-sizing: border-box;
  z-index: 1000;
}

.hamburger {
  display: none; font-size: 30px; color: goldenrod;
  cursor: pointer; padding: 10px;
}

.nav-container {
  display: flex; align-items: center; justify-content: space-between;
}

.logo img { width: 250px; height: auto; border-radius: 4px; }

ul.nav {
  list-style: none; display: flex; justify-content: right;
  gap: 50px; padding: 0; margin: 0;
}
ul.nav li { display: inline-block; }
ul.nav li a {
  text-decoration: none; font-size: 20px; padding: 10px;
  color: goldenrod; font-weight: bold;
}
ul.nav li a:hover,
ul.nav li.active a {
  color: maroon;
  font-weight: bold;
  padding: 10px;
  background: none;
}

/* Mobile toggle button (hidden desktop) */
.menu-toggle {
  display: none; background: transparent; border: none; color: goldenrod;
  font-size: 2rem; cursor: pointer; position: absolute; top: 15px; right: 20px; z-index: 1001;
}

/* ===============================
   HOME HERO
=============================== */
.home-hero {
  height: 100vh;
  background: url('../Images/background5.jpeg') no-repeat center center/cover;
  display: flex; align-items: center; justify-content: center;
  padding-top: 100px; box-sizing: border-box; position: relative;
  color: beige; text-align: center; overflow: hidden;
}
.home-hero .overlay {
  background-color: rgba(0, 0, 0, 0.6);
  width: 100%; height: 100%;
  position: absolute; top: 0; left: 0; z-index: 1;
  display: flex; justify-content: center; align-items: center;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.home-hero h1 { font-size: 3rem; color: goldenrod; margin-bottom: 1rem; font-weight: bold; }
.hero-subtext { font-size: 1.3rem; margin-bottom: 1.5rem; color: beige; font-weight: bold; }
.hero-quote { font-style: italic; color: white; font-weight: bold; font-size: 1rem; max-width: 600px; margin: 0 auto 2rem; }
.hero-button {
  background-color: maroon; color: goldenrod; border: none; padding: 0.75rem 1.5rem;
  font-weight: bold; font-size: 1rem; border-radius: 5px; cursor: pointer; text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}
.hero-button:hover { background-color: maroon; color: white; }


/* ===============================
   ABOUT US
=============================== */
.about-us {
  display: flex; align-items: center; justify-content: center; gap: 3rem;
  padding: 4rem 2rem; color: beige; flex-wrap: wrap;
}
.about-content { max-width: 600px; flex: 1; }
.about-content h2 { color: maroon; margin-bottom: 1rem; font-size: 40px; }
.about-content p { line-height: 1.7; margin-bottom: 1rem; font-size: 17px; }
.about-quote { font-style: italic; color: white; margin-top: 1rem; }
.about-button {
  display: inline-block; margin-top: 1.5rem; background-color: goldenrod; color: maroon;
  padding: 20px 20px; border-radius: 5px; font-weight: bold; text-decoration: none; transition: 0.3s ease;
}
.about-button:hover { background-color: goldenrod; color: white; }
.about-image img {
  max-width: 400px; width: 100%; border-radius: 8px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); flex: 1;
}


/* ===============================
 OUR SERVICES
=============================== */
.service {
  color: beige; padding: 1rem 2rem 4rem 2rem; text-align: center;
}
.service h2 { color: goldenrod; font-size: 40px; margin-bottom: 1.5rem; }
.web-services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; gap: 2rem; margin-top: 2rem;
  max-width: 1200px; margin-left: auto; margin-right: auto;
}
.web-service-card {
  background: beige; border-radius: 16px; border: 5px solid goldenrod; padding: 1.5rem; text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.web-service-card img { width: 60px; height: 60px; margin-bottom: 1rem; }
.web-service-card h3 { color: maroon; font-size: x-large; }
.web-service-card p { color: black; }

/* =====================================
 Packages Section 
 ====================================*/
.package-nav { display: flex; justify-content: center; gap: 1rem; margin: 2rem auto 1rem; flex-wrap: wrap; }
.package-tab {
  background-color: #333; color: white; padding: 20px 20px; border: none; cursor: pointer; border-radius: 6px;
  font-weight: bold; font-family: Georgia; font-size: medium; transition: background 0.3s;
}
.package-tab.active, .package-tab:hover { background-color: goldenrod; color: maroon; }
.package-content { display: none; width: 100%; animation: fadeIn 0.5s ease-in-out; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.package-content.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.packages-container {
  display: flex; flex-direction: column; align-items: center; max-width: 1200px;
  margin: 6rem auto 4rem; padding: 1rem 2rem 4rem 2rem;
}
.packages-container h2 { color: maroon; }
.package-heading { width: 100%; text-align: center; color: goldenrod; font-size: 40px; margin-bottom: 1rem; }
.package-subheading { width: 100%; max-width: 800px; font-size: 17px; color: beige; text-align: center; }
.package-box {
  background: beige; border: 5px solid maroon; border-radius: 16px; padding: 2rem; width: 100%; max-width: 360px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); text-align: center; transition: transform 0.3s ease, box-shadow .25s, border-color .25s;
}
.package-box:hover { transform: translateY(-8px); border-color: goldenrod; box-shadow: 0 14px 32px rgba(0,0,0,.35); }
.package-box h3 { font-size: 25px; color: goldenrod; margin-bottom: 0.8rem; }
.package-box .tagline { font-size: 1rem; font-weight: 500; color: #555; margin: 0.5rem 0 1rem; font-style: italic; line-height: 1.4; }
.package-box .price { font-family: 'Times New Roman', serif; font-size: 1.5rem; font-weight: bold; color: #222; margin-bottom: 0.5rem; }
.package-box ul { list-style: none; padding: 0; margin-top: 1rem; text-align: left; }
.package-box ul li {
  margin: 0.5rem 0; font-family: 'Times New Roman', serif; color: black; font-size: 1rem; position: relative; padding-left: 1.5rem;
}
.package-box ul li::before {
  content: "*"; position: absolute; left: 0; color: goldenrod; font-size: 1rem; font-weight: bold; top: 0.1rem;
}
.order-button {
  background-color: maroon; color: goldenrod; padding: 20px 20px; border: none; cursor: pointer; border-radius: 6px;
  font-weight: bold; font-family: Georgia; font-size: medium; transition: background 0.3s;
}
.order-button:hover { background-color: maroon; color: white; }

/* ===============================
  MODAL SHARED STYLES
 =============================== */
.modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7); display: flex; justify-content: center; align-items: center; z-index: 9999;
}
.modal.hidden { display: none; }
.modal-content {
  background: beige; border: 5px solid maroon; color: black; padding: 2rem; border-radius: 10px;
  width: 90%; max-width: 600px; position: relative;
}
.modal-content h2{ color: black; }
.modal-content ul { text-align: left; color: maroon; padding-left: 1.5rem; list-style-type: none; }
.modal-content ul li { margin-bottom: 0.75rem; font-size: 1rem; line-height: 1.5; }
.close-button {
  position: absolute; top: 10px; right: 15px; font-size: 40px; font-weight: bold; color: darkred; cursor: pointer;
}
.contact-form, .review-form { margin-top: 1rem; text-align: left; }
.contact-form label{ display: block; color: black; font-weight: bold; margin-bottom: 0.5rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 95%; padding: 0.5rem; margin-bottom: 1rem; border: 1px solid #ccc; border-radius: 4px; background: #fdf6e3; font-family: Georgia; font-size: medium;
}
.submit-button {
  background-color: goldenrod; color: maroon; border: none; padding: 0.75rem 1.5rem; border-radius: 5px; font-family: Georgia; font-weight: bold; cursor: pointer; width: 95%;
}
.submit-button:hover { background-color: maroon; color: white; }


/* ================================
    Our UI / Figma Designs
================================ */

/* Section */
.ui-designs-container{
  display: flex; flex-direction: column; align-items: center;
  max-width: 1200px; margin: 6rem auto 4rem;
  padding-top: 1rem; padding-bottom: 4rem; padding-left: 2rem; padding-right: 2rem;
}
.ui-designs-heading{
  width: 100%; text-align: center; color: goldenrod;
  font-size: 40px; margin-bottom: 1rem; font-weight: 800;
}
.ui-designs-subheading{
  width: 100%; max-width: 800px; margin: 0 auto 3rem;
  font-size: 17px; color: beige; text-align: center;
}

/* Chips (if you re-enable filters) */
.ui-designs-nav{
  display: flex; justify-content: center; gap: 1rem; margin: 2rem auto 1rem; flex-wrap: wrap;
}
.chip{
  background-color: #333; color:white; padding: 5px 5px; border: none; cursor: pointer;
  border-radius: 6px; font-weight: bold; font-family: Georgia; font-size: medium; transition: background 0.3s;
}
.chip:hover, .chip.active { background: maroon; color: goldenrod; }

/* Grid */
.grid{
  --gap: 18px;
  display:grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  max-width: 1200px; margin: 0 auto;
}
.item{ grid-column: span 4; margin:0; padding:0; outline:none; position:relative; }

/* Thumbs */
.thumb{
  position: relative; height: 300px; border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.12); border: 3px solid goldenrod; background: #f9f9fc;
  cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease;
}
.thumb img{
  width: 100%; height: auto; display:block;
  transform: translateY(0); will-change: transform; transition: transform .25s ease;
  user-select: none; pointer-events: none;
}
.item:focus .thumb{ box-shadow: 0 0 0 3px #000, 0 10px 30px rgba(0,0,0,.12); }

/* Lightbox */
#ui-lightbox{
  position: fixed; inset: 0; width: 100vw; height: 100dvh;
  display: none; place-items: center; background: rgba(0,0,0,.75); z-index: 10001;
}
#ui-lightbox.open{ display: grid; }

.lb-stage{
  position: relative; width: min(96vw, 1400px); height: min(92dvh, 1400px); border: 3px solid goldenrod; background: #000000b1;
  border-radius: 16px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.65);
}
.lb-img{
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(1); transform-origin: center center;
  max-width: 100%; max-height: 100%; user-select: none; cursor: zoom-in;
}
.lb-close, .lb-arrow{
  position: absolute; z-index: 2; display: grid; place-items: center; color: #fff; cursor: pointer;
  background: rgba(0,0,0,.65); border: 2px solid goldenrod; border-radius: 999px; touch-action: manipulation;
}
.lb-close{ right:12px; top:12px; width:50px; height:50px; font-size:1.2rem; }
.lb-arrow{ top:50%; transform:translateY(-50%); width:50px; height:50px; font-size:1.2rem; }
.lb-prev{ left:12px; } .lb-next{ right:12px; }
#ui-lightbox.zoomed .lb-img{ cursor: grab; }


/* ===============================
  REVIEW SECTION
 =============================== */
.reviews { color: beige; padding: 4rem 2rem; text-align: center; width: 100%; box-sizing: border-box; }
.review-header { text-align: center; margin-bottom: 1rem; }
.review-header h2 { color: maroon; font-size: 40px; margin-bottom: 1rem; }
.review-btn-wrapper { text-align: center; margin-bottom: 2rem; }
.open-review-btn {
  background-color: goldenrod; color: maroon; padding: 20px 20px; border: none; cursor: pointer; border-radius: 6px;
  font-weight: bold; font-family: Georgia; font-size: medium; transition: background 0.3s;
}
.open-review-btn:hover { background-color: goldenrod; color: white; }
.review-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2em; margin-top: 3rem;
}
.review {
  background-color: #222; border: 1px solid goldenrod; border-radius: 8px; padding: 1.5rem; width: 280px; text-align: left;
  box-shadow: 0 0 10px rgba(218, 165, 32, 0.2);
}
.review h4 { color: maroon; margin-bottom: 0.5rem; }
.stars { color: goldenrod; font-size: 1.2rem; margin-bottom: 0.75rem; }
.review p { font-size: 0.95rem; line-height: 1.5; }

/* ===============================
   FOOTER STYLE 
=============================== */
.footer {
  background: url('../Images/background.jpg') no-repeat center center/cover;
  padding: 1rem 2rem; color: beige; position: relative; margin-top: 1rem;
}
.footer-overlay {
  background-color: rgba(0, 0, 0, 0.8); padding: 2rem; max-width: 1200px; margin: 0 auto; box-sizing: border-box; width: 100%; overflow: auto;
}
.footer-intro { flex: 1 1 100%; max-width: 100%; margin-bottom: 2rem; }
.footer-intro h2 { color: maroon; margin-bottom: 0.5rem; }
.footer-intro p { margin: 0; font-size: 1rem; line-height: 1.6; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 0.5rem; }
.footer-brand img { width: 40px; height: auto; border-radius: 4px; }
.footer-brand h2 { color: maroon; margin: 0; }
.footer-sections { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer-sections > div { flex: 1 1 200px; }
.footer-sections h3 { color: goldenrod; margin-bottom: 0.5rem; }
.footer-sections ul { list-style: none; padding: 0; margin: 5; }
.footer-sections a { color: beige; text-decoration: none; display: block; margin-bottom: 0.5rem; }
.footer-sections a:hover {
  color: maroon; text-decoration: none; font-weight: bold; padding: 5px; border-radius: 4px; transition: 0.3s ease;
}
.footer-rights { text-align: center; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid goldenrod; }
.footer-rights p { color: beige; font-size: 0.95rem; margin: 0; }

.icons { margin-top: 1rem; }
.icons a { text-decoration: none; display: inline-block; margin-right: 12px; }
.icons ion-icon { color: white; font-size: 30px; transition: 0.3s ease; }
.icons ion-icon:hover { color: goldenrod; transform: scale(1.1); }

#backToTop {
  display: none; position: fixed; bottom: 40px; right: 30px; z-index: 999;
  font-size: 18px; border: none; outline: none; background-color: beige; color: goldenrod;
  cursor: pointer; padding: 12px 16px; border-radius: 50px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2); transition: opacity 0.3s ease;
}
#backToTop:hover { background-color: #555; color: white; }
#backToTop ion-icon { font-size: 24px; vertical-align: middle; }


/* Refined nav underline animation */
ul.nav li a { position: relative; }
ul.nav li a::after {
  content: ""; position: absolute; left: 0; bottom: 6px; height: 2px; width: 0;
  background: linear-gradient(90deg, goldenrod, maroon); transition: width .25s ease;
}
ul.nav li a:hover::after, ul.nav li.active a::after { width: 100%; }

/* Buttons & focus states */
.hero-button, .order-button, .open-review-btn, .submit-button, .chip, .package-tab {
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.hero-button:hover, .order-button:hover, .open-review-btn:hover, .submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
a:focus-visible, button:focus-visible, .chip:focus-visible, .package-tab:focus-visible, .order-button:focus-visible {
  outline: none; box-shadow: 0 0 0 3px rgba(255,215,0,.45), 0 6px 18px rgba(0,0,0,.25); border-radius: 6px;
}

/* Cards and thumbs: professional lift */
.web-service-card:hover, .package-box:hover, .review:hover, .thumb:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
  border-color: goldenrod;
}

.stars { text-shadow: 0 0 10px rgba(218,165,32,.35); }

/* =======================
   Business-Professional FX
   ======================= */

/* Header gains depth on scroll */
header {
  transition: box-shadow .25s ease, background-color .25s ease, backdrop-filter .25s ease;
}
header.scrolled {
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  background-color: rgba(0,0,0,.85);
}

/* Progress bar (top of page) */
#progressbar {
  position: fixed; top: 0; left: 0; height: 4px; width: 0;
  background: linear-gradient(90deg, goldenrod, maroon);
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* Scroll reveal (prefers-reduced-motion aware) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.show { opacity: 1; transform: translateY(0); }
}


/* ===============================
   On-Enter Pan/Rise Animations
   =============================== */
   @media (prefers-reduced-motion: no-preference) {
    /* Base state for items that will animate in */
    .reveal-child {
      opacity: 0;
      transform: translate3d(0, 0, 0) scale(1);
      will-change: transform, opacity;
      transition:
        opacity .6s ease,
        transform .6s ease;
    }
  
    /* Variants (initial offsets) */
    .reveal-child[data-enter="rise"]      { transform: translate3d(0, 24px, 0); }
    .reveal-child[data-enter="pan-left"]  { transform: translate3d(-28px, 0, 0); }
    .reveal-child[data-enter="pan-right"] { transform: translate3d(28px, 0, 0); }
    .reveal-child[data-enter="pan-up"]    { transform: translate3d(0, -24px, 0); }
    .reveal-child[data-enter="pan-down"]  { transform: translate3d(0, 24px, 0); }
  
    /* Final state when in view */
    .reveal-child.inview {
      opacity: 1;
      transform: none;
    }
  
    /* Stagger helper (each nth child gets a small delay) */
    .reveal.inview .reveal-child { transition-delay: var(--stagger, 0s); }
  }
  
  /* Reduced motion: show content immediately */
  @media (prefers-reduced-motion: reduce) {
    .reveal-child,
    .reveal-child.inview {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }
  }


/* ===============================
   MEDIA QUERIES
=============================== */
@media (max-width: 1024px) {
  body { margin-top: 145px; overflow-x: hidden; }

  header { flex-direction: column; align-items: stretch; padding: 1rem; }
  .hamburger { display: block; }
  .nav-container { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }
  .logo img { width: 250px; height: auto; display: block; }

  ul.nav {
    display: none; flex-direction: column; position: absolute; top: 100px; right: 20px;
    background-color: black; border: 2px solid goldenrod; border-radius: 8px; padding: 20px; z-index: 999;
  }
  ul.nav li { margin-bottom: 15px; }
  ul.nav.show { display: flex; }

  .home-hero h1 { font-size: 2rem; }
  .hero-subtext { font-size: 1.1rem; }

  .about-us { flex-direction: column-reverse; padding: 2rem 1rem; text-align: center; }
  .about-image img { max-width: 80%; margin-bottom: 1.5rem; }

  .web-services-grid { grid-column: span 4; }
  .web-service-card, .package-box, .review { max-width: 100%; width: 100%; box-sizing: border-box; }

  .item{ grid-column: span 4; }

  .modal-content { width: 95%; padding: 1.5rem; max-height: 90vh; overflow-y: auto; }

  #backToTop { bottom: 20px; right: 20px; }
}