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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: #0a0e1a;
  color: #e0e6ed;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: #e63946;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #f4a261;
  text-decoration: underline;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
header {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
  border-bottom: 1px solid rgba(31, 41, 55, 0.6);
  transition: background 0.4s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e63946;
  letter-spacing: 1px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.03);
}

.logo span {
  color: #fff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  color: #cbd5e1;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #e63946, #f4a261);
  transition: width 0.3s ease;
}

nav a:hover {
  color: #fff;
  text-decoration: none;
}

nav a:hover::after {
  width: 100%;
}

/* ===== Hero Section ===== */
.hero {
  padding: 120px 0 90px;
  text-align: center;
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1f33 50%, #0f1923 100%);
  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(230, 57, 70, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 70% 80%, rgba(244, 162, 97, 0.06) 0%, transparent 50%);
  animation: heroGlow 10s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(2%, 2%) rotate(3deg); }
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #e63946 0%, #f4a261 50%, #e9c46a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease;
  position: relative;
  z-index: 1;
}

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

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 35px;
  color: #94a3b8;
  animation: fadeInUp 1s ease 0.2s backwards;
  position: relative;
  z-index: 1;
}

.btn-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s backwards;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 40px;
  font-weight: 600;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #e63946, #c1121f);
  color: #fff;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(230, 57, 70, 0.45);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  border: 2px solid #e63946;
  color: #e63946;
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(230, 57, 70, 0.15);
  border-color: #f4a261;
  color: #f4a261;
  transform: translateY(-3px);
  text-decoration: none;
}

/* ===== Sections ===== */
section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(20px);
  animation: sectionFadeIn 0.8s ease forwards;
}

@keyframes sectionFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 45px;
  text-align: center;
  color: #f1f5f9;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #e63946, #f4a261);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ===== Grid ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* ===== Cards ===== */
.card {
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(31, 41, 55, 0.7);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.05), transparent);
  transition: left 0.6s ease;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border-color: rgba(230, 57, 70, 0.3);
}

.card h3 {
  font-size: 1.45rem;
  margin-bottom: 14px;
  color: #f1f5f9;
  transition: color 0.3s ease;
}

.card:hover h3 {
  color: #e63946;
}

.card p {
  color: #94a3b8;
  line-height: 1.7;
}

/* ===== About ===== */
#about {
  background: linear-gradient(180deg, #0a0e1a 0%, #111827 100%);
}

.about-content {
  display: flex;
  gap: 50px;
  align-items: center;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 280px;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 22px;
  color: #f1f5f9;
}

.about-text p {
  margin-bottom: 16px;
  color: #94a3b8;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 50px;
  margin-top: 35px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  padding: 20px 30px;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid rgba(31, 41, 55, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 120px;
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat h3 {
  font-size: 2.6rem;
  color: #e63946;
  font-weight: 800;
}

.stat p {
  color: #64748b;
  margin-top: 6px;
  font-size: 0.95rem;
}

/* ===== FAQ ===== */
#faq {
  background: linear-gradient(180deg, #111827 0%, #0a0e1a 100%);
}

.faq-list {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(31, 41, 55, 0.5);
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(230, 57, 70, 0.2);
}

.faq-question {
  background: transparent;
  border: none;
  border-radius: 14px;
  padding: 20px 26px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  transition: background 0.3s ease;
  font-family: inherit;
}

.faq-question:hover {
  background: rgba(230, 57, 70, 0.06);
}

.faq-question::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 300;
  color: #e63946;
  transition: transform 0.4s ease, content 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
}

.faq-question.active::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 26px;
  color: #94a3b8;
  line-height: 1.7;
}

.faq-answer.open {
  max-height: 300px;
  padding: 0 26px 20px;
}

/* ===== Contact ===== */
#contact {
  background: #0f172a;
  padding: 80px 0;
}

#contact p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 35px;
  color: #94a3b8;
}

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.contact-item {
  text-align: center;
  padding: 20px 30px;
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid rgba(31, 41, 55, 0.4);
  transition: transform 0.3s ease;
  min-width: 180px;
}

.contact-item:hover {
  transform: translateY(-4px);
}

.contact-item h4 {
  color: #f1f5f9;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.contact-item p {
  color: #94a3b8;
  margin: 0;
}

.contact-item a {
  color: #e63946;
}

/* ===== Footer ===== */
.footer {
  background: #0f172a;
  padding: 50px 0 30px;
  border-top: 1px solid rgba(31, 41, 55, 0.6);
}

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

.footer h4 {
  color: #f1f5f9;
  margin-bottom: 18px;
  font-size: 1.1rem;
  position: relative;
  display: inline-block;
}

.footer h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 3px;
  background: #e63946;
  border-radius: 2px;
  margin-top: 6px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 10px;
}

.footer a {
  color: #94a3b8;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
}

.footer a:hover {
  color: #e63946;
  padding-left: 5px;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(31, 41, 55, 0.5);
  margin-top: 35px;
  color: #64748b;
  font-size: 0.9rem;
}

/* ===== Scroll Animation ===== */
@media (prefers-reduced-motion: no-preference) {
  section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  section.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .about-stats {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 0 60px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.05rem;
  }
  
  nav ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  
  nav a {
    font-size: 0.9rem;
  }
  
  .header-inner {
    flex-direction: column;
    gap: 12px;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .about-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .stat {
    width: 100%;
    max-width: 250px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .card {
    padding: 24px;
  }
  
  .faq-question {
    padding: 16px 20px;
    font-size: 0.95rem;
  }
  
  .faq-answer.open {
    padding: 0 20px 16px;
  }
  
  .contact-grid {
    gap: 25px;
  }
  
  .footer-grid {
    gap: 25px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn-group {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .about-text h2 {
    font-size: 1.7rem;
  }
  
  .stat h3 {
    font-size: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer h4::after {
    margin: 6px auto 0;
  }
}

/* ===== Dark Mode Support (already dark) ===== */
@media (prefers-color-scheme: light) {
  body {
    background: #0a0e1a;
    color: #e0e6ed;
  }
  
  header {
    background: rgba(10, 14, 26, 0.9);
  }
  
  .card {
    background: rgba(17, 24, 39, 0.85);
  }
  
  .faq-item {
    background: rgba(17, 24, 39, 0.8);
  }
}

/* ===== Utility ===== */
::selection {
  background: rgba(230, 57, 70, 0.3);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e63946;
}