/* CSS Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: #0f0f1a; color: #e0e0e0; line-height: 1.6; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Theme Variables */
:root { --bg-primary: #0f0f1a; --bg-card: #1a1a2e; --bg-glass: rgba(26, 26, 46, 0.7); --text-primary: #e0e0e0; --text-secondary: #a0a0b0; --accent: #e94560; --accent-hover: #ff6b81; --gradient-start: #1a1a2e; --gradient-end: #16213e; --shadow: 0 8px 32px rgba(0,0,0,0.3); --radius: 16px; --transition: 0.3s ease; }

/* Dark Mode (already dark, but supports system preference) */
@media (prefers-color-scheme: light) {
  :root { --bg-primary: #f5f5f5; --bg-card: #ffffff; --bg-glass: rgba(255,255,255,0.7); --text-primary: #1a1a2e; --text-secondary: #555; --shadow: 0 8px 32px rgba(0,0,0,0.1); }
  body { background: var(--bg-primary); color: var(--text-primary); }
}

/* Scroll Animation Base */
[data-aos] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }

/* Header & Nav */
header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: var(--bg-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.08); padding: 0.5rem 1rem; transition: background var(--transition); }
header nav { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; gap: 1rem; }
header nav a[aria-label] { flex-shrink: 0; }
header nav ul { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
header nav ul li a { padding: 0.4rem 0.8rem; border-radius: 8px; font-size: 0.85rem; font-weight: 500; transition: background var(--transition), color var(--transition); white-space: nowrap; }
header nav ul li a:hover { background: var(--accent); color: #fff; }

/* Hero Section */
#hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6rem 2rem 4rem; background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end), #0f3460); position: relative; overflow: hidden; }
#hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 50%, rgba(233,69,96,0.15), transparent 60%); animation: heroGlow 8s ease-in-out infinite alternate; }
@keyframes heroGlow { 0% { transform: translate(0, 0); } 100% { transform: translate(10%, 10%); } }
#hero h1 { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 800; margin-bottom: 1rem; background: linear-gradient(135deg, #fff, var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; position: relative; z-index: 1; }
#hero p { font-size: clamp(1rem, 2.5vw, 1.3rem); color: var(--text-secondary); max-width: 600px; margin-bottom: 2rem; position: relative; z-index: 1; }
#hero a[role="button"] { display: inline-block; padding: 0.8rem 2rem; border-radius: 50px; font-weight: 600; font-size: 1rem; transition: all var(--transition); margin: 0.5rem; position: relative; z-index: 1; }
#hero a[role="button"]:first-of-type { background: var(--accent); color: #fff; box-shadow: 0 4px 20px rgba(233,69,96,0.4); }
#hero a[role="button"]:first-of-type:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(233,69,96,0.6); }
#hero a[role="button"]:last-of-type { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
#hero a[role="button"]:last-of-type:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }

/* General Section Styles */
main section { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }
main section h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; margin-bottom: 2rem; color: var(--text-primary); position: relative; display: inline-block; }
main section h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--accent); border-radius: 2px; margin-top: 0.5rem; }
main section p { color: var(--text-secondary); margin-bottom: 1.5rem; max-width: 800px; }

/* Card Style (used in products, knowledge, etc.) */
article, .card { background: var(--bg-card); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.05); }
article:hover, .card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
article h3 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--accent); }
article p { font-size: 0.95rem; }

/* Products Section */
#products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
#products article { display: flex; flex-direction: column; }
#products article img { border-radius: 12px; margin-top: 1.5rem; object-fit: cover; width: 100%; }

/* Lists (services, solutions, etc.) */
section ul, section ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
section ul li, section ol li { margin-bottom: 0.6rem; color: var(--text-secondary); position: relative; }
section ul li::marker { color: var(--accent); }
section ol li::marker { color: var(--accent); font-weight: bold; }

/* FAQ Section */
#faq details { background: var(--bg-card); border-radius: 12px; margin-bottom: 1rem; padding: 1rem 1.5rem; border: 1px solid rgba(255,255,255,0.05); transition: all var(--transition); cursor: pointer; }
#faq details summary { font-weight: 600; color: var(--text-primary); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
#faq details summary::after { content: '+'; font-size: 1.5rem; color: var(--accent); transition: transform var(--transition); }
#faq details[open] summary::after { content: '−'; transform: rotate(180deg); }
#faq details p { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); color: var(--text-secondary); }
#faq details:hover { border-color: var(--accent); }

/* HowTo Section */
#howto ol li { padding: 0.8rem 1rem; background: var(--bg-card); border-radius: 12px; margin-bottom: 0.8rem; border-left: 4px solid var(--accent); transition: transform var(--transition); }
#howto ol li:hover { transform: translateX(5px); }

/* Contact Section */
#contact address { background: var(--bg-card); border-radius: var(--radius); padding: 2rem; font-style: normal; line-height: 2; border: 1px solid rgba(255,255,255,0.05); color: var(--text-secondary); }

/* Knowledge Grid */
#knowledge { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
#knowledge article { padding: 1.5rem; }

/* Footer */
footer { background: var(--bg-card); border-top: 1px solid rgba(255,255,255,0.08); padding: 2rem; text-align: center; margin-top: 2rem; }
footer nav ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.5rem; }
footer nav ul li a { font-size: 0.9rem; color: var(--text-secondary); transition: color var(--transition); }
footer nav ul li a:hover { color: var(--accent); }
footer p { font-size: 0.85rem; color: var(--text-secondary); }

/* Responsive */
@media (max-width: 768px) {
  header nav { flex-direction: column; align-items: flex-start; }
  header nav ul { width: 100%; justify-content: center; gap: 0.3rem; }
  header nav ul li a { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
  #hero { padding: 5rem 1rem 3rem; }
  main section { padding: 3rem 1rem; }
  #products { grid-template-columns: 1fr; }
  #knowledge { grid-template-columns: 1fr; }
  footer nav ul { gap: 0.8rem; }
}

/* Utility animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.aos-animate { animation: fadeInUp 0.6s ease forwards; }

/* Glassmorphism extras */
.glass { background: var(--bg-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1); }

/* Smooth scroll offset for fixed header */
section[id] { scroll-margin-top: 80px; }