/* ============================================================
   FANGCAN INDUSTRIAL - MAIN STYLESHEET
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a6e3e;
  --primary-dark: #145530;
  --primary-light: #2a8f54;
  --accent: #e8b84b;
  --accent-dark: #c99b30;
  --dark: #111827;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.18);
  --transition: .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-700);
  line-height: 1.7;
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(26,110,62,.08);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,110,62,.3);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}
.btn-outline-sm {
  display: inline-block;
  padding: 9px 22px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 8px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  margin-top: 12px;
}
.btn-outline-sm:hover {
  background: var(--white);
  color: var(--primary-dark);
}
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background .4s, box-shadow .4s;
  padding: 0;
}
#header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,.10);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}
.logo-text {
  font-weight: 800;
  font-size: 17px;
  color: var(--white);
  transition: color .4s;
  line-height: 1.2;
}
#header.scrolled .logo-text { color: var(--dark); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav ul li a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  transition: var(--transition);
}
.main-nav ul li a:hover { color: var(--white); background: rgba(255,255,255,.12); }
#header.scrolled .main-nav ul li a { color: var(--gray-700); }
#header.scrolled .main-nav ul li a:hover { color: var(--primary); background: rgba(26,110,62,.07); }

.btn-nav {
  background: var(--accent) !important;
  color: var(--dark) !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}
.btn-nav:hover { background: var(--accent-dark) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
#header.scrolled .hamburger span { background: var(--dark); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg-slider {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,40,20,.75) 0%, rgba(10,40,20,.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 760px;
  animation: heroFadeUp .9s ease both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}
.hero-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--accent);
  color: var(--dark);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-content h1 {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 22px;
  color: var(--white);
}
.hero-content h1 span { color: var(--accent); }
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  opacity: .88;
  margin-bottom: 36px;
  max-width: 600px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: 30px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  opacity: .75;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap {
  background: var(--primary);
  overflow: hidden;
  padding: 14px 0;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.dot { color: var(--accent); font-size: 10px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.section-about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-img-main {
  grid-column: 1 / -1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img-main img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .5s ease;
}
.about-img-main:hover img { transform: scale(1.03); }
.about-img-side {
  grid-column: 1 / -1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img-side img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform .5s ease;
}
.about-img-side:hover img { transform: scale(1.03); }
.about-text .lead {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 16px;
}
.about-text p {
  margin-bottom: 14px;
  font-size: 15.5px;
  color: var(--gray-500);
}
.about-text strong { color: var(--primary); }
.about-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.highlight-item {
  text-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100);
  padding-bottom: 10px;
}
.highlight-item img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  margin-bottom: 8px;
}
.highlight-item span {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  padding: 0 6px;
  line-height: 1.3;
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.section-products { background: var(--gray-100); }
.product-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 9px 22px;
  border-radius: 100px;
  border: 2px solid var(--gray-300);
  background: var(--white);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--gray-700);
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
  animation: fadeIn .4s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-card.hidden { display: none; }
.product-card-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.btn-view-product {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--primary);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
  white-space: nowrap;
}
.product-card:hover .btn-view-product {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.product-card-body {
  padding: 20px;
}
.product-card-body h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}
.product-card-body p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 14px;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-tags li {
  font-size: 11px;
  font-weight: 700;
  background: rgba(26,110,62,.1);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ============================================================
   GALLERY MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-box {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.modal-header h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
}
.modal-close {
  background: var(--gray-100);
  border: none;
  font-size: 18px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  transition: var(--transition);
}
.modal-close:hover { background: var(--gray-300); }
.modal-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.modal-img-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}
.modal-img-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}
.modal-fullview {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.modal-fullview img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}
.fv-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--white);
  font-size: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fv-prev, .fv-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--white);
  font-size: 24px;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.fv-prev:hover, .fv-next:hover { background: rgba(255,255,255,.3); }
.fv-prev { left: 16px; }
.fv-next { right: 16px; }

/* ============================================================
   ADVANTAGES
   ============================================================ */
.section-advantages { background: var(--dark); }
.section-advantages .section-tag { background: rgba(232,184,75,.15); color: var(--accent); }
.section-advantages .section-header h2 { color: var(--white); }
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.adv-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: var(--transition);
  animation: fadeIn .5s ease both;
}
.adv-card:hover {
  background: rgba(255,255,255,.09);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}
.adv-icon {
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 1;
}
.adv-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.adv-card p {
  font-size: 14.5px;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
}

/* ============================================================
   APPLICATIONS
   ============================================================ */
.section-applications { background: var(--white); }
.app-masonry {
  columns: 4;
  column-gap: 14px;
}
.app-img {
  width: 100%;
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}
.app-img.tall { aspect-ratio: 3/4; }
.app-img:hover { transform: scale(1.02); box-shadow: var(--shadow); }

/* ============================================================
   GALLERY
   ============================================================ */
.section-gallery { background: var(--gray-100); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}
.gallery-grid img:first-child {
  grid-column: span 2;
  height: 300px;
}
.gallery-grid img:nth-child(5) {
  grid-column: span 2;
  height: 300px;
}
.gallery-grid img:hover { transform: scale(1.02); box-shadow: var(--shadow); }

/* ============================================================
   VIDEOS
   ============================================================ */
.section-videos { background: var(--white); }
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--dark);
  transition: transform .3s, box-shadow .3s;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.video-card video {
  width: 100%;
  display: block;
  max-height: 240px;
  object-fit: cover;
}
.video-label {
  padding: 14px 18px;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  background: var(--primary-dark);
}

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact { background: var(--gray-100); }
.contact-wrap {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 48px;
  align-items: start;
}
.contact-wrap-centered {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}
.contact-info {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 36px 28px;
  color: var(--white);
}
.contact-info-full {
  width: 100%;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.contact-info-item:last-of-type { border-bottom: none; margin-bottom: 0; }
.ci-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info-item strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .75;
  margin-bottom: 3px;
}
.contact-info-item p {
  font-size: 14.5px;
  line-height: 1.6;
  opacity: .9;
}
.contact-email-item .email-link {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .5px;
  text-decoration: none;
  border-bottom: 2px solid rgba(255,255,255,.5);
  transition: border-color .2s;
}
.contact-email-item .email-link:hover {
  border-color: #fff;
}
.contact-email-item .email-hint {
  font-size: 12px;
  opacity: .6;
  margin-top: 4px;
}
.contact-cta {
  margin: 28px 0 0;
  text-align: center;
}
.btn-email {
  font-size: 16px;
  padding: 14px 40px;
  letter-spacing: .5px;
  background: #fff;
  color: var(--primary);
  border: none;
}
.btn-email:hover {
  background: rgba(255,255,255,.9);
  color: var(--primary);
}
.contact-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}
.contact-showcase img {
  border-radius: 8px;
  height: 100px;
  object-fit: cover;
  width: 100%;
}
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: .8px;
}
.form-group input, .form-group textarea {
  padding: 13px 16px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--dark);
  background: var(--gray-100);
  transition: border-color .2s, background .2s;
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.cb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-700);
  cursor: pointer;
  font-weight: 600;
}
.cb input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--primary);
  padding: 0;
  border: none;
  background: none;
}
.form-note {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 14px;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.footer-tagline {
  font-size: 13px !important;
  color: rgba(255,255,255,.5) !important;
  font-weight: 400 !important;
}
.footer-links h4, .footer-products h4, .footer-contact h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.footer-links ul, .footer-products ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links ul li a, .footer-products ul li {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-links ul li a:hover { color: var(--accent); }
.footer-contact p {
  font-size: 14px;
  margin-bottom: 8px;
  color: rgba(255,255,255,.6);
}
.footer-bottom {
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.35);
}

/* ============================================================
   IMAGE VIEWER
   ============================================================ */
.img-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 32px;
}
.img-viewer img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary);
  color: var(--white);
  padding: 16px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: transform .4s ease;
  pointer-events: none;
  max-width: 400px;
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 500;
  background: var(--primary);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s, transform .3s;
}
.scroll-top.visible { opacity: 1; transform: none; }
.scroll-top:hover { background: var(--primary-dark); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid { gap: 40px; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .app-masonry { columns: 3; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid img:first-child, .gallery-grid img:nth-child(5) { height: 220px; grid-column: span 1; }
  .videos-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hamburger { display: flex; }
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    padding: 80px 24px 24px;
    box-shadow: -4px 0 30px rgba(0,0,0,.15);
    transform: translateX(100%);
    transition: transform .35s ease;
    z-index: 999;
  }
  .main-nav.open { transform: none; }
  .main-nav ul { flex-direction: column; gap: 8px; }
  .main-nav ul li a { color: var(--gray-700); display: block; padding: 12px 16px; }
  #header.scrolled .main-nav ul li a { color: var(--gray-700); }
  .about-grid { grid-template-columns: 1fr; }
  .about-highlights { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: 1fr; }
  .app-masonry { columns: 2; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .checkbox-group { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px; }
  .hero-stats { gap: 20px; }
  .hero-btns { gap: 12px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .app-masonry { columns: 1; }
  .gallery-grid { grid-template-columns: 1fr; }
}
