/* =========================================================
   CRYSTAL ENGINEER'S — UNIFIED STYLESHEET
   (Supports Home Page index.html & About Us about.html)
   ========================================================= */

/* ---------------------------------------------------------
   1. RESET & BASE STYLES
   --------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #17202a;
  background-color: #ffffff;
  line-height: 1.6;
  font-size: 15px;
  max-width: 100%;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1180px;
  padding-left: 20px;
  padding-right: 20px;
  margin: 0 auto;
}

/* Typography Helpers */
h1, h2, h3, h4, .logo-text, .eyebrow, .section-label, .btn {
  font-family: 'Manrope', 'Montserrat', sans-serif;
}

.eyebrow, .section-label, .mini-label, .hero-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #c58b3c;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: #c58b3c;
  color: #ffffff;
}

.btn-primary:hover {
  background: #b07a32;
  box-shadow: 0 4px 15px rgba(197, 139, 60, 0.3);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background: transparent;
}

.btn-outline:hover {
  background: #ffffff;
  color: #111820;
}

.text-link {
  color: #c58b3c;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-link:hover {
  gap: 10px;
}

/* ---------------------------------------------------------
   2. HEADER & NAVIGATION
   --------------------------------------------------------- */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(8, 13, 18, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: background 0.3s ease;
}

.nav-wrap, .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border: 2px solid #c58b3c;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: #c58b3c;
  border-radius: 4px;
}

.logo-text {
  font-size: 15px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #ffffff;
}

.logo-text b, .logo-text span {
  color: #c58b3c;
}

.main-nav, .navigation {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a, .navigation a {
  color: #e9edf0;
  font-size: 14px;
  font-weight: 500;
}

.main-nav a:hover, .navigation a:hover,
.main-nav a.active, .navigation a.active {
  color: #c58b3c;
}

.nav-quote, .nav-cta {
  border: 1px solid #c58b3c;
  color: #c58b3c !important;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 700 !important;
  font-size: 13px !important;
}

.nav-quote:hover, .nav-cta:hover {
  background: #c58b3c;
  color: #111820 !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
}

/* ---------------------------------------------------------
   3. HERO SECTIONS (HOME SLIDER & ABOUT HERO)
   --------------------------------------------------------- */
/* Home Page Hero Slider */
.hero-slider {
  position: relative;
  min-height: 100vh;
  background: #080d12;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slides {
  width: 100%;
  flex-grow: 1;
  display: flex;
}

.hero-slide {
  display: none;
  position: relative;
  width: 100%;
  padding: 140px 0 80px;
  background-size: cover;
  background-position: center;
  min-height: 100vh;
}

.hero-slide.active {
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 12, 22, 0.92) 0%, rgba(5, 12, 22, 0.75) 50%, rgba(5, 12, 22, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-content h1 {
  font-size: clamp(32px, 5.5vw, 68px);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 12px;
  word-wrap: break-word;
}

.hero-content h1 span {
  color: #c58b3c;
}

.hero-content h2 {
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 15px;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  margin-bottom: 25px;
  max-width: 620px;
}

.hero-content p.lead {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-bottom: 10px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.3s;
}

.slider-arrow:hover {
  background: #c58b3c;
  border-color: #c58b3c;
}

.slider-arrow.prev { left: 25px; }
.slider-arrow.next { right: 25px; }

.hero-trust {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(5, 10, 15, 0.9);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 15px 0;
  z-index: 5;
}

.trust-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

.trust-inner i {
  width: 6px;
  height: 6px;
  background: #c58b3c;
  border-radius: 50%;
}

/* About Page Hero Overlay */
.about-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: url("images/about4.png") center/cover no-repeat;
  margin-top: 72px;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 12, 22, 0.94) 0%, rgba(5, 12, 22, 0.7) 100%);
}

.about-hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 15px;
}

.breadcrumb a { color: rgba(255, 255, 255, 0.65); }
.breadcrumb a:hover { color: #ffffff; }
.breadcrumb strong { color: #c58b3c; }

/* ---------------------------------------------------------
   4. GENERAL SECTIONS & GRID LAYOUTS
   --------------------------------------------------------- */
.section {
  padding: 90px 0;
}

.section-dark {
  background: #0d141c;
  color: #ffffff;
}

.section-light {
  background: #f7f8f9;
}

.section-heading {
  margin-bottom: 50px;
  max-width: 700px;
}

.section-heading.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  color: inherit;
}

.section-dark .section-heading h2 {
  color: #ffffff;
}

.section-heading p {
  color: #626c76;
  margin-top: 12px;
  font-size: 15px;
}

.section-dark .section-heading p {
  color: rgba(255, 255, 255, 0.7);
}

/* Split Layout (About Section) */
.split, .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-copy h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.2;
}

.section-copy p {
  color: #58626d;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.7;
}

.about-visual, .vision-visual {
  position: relative;
}

.about-visual img, .vision-image img {
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  width: 100%;
}

.floating-card, .vision-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #ffffff;
  padding: 16px 22px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #c58b3c;
}

.floating-card strong, .vision-badge strong {
  display: block;
  font-size: 14px;
  color: #111820;
}

.floating-card span, .vision-badge span {
  font-size: 12px;
  color: #66707a;
}

/* ---------------------------------------------------------
   5. SOLUTIONS SECTION
   --------------------------------------------------------- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.solution-card {
  background: #141d26;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-6px);
  border-color: rgba(197, 139, 60, 0.4);
}

.card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.solution-card:hover .card-image img {
  transform: scale(1.05);
}

.card-number {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(11, 17, 22, 0.85);
  color: #c58b3c;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 4px;
}

.card-body {
  padding: 25px;
}

.card-body h3 {
  font-size: 20px;
  color: #ffffff;
  margin: 6px 0 12px;
}

.card-body p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-body a {
  color: #c58b3c;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------------------------------------------------------
   6. WHY US & APART SECTION
   --------------------------------------------------------- */
.why-grid, .apart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.why-item, .apart-card {
  background: #ffffff;
  border: 1px solid #e8ecef;
  padding: 30px;
  border-radius: 8px;
  transition: 0.3s;
  position: relative;
}

.why-item:hover, .apart-card:hover {
  border-color: #c58b3c;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.why-icon, .apart-icon {
  width: 50px;
  height: 50px;
  background: #f9f3eb;
  color: #c58b3c;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.why-content span {
  font-size: 12px;
  font-weight: 800;
  color: #c58b3c;
}

.why-content h3, .apart-card h3 {
  font-size: 18px;
  color: #121921;
  margin: 6px 0 10px;
}

.why-content p, .apart-card p {
  color: #616b75;
  font-size: 13px;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   7. PROJECTS SECTION
   --------------------------------------------------------- */
.filter-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-tabs button {
  background: #f0f3f5;
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #505a64;
  transition: 0.3s;
}

.filter-tabs button.active, .filter-tabs button:hover {
  background: #c58b3c;
  color: #ffffff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 280px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-card div {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 14, 20, 0.9) 0%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #ffffff;
}

.project-card span {
  font-size: 11px;
  color: #c58b3c;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-card h3 {
  font-size: 18px;
  margin: 4px 0;
}

.project-card p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.project-note {
  font-size: 12px;
  color: #808a94;
  margin-top: 20px;
  font-style: italic;
}

/* ---------------------------------------------------------
   8. APPLICATIONS SECTION
   --------------------------------------------------------- */
.application-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.application-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #e2e6ea;
  transition: 0.3s;
}

.application-card:hover {
  border-color: #c58b3c;
  transform: translateY(-4px);
}

.application-card i {
  font-size: 28px;
  color: #c58b3c;
  margin-bottom: 15px;
}

.application-card h3 {
  font-size: 17px;
  color: #111820;
  margin-bottom: 8px;
}

.application-card p {
  color: #656f78;
  font-size: 13px;
}

.extra-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 35px 0 25px;
}

.extra-apps span {
  background: #ffffff;
  border: 1px solid #dcdfe3;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #434c54;
}

/* ---------------------------------------------------------
   9. SUSTAINABILITY & CTA BANNER
   --------------------------------------------------------- */
.sustainability {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #0f1720;
  color: #ffffff;
}

.sustain-image {
  background: url("images/h1.jpg") center/cover no-repeat;
  min-height: 400px;
}

.sustain-copy {
  padding: 80px 60px;
}

.sustain-copy h2 {
  font-size: 34px;
  margin-bottom: 15px;
}

.sustain-copy p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
}

.sustain-points {
  display: grid;
  gap: 15px;
  margin-top: 25px;
}

.sustain-points div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.sustain-points i {
  color: #c58b3c;
  font-size: 16px;
}

.cta-banner {
  background: linear-gradient(90deg, #18232e, #0c1218);
  padding: 60px 0;
  color: #ffffff;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cta-inner h2 {
  font-size: 32px;
  margin: 6px 0;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.7);
}

.cta-actions {
  display: flex;
  gap: 15px;
}

/* ---------------------------------------------------------
   10. CONTACT SECTION & ENQUIRY FORM
   --------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.contact-info {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 10px;
  border: 1px solid #e9ecef;
}

.contact-info h3 {
  font-size: 22px;
  margin-bottom: 25px;
}

.contact-line {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-line i {
  color: #c58b3c;
  font-size: 18px;
  margin-top: 4px;
}

.contact-line small {
  display: block;
  font-size: 11px;
  color: #808a94;
  text-transform: uppercase;
  font-weight: 700;
}

.contact-line a, .contact-line p {
  color: #1a232b;
  font-size: 14px;
  font-weight: 600;
  display: block;
}

.quick-buttons {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.quick-buttons a {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 4px;
  background: #111820;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.quick-buttons a:last-child {
  background: #25d366;
}

.enquiry-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.enquiry-form label {
  font-size: 12px;
  font-weight: 700;
  color: #333d47;
  display: grid;
  gap: 6px;
}

.enquiry-form input, .enquiry-form select, .enquiry-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d0d5dd;
  border-radius: 4px;
  font-size: 14px;
  background: #ffffff;
}

.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus {
  outline: none;
  border-color: #c58b3c;
}

/* ---------------------------------------------------------
   11. FOOTER
   --------------------------------------------------------- */
.footer, .site-footer {
  background: #080d12;
  color: #9ba5b0;
  padding: 70px 0 25px;
  font-size: 13px;
}

.footer-top, .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h3 {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 20px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #9ba5b0;
}

.footer-links a:hover {
  color: #c58b3c;
}

.footer-contact a, .footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #9ba5b0;
}

.footer-contact i { color: #c58b3c; }

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 4px;
  display: grid;
  place-items: center;
}

.social-links a:hover {
  background: #c58b3c;
  border-color: #c58b3c;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 25px;
  color: #616c76;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.reveal.active, .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------
   12. RESPONSIVE DESIGN (MOBILE & TABLET FIXES)
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .solution-grid, .why-grid, .apart-grid, .project-grid, .application-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-top, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav, .navigation {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #080d12;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    display: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
  }

  .main-nav.open, .navigation.open {
    display: flex !important;
  }

  .main-nav a, .navigation a {
    width: 100%;
    padding: 8px 0;
  }

  /* Hero Section Responsive Fixes */
  .hero-slider {
    min-height: auto;
  }

  .hero-slide {
    padding: 110px 0 30px;
    min-height: auto;
  }

  .hero-content h1 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .hero-content h2 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .hero-content p {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* Trust Banner Bottom Overlap Fix */
  .hero-trust {
    position: relative;
    bottom: auto;
    left: auto;
    background: #050a0f;
    padding: 20px 0;
    margin-top: 20px;
  }

  .trust-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 10px;
    text-align: center;
    font-size: 11px;
  }

  .trust-inner i {
    display: none; /* मोबाईलवर बिंदू काढून टाकले आहेत */
  }

  /* General Grids Mobile Stack */
  .split, .about-grid, .sustainability, .contact-grid, .cta-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .solution-grid, .why-grid, .apart-grid, .project-grid, .application-grid {
    grid-template-columns: 1fr;
  }

  .footer-top, .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .sustain-copy {
    padding: 40px 20px;
  }

  .slider-arrow {
    display: none;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }

  .floating-card, .vision-badge {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 15px;
  }
}