/* =========================================
   CHARRAK TECHNOLOGY – SOLAR ENERGY
   style.css
   ========================================= */

/* CSS Variables */
:root {
  --primary: #0D47A1;
  --primary-light: #1565C0;
  --primary-dark: #0a3880;
  --orange: #F9A825;
  --orange-dark: #F57F17;
  --white: #FFFFFF;
  --light-gray: #F5F7FA;
  --dark: #222222;
  --text-muted: #666;
  --border: rgba(0,0,0,0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --nav-height: 72px;
  --transition: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  /* width: 70%;
  margin: auto; */
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; cursor: pointer; font-family: inherit; }

/* ---- UTILITIES ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 30px 0;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
}
.section-header {
  margin-bottom: 30px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,71,161,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: rgba(0,0,0,0.5);
}
.btn-outline:hover {
  background: rgba(0,0,0,0.12);
  border-color: var(--dark);
}
.btn-orange {
  background: var(--orange);
  color: var(--dark);
  border-color: var(--orange);
}
.btn-orange:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,168,37,0.35);
}
.btn-large { padding: 15px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---- GLASSMORPHISM ---- */
.glass {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
}

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--nav-height);
  /* background: black;
  background: linear-gradient(180deg,rgba(0, 0, 0, 50%) 0%, rgba(0, 0, 0, 0.0) 90%); */
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  backdrop-filter: blur(12px);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
/* .navbar.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  backdrop-filter: blur(12px);
} */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.nav-logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.navbar.scrolled .nav-link { color: var(--dark); }
.navbar.scrolled .nav-link:hover { color: var(--primary); }
.navbar.scrolled .nav-link.active { color: var(--primary); }
.nav-cta { font-size: 0.85rem; padding: 10px 22px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--dark); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================
   HERO
   ================================================ */
.hero {
  height: 70vh;
  background: linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
        url("assets/hero.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: var(--nav-height) 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  align-items: center;
  max-width: 100%;
  padding: 80px 15px;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  color: #0D47A1;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title-accent { color: var(--orange); }
.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(0,0,0,0.8);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-dot {
  width: 6px;
  height: 30px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.scroll-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--white);
  border-radius: 3px;
  animation: scrollDown 1.5s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(300%); }
}

/* ================================================
   PRODUCTS
   ================================================ */
.products-section { background: var(--white); padding : 30px 0; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  animation-delay: var(--delay, 0s);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.product-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--light-gray);
  position: relative;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-body { padding: 16px 18px 18px; }
.product-body h3 { font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; color: var(--dark); }
.product-specs { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 6px; }
.product-rating { font-size: 0.8rem; color: var(--orange); margin-bottom: 12px; }
.product-rating span { color: var(--text-muted); }
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.product-price { font-size: 1rem; font-weight: 800; color: var(--primary); }

/* ================================================
   CATEGORIES
   ================================================ */
.categories-section { background: var(--light-gray); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  animation-delay: var(--delay, 0s);
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.cat-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.cat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.category-card:hover .cat-img-wrap img { transform: scale(1.08); }
.cat-body { padding: 18px 20px; }
.cat-body h3 { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.cat-body p { font-size: 0.8rem; color: var(--text-muted); }

/* ================================================
   ABOUT
   ================================================ */
.about-section { background: var(--light-gray); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-description {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}
.about-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}
.about-list li {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.about-stats {
  display: flex;
  gap: 36px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-stat strong {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.about-stat span { font-size: 0.82rem; color: var(--text-muted); display: block; margin-top: 4px; }
.about-image { position: relative; }
.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.about-image-badge {
  position: absolute;
  bottom: -20px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-md);
}

/* ================================================
   CONTACT CTA
   ================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 60%, #1976D2);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-text h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.cta-text p { color: rgba(255,255,255,0.75); font-size: 1rem; }
.cta-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  width: min(100%, 560px);
}
.cta-form input,
.cta-form select,
.cta-form textarea {
  padding: 13px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  min-width: 0;
  backdrop-filter: blur(4px);
  outline: none;
  transition: border-color var(--transition);
}
.cta-form textarea {
  grid-column: 1 / -1;
  min-height: 110px;
  border-radius: 20px;
  resize: vertical;
}
.cta-form button {
  grid-column: 1 / -1;
  justify-self: center;
}
.cta-form select:focus { color: var(--dark); }
.cta-form input::placeholder,
.cta-form select,
.cta-form textarea::placeholder { color: rgba(255,255,255,0.6); }
.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus { border-color: rgba(255,255,255,0.6); }

/* ================================================
   BACK TO TOP
   ================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--orange); transform: translateY(-3px); }


/* ================================================
   FLOATING WTSP
   ================================================ */

.floating_btn a{
  text-decoration:none;
}

.floating_btn {
  position: fixed;
  bottom: 80px;
  right: 10px;
  width: 110px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  z-index: 1000;
}

@keyframes pulsing {
  to {
    box-shadow: 0 0 0 30px rgba(232, 76, 61, 0);
  }
}

.contact_icon {
  background-color: #42db87;
  color: #fff;
  width: 60px;
  height: 60px;
  font-size:30px;
  border-radius: 50px;
  text-align: center;
  box-shadow: 2px 2px 3px #999;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translatey(0px);
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 0 0 #42db87;
  -webkit-animation: pulsing 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
  -moz-animation: pulsing 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
  -ms-animation: pulsing 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
  animation: pulsing 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
  font-weight: normal;
  font-family: sans-serif;
  text-decoration: none !important;
  transition: all 300ms ease-in-out;
}


.text_icon {
  margin-top: 8px;
  background-color: rgb(255, 255, 255, 0.7);
  padding: 4px 8px;
  border-radius: 9px;
  color: #707070;
  font-size: 13px;
}
/* ================================================
   MODAL
   ================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--light-gray);
  color: var(--dark);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: #e0e0e0; }
.modal-box h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.modal-product { font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-bottom: 24px; }
.modal-form { display: flex; flex-direction: column; gap: 12px; }
.modal-form input,
.modal-form textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
  resize: vertical;
}
.modal-form input:focus,
.modal-form textarea:focus { border-color: var(--primary); }

/* ================================================
   SCROLL REVEAL ANIMATIONS
   ================================================ */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}
[style*="--delay"] { transition-delay: var(--delay, 0s) !important; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  :root { --nav-height: 64px; }
  .section { padding: 72px 0; }

  /* Navbar mobile */
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    padding: 24px 0 32px;
    gap: 20px;
    transform: translateY(-110%);
    transition: transform var(--transition);
    z-index: 999;
  }
  .nav-links.open { 
    box-shadow: var(--shadow-md);
    transform: translateY(0);
    background: var(--white);
  }
  .nav-link { color: var(--dark) !important; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero{
    height: 50vh;
  }
  .hero-content { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px 80px; }
  .hero-title { font-size: 2.2rem; }

  /* Grids */
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image { order: -1; }
  .cta-content { flex-direction: column; text-align: center; }
  .cta-form { justify-content: center; }
  .scroll-dot{ display: none; }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-form { flex-direction: column; }
  .cta-form input { min-width: auto; width: 100%; }
  .about-stats { gap: 20px; }
  .hero-actions { flex-direction: column; }
  .btn-large { width: 220px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
