/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #0a1f3f;
  --primary-light: #13345a;
  --accent: #e67e22;
  --accent-hover: #d35400;
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-light: #f5f7fa;
  --bg-dark: #0a1a2e;
  --border: #e0e0e0;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --radius: 8px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 0.8rem auto 1.5rem;
  border-radius: 2px;
}

section {
  padding: 80px 0;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: var(--primary);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 15px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}

.nav-logo .logo-icon {
  width: 45px;
  height: 45px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-menu a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 5px 0;
  transition: color var(--transition);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--accent);
}

.nav-menu a:hover::after, .nav-menu a.active::after {
  width: 100%;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* === HERO SLIDER === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10,31,63,0.85) 0%, rgba(10,31,63,0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  color: #fff;
  max-width: 700px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(230,126,34,0.4);
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.hero-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.hero-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  pointer-events: all;
  backdrop-filter: blur(5px);
}

.hero-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* === ABOUT === */
.about {
  background: var(--bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--accent);
  border-radius: var(--radius);
  z-index: -1;
}

.about-text h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  white-space: pre-line;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 3rem;
}

.stat-card {
  text-align: center;
  padding: 25px 15px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 5px;
}

/* === SERVICES === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.service-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

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

.service-card-body h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service-card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === GALLERY === */
.gallery {
  background: var(--bg-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-item::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 2rem;
  transition: transform var(--transition);
  z-index: 2;
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,31,63,0.4);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1;
}

.gallery-item:hover::before { opacity: 1; }
.gallery-item:hover::after { transform: translate(-50%, -50%) scale(1); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  transition: color var(--transition);
  background: none;
  border: none;
  line-height: 1;
}

.lightbox-close:hover { color: var(--accent); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-nav:hover { background: var(--accent); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-item-text h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 3px;
}

.contact-item-text p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-form h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

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

.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--bg-light);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

.form-message {
  padding: 12px;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: none;
  font-weight: 500;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  display: block;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  display: block;
}

/* === FOOTER === */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.footer-about p {
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-links h4, .footer-contact h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

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

.footer-links ul li a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
  font-size: 0.95rem;
}

.footer-links ul li a:hover {
  color: var(--accent);
}

.footer-contact p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: background var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

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

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

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 20px;
    transition: right var(--transition);
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
  }

  .nav-menu.open { right: 0; }

  .nav-menu a { font-size: 1.1rem; }

  .nav-phone { display: none; }

  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1rem; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-image { order: -1; }
  .about-image::before { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-title { font-size: 1.8rem; }
  section { padding: 50px 0; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-arrows { display: none; }
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
  box-shadow: 0 3px 15px rgba(230,126,34,0.4);
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover {
  transform: translateY(-3px);
}

/* === SERVICE CARD LINK === */
a.service-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.service-card:hover .service-link {
  color: var(--accent-hover);
}

/* === BREADCRUMB === */
.breadcrumb-section {
  background: var(--primary);
  padding: 100px 0 25px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

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

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: rgba(255,255,255,0.4);
  font-size: 1.2rem;
}

.breadcrumb-current {
  color: #fff;
  font-weight: 600;
}

/* === PRODUCT DETAIL === */
.product-detail {
  padding: 50px 0 80px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.product-main-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-light);
}

.product-main-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.product-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
}

.product-thumb {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: border-color var(--transition);
}

.product-thumb.active,
.product-thumb:hover {
  border-color: var(--accent);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.product-short-desc {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.product-features {
  margin-bottom: 2rem;
}

.product-features h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.features-table {
  width: 100%;
  border-collapse: collapse;
}

.features-table tr {
  border-bottom: 1px solid var(--border);
}

.features-table tr:last-child {
  border-bottom: none;
}

.features-table td {
  padding: 10px 12px;
  font-size: 0.95rem;
}

.features-table .feature-label {
  font-weight: 600;
  color: var(--primary);
  width: 40%;
  background: var(--bg-light);
}

.features-table .feature-value {
  color: var(--text);
}

.product-cta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-outline-dark {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: #fff;
}

/* Product Description Section */
.product-description-section {
  margin-bottom: 60px;
}

.product-description-section h2 {
  font-size: 1.6rem;
  color: var(--primary);
}

.product-description-content {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
}

/* Product Gallery */
.product-gallery-section {
  margin-bottom: 60px;
}

.product-gallery-section h2 {
  font-size: 1.6rem;
  color: var(--primary);
}

.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

/* Other Products */
.other-products-section {
  margin-top: 40px;
}

.other-products-section h2 {
  font-size: 1.6rem;
  color: var(--primary);
  text-align: center;
}

/* === PRODUCT DETAIL RESPONSIVE === */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-main-image img {
    height: 300px;
  }

  .product-title {
    font-size: 1.5rem;
  }

  .product-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-cta {
    flex-direction: column;
  }

  .product-cta .btn {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .breadcrumb-section {
    padding: 80px 0 20px;
  }

  .product-main-image img {
    height: 220px;
  }
}
