* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* ---------- Page loader (printing paper intro) ---------- */
:root {
  --loader-bg: #0b1220;
  --paper-shadow: rgba(0, 0, 0, 0.18);
  --paper-radius: 8px;
  --printer-color: #222;
  --accent: #FF3F96;
}

/* Ensure loader sits above everything */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--loader-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 450ms ease, visibility 450ms ease;
  visibility: visible;
  will-change: opacity;
}

/* Container for printer + paper */
.printer-wrap {
  width: min(420px, 80vw);
  display: flex;
  align-items: flex-end;
  gap: 20px;
  justify-content: center;
}

/* Printer */
.printer {
  width: 180px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #000;
  border: 3px solid #ffffff;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
  position: relative;
}

.printer-top {
  width: 180px;
  height: 27px;
  background: linear-gradient(180deg, #3a3a3a, #212121);
  border-radius: 6px 6px 3px 3px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.printer-body {
  width: 180px;
  height: 90px;
  background: linear-gradient(180deg, #2b2b2b, #141414);
  border-radius: 6px;
  margin-top: -6px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.printer-slot {
  position: absolute;
  top: 24px;
  left: 15px;
  right: 15px;
  height: 24px;
  background: linear-gradient(90deg, #111, #333);
  border-radius: 4px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.03);
}

/* Paper (initially hidden inside printer slot) */
.paper {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translate(-50%, 0) scale(0.9);
  width: 160px;
  height: 220px;
  opacity: 0;
  box-shadow: 0 18px 40px var(--paper-shadow);
  border-radius: var(--paper-radius);
}


/* The SVG size */
.paper-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Animation sequence states */

.paper.printing {
  animation: paper-feed 2.5s ease-out forwards;
}

@keyframes paper-feed {
  0% {
    transform: translate(-50%, -60%) scale(0.9);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  40% {
    transform: translate(-50%, 40%) scale(1);
  }

  70% {
    transform: translate(-50%, 100%) scale(1.01);
  }

  100% {
    transform: translate(-50%, 120%) scale(1.01);
  }
}

/* small printer-head glint to simulate printing (pseudo) */
.printer-body::after {
  content: "";
  position: absolute;
  top: 46px;
  left: 18px;
  width: 84px;
  height: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border-radius: 2px;
  opacity: 0;
}

/* pulse while printing */
.printer-body.printing::after {
  animation: head-scan 900ms linear forwards;
}

@keyframes head-scan {
  0% {
    opacity: 0;
    transform: translateX(-44px);
  }

  30% {
    opacity: .9;
    transform: translateX(44px);
  }

  70% {
    opacity: .9;
    transform: translateX(-20px);
  }

  100% {
    opacity: 0;
    transform: translateX(0);
  }
}

/* Expand-paper-to-screen state (paper becomes the site) */
.paper.expand {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 75vw;
  height: 75vh;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 0;
  box-shadow: none;
  animation: expand-to-screen 1800ms ease-in forwards;
  z-index: 100000;
}

.paper.expand .paper-lines {
  display: none;
}


#expand-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 60%;
  max-height: 60%;
  opacity: 0;
  transition: opacity 500ms ease;
}

.paper.expand #expand-image {
  opacity: 1;
  /* fade in when paper expands */
}

#expand-text {
  position: absolute;
  top: 75%;
  /* pushes text below the logo */
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  font-weight: 600;
  color: #222;
  opacity: 0;
  transition: opacity 500ms ease;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  /* or your brand font */
}

.paper.expand #expand-text {
  opacity: 1;
  /* fade in when paper expands */
}

/* Mobile adjustment */
@media (max-width: 600px) {
  #expand-text {
    top: 66%;
    /* pull text up a bit */
    font-size: 1.0rem;
    /* smaller font for small screens */
  }
}

@keyframes expand-to-screen {
  0% {
    transform: translate(-50%, -45%) scale(1.03);
    opacity: 1;
    border-radius: 10px;
  }

  40% {
    transform: translate(-50%, -50%) scale(1.08);
    border-radius: 6px;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    border-radius: 0;
    opacity: 1;
  }
}

/* Fade loader out */
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {

  .paper.printing,
  .printer-body.printing,
  .paper.expand,
  #preloader {
    animation: none !important;
    transition: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
}

/* smaller screens adjustments */
@media (max-width: 600px) {
  .printer-wrap {
    gap: 15px;
  }

  .printer {
    width: 135px;
    height: 102px;
  }

  .printer-top {
    width: 135px;
    height: 21px;
  }

  .printer-body {
    width: 135px;
    height: 75px;
  }

  .paper {
    width: 120px;
    height: 180px;
  }
}


body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: #b9eff7;
  color: #333;
}

section {
  padding: 60px 20px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

h1,
h2,
h3 {
  color: #222;
}



/* Navigation */
.navbar {
  background: #333;
  color: #fff;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo span {
  font-size: 1.2em;
  font-weight: bold;
  white-space: nowrap;
}

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

nav ul li a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #f39c12;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Mobile Styles */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background: #333;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.3s ease;
  }

  nav ul li {
    padding: 10px 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .hamburger {
    display: block;
  }

  /* OPEN state */
  nav ul.show {
    max-height: 500px;
    opacity: 1;
    padding: 10px;
  }

  nav ul.show li {
    opacity: 1;
    transform: translateY(0);
  }

  nav ul.show li:nth-child(1) {
    transition-delay: 0.05s;
  }

  nav ul.show li:nth-child(2) {
    transition-delay: 0.1s;
  }

  nav ul.show li:nth-child(3) {
    transition-delay: 0.15s;
  }

  nav ul.show li:nth-child(4) {
    transition-delay: 0.2s;
  }

  nav ul.show li:nth-child(5) {
    transition-delay: 0.25s;
  }

  nav ul.show li:nth-child(6) {
    transition-delay: 0.3s;
  }

  /* CLOSE animation (reverse order) */
  nav ul.closing li:nth-child(1) {
    transition-delay: 0.3s;
  }

  nav ul.closing li:nth-child(2) {
    transition-delay: 0.25s;
  }

  nav ul.closing li:nth-child(3) {
    transition-delay: 0.2s;
  }

  nav ul.closing li:nth-child(4) {
    transition-delay: 0.15s;
  }

  nav ul.closing li:nth-child(5) {
    transition-delay: 0.1s;
  }

  nav ul.closing li:nth-child(6) {
    transition-delay: 0.05s;
  }
}

.hero {
  background: linear-gradient(to right, rgb(255, 172, 48), #fc0);
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 2.5em;
  color: #222;
}

.hero p {
  font-size: 1.2em;
  margin-top: 15px;
  color: #555;
}

/* Hero title default state */
.hero-title {
  opacity: 0;
  /* hidden initially */
  transform: translateX(-50px);
  /* slight offset for effect */
}

/* Triggered after preloader finishes */
.hero-title.animate-in {
  animation: lightSpeedInLeft 1s ease forwards;
  opacity: 1;
}


/* Explore Services Button */
.cta-button {
  display: inline-block;
  background-color: #FF3F96;
  color: white;
  padding: 12px 25px;
  margin-top: 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  animation: pulse 2s infinite;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #e92e82;
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 63, 150, 0.6);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(255, 63, 150, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 63, 150, 0);
  }
}

.about {
  background: #f1f1f1;
}

.about p {
  margin-bottom: 20px;
}



/* Services */
.services {
  background: #c1f1ef;
  /* background: #f0eee6; */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 30px;
  text-align: center;
}


.service-box {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08),
              0 6px 20px rgba(0, 0, 0, 0.1); 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-weight: 500;
  color: #444;
}

.service-box:hover {
  transform: translateY(-8px) scale(1.03); 
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12),
              0 12px 32px rgba(0, 0, 0, 0.2); 
  background: #fff;
  border-color: #fcb900;
}

.service-box i {
  display: block;
  font-size: 32px;
  margin-bottom: 10px;
  color: #fcb900;
}


/* Small screens (mobile phones) */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}


/* Gallery */
.gallery .owl-carousel img {
  border-radius: 8px;
  height: auto;
  width: 100%;
}


.portfolio {
  background: linear-gradient(to right, rgb(255, 172, 48), #fc0);
}


/* Portfolio Card */
.portfolio-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  height: 250px;
}

/* Image inside card */
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  border-radius: 10px;
}

/* Zoom on hover */
.portfolio-card:hover img {
  transform: scale(1.05);
}

/* Overlay */
.portfolio-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.80);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  text-align: center;
  padding: 15px;
}

.portfolio-card:hover .overlay,
.portfolio-card.tapped .overlay {
  opacity: 1;
}

.portfolio-card .overlay h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fcb900;
}

.portfolio-card .overlay p {
  margin-top: 5px;
  font-size: 0.9rem;
  opacity: 0.9;
  color: #ffffff;
}

.portfolio-prev,
.portfolio-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}


/* Place outside carousel cards */
.portfolio-prev {
  left: 220px;
}

.portfolio-next {
  right: 220px;
}

@media (max-width: 768px) {
  .portfolio-prev {
    left: 0px;
  }

  .portfolio-next {
    right: 0px;
  }
}

/* Portfolio carousel dots */
.portfolio-carousel .owl-dots {
  position: relative;
  z-index: 100;
  text-align: center;
  margin-top: 15px;
}

.portfolio-carousel .owl-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 5px 6px;
  background-color: #999 !important;
  opacity: 1 !important;
  border-radius: 50%;
  transition: background-color 0.3s;
  cursor: pointer;
}

.portfolio-carousel .owl-dot.active {
  background-color: #ffffff !important;
}


.testimonials {
  background: #f1f1f1;
  text-align: center;
  padding: 40px 20px;
}

.testimonial-item {
  max-width: 600px;
  margin: 20px auto;
  font-style: italic;
  color: #444;

  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);

  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-item p {
  margin-bottom: 5px;
  flex-grow: 0.5;
}

.testimonial-item span {
  display: block;
  margin-top: 0;
  font-weight: bold;
  color: #555;
}


/* Contact Section */

/* .contact-section {
  background: #f1f1f1;
} */

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 20px;
}

.contact-details,
.contact-form {
  flex: 1 1 45%;
}

.contact-details p {
  margin-bottom: 20px;
}

.contact-details h3 {
  font-family: 'Poppins', sans-serif;
  color: #FF3F96;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.contact-form button {
  background: #00B7EB;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #008bb5;
}

.map {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
}


footer {
  background: #222;
  color: #fff;
  padding: 20px;
  text-align: center;
}

footer p {
  margin-bottom: 10px;
}

.social-icons a {
  color: #fff;
  margin: 0 10px;
  font-size: 20px;
  transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #fcb900;
}


@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
  }
}


/* Smooth shadow + subtle bg change on scroll */
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.navbar.scrolled {
  background-color: #2f2f2f;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
.cta-button:focus-visible,
.hamburger:focus-visible {
  outline: 3px solid #f39c12;
  outline-offset: 3px;
  border-radius: 6px;
}

form input:focus,
form textarea:focus {
  border-color: #f39c12;
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.25);
  outline: none;
}

/* Slight hover polish */
nav ul li a {
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: #f39c12;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

nav ul li a:hover::after,
nav ul li a:focus-visible::after {
  transform: scaleX(1);
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Optional: make the mobile dropdown feel snappier */
@media (max-width: 768px) {
  nav ul {
    will-change: max-height, opacity;
    border-radius: 8px 0 0 8px;
  }
}

.form-message {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
}

.form-message.success {
  color: green;
}

.form-message.error {
  color: red;
}

/* ===== Popup Modal ===== */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: popIn 0.3s ease;
}

.popup-content p {
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 500;
}

.popup-content button {
  background: #00B7EB;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

.popup-content button:hover {
  background: #008bb5;
}

/* Animation */
@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 55px;
  height: 55px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;   /* 🚀 remove underline */
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.4);
  color: #fff;
  text-decoration: none;   /* 🚀 ensure no underline on hover too */
}
