/* 
  HoangSon.Dev - Stylesheet
  Theme: Dark Mode, Glassmorphism
*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --color-primary: #0a1628;
  --color-primary-light: #1a3a5c;
  --color-accent: #2563eb;
  --color-accent-light: #06b6d4;
  --color-highlight: #f59e0b;
  --color-bg: #0f172a;
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-success: #10b981;
  
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  background: linear-gradient(135deg, #fff, var(--color-text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-center {
  text-align: center;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* --- Header & Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  height: 40px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
}

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

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

.btn-outline:hover {
  background: var(--color-accent);
}

.btn-block {
  width: 100%;
  display: block;
}

/* --- Hero Section --- */
.hero {
  padding: 150px 0 100px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(15, 23, 42, 0) 70%);
  z-index: -1;
  border-radius: 50%;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero .highlight {
  color: var(--color-accent-light);
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 40px;
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: left;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.hero-feature-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-feature-item .icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
  flex-shrink: 0;
  width: 30px;
  text-align: center;
}

.hero-feature-item .feature-text {
  flex: 1;
  text-align: center;
  line-height: 1.4;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- App Marquee --- */
.app-marquee-container {
  width: 100%;
  overflow: hidden;
  padding: 40px 0 10px;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.app-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
  gap: 15px;
}

.app-marquee-track:hover {
  animation-play-state: paused;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 110px;
  background: #1e2436;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.app-card:hover {
  transform: translateY(-5px);
  background: #252b40;
}

.app-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon svg {
  width: 100%;
  height: 100%;
  fill: #e2e8f0;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px; /* For solid favicons */
}

.app-card span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #94a3b8;
  text-transform: uppercase;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 7.5px)); }
}

/* --- Trust Banner --- */
.trust-banner {
  background: linear-gradient(90deg, rgba(10, 22, 40, 0.8), rgba(26, 58, 92, 0.8));
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 20px 0;
  margin-bottom: 50px;
}

.trust-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  text-align: center;
}

.trust-icon {
  font-size: 1.5rem;
  color: var(--color-highlight);
}

.trust-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-highlight);
}

/* --- Audit CTA Banner --- */
.audit-banner {
  margin: 0 auto 50px;
  max-width: 900px;
}
.audit-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(10, 22, 40, 0.8));
  border: 1px solid var(--color-accent);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.1);
  transition: var(--transition);
}
.audit-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(6, 182, 212, 0.2);
}
.audit-icon {
  color: var(--color-accent);
  flex-shrink: 0;
}
.audit-text {
  flex: 1;
}
.audit-text h2 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 10px;
}
.audit-text p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.audit-text strong {
  color: var(--color-highlight);
}
.audit-action {
  flex-shrink: 0;
}
.audit-action .btn {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .audit-content {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
}

.highlight-checkbox {
  background: rgba(6, 182, 212, 0.1);
  padding: 10px 15px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: inline-flex;
  transition: var(--transition);
}
.highlight-checkbox:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.5);
}

/* --- Products Section --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* --- Glassmorphism Card --- */
.product-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 25px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ffaa00, #ff5500);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(255, 120, 0, 0.4);
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.3);
}

.product-badge.badge-win {
  background: linear-gradient(135deg, #059669, #10b981); /* Emerald green */
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.product-image-container {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.product-image-container img {
  max-height: 140px;
  object-fit: contain;
  transition: transform 0.5s;
}

.product-card:hover .product-image-container img {
  transform: scale(1.1);
}

/* Fallback SVG styling inside image container */
.product-svg {
  width: 80px;
  height: 80px;
  fill: var(--color-text-muted);
  opacity: 0.8;
}
.brand-microsoft .product-svg { fill: #00a4ef; }
.brand-adobe .product-svg { fill: #ff0000; }
.brand-autodesk .product-svg { fill: #E1251B; }

.product-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent-light);
  margin-bottom: 5px;
  font-weight: 600;
}

.product-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  min-height: 60px; /* Ensure alignment */
}

.product-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 15px;
  flex-grow: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 20px;
  background: rgba(0,0,0,0.2);
  padding: 8px 12px;
  border-radius: 8px;
}

.product-type, .product-duration {
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-type i {
  color: var(--color-success);
}

.product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent-light);
  margin-bottom: 20px;
  text-align: center;
  font-family: var(--font-heading);
}

/* --- Options Toggle (For Office) --- */
.options-toggle {
  display: flex;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 4px;
}

.option-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  padding: 8px 5px;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
  font-family: var(--font-main);
}

.option-btn.active {
  background: var(--color-primary-light);
  color: #fff;
  font-weight: 600;
}

/* --- Section Dividers --- */
.brand-section {
  margin-bottom: 60px;
}
.brand-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
}
.brand-header h2 {
  font-size: 2rem;
}
.brand-logo-small {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* --- Wholesale Form Section --- */
.quote-section {
  background: linear-gradient(to bottom, var(--color-bg), var(--color-primary));
  position: relative;
}

.quote-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--glass-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-main);
  transition: var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(0, 0, 0, 0.4);
}

/* Checkbox Grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 200px;
  overflow-y: auto;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Form Message */
#formMessage {
  margin-top: 20px;
  padding: 15px;
  border-radius: var(--radius-md);
  text-align: center;
  display: none;
}
#formMessage.success {
  display: block;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--color-success);
  color: var(--color-success);
}
#formMessage.error {
  display: block;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

/* --- Footer --- */
footer {
  background: #050b14;
  padding: 60px 0 20px;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #fff;
}

.footer-col p {
  color: var(--color-text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

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

.social-links a:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* --- Floating Zalo Button --- */
.zalo-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #0068ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 104, 255, 0.4);
  z-index: 1000;
  animation: pulse 2s infinite;
  transition: var(--transition);
}

.zalo-floating:hover {
  transform: scale(1.1);
}

.zalo-floating img {
  width: 35px;
  height: 35px;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(0, 104, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0); }
}

/* --- Comparison Table (windows-office.html) --- */
.comparison-table-wrapper {
  overflow-x: auto;
  margin-bottom: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table th {
  background: rgba(0, 0, 0, 0.2);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-accent-light);
}

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

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.check-icon { color: var(--color-success); font-weight: bold; }
.cross-icon { color: #ef4444; font-weight: bold; }

/* Info Box */
.info-box {
  background: rgba(37, 99, 235, 0.1);
  border-left: 4px solid var(--color-accent);
  padding: 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 30px;
}
.info-box h3 {
  color: var(--color-accent-light);
  margin-bottom: 10px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero-features { grid-template-columns: 1fr; }
  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hero-buttons .btn {
    width: 100%;
    padding: 12px 5px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; } /* Add hamburger menu if needed, keeping simple for static */
  .quote-container { padding: 20px; }
  .zalo-floating { bottom: 20px; right: 20px; width: 50px; height: 50px; }
  .zalo-floating img { width: 30px; height: 30px; }
}

/* --- Variant Toggle --- */
.variant-toggle { display: flex; gap: 10px; margin-bottom: 15px; background: var(--color-bg-light); padding: 5px; border-radius: 8px; }
.variant-btn { flex: 1; background: transparent; border: none; padding: 8px; color: var(--color-text-muted); font-family: var(--font-body); font-weight: 600; cursor: pointer; border-radius: 6px; transition: all 0.3s; }
.variant-btn.active { background: var(--color-primary); color: #fff; box-shadow: 0 4px 10px rgba(0, 112, 243, 0.3); }
