/* 
 * Gen A Studio Website Styles
 * Modern, responsive design with light/dark mode support
 */

:root {
  /* Light mode colors */
  --primary: #212529;
  --surface: #f8f9fa;
  --surface-variant: #e9ecef;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-emphasis: #000000;
  --accent: #343a40;
  --divider: #dee2e6;
  --shadow: rgba(0, 0, 0, 0.1);
  
  /* Product card gradients */
  --wibu-gradient: linear-gradient(135deg, #ff6b9d 0%, #a05cff 100%);
  --ovo-gradient: linear-gradient(135deg, #7c4dff 0%, #00c6ff 100%);
  --gigil-gradient: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
  
  /* Transitions */
  --transition-speed: 0.3s;
}

[data-theme="dark"] {
  /* Dark mode colors */
  --primary: #f8f9fa;
  --surface: #212529;
  --surface-variant: #343a40;
  --text-primary: #f8f9fa;
  --text-secondary: #adb5bd;
  --text-emphasis: #ffffff;
  --accent: #ced4da;
  --divider: #495057;
  --shadow: rgba(0, 0, 0, 0.3);
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--surface);
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--text-emphasis);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

/* Header styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--surface);
  box-shadow: 0 2px 10px var(--shadow);
  z-index: 1000;
  transition: background-color var(--transition-speed) ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
  margin-right: 12px;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-link {
  font-weight: 500;
  transition: color var(--transition-speed) ease;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-left: 1.5rem;
  transition: background-color var(--transition-speed) ease;
}

.theme-toggle:hover {
  background-color: var(--surface-variant);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: var(--text-primary);
  transition: fill var(--transition-speed) ease;
}

/* Mobile navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--text-primary);
  transition: all var(--transition-speed) ease;
}

.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background-color: var(--surface);
  padding: 1.5rem;
  box-shadow: 0 4px 10px var(--shadow);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
  z-index: 999;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--divider);
}

/* Hero section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--surface);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding-top: 72px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--text-emphasis);
  color: var(--surface);
  border: 2px solid var(--text-emphasis);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--text-emphasis);
}

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

.btn-secondary:hover {
  background-color: var(--text-primary);
  color: var(--surface);
}

/* About section */
.about {
  background-color: var(--surface);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
}

.mission {
  background-color: var(--surface-variant);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
}

/* Innovation pillars section */
.innovation-pillars {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pillar-card {
  background-color: var(--surface-variant);
  border-radius: 8px;
  padding: 2rem;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow);
}

.pillar-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.pillar-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.pillar-description {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Diagram section */
.diagram-section {
  padding: 4rem 0;
  background-color: var(--surface);
}

.diagram-container {
  max-width: 900px;
  margin: 0 auto;
}

.diagram-title {
  text-align: center;
  margin-bottom: 2rem;
}

/* Products section */
.products {
  background-color: var(--surface-variant);
  padding: 5rem 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: transform var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
}

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

.product-header {
  padding: 3rem 2rem;
  text-align: center;
  color: white;
}

.wibu-header {
  background: var(--wibu-gradient);
}

.ovo-header {
  background: var(--ovo-gradient);
}

.gigil-header {
  background: var(--gigil-gradient);
}

.product-logo {
  height: 80px;
  margin-bottom: 1.5rem;
}

.product-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: white;
}

.product-tagline {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.product-status {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-weight: 600;
}

.product-content {
  padding: 2rem;
  background-color: var(--surface);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-description {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.feature-list {
  margin: 1.5rem 0;
}

.feature-list h4 {
  margin-bottom: 1rem;
}

.feature-list ul {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.product-cta {
  margin-top: auto;
}

.product-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* Future section */
.future {
  background-color: var(--surface);
}

.future-content {
  max-width: 800px;
  margin: 0 auto;
}

.future-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.future-card {
  background-color: var(--surface-variant);
  border-radius: 8px;
  padding: 2rem;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.future-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow);
}

.future-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.future-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.future-description {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Contact section */
.contact {
  background-color: var(--surface-variant);
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-subtitle {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  color: var(--text-secondary);
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-icon {
  width: 24px;
  height: 24px;
  fill: var(--text-primary);
}

/* Footer */
.footer {
  background-color: var(--surface);
  padding: 3rem 0;
  text-align: center;
}
.logo-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px; /* khoảng cách giữa 2 logo */
  margin-bottom: 20px;
}

.footer-logo {
  height: 60px;
  margin-bottom: 1.5rem;
}

.footer-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  list-style: none;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin: 0 1rem;
}

.footer-link {
  color: var(--text-secondary);
  transition: color var(--transition-speed) ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Card Icons */
.card-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}



.pillar-card:hover .card-icon,
.future-card:hover .card-icon {
  transform: scale(1.1);
}

/* Responsive styles */
@media (max-width: 992px) {
  .section-title {
    font-size: 2.25rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .pillars-grid,
  .future-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
    .theme-toggle {
    position: fixed;
    bottom: 1rem;
    left: 0rem;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    z-index: 999;
  }

  .theme-toggle-icon {
    width: 24px;
    height: 24px;
    fill: #000;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    margin-bottom: 1rem;
  }
  
  .pillars-grid,
  .future-cards {
    grid-template-columns: 1fr;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .product-buttons {
    flex-direction: column;
  }
  
  .product-buttons .btn {
    width: 100%;
  }
}
