/* ==============================
   PUPILIFY - Main Stylesheet
   Khatusha TechWorks, Indore
============================== */

:root {
  --primary: #1a56db;
  --primary-dark: #1240a8;
  --accent: #f97316;
  --accent-light: #fff7ed;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --text: #334155;
  --text-light: #64748b;
  --white: #ffffff;
  --light-bg: #f8fafc;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(26,86,219,0.10);
  --shadow-lg: 0 16px 48px rgba(26,86,219,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--dark);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== NAVBAR ===== */
#mainNav {
  background: transparent;
  padding: 20px 0;
  transition: all 0.4s ease;
  z-index: 1000;
}
#mainNav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: var(--shadow);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px;
}
.brand-text {
  font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.nav-link {
  font-weight: 500;
  color: var(--dark) !important;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-link:hover { background: var(--light-bg); color: var(--primary) !important; }

.toggler-icon {
  display: flex; flex-direction: column; gap: 5px; cursor: pointer;
}
.toggler-icon span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); border-radius: 2px; transition: 0.3s;
}
.navbar-toggler { border: none; outline: none !important; box-shadow: none !important; }

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: white !important;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex; align-items: center;
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,86,219,0.35);
  color: white !important;
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex; align-items: center;
}
.btn-outline-custom:hover {
  background: var(--primary);
  color: white !important;
  transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a56db 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center;
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.shape-1 {
  width: 600px; height: 600px;
  background: #3b82f6;
  top: -200px; right: -100px;
  animation: float 8s ease-in-out infinite;
}
.shape-2 {
  width: 400px; height: 400px;
  background: #f97316;
  bottom: -100px; left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}
.shape-3 {
  width: 300px; height: 300px;
  background: #a855f7;
  top: 50%; left: 40%;
  animation: float 6s ease-in-out infinite;
}
.floating-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.3);
  color: #fb923c;
  padding: 8px 18px; border-radius: 50px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
  animation: slideInUp 0.6s ease forwards;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: white;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
  animation: slideInUp 0.7s ease forwards;
}

.highlight-text {
  background: linear-gradient(135deg, #f97316, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
  animation: slideInUp 0.8s ease forwards;
}

.hero-btns { animation: slideInUp 0.9s ease forwards; }

.hero-stats {
  display: flex; align-items: center; gap: 24px;
  animation: slideInUp 1s ease forwards;
}
.stat-item { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem; font-weight: 800;
  color: white;
  line-height: 1;
}
.stat-label { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

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

/* ===== HERO MOCKUP ===== */
.hero-mockup {
  position: relative;
  width: 100%; max-width: 480px;
  animation: slideInUp 0.8s ease 0.3s both;
}
.mockup-card {
  background: rgba(255,255,255,0.97);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}
.card-main { position: relative; z-index: 2; }
.mockup-header {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 20px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }
.mockup-title {
  margin-left: auto;
  font-size: 12px; font-weight: 600; color: var(--text-light);
  font-family: 'Syne', sans-serif;
}

.mock-stat-row {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px;
  margin-bottom: 20px;
}
.mock-stat {
  background: var(--light-bg);
  border-radius: 12px; padding: 12px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.mock-stat i { font-size: 18px; color: var(--primary); }
.mock-stat span { font-size: 15px; font-weight: 700; font-family: 'Syne', sans-serif; color: var(--dark); }
.mock-stat small { font-size: 11px; color: var(--text-light); }

.mock-chart {
  display: flex; align-items: flex-end; gap: 8px;
  height: 70px; margin-bottom: 16px;
  padding: 0 4px;
}
.chart-bar {
  flex: 1;
  background: #dbeafe;
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: 0.3s;
}
.chart-bar.active { background: linear-gradient(180deg, var(--primary), #3b82f6); }
.chart-bar span {
  position: absolute; bottom: -18px; left: 50%;
  transform: translateX(-50%);
  font-size: 10px; color: var(--text-light);
  white-space: nowrap;
}

.mock-list { margin-top: 8px; }
.mock-list-item {
  font-size: 12px; padding: 6px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  color: var(--text);
}
.mock-list-item:last-child { border-bottom: none; }

.card-float-1, .card-float-2 {
  position: absolute;
  background: white;
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--dark);
  white-space: nowrap;
}
.card-float-1 i, .card-float-2 i { color: var(--primary); font-size: 18px; }
.card-float-1 { top: -24px; right: -30px; z-index: 3; animation: float 5s ease-in-out infinite; }
.card-float-2 { bottom: -20px; left: -20px; z-index: 3; animation: float 7s ease-in-out infinite reverse; }

/* ===== TRUSTED ===== */
.trusted-section {
  padding: 28px 0;
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
}
.trusted-label {
  text-align: center; font-size: 13px;
  color: var(--text-light); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 16px;
}
.trusted-logos {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 32px;
}
.trusted-logos span {
  font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 600;
  color: #94a3b8;
  transition: color 0.3s;
}
.trusted-logos span:hover { color: var(--primary); }

/* ===== SECTION COMMON ===== */
.section-header { max-width: 600px; margin: 0 auto; }
.section-badge {
  display: inline-block;
  background: rgba(26,86,219,0.1);
  color: var(--primary);
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 50px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.5px; line-height: 1.2;
  margin-bottom: 12px;
}
.section-subtitle { color: var(--text-light); font-size: 1.05rem; line-height: 1.7; }

/* ===== FEATURES ===== */
.features-section {
  padding: 100px 0;
  background: var(--white);
}
.feature-card {
  padding: 36px 28px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  transition: all 0.35s;
  height: 100%;
}
.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--primary);
  margin-bottom: 20px;
  transition: all 0.3s;
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: white;
}
.feature-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }

/* ===== MODULES ===== */
.modules-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}
.modules-section .section-badge {
  background: rgba(249,115,22,0.15);
  color: #fb923c;
}
.modules-section .section-title { color: white; }
.modules-section .section-subtitle { color: rgba(255,255,255,0.6); }

.module-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.module-item {
  color: rgba(255,255,255,0.8);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.92rem;
}
.module-item i { color: #22c55e; font-size: 14px; }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mod-tile {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 22px 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center;
  transition: all 0.3s; cursor: default;
}
.mod-tile i { font-size: 24px; color: #60a5fa; }
.mod-tile span { font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 500; }
.mod-tile:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.mod-tile.tile-large { grid-row: span 2; padding: 32px 20px; }
.mod-tile.tile-accent { background: rgba(249,115,22,0.12); border-color: rgba(249,115,22,0.3); }
.mod-tile.tile-accent i { color: #fb923c; }

/* ===== HOW IT WORKS ===== */
.howitworks-section {
  padding: 100px 0;
  background: var(--light-bg);
}
.step-item { padding: 20px; position: relative; }
.step-item:not(:last-child)::after {
  content: '';
  position: absolute; top: 40px; right: 0;
  width: 50%; height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}
.step-number {
  font-family: 'Syne', sans-serif;
  font-size: 3.5rem; font-weight: 800;
  color: rgba(26,86,219,0.08);
  line-height: 1; margin-bottom: 16px;
}
.step-icon {
  width: 64px; height: 64px;
  background: white;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--primary);
  margin: 0 auto 16px;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}
.step-item:hover .step-icon {
  background: var(--primary); color: white; border-color: var(--primary);
  transform: scale(1.1);
}
.step-item h5 { margin-bottom: 10px; }
.step-item p { color: var(--text-light); font-size: 0.93rem; }

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  padding: 100px 0;
  background: var(--white);
}
.testimonial-card {
  background: var(--light-bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  height: 100%;
  transition: all 0.3s;
}
.testimonial-card.featured {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  border-color: transparent;
}
.testimonial-card.featured p, .testimonial-card.featured .stars i { color: white !important; }
.testimonial-card.featured .testi-author strong, .testimonial-card.featured .testi-author small { color: rgba(255,255,255,0.9); }
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stars { margin-bottom: 16px; }
.stars i { color: #f59e0b; font-size: 14px; }
.testimonial-card p { color: var(--text); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 13px;
}
.testimonial-card.featured .author-avatar { background: rgba(255,255,255,0.25); }
.testi-author strong { font-size: 14px; display: block; }
.testi-author small { color: var(--text-light); font-size: 12px; }

/* ===== PRICING ===== */
.pricing-section {
  padding: 100px 0;
  background: var(--light-bg);
}
.pricing-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 36px 30px;
  height: 100%;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}
.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}
.popular-badge {
  position: absolute; top: 18px; right: 18px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: white; font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 50px;
}
.plan-name {
  font-family: 'Syne', sans-serif; font-weight: 700;
  color: var(--text-light); font-size: 14px;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 8px;
}
.plan-price {
  font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800;
  color: var(--dark); margin-bottom: 8px;
}
.plan-price span { font-size: 14px; font-weight: 400; color: var(--text-light); }
.plan-desc { color: var(--text-light); font-size: 13px; margin-bottom: 24px; }
.plan-features { list-style: none; padding: 0; }
.plan-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li i.fa-check { color: #22c55e; }
.plan-features li i.fa-xmark { color: #ef4444; }
.plan-features li.disabled { color: var(--text-light); }
.pricing-card:hover:not(.popular) { transform: translateY(-6px); box-shadow: var(--shadow); }

/* ===== CTA ===== */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary), #1240a8);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}
.cta-section h2 { color: white; font-size: 2.5rem; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 500px; margin: 0 auto; }

.btn-white-custom {
  background: white;
  color: var(--primary) !important;
  border: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex; align-items: center;
}
.btn-white-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  padding: 80px 0 0;
}
.footer-desc { color: #94a3b8; font-size: 14px; line-height: 1.7; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; text-decoration: none; transition: all 0.3s; font-size: 14px;
}
.footer-social a:hover { background: var(--primary); color: white; }
.footer-heading {
  font-family: 'Syne', sans-serif; font-size: 14px;
  color: white; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 20px;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li {
  display: flex; align-items: flex-start; gap: 12px;
  color: #94a3b8; font-size: 13px; margin-bottom: 12px;
}
.footer-contact li i { color: var(--primary); margin-top: 2px; font-size: 14px; }
.founders-note { color: #64748b; font-size: 13px; }
.founders-note strong { color: #94a3b8; }
.footer-bottom {
  margin-top: 60px; padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.footer-bottom p { color: #475569; font-size: 13px; margin: 0; }

/* ===== ABOUT/CONTACT PAGE SPECIFIC ===== */
.page-hero {
  background: linear-gradient(135deg, #0f172a, #1a56db);
  padding: 160px 0 80px;
  text-align: center;
}
.page-hero h1 { color: white; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; }

.about-section { padding: 100px 0; }
.founder-card {
  text-align: center;
  padding: 40px 30px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  transition: all 0.3s;
}
.founder-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.founder-avatar {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800;
  margin: 0 auto 16px;
}
.founder-card h5 { margin-bottom: 4px; }
.founder-card p { color: var(--text-light); font-size: 0.9rem; }

.contact-form-section { padding: 100px 0; background: var(--light-bg); }
.contact-form-wrap {
  background: white;
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow-lg);
}
.form-label { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-control {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  transition: border-color 0.2s;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}
.contact-info-card {
  background: linear-gradient(135deg, var(--dark), #1e3a5f);
  border-radius: 24px;
  padding: 48px 36px;
  height: 100%;
  color: white;
}
.contact-info-item {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 28px;
}
.contact-info-item .icon-box {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #60a5fa; font-size: 18px; flex-shrink: 0;
}
.contact-info-item h6 { color: rgba(255,255,255,0.5); font-size: 12px; margin-bottom: 4px; font-family: 'DM Sans', sans-serif; }
.contact-info-item p { color: white; font-size: 14px; margin: 0; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 1.4rem; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .mod-tile.tile-large { grid-row: span 1; }
  .module-list { grid-template-columns: 1fr; }
  .step-item::after { display: none; }
  .pricing-card.popular { transform: none; }
  .contact-form-wrap { padding: 28px 20px; }
}
