/* Mandab Premium Theme - Modern, Responsive, Clean */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #059669;
  --primary-hover: #047857;
  --secondary: #2563eb;
  --background: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* Global Adjustments */
body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--background);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 0;
}

/* Navbar enhancement */
.navbar {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

/* Base Buttons */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-premium-primary {
  background: linear-gradient(135deg, var(--primary), #10b981);
  color: white !important;
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.btn-premium-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-premium-outline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main) !important;
  border: 2px solid var(--border);
  backdrop-filter: blur(4px);
}

.btn-premium-outline:hover {
  border-color: var(--primary);
  background: white;
  color: var(--primary) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Slider Hero Section */
.hero-slider {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0; inset-inline-start: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s ease-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1.05); /* Slight zoom effect initially */
}

.slide.active {
  opacity: 1;
  z-index: 10;
  transform: scale(1);
}

.slide-bg-1 { background-image: url('/assets/mandab_site_ui_theme/images/solar_hero.png'); }
.slide-bg-2 { background-image: url('/assets/mandab_site_ui_theme/images/construction_hero.png'); }
.slide-bg-3 { background-image: url('/assets/mandab_site_ui_theme/images/inverter_hero.png'); }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.5));
  z-index: 1;
}

.slider-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 12px;
}

.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.slider-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: start;
  max-width: 1000px;
  width: 100%;
  padding: 0 2rem;
  color: white;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s ease 0.3s;
}

.slide.active .hero-content {
  transform: translateY(0);
  opacity: 1;
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero-highlight {
  background: linear-gradient(120deg, #34d399, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  line-height: 1.6;
  font-weight: 300;
  max-width: 700px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Layout Containers */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 4rem;
  position: relative;
  color: var(--text-main);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

/* Feature/Services Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;
}

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

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: #f0fdf4;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Portfolio Projects */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.6rem 1.8rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-muted);
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.project-item {
  transition: all 0.4s ease;
}

/* Contact Setup */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: white;
  border-radius: var(--radius-lg);
  padding: 4rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.contact-info-block {
  padding-inline-end: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin-inline-end: 1.5rem;
  background: #f0fdf4;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  background: #f8fafc;
  transition: all 0.3s;
  font-family: inherit;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover { transform: translateY(-12px); box-shadow: var(--shadow-xl); border-color: var(--primary); }

.product-img-wrapper {
  height: 250px; background: #f8fafc; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.product-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.product-card:hover .product-img-wrapper img { transform: scale(1.08); }

.product-info { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.product-name { font-size: 1.4rem; font-weight: 700; color: var(--text-main); margin-bottom: 1rem; }
.product-desc { color: var(--text-muted); font-size: 1rem; line-height: 1.6; flex-grow: 1; }

/* Animation Classes */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; padding: 2.5rem; }
  .contact-info-block { padding-inline-end: 0; border-bottom: 1px solid var(--border); padding-bottom: 2rem; margin-bottom: 2rem; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.8rem; }
  .section-title { font-size: 2.2rem; }
}
