* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333333;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.loading {
  overflow: hidden;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #174A8C 0%, #0C2142 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  color: #ffffff;
}

.loading-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.loading-logo img {
  height: 80px;
  width: auto;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.logo-text-loading {
  color: #ffffff;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text-loading span {
  color: #25A7FF;
}

.cutting-container {
  width: 400px;
  margin: 0 auto;
}

.design-pattern {
  width: 100%;
  height: 200px;
  position: relative;
  margin-bottom: 2rem;
  background: repeating-linear-gradient(90deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.1) 40px,
      rgba(255, 255, 255, 0.1) 42px);
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.pattern-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  left: 0;
  transition: clip-path 0.1s linear;
}

.pattern-line:nth-child(1) {
  top: 15%;
  transform: rotate(0deg);
  background: repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.3) 0px,
      rgba(255, 255, 255, 0.3) 10px,
      transparent 10px,
      transparent 20px);
}

.pattern-line:nth-child(2) {
  top: 30%;
  transform: rotate(2deg);
  background: repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.25) 0px,
      rgba(255, 255, 255, 0.25) 8px,
      transparent 8px,
      transparent 16px);
}

.pattern-line:nth-child(3) {
  top: 45%;
  transform: rotate(-2deg);
  background: repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.3) 0px,
      rgba(255, 255, 255, 0.3) 12px,
      transparent 12px,
      transparent 24px);
}

.pattern-line:nth-child(4) {
  top: 60%;
  transform: rotate(1deg);
  background: repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.25) 0px,
      rgba(255, 255, 255, 0.25) 9px,
      transparent 9px,
      transparent 18px);
}

.pattern-line:nth-child(5) {
  top: 75%;
  transform: rotate(-1deg);
  background: repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.3) 0px,
      rgba(255, 255, 255, 0.3) 11px,
      transparent 11px,
      transparent 22px);
}

.pattern-line:nth-child(6) {
  top: 90%;
  transform: rotate(0deg);
  background: repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.25) 0px,
      rgba(255, 255, 255, 0.25) 10px,
      transparent 10px,
      transparent 20px);
}

.cutting-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
}

.cutting-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #25A7FF 0%, #C89B3C 100%);
  border-radius: 2px;
  position: relative;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(37, 167, 255, 0.5);
}

.cutting-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: #25A7FF;
  box-shadow: 0 0 15px rgba(37, 167, 255, 0.8);
  animation: cutting-glow 1s ease-in-out infinite;
}

@keyframes cutting-glow {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(37, 167, 255, 0.8);
  }

  50% {
    box-shadow: 0 0 25px rgba(37, 167, 255, 1);
  }
}

.loading-text {
  font-size: 1rem;
  color: #ffffff;
  margin-top: 1rem;
  opacity: 0.9;
  letter-spacing: 1px;
}

/* Hide design pattern lines as cutting progresses */
.cutting-progress[style*="width: 0%"]~.design-pattern .pattern-line,
.design-pattern .pattern-line {
  transition: opacity 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .cutting-container {
    width: 90%;
    max-width: 350px;
  }

  .loading-logo img {
    height: 60px;
  }

  .logo-text-loading {
    font-size: 1.5rem;
  }

  .design-pattern {
    height: 150px;
  }
}

/* Navbar */
nav {
  background: #ffffff;
  padding: 1rem 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(23, 74, 140, 0.12);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-image {
  height: 50px;
  width: auto;
  min-width: 50px;
  object-fit: contain;
  display: block !important;
  visibility: visible !important;
}

.logo-text {
  color: #174A8C;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.logo-text span {
  color: #25A7FF;
  margin-left: 0.3rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: #174A8C;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

nav a:hover {
  color: #25A7FF;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #174A8C;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.4) 100%),
    url('mdf-jali-design-for-mandir.png');
  background-size: cover;
  background-position: center;
  width: 100%;
  max-width: 100%;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  padding: 0;
  margin: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 48%,
    rgba(255, 255, 255, 0.02) 49%,
    rgba(255, 255, 255, 0.02) 51%,
    transparent 52%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  background: transparent;
  backdrop-filter: blur(1.3px);
  -webkit-backdrop-filter: blur(1.3px);
  border-radius: 35px;
  padding: 2rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.02);
  max-width: 75%;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0px 4px 30px rgba(0, 0, 0, 0.9);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #ffffff;
  text-shadow: 0px 4px 30px rgba(0, 0, 0, 0.9);
  font-weight: 600;
}

.hero-content .tagline {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #ffffff;
  text-shadow: 0px 4px 30px rgba(0, 0, 0, 0.9);
  font-weight: 600;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  font-weight: 600;
}

.btn-primary {
  background: #C89B3C;
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}

.btn-primary:hover {
  background: #174A8C;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(200, 155, 60, 0.45);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: #1a1a1a;
}

/* Section Styles */
section {
  padding: 4rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #174A8C;
}

section .subtitle {
  text-align: center;
  color: #6B7280;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(30, 58, 95, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 3px solid #C89B3C;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(91, 155, 213, 0.2);
}

.service-card h3 {
  color: #174A8C;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card p {
  color: #4B5563;
  line-height: 1.8;
}

.service-card ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
  color: #4B5563;
}

.service-card li {
  margin-bottom: 0.5rem;
}

/* Gallery Section */
#gallery {
  background: #F4EEE7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(30, 58, 95, 0.15);
  height: 300px;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.gallery-item:hover {
  border-color: #C89B3C;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 1rem;
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* Experience Section */
.experience {
  background: linear-gradient(135deg, #174A8C 0%, #0C2142 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 5%;
}

.experience h2 {
  color: #fff;
}

.stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 2rem;
  gap: 2rem;
}

.stat-item {
  flex: 1;
  min-width: 200px;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #25A7FF;
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  color: #ccc;
}

/* Contact Section */
#contact {
  background: linear-gradient(to bottom, #ffffff 0%, #F9F9F9 100%);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(37, 167, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(200, 155, 60, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

#contact h2,
#contact .subtitle {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.contact-card {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
  border: 1px solid rgba(23, 74, 140, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #C89B3C 0%, #25A7FF 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(23, 74, 140, 0.15);
  border-color: rgba(37, 167, 255, 0.2);
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.contact-card:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
}

.contact-card h3 {
  color: #174A8C;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.contact-description {
  color: #6B7280;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-link {
  color: #25A7FF;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  background: rgba(37, 167, 255, 0.05);
  border: 1px solid rgba(37, 167, 255, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.contact-link:hover::before {
  left: 100%;
}

.contact-link:hover {
  color: #174A8C;
  background: rgba(23, 74, 140, 0.08);
  border-color: rgba(23, 74, 140, 0.25);
  transform: translateX(4px);
}

.link-number {
  position: relative;
  z-index: 1;
}

.whatsapp-btn {
  display: block;
  background: linear-gradient(135deg, #25D366 0%, #1fb855 100%);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
  position: relative;
  overflow: hidden;
}

.whatsapp-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.whatsapp-btn:hover::before {
  width: 300px;
  height: 300px;
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #1fb855 0%, #25D366 100%);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.whatsapp-btn span {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.hours-display {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(23, 74, 140, 0.05) 0%, rgba(37, 167, 255, 0.05) 100%);
  border-radius: 12px;
  border: 1px solid rgba(23, 74, 140, 0.1);
}

.hours-time {
  font-size: 1.5rem;
  font-weight: 700;
  color: #174A8C;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.hours-days {
  font-size: 1rem;
  color: #6B7280;
  font-weight: 500;
}

.contact-card-phone {
  background: linear-gradient(to bottom, #ffffff 0%, #FAFBFC 100%);
}

.contact-card-whatsapp {
  background: linear-gradient(to bottom, #ffffff 0%, #F0FDF4 100%);
}

.contact-card-hours {
  background: linear-gradient(to bottom, #ffffff 0%, #FEF3E7 100%);
}

/* Location Section */
#location {
  background: #F4EEE7;
}

.location-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.location-info {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(30, 58, 95, 0.08);
  border-left: 4px solid #C89B3C;
}

.location-info h3 {
  color: #174A8C;
  margin-bottom: 1rem;
}

.location-info p {
  margin: 0.5rem 0;
  color: #4B5563;
  line-height: 1.8;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(30, 58, 95, 0.15);
  height: 400px;
  border: 2px solid #C89B3C;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Reviews Section */
#reviews {
  background: #ffffff;
  padding: 4rem 5%;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.review-card {
  background: #F4EEE7;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(30, 58, 95, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 3px solid #C89B3C;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(91, 155, 213, 0.15);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.reviewer-info h4 {
  color: #174A8C;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.review-location {
  color: #6B7280;
  font-size: 0.9rem;
  margin: 0;
}

.star-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.stars {
  color: #FFD700;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.rating-text {
  color: #174A8C;
  font-weight: bold;
  font-size: 1rem;
}

.review-text {
  color: #4B5563;
  line-height: 1.8;
  margin: 1rem 0;
  font-style: italic;
}

.review-date {
  color: #999999;
  font-size: 0.85rem;
  margin-top: 1rem;
  text-align: right;
}

/* Footer */
footer {
  background: #0C2142;
  color: #fff;
  text-align: center;
  padding: 2rem 5%;
}

footer p {
  margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(23, 74, 140, 0.12);
  }

  .logo-container {
    gap: 0.5rem;
  }

  .logo-image {
    height: 40px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-content {
    padding: 1.5rem 1.5rem;
    border-radius: 30px;
    max-width: 90%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.03);
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  section h2 {
    font-size: 2rem;
  }

  .location-container {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-card {
    padding: 2rem 1.5rem;
  }

  .contact-icon {
    font-size: 2.5rem;
  }

  .contact-card h3 {
    font-size: 1.3rem;
  }

  .hours-time {
    font-size: 1.3rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .review-header {
    flex-direction: column;
    gap: 1rem;
  }

  .star-rating {
    align-items: flex-start;
  }
}