/* ===========================================
   Desai NE Marmore - Custom Styles
   Premium Marmoraria Website
   =========================================== */

/* ===== CSS Variables ===== */
:root {
  /* Colors */
  --primary: #1a1a1a;
  --primary-light: #2c2c2c;
  --secondary: #c9a96e;
  --secondary-dark: #b8944d;
  --accent: #3d3d3d;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray-100: #e9ecef;
  --gray-200: #dee2e6;
  --gray-300: #ced4da;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  
  /* Gradients */
  --gold-gradient: linear-gradient(135deg, #c9a96e 0%, #e8d5a3 50%, #c9a96e 100%);
  --dark-gradient: linear-gradient(180deg, #1a1a1a 0%, #2c2c2c 100%);
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --section-padding: 100px 0;
  --section-padding-sm: 60px 0;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-md: 0 5px 20px rgba(0,0,0,0.15);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
  --shadow-gold: 0 5px 30px rgba(201,169,110,0.3);
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ===== Utility Classes ===== */
.text-gold {
  color: var(--secondary) !important;
}

.bg-dark-custom {
  background-color: var(--primary) !important;
}

.bg-dark-light {
  background-color: var(--primary-light) !important;
}

.section-padding {
  padding: var(--section-padding);
}

.section-padding-sm {
  padding: var(--section-padding-sm);
}

/* ===== Section Headers ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold-gradient);
}

.section-header p {
  max-width: 600px;
  margin: 20px auto 0;
  font-size: 1.1rem;
}

/* ===== Buttons ===== */
.btn-gold {
  background: var(--gold-gradient);
  color: var(--primary);
  font-weight: 600;
  padding: 14px 35px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(201,169,110,0.4);
  color: var(--primary);
}

.btn-outline-gold {
  background: transparent;
  color: var(--secondary);
  font-weight: 600;
  padding: 14px 35px;
  border: 2px solid var(--secondary);
  border-radius: 50px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-normal);
}

.btn-outline-gold:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-outline-light {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-normal);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary);
}

/* ===== Navbar ===== */
.navbar {
  padding: 20px 0;
  transition: var(--transition-normal);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white) !important;
}

.navbar-brand span {
  color: var(--secondary);
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  padding: 10px 20px !important;
  transition: var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: var(--transition-normal);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: none;
  padding: 10px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28201, 169, 110, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(26, 26, 26, 0.7), rgba(26, 26, 26, 0.8)),
              url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1920') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(26,26,26,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--white);
  font-size: 4rem;
  margin-bottom: 25px;
  animation: fadeInUp 1s ease;
}

.hero h1 span {
  color: var(--secondary);
  display: block;
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.3rem;
  margin-bottom: 40px;
  max-width: 600px;
  animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s backwards;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Problem Section ===== */
.problem-section {
  background: var(--gray-100);
  position: relative;
}

.problem-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gold-gradient);
}

.problem-icon {
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  box-shadow: var(--shadow-md);
}

.problem-icon i {
  font-size: 2rem;
  color: #dc3545;
}

.problem-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.problem-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  font-size: 1.1rem;
  color: var(--gray-800);
}

.problem-list li i {
  color: #28a745;
  font-size: 1.3rem;
}

/* ===== Solution Section ===== */
.solution-section {
  background: var(--primary);
  color: var(--white);
}

.solution-section h2 {
  color: var(--white);
}

.solution-section p {
  color: rgba(255,255,255,0.8);
}

.solution-section .section-header h2::after {
  background: var(--secondary);
}

.solution-card {
  background: var(--primary-light);
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  height: 100%;
  transition: var(--transition-normal);
  border: 1px solid rgba(255,255,255,0.1);
}

.solution-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-gold);
}

.solution-card .icon {
  width: 70px;
  height: 70px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.solution-card .icon i {
  font-size: 1.8rem;
  color: var(--primary);
}

.solution-card h4 {
  color: var(--white);
  margin-bottom: 15px;
}

.solution-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ===== Services Section ===== */
.services-section {
  background: var(--white);
}

.service-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card .card-img {
  height: 200px;
  overflow: hidden;
}

.service-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.service-card:hover .card-img img {
  transform: scale(1.1);
}

.service-card .card-body {
  padding: 25px;
}

.service-card h5 {
  margin-bottom: 15px;
  color: var(--primary);
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-card .btn-link {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-card .btn-link:hover {
  color: var(--secondary-dark);
}

.service-card .btn-link i {
  transition: var(--transition-fast);
}

.service-card .btn-link:hover i {
  transform: translateX(5px);
}

/* ===== Materials Section ===== */
.materials-section {
  background: var(--gray-100);
}

.material-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  height: 100%;
}

.material-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.material-card .card-img {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.material-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.material-card:hover .card-img img {
  transform: scale(1.1);
}

.material-card .card-img .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent 50%, rgba(26,26,26,0.9));
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.material-card .card-img .overlay h4 {
  color: var(--white);
  margin: 0;
}

.material-card .card-body {
  padding: 25px;
}

.material-card .card-body p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ===== Process Section ===== */
.process-section {
  background: var(--white);
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 0 20px;
}

.process-step .step-number {
  width: 80px;
  height: 80px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  z-index: 2;
}

.process-step .step-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.process-step h5 {
  margin-bottom: 15px;
  color: var(--primary);
}

.process-step p {
  font-size: 0.95rem;
}

.process-line {
  position: absolute;
  top: 40px;
  left: 50%;
  right: -50%;
  height: 3px;
  background: var(--gray-200);
  z-index: 1;
}

.process-step:last-child .process-line {
  display: none;
}

@media (max-width: 991px) {
  .process-line {
    display: none;
  }
  
  .process-step {
    margin-bottom: 40px;
  }
}

/* ===== Portfolio Section ===== */
.portfolio-section {
  background: var(--primary);
}

.portfolio-section h2,
.portfolio-section h3 {
  color: var(--white);
}

.portfolio-section .section-header h2::after {
  background: var(--secondary);
}

.portfolio-section .section-header p {
  color: rgba(255,255,255,0.7);
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}

.portfolio-filters .filter-btn {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
}

.portfolio-filters .filter-btn:hover,
.portfolio-filters .filter-btn.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
}

.portfolio-item {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  margin-bottom: 30px;
}

.portfolio-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.portfolio-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent 30%, rgba(26,26,26,0.95));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: var(--transition-normal);
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item .overlay h5 {
  color: var(--white);
  margin-bottom: 10px;
}

.portfolio-item .overlay p {
  color: var(--secondary);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
  background: var(--gray-100);
}

.testimonial-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  height: 100%;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 8rem;
  color: var(--secondary);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: 30px;
  line-height: 1;
}

.testimonial-card .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid var(--secondary);
}

.testimonial-card .stars {
  color: var(--secondary);
  margin-bottom: 20px;
}

.testimonial-card .quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gray-800);
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 5px;
}

.testimonial-card .role {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)),
              url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=1920') center/cover no-repeat fixed;
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 25px;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===== Contact Section ===== */
.contact-section {
  background: var(--white);
}

.contact-info {
  height: 100%;
}

.contact-info .info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-info .info-item .icon {
  width: 60px;
  height: 60px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info .info-item .icon i {
  font-size: 1.5rem;
  color: var(--primary);
}

.contact-info .info-item h5 {
  margin-bottom: 8px;
}

.contact-info .info-item p {
  margin-bottom: 0;
}

.contact-form {
  background: var(--gray-100);
  border-radius: 20px;
  padding: 40px;
}

.contact-form .form-control {
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  padding: 15px 20px;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.contact-form .form-control:focus {
  border-color: var(--secondary);
  box-shadow: none;
}

.contact-form textarea.form-control {
  min-height: 150px;
  resize: none;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 80px 0 30px;
}

.footer h5 {
  color: var(--white);
  margin-bottom: 25px;
  font-size: 1.3rem;
}

.footer p {
  color: rgba(255,255,255,0.7);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-logo span {
  color: var(--secondary);
}

.footer-links {
  list-style: none;
  padding: 0;
}

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

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition-fast);
}

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

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  width: 45px;
  height: 45px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition-normal);
}

.footer-social a:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 50px;
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: var(--transition-normal);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 35px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
  font-size: 2rem;
  color: var(--white);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Scroll to Top ===== */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 999;
  cursor: pointer;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-5px);
  background: var(--secondary-dark);
}

/* ===== Page Header (Internal Pages) ===== */
.page-header {
  background: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)),
              url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=1920') center/cover no-repeat;
  padding: 180px 0 100px;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.page-header .breadcrumb {
  justify-content: center;
  background: transparent;
  margin-bottom: 0;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb-item.active {
  color: var(--secondary);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.5);
}

/* ===== Loading Spinner ===== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 576px) {
  .section-padding {
    padding: 60px 0;
  }
  
  .btn-gold,
  .btn-outline-gold,
  .btn-outline-light {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
  
  .contact-form {
    padding: 25px;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
}
