/* ============================================================
   Singzo Intelligent - Corporate Website Styles
   ============================================================ */

/* CSS Variables */
:root {
  --primary: #1a56db;
  --primary-dark: #143da8;
  --secondary: #2563eb;
  --accent: #059669;
  --dark: #1e293b;
  --light-bg: #f8fafc;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Typography */
h1, h2, h3, h4, h5, h6 { line-height: 1.25; color: var(--dark); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
p { margin-bottom: 1rem; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { position: relative; display: inline-block; }
.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-title p { color: var(--gray-500); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #047857; color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--gray-100); }

/* Header / Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
  font-size: 1.2rem;
}
.logo span { color: var(--dark); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a.active::after, .nav a:hover::after { width: 100%; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
  border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content h1 { color: var(--white); margin-bottom: 20px; font-size: clamp(2rem, 4vw, 3.2rem); }
.hero-content p { color: rgba(255,255,255,0.9); font-size: 1.15rem; margin-bottom: 32px; max-width: 540px; line-height: 1.8; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { display: flex; justify-content: center; align-items: center; }
.hero-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); max-width: 100%; }
.hero-image-placeholder {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 16/10;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1.2rem;
  border: 2px dashed rgba(255,255,255,0.2);
  text-align: center;
  padding: 20px;
}

/* Features Section */
.features { padding: 80px 0; background: var(--light-bg); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.feature-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--gray-100);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.feature-card h3 { margin-bottom: 12px; }
.feature-card p { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 0; }

/* Section spacing */
.section { padding: 80px 0; }
.section-alt { background: var(--light-bg); }

/* Company Intro */
.intro-section { padding: 80px 0; }
.intro-content { max-width: 800px; margin: 0 auto; text-align: center; }
.intro-content p { font-size: 1.1rem; color: var(--gray-600); line-height: 1.8; }

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card-image {
  height: 220px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.95rem;
  overflow: hidden;
}
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 24px; }
.product-card-body h3 { margin-bottom: 8px; }
.product-card-body .category-badge {
  display: inline-block;
  background: var(--gray-100);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 12px;
  text-transform: capitalize;
}
.product-card-body p { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 16px; }

/* Category Filter */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--gray-600);
  font-weight: 500;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.news-card-image {
  height: 200px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.9rem;
  overflow: hidden;
}
.news-card-image img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 24px; }
.news-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--gray-500);
}
.news-meta .category-badge {
  background: var(--gray-100);
  padding: 2px 10px;
  border-radius: 20px;
}
.news-card-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.news-card-body p { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 16px; }

/* Support Grid */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.support-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
  cursor: pointer;
}
.support-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.support-card .support-icon {
  width: 48px;
  height: 48px;
  background: var(--gray-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--primary);
}
.support-card h3 { margin-bottom: 8px; }
.support-card p { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 0; }

/* About Page */
.about-hero { background: var(--dark); color: var(--white); padding: 80px 0; text-align: center; }
.about-hero h1 { color: var(--white); margin-bottom: 16px; }
.about-hero p { color: rgba(255,255,255,0.8); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }
.about-content { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { color: var(--gray-600); line-height: 1.8; }

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.value-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.value-card .value-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.value-card h4 { margin-bottom: 8px; }
.value-card p { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 0; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.team-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gray-200);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gray-400);
}
.team-card h4 { margin-bottom: 4px; }
.team-card .role { color: var(--primary); font-size: 0.85rem; font-weight: 500; margin-bottom: 8px; }
.team-card p { color: var(--gray-500); font-size: 0.85rem; margin-bottom: 0; }

/* Contact Page */
.contact-section { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-info p { color: var(--gray-600); }
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--gray-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
}
.contact-item h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-item p { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 0; }
.contact-form { background: var(--white); padding: 40px; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); border: 1px solid var(--gray-100); }
.contact-form h3 { margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; color: var(--gray-700); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success { display: none; text-align: center; padding: 40px; }
.form-success.show { display: block; }
.form-success .success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h3 { margin-bottom: 8px; }

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand .logo span { color: rgba(255,255,255,0.8); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 20px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
  font-size: 0.9rem;
}
.footer-social a:hover { background: var(--primary); color: var(--white); }

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.1rem; }

/* Detail Page */
.detail-section { padding: 60px 0; }
.detail-back { margin-bottom: 24px; }
.detail-back a { display: inline-flex; align-items: center; gap: 6px; color: var(--gray-500); font-size: 0.95rem; }
.detail-back a:hover { color: var(--primary); }
.detail-header { margin-bottom: 40px; }
.detail-header h1 { margin-bottom: 12px; }
.detail-meta { display: flex; gap: 16px; color: var(--gray-500); font-size: 0.9rem; margin-bottom: 8px; align-items: center; flex-wrap: wrap; }
.detail-image { margin-bottom: 32px; border-radius: var(--radius-lg); overflow: hidden; max-height: 450px; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-content { max-width: 800px; }
.detail-content p { color: var(--gray-600); line-height: 1.8; margin-bottom: 1rem; }

/* Specs Table */
.specs-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.specs-table th, .specs-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.95rem;
}
.specs-table th { background: var(--gray-50); font-weight: 600; color: var(--gray-700); width: 40%; }
.specs-table td { color: var(--gray-600); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 24px 0; }
.gallery-item { border-radius: var(--radius); overflow: hidden; height: 180px; background: var(--gray-100); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* 404 Page */
.error-page { text-align: center; padding: 120px 20px; }
.error-page h1 { font-size: clamp(4rem, 10vw, 8rem); color: var(--gray-200); line-height: 1; }
.error-page h2 { margin-bottom: 16px; }
.error-page p { color: var(--gray-500); margin-bottom: 32px; font-size: 1.1rem; }

/* Loading & Error States */
.loading-state { text-align: center; padding: 60px 20px; }
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-state { text-align: center; padding: 40px 20px; color: var(--gray-500); }
.error-state .error-icon { font-size: 2.5rem; margin-bottom: 12px; }

/* Responsive */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-content p { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .header-inner { height: 60px; }
  .hero { padding: 60px 0; }
  .section { padding: 60px 0; }
  .products-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-header { padding: 40px 0; }
  .contact-form { padding: 24px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .products-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
}
