/* ===== Pinoy365 - Main Stylesheet ===== */
:root {
  --primary: #1a1a2e;
  --secondary: #e94560;
  --accent: #f5c518;
  --bg-dark: #0f0f23;
  --bg-card: #16213e;
  --text-light: #eaeaea;
  --text-muted: #a0a0b0;
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --gradient-btn: linear-gradient(135deg, #e94560, #f5455f);
  --gradient-accent: linear-gradient(135deg, #f5c518, #f0a500);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --radius: 12px;
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--secondary); }

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ===== Header / Nav ===== */
.site-header {
  background: rgba(15,15,35,0.97);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(233,69,96,0.2);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; color: #fff; }
.logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { color: var(--text-light); font-weight: 500; font-size: .95rem; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--secondary); transition: width .3s; }
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: #fff; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(233,69,96,0.4); }

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

.btn-sm { padding: 8px 20px; font-size: .88rem; }
.btn-lg { padding: 16px 40px; font-size: 1.15rem; }

.lang-switch {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
}

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.hamburger span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero {
  background: var(--gradient-hero);
  padding: 80px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(233,69,96,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(245,197,24,0.06) 0%, transparent 50%);
  animation: heroGlow 10s ease-in-out infinite alternate;
}

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

.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 2.8rem; font-weight: 900; margin-bottom: 16px; line-height: 1.2; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }

.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-image { margin-top: 40px; position: relative; z-index: 2; }
.hero-image img { border-radius: var(--radius); box-shadow: var(--shadow); max-height: 350px; margin: 0 auto; }

/* ===== Sections ===== */
.section { padding: 70px 20px; }
.section-dark { background: var(--primary); }
.section-title { text-align: center; font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.section-title span { color: var(--accent); }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 50px; font-size: 1.05rem; }

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

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform .3s, border-color .3s;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--secondary); }

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(233,69,96,0.15), rgba(245,197,24,0.15));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: .95rem; }

/* Steps */
.steps { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; counter-reset: step; }
.step {
  flex: 1 1 220px;
  max-width: 280px;
  text-align: center;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--gradient-btn);
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 16px;
}
.step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step p { color: var(--text-muted); font-size: .9rem; }

/* CTA */
.cta-section {
  background: linear-gradient(135deg, #e94560, #c73e54);
  text-align: center;
  padding: 60px 20px;
  border-radius: var(--radius);
  margin: 0 20px;
}
.cta-section h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-section p { margin-bottom: 28px; font-size: 1.05rem; opacity: .9; }

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform .3s;
}
.blog-card:hover { transform: translateY(-4px); }

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body { padding: 20px; }
.blog-card-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.blog-card-body p { color: var(--text-muted); font-size: .9rem; margin-bottom: 14px; }
.blog-card-meta { font-size: .8rem; color: var(--text-muted); }

/* Page Content */
.page-hero {
  background: var(--gradient-hero);
  padding: 60px 20px 40px;
  text-align: center;
}
.page-hero h1 { font-size: 2.2rem; font-weight: 800; }
.page-hero p { color: var(--text-muted); margin-top: 10px; }

.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 50px 20px;
}

.page-content h2 { color: var(--accent); font-size: 1.5rem; margin: 32px 0 12px; }
.page-content h3 { font-size: 1.2rem; margin: 24px 0 8px; }
.page-content p, .page-content li { color: var(--text-muted); margin-bottom: 12px; }
.page-content ul, .page-content ol { padding-left: 24px; }
.page-content ul li { list-style: disc; }
.page-content ol li { list-style: decimal; }

.blog-feature-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 30px;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .95rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 1rem;
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { min-height: 130px; resize: vertical; }

/* Footer */
.site-footer {
  background: var(--primary);
  padding: 50px 20px 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-col h4 { font-size: 1.05rem; margin-bottom: 16px; color: var(--accent); }
.footer-col p { color: var(--text-muted); font-size: .9rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: var(--text-muted); font-size: .9rem; }
.footer-col ul a:hover { color: var(--accent); }

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: .85rem;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.age-badge {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: .85rem;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary); flex-direction: column; padding: 20px; gap: 16px; border-bottom: 2px solid var(--secondary); }
  .nav-links.active { display: flex; }
  .hamburger { display: block; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .section-title { font-size: 1.6rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 50px 16px 40px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-lg { padding: 14px 32px; }
}

/* Utility */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }
