@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --primary-color: #d4af37; /* Gold to match Shah Doors logo */
  --secondary-color: #000000; /* Pure black to blend the logo perfectly */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f5f5f5;
  --bg-dark: #121212;
  --bg-gray: #e0e0e0;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background-color: var(--secondary-color);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
}

.logo img {
  height: 80px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links li a {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary-color);
}

.nav-icons {
  display: flex;
  gap: 15px;
  color: var(--text-light);
  font-size: 18px;
}

.hamburger {
  display: none;
  color: var(--text-light);
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  margin-top: 100px;
  background-color: #8b9298; /* Grayish blue background from praveshdoors */
  height: calc(100vh - 100px);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  padding-left: 8%;
  z-index: 2;
}

.hero-content h2 {
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: -20px;
}

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-content h3 {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.hero-image {
  flex: 1;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.hero-image img {
  height: 90%;
  object-fit: cover;
  box-shadow: -10px 10px 30px rgba(0,0,0,0.3);
}

/* Social Sidebar */
.social-sidebar {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--secondary-color);
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  z-index: 10;
}

.social-sidebar a {
  color: var(--text-light);
  font-size: 18px;
}

.social-sidebar a:hover {
  color: var(--primary-color);
}

.sidebar-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--text-light);
  font-size: 12px;
  margin-top: 20px;
  letter-spacing: 2px;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  z-index: 100;
}

.whatsapp-float span {
  font-size: 24px;
}

/* Sections Global */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  font-family: 'Playfair Display', serif;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-title p {
  color: #666;
  margin-top: 20px;
  font-size: 1.1rem;
}

/* Services / Categories */
.services {
  padding: 80px 0;
  background-color: var(--bg-light);
}

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

.service-card {
  background: var(--text-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.service-info {
  padding: 20px;
}

.service-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.service-info p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid var(--primary-color);
  transition: var(--transition);
  cursor: pointer;
}

.btn:hover {
  background-color: transparent;
  color: var(--primary-color);
}

/* View All Button Container */
.view-all-container {
  text-align: center;
  margin-top: 40px;
}

/* About Section */
.about {
  padding: 80px 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: #555;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Stats Section */
.stats {
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-item p {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Footer */
footer {
  background-color: #000;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-col p {
  color: #aaa;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #aaa;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  color: #aaa;
  font-size: 0.95rem;
}

.footer-contact i {
  color: var(--primary-color);
  margin-top: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #777;
  font-size: 0.9rem;
}

/* ===== Success Popup ===== */
.popup-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 50px rgba(0,0,0,0.2);
  max-width: 400px;
  width: 90%;
}

.popup-overlay.show .popup-content {
  transform: scale(1);
}

.popup-icon {
  font-size: 60px;
  color: #4CAF50;
  margin-bottom: 20px;
}

.popup-content h3 {
  margin-bottom: 10px;
  color: var(--text-dark);
  font-size: 1.8rem;
}

.popup-content p {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.5;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }
  .hero-content h2 {
    font-size: 3.5rem;
  }
  .hero-content h3 {
    font-size: 2rem;
  }
  .about-content {
    flex-direction: column;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .modal-body {
    flex-direction: column;
  }
  
  .modal-image-container {
    min-height: 50vh;
    height: 50vh;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 10px 20px;
  }
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--secondary-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }
  .nav-links.active {
    left: 0;
  }
  .hamburger {
    display: block;
  }
  .nav-icons {
    display: none;
  }
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 20px;
    height: auto;
    min-height: calc(100vh - 100px);
  }
  .hero-content {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 20px;
    padding: 20px;
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .hero-content h2 {
    font-size: 2.5rem;
  }
  .hero-content h3 {
    font-size: 1.5rem;
  }
  .hero-image {
    width: 100%;
    height: 300px;
  }
  .hero-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  .social-sidebar {
    display: none;
  }
  .section-title h2 {
    font-size: 1.8rem;
    word-break: break-word;
  }
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    padding: 8px 15px;
    font-size: 12px;
  }
  .whatsapp-float span {
    font-size: 20px;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85); /* Darker background */
  backdrop-filter: blur(15px); /* Stronger blur */
  -webkit-backdrop-filter: blur(15px);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.modal-content {
  background-color: var(--text-light);
  margin: auto;
  padding: 0;
  border-radius: 12px;
  width: 95%;
  max-width: 1400px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  transform: translateY(50px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  max-height: 90vh;
}

.modal.show .modal-content {
  transform: translateY(0) scale(1);
}

.close-modal {
  color: #aaaaaa;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.close-modal:hover,
.close-modal:focus {
  color: var(--primary-color);
  text-decoration: none;
}

.modal-body {
  display: flex;
  flex-direction: row;
}

.modal-image-container {
  flex: 1;
  background-color: #f9f9f9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1000px; /* Enable 3D space */
  min-height: 600px; /* Default desktop height */
}

.standard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 800px;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

/* Interactive Overlay Styles */
.hotspot-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.hotspot {
  position: absolute;
  z-index: 10;
  pointer-events: auto;
  transform: translateZ(60px); /* Make hotspots pop out in 3D */
}

.hotspot-dot {
  width: 26px;
  height: 26px;
  background-color: var(--primary-color);
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  cursor: pointer;
  position: relative;
  transform: translate(-50%, -50%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hotspot-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary-color);
  z-index: -1;
  animation: pulse 2s infinite cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.hotspot:hover .hotspot-dot {
  transform: translate(-50%, -50%) scale(1.3);
}

.tooltip {
  position: absolute;
  top: 50%;
  left: 40px;
  transform: translateY(-50%) translateX(10px);
  background-color: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(5px);
  color: var(--text-light);
  padding: 18px;
  border-radius: 10px;
  width: 350px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  pointer-events: none;
  z-index: 20;
  border-left: 3px solid var(--primary-color);
}

.tooltip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -8px;
  transform: translateY(-50%);
  border-width: 8px 8px 8px 0;
  border-style: solid;
  border-color: transparent rgba(26, 26, 26, 0.95) transparent transparent;
}

.hotspot:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.tooltip h4 {
  color: var(--primary-color);
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.tooltip p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #eeeeee;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

.modal-details {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.modal-details h2 {
  font-size: 2rem;
  color: var(--secondary-color);
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}

.modal-quality-badge {
  display: inline-block;
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  align-self: flex-start;
}

.modal-description {
  color: #555;
  margin-bottom: 25px;
  line-height: 1.7;
}

.modal-features-section h3 {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-features-list {
  margin-bottom: 30px;
}

.modal-features-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #444;
  font-size: 0.95rem;
}

.modal-features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.get-quote-btn {
  margin-top: auto;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #25d366;
  border-color: #25d366;
  color: white;
}

.get-quote-btn:hover {
  background-color: transparent;
  color: #25d366;
}

@media (max-width: 768px) {
  .modal-body {
    flex-direction: column;
  }
  .modal-image img {
    max-height: 250px;
  }
  .modal-details {
    padding: 25px;
  }
}
