:root {
  --primary: #15b7f8;
  --primary-dark: #0ea5e9;
  --secondary: #0f172a;
  --accent: #22c55e;
  --light: #f8fafc;
  --dark: #1e293b;
  --gray: #64748b;
  --font-main: 'Outfit', sans-serif;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-main); color: var(--secondary); background: #fff; overflow-x: hidden; }
.container .btn, .btn-auth, .btn, button[type="submit"], input[type="submit"] {
  background: var(--primary); color: #fff; border-radius: 12px; padding: 12px 20px; border: none; font-weight: 700; cursor: pointer; box-shadow: 0 10px 20px rgba(21,183,248,0.25);
}
.container .btn:hover, .btn-auth:hover, .btn:hover, button[type="submit"]:hover, input[type="submit"]:hover { transform: translateY(-2px); }
.auth-form input, .auth-form select, input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], select {
  width: 100%; padding: 14px 16px; border: 2px solid #e2e8f0; border-radius: 12px; background: #f8fafc; font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.2; }
p { line-height: 1.6; color: var(--gray); margin-bottom: 1rem; }
a { text-decoration: none; transition: all 0.3s ease; }

/* Utilities */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: 16px; cursor: pointer; transition: all 0.3s ease; border: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 20px rgba(21, 183, 248, 0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(21, 183, 248, 0.4); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f1f5f9; }
.text-center { text-align: center; }
.section-padding { padding: 100px 0; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 3rem; }

/* Header / Navigation */
.topbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 15px 0; transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.topbar.scrolled { background: rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-sm); padding: 10px 0; }
.topbar.solid { background: #fff; box-shadow: var(--shadow-sm); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.brand-logo img { height: 50px; transition: all 0.3s ease; }
.mainnav { display: flex; gap: 30px; align-items: center; }
.mainnav a { color: var(--secondary); font-weight: 500; font-size: 16px; }
.topbar.scrolled .mainnav a { color: var(--secondary); }
.topbar.solid .mainnav a { color: var(--secondary); }
.mainnav a:hover { color: var(--primary); }
.mainnav .cta { background: var(--primary); color: #fff !important; padding: 10px 24px; border-radius: 50px; box-shadow: 0 4px 10px rgba(21, 183, 248, 0.3); }
.mainnav .cta:hover { transform: translateY(-2px); box-shadow: 0 8px 15px rgba(21, 183, 248, 0.4); }

/* Hero Section (Slider) */
.hero-slider { position: relative; height: 100vh; width: 100%; overflow: hidden; }
.hero-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 1s ease-in-out; z-index: 1;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4));
}
.hero-content { position: relative; z-index: 10; color: #fff; text-align: center; max-width: 800px; transform: translateY(30px); opacity: 0; transition: all 0.8s ease 0.5s; }
.hero-slide.active .hero-content { transform: translateY(0); opacity: 1; }
.hero-badge { display: inline-block; padding: 8px 16px; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(5px); border-radius: 30px; margin-bottom: 20px; font-weight: 600; font-size: 14px; border: 1px solid rgba(255, 255, 255, 0.3); }
.hero-title { font-size: 64px; margin-bottom: 24px; letter-spacing: -2px; }
.hero-subtitle { font-size: 20px; margin-bottom: 40px; color: #e2e8f0; font-weight: 300; }
.hero-waves { position: absolute; bottom: -1px; left: 0; width: 100%; z-index: 20; line-height: 0; overflow: hidden; }
.hero-waves svg { display: block; width: 100%; height: auto; min-height: 100px; fill: #fff; transform: scale(1.02); }

/* Slider Controls */
.slider-dots { position: absolute; bottom: 120px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); cursor: pointer; transition: all 0.3s; }
.dot.active { background: #fff; transform: scale(1.2); }

/* Services / Packages Section */
.packages-section { background: #fff; padding: 120px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-title { font-size: 42px; color: var(--secondary); margin-bottom: 16px; }
.section-desc { font-size: 18px; color: var(--gray); }

.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.pack-card {
  background: #fff; border-radius: 24px; overflow: hidden;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08); border: 1px solid #f1f5f9;
  transition: all 0.4s ease; position: relative;
  display: flex; flex-direction: column;
}
.pack-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15); border-color: var(--primary); }
.pack-header { padding: 30px; text-align: center; background: #f8fafc; border-bottom: 1px solid #f1f5f9; }
.pack-price { font-size: 36px; font-weight: 800; color: var(--secondary); display: block; margin: 10px 0; }
.pack-price small { font-size: 16px; font-weight: 500; color: var(--gray); }
.pack-name { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); font-weight: 700; }
.pack-body { padding: 30px; flex: 1; }
.pack-features { list-style: none; padding: 0; margin: 0 0 30px 0; }
.pack-features li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 15px; color: var(--gray); }
.pack-features li svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.pack-btn-wrapper { margin-top: auto; padding: 0 30px 30px; }
.pack-btn { width: 100%; border: 2px solid var(--primary); background: transparent; color: var(--primary); }
.pack-card:hover .pack-btn { background: var(--primary); color: #fff; }

/* Recommended Badge */
.pack-card.recommended { transform: scale(1.05); border: 2px solid var(--primary); z-index: 10; }
.pack-card.recommended .pack-header { background: rgba(21, 183, 248, 0.05); }
.rec-badge { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 0 0 10px 10px; }

/* Features Section (Dark) */
.features-section { background: var(--secondary); color: #fff; padding: 120px 0; position: relative; overflow: hidden; }
.features-section::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px; opacity: 0.5;
}
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; position: relative; z-index: 10; }
.feature-box { text-align: center; padding: 30px; border-radius: 20px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s; }
.feature-box:hover { background: rgba(255,255,255,0.08); transform: translateY(-5px); }
.feature-icon { width: 70px; height: 70px; margin: 0 auto 20px; background: rgba(21, 183, 248, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--primary); }
.feature-box h3 { font-size: 20px; margin-bottom: 12px; }
.feature-box p { color: #94a3b8; font-size: 15px; }

/* How It Works (Timeline) */
.how-section { padding: 120px 0; background: #f0f9ff; position: relative; }
.timeline { display: flex; justify-content: space-between; align-items: flex-start; position: relative; margin-top: 60px; max-width: 1000px; margin-left: auto; margin-right: auto; }
.timeline::before { content: ''; position: absolute; top: 40px; left: 0; width: 100%; height: 2px; background: #cbd5e1; z-index: 0; }
.timeline-item { position: relative; z-index: 1; text-align: center; width: 30%; }
.timeline-icon { width: 80px; height: 80px; background: #fff; border: 4px solid var(--primary); border-radius: 50%; margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--primary); box-shadow: var(--shadow-md); transition: all 0.3s; }
.timeline-item:hover .timeline-icon { transform: scale(1.1); background: var(--primary); color: #fff; }
.timeline-content h3 { font-size: 22px; margin-bottom: 10px; color: var(--secondary); }
.timeline-content p { font-size: 15px; color: var(--gray); }

/* Stats Counter */
.stats-section { padding: 80px 0; background: var(--primary); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-card h2 { font-size: 56px; font-weight: 800; margin-bottom: 5px; }
.stat-card p { font-size: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }

/* CTA Banner */
.cta-banner { padding: 100px 0; background: #fff; text-align: center; }
.cta-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 32px; padding: 60px; max-width: 1000px; margin: 0 auto;
  color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.4);
}
.cta-box h2 { font-size: 42px; margin-bottom: 20px; }
.cta-box p { font-size: 18px; color: #cbd5e1; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-box .btn { padding: 16px 40px; font-size: 18px; }

/* Footer */
.footer { background: #15b7f8; color: #fff; padding: 80px 0 30px; font-size: 15px; }
.footer a { color: rgba(255,255,255,0.8); }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand img { height: 40px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer h4 { font-size: 18px; margin-bottom: 24px; color: #fff; }
.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: 12px; }
.copyright { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 30px; text-align: center; color: rgba(255,255,255,0.7); }

/* Padding for inner pages to avoid header overlap */
body:not(.home) { padding-top: 100px; }

/* Auth Container Fixes */
.auth-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  width: 100%;
  max-width: 1100px;
  min-height: 600px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.1);
  overflow: hidden;
  margin: 40px auto;
}

.auth-left {
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-right {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 60px;
}

.auth-form input {
  width: 100%;
  padding: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 16px;
  background: #f8fafc;
}
.auth-card {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 30px 60px -20px rgba(15,23,42,0.35);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  max-width: 1100px;
  margin: 40px auto;
  align-items: stretch;
}
.auth-card .left { padding: 50px; display: flex; align-items: center; }
.auth-card .right { position: relative; min-height: 520px; background-size: cover; background-position: center; }
.auth-card .right::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.85), rgba(0,0,0,0));
}
.auth-title { font-size: 34px; font-weight: 800; color: var(--secondary); margin: 0 0 8px; }
.auth-subtitle { font-size: 16px; color: var(--gray); margin: 0 0 18px; }
.form-group { margin-bottom: 16px; }
.auth-form input::placeholder { color: #94a3b8; }
.auth-visual-overlay { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; text-align: right; }
.auth-visual-overlay h3 { font-size: 30px; margin: 0 0 8px 0; }
.auth-visual-overlay p { font-size: 15px; color: #cbd5e1; margin: 0; }
.btn-auth {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 14px; background: var(--primary); color: #fff; border: none; font-weight: 700;
  box-shadow: 0 15px 30px rgba(21,183,248,0.35); transition: transform .2s ease, box-shadow .2s ease;
}
.btn-auth:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(21,183,248,0.4); }

.auth-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--secondary);
}

.auth-visual img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

@media (max-width: 900px) {
  .auth-container { grid-template-columns: 1fr; max-width: 500px; }
  .auth-right { display: none; }
  .auth-left { padding: 40px; }
}
/* Auth Unified Layout */
.auth-wrap { padding: 140px 0; background: #eef2ff; }
.auth-content { width: 100%; max-width: 480px; }
.auth-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-full { width: 100%; }
@media (max-width: 1024px) {
  .auth-card { grid-template-columns: 1fr; max-width: 920px; }
  .auth-card .right { min-height: 360px; }
}
@media (max-width: 768px) {
  .auth-card { max-width: 640px; }
  .auth-grid-2 { grid-template-columns: 1fr; }
}
