/* Base CSS & Design Tokens */
:root {
  /* Brand Colors */
  --primary-blue: #1A4798;
  --primary-blue-dark: #0f2c61;
  --accent-pink: #E91E63;
  --accent-pink-hover: #c2185b;
  --bg-light: #f4f7fb;
  --white: #ffffff;
  --text-dark: #1f2937;
  --text-muted: #6b7280;

  /* Spacing & Utilities */
  --section-padding: 5rem 2rem;
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-blue);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-pink);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(233, 30, 99, 0.4);
}

.btn-primary:hover {
  background-color: var(--accent-pink-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.5);
  color: var(--white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

/* =========================================
   Header & Navigation
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
  padding: 1rem 0;
}

.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  padding: 0.8rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 40px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--primary-blue);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-pink);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--primary-blue);
  color: var(--primary-blue);
  font-family: inherit;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.lang-btn:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-blue);
  cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #f4f7fb 0%, #e0eaf5 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(26, 71, 152, 0.1);
  color: var(--primary-blue);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-title .highlight {
  color: var(--accent-pink);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hero-actions .btn-secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image img {
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.glow-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(233,30,99,0.15) 0%, rgba(26,71,152,0) 70%);
  z-index: 1;
  border-radius: 50%;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-description {
    margin: 0 auto 2rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* =========================================
   Software Solutions Section
   ========================================= */
.software-section {
  padding: var(--section-padding);
  background-color: var(--white);
}

.section-title .highlight {
  color: var(--accent-pink);
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.software-card {
  background: var(--bg-light);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.software-card:hover {
  transform: translateY(-10px);
  background: var(--white);
  border-color: rgba(26, 71, 152, 0.1);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: rgba(26, 71, 152, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: var(--primary-blue);
  transition: var(--transition);
}

.software-card:hover .card-icon {
  background: var(--primary-blue);
  color: var(--white);
  transform: scale(1.1);
}

.software-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.software-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.software-card .btn {
  width: 100%;
}

/* =========================================
   Digital & Web Services Section
   ========================================= */
.services-section {
  padding: var(--section-padding);
  background-color: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-item {
  display: flex;
  gap: 1.5rem;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.service-item i {
  font-size: 2.5rem;
  color: var(--accent-pink);
  flex-shrink: 0;
}

.service-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* =========================================
   Why Choose Us / CTA Section
   ========================================= */
.cta-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
  color: var(--white);
  text-align: center;
}

.cta-content h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content .highlight {
  color: var(--accent-pink);
}

.cta-content > p {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.stat-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem 3rem;
  border-radius: var(--border-radius);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
}

.stat-box h3 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.stat-box p {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* =========================================
   Footer
   ========================================= */
.footer {
  background-color: #0b1a36;
  color: #a0aec0;
  padding-top: 5rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  height: 40px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

.footer-about p {
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
}

.social-links a:hover {
  background: var(--accent-pink);
  transform: translateY(-3px);
}

.footer h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links a:hover {
  color: var(--accent-pink);
}

.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer-contact i {
  color: var(--accent-pink);
  font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  .stats-row {
    gap: 1.5rem;
  }
}

/* =========================================
   Madrasa Management Landing Page
   ========================================= */

.bengali-font {
  font-family: 'Hind Siliguri', 'Outfit', sans-serif;
}

.madrasa-hero {
  padding: 180px 0 100px;
  background: linear-gradient(135deg, var(--white) 0%, #eef2f7 100%);
  position: relative;
  overflow: hidden;
}

.madrasa-hero-container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.macbook-mockup {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  perspective: 1200px;
  transform: rotateY(-15deg) rotateX(10deg) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
}

.macbook-mockup:hover {
  transform: rotateY(-5deg) rotateX(5deg) scale(1);
}

.macbook-screen {
  background: #111;
  border-radius: 12px 12px 0 0;
  padding: 3%;
  border: 2px solid #333;
  border-bottom: none;
  box-shadow: inset 0 0 0 1px #000, 0 20px 40px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.dashboard-img-inner {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.macbook-base {
  background: linear-gradient(to bottom, #d1d5db 0%, #9ca3af 100%);
  height: 22px;
  border-radius: 0 0 16px 16px;
  position: relative;
  width: 114%;
  left: -7%;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.5), 0 15px 25px rgba(0,0,0,0.3);
}

.macbook-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16%;
  height: 6px;
  background: #6b7280;
  border-radius: 0 0 6px 6px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

.modules-section {
  padding: var(--section-padding);
  background-color: var(--white);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.module-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  text-align: left;
}

.module-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.module-card .card-icon {
  margin: 0 0 1.5rem 0;
  width: 60px;
  height: 60px;
  font-size: 2rem;
}

.trust-section {
  padding: 5rem 0;
  background-color: var(--primary-blue-dark);
  color: var(--white);
}

.trust-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-item {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 2rem;
}

.trust-item i {
  font-size: 3rem;
  color: var(--accent-pink);
  margin-bottom: 1rem;
}

.trust-item h4 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.trust-item p {
  opacity: 0.8;
}

@media (max-width: 992px) {
  .madrasa-hero-container {
    flex-direction: column;
  }
  .macbook-mockup {
    transform: none;
    margin-top: 3rem;
  }
  .macbook-mockup:hover {
    transform: none;
  }
}

/* =========================================
   Timeline / Detailed Features Section
   ========================================= */
.timeline-section {
  padding: 5rem 2rem;
  background-color: var(--bg-light);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 4rem auto 0;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  height: 100%;
  width: 4px;
  background: rgba(26, 71, 152, 0.1);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  width: 60px;
  height: 60px;
  background: var(--white);
  border: 4px solid var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-pink);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.timeline-content {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  width: 100%;
  transition: var(--transition);
}

.timeline-item:hover .timeline-content {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-left: 4px solid var(--accent-pink);
}

.timeline-item:hover .timeline-icon {
  background: var(--primary-blue);
  color: var(--white);
}

.timeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary-blue-dark);
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.feature-list li i {
  color: var(--accent-pink);
  font-size: 1.2rem;
  margin-top: 3px;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    flex-direction: column;
    gap: 1rem;
  }
  .timeline-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* =========================================
   Pricing Section
   ========================================= */
.pricing-section {
  padding: 5rem 2rem;
  background-color: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  align-items: center;
}

.pricing-card {
  background: var(--bg-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26, 71, 152, 0.2);
}

.pricing-card.popular {
  background: var(--primary-blue-dark);
  color: var(--white);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue-dark);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-10px);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-pink);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(233, 30, 99, 0.4);
}

.pricing-header h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
}

.pricing-card.popular .pricing-header h3 {
  color: var(--white);
}

.pricing-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.pricing-card.popular .pricing-header p {
  color: rgba(255, 255, 255, 0.7);
}

.pricing-price {
  margin-bottom: 2rem;
}

.pricing-price .currency {
  font-size: 1.5rem;
  font-weight: 600;
  vertical-align: top;
}

.pricing-price .amount {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.pricing-price .period {
  font-size: 1rem;
  color: var(--text-muted);
}

.monthly-equivalent {
  display: inline-block;
  background-color: rgba(233, 30, 99, 0.1);
  color: var(--accent-pink);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 0.8rem;
  border: 1px solid rgba(233, 30, 99, 0.2);
}

.pricing-card.popular .monthly-equivalent {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.pricing-card.popular .pricing-price .period {
  color: rgba(255, 255, 255, 0.7);
}

.pricing-features {
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pricing-features li i {
  color: var(--accent-pink);
  font-size: 1.2rem;
}

.pricing-features li i.text-muted {
  color: var(--text-muted);
}

.pricing-card.popular .pricing-features li {
  color: rgba(255, 255, 255, 0.9);
}

.pricing-card .btn {
  width: 100%;
}

@media (max-width: 992px) {
  .pricing-card.popular {
    transform: none;
  }
  .pricing-card.popular:hover {
    transform: translateY(-10px);
  }
}

.nav-wa-btn i {
  font-size: 1.2rem;
  vertical-align: middle;
  margin-right: 4px;
}

@media (max-width: 768px) {
  .nav-wa-btn {
    font-size: 11px !important;
    padding: 0.4rem 0.6rem !important;
  }
  .nav-wa-btn i {
    font-size: 1rem !important;
  }
  .logo img {
    height: unset !important;
    max-height: 40px;
    max-width: 140px;
    object-fit: contain;
  }
}
