/*
Theme Name: AI Agent Masterclass
Description: Theme tĩnh cao cấp quảng bá dịch vụ Đào Tạo AI Agent
Author: Antigravity AI
Version: 1.1
*/

:root {
  --bg-color: #0b0c10;
  --surface-color: rgba(31, 40, 51, 0.65);
  --accent-color: #66fcf1;
  --accent-glow: rgba(102, 252, 241, 0.5);
  --primary-color: #45a29e;
  --text-primary: #ffffff;
  --text-secondary: #c5c6c7;
  --border-color: rgba(102, 252, 241, 0.15);
  --gradient-bg: radial-gradient(circle at top right, #1f2833 0%, #0b0c10 60%);
}

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

html {
    scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  background: var(--gradient-bg);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Glassmorphism */
.glass {
  background: var(--surface-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.brand span { color: var(--accent-color); }

.cta-button {
  display: inline-block;
  background: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--accent-color);
  color: var(--bg-color);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.cta-button.primary {
  background: var(--accent-color);
  color: var(--bg-color);
  box-shadow: 0 0 15px var(--accent-glow);
}
.cta-button.primary:hover {
  box-shadow: 0 0 30px var(--accent-glow);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 5% 4rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(102, 252, 241, 0.1);
  border: 1px solid var(--accent-color);
  border-radius: 50px;
  color: var(--accent-color);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.8rem;
  letter-spacing: -1px;
  background: linear-gradient(to right, #ffffff, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInDown 1s ease-out;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 3rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.social-proof {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.stars { color: #f59e0b; letter-spacing: 2px; }

/* Features */
.features {
  padding: 6rem 5%;
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  padding: 3rem 2.5rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1.8rem;
  background: var(--gradient-bg);
  display: inline-block;
  padding: 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.feature-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
  color: var(--accent-color);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Pain & Solution Section */
.pain-solution {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 8rem;
  padding: 0 5%;
}

.pain-box, .solution-box {
  padding: 3rem;
  text-align: left;
}

.pain-box {
  border-left: 5px solid #ef4444;
}

.solution-box {
  border-left: 5px solid var(--accent-color);
}

.pain-icon, .solution-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.pain-box h3, .solution-box h3 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  font-weight: 800;
}

/* CTA Section */
.cta-section {
  padding: 0 5% 8rem;
}

.cta-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 6rem 4rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(31, 40, 51, 0.8) 0%, rgba(11, 12, 16, 0.9) 100%);
  border: 1px solid var(--accent-color);
  box-shadow: 0 0 50px rgba(102, 252, 241, 0.15);
}

.cta-container h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.cta-container p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.large-cta {
  font-size: 1.25rem;
  padding: 1.2rem 3rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 3rem 5%;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Registration Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.modal-content {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.modal-overlay.hidden .modal-content {
    transform: translateY(20px);
}
.modal-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: center;
    background: linear-gradient(to right, #00f2fe, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.modal-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
}
.modal-subtitle strong {
    color: #ef4444;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: border-color 0.3s ease;
}
.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}
.full-width {
    width: 100%;
    margin-top: 10px;
}
.reg-success {
    text-align: center;
}
.reg-success .success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}
.reg-success h3 {
    font-size: 1.5rem;
    color: #10b981;
    margin-bottom: 15px;
}
.reg-success p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}
.outline {
    background: transparent;
    border: 1px solid var(--accent-color);
}
.outline:hover {
    background: rgba(0, 242, 254, 0.1);
}

/* Floating Quiz Button */
.floating-quiz-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 998;
}
.floating-quiz-btn {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #00f2fe;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 30px;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
    transition: all 0.3s ease;
}
.floating-quiz-btn:hover {
    background: rgba(0, 242, 254, 0.1);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
    transform: translateY(-3px);
}

/* Quiz Funnel Styles */
.quiz-step {
    animation: fadeIn 0.3s ease;
}
.quiz-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}
.quiz-question {
    font-size: 1.4rem;
    margin-bottom: 25px;
    line-height: 1.4;
}
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.quiz-option-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px 20px;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}
.quiz-option-btn:hover {
    background: rgba(0,242,254,0.1);
    border-color: var(--accent-color);
    transform: translateX(5px);
}
.text-center {
    text-align: center;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .hero { padding-top: 10rem; }
  .features { padding: 4rem 5%; }
  .feature-card { padding: 2rem 1.5rem; }
  .cta-container { padding: 4rem 2rem; }
}
