/* ===== Khair International - Main Stylesheet ===== */
:root {
  --primary: #0a2540;
  --primary-light: #1a3a5c;
  --accent: #1e6fd9;
  --accent-hover: #1557b0;
  --white: #ffffff;
  --light-bg: #f5f8fc;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e7f0;
  --success: #28a745;
  --shadow: 0 4px 20px rgba(10, 37, 64, 0.1);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Top Bar ===== */
.top-bar {
  background: var(--primary);
  color: var(--white);
  padding: 8px 0;
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar a {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar a:hover {
  color: #a8c5e8;
}

.top-bar .right {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  overflow: hidden;
}

.lang-toggle button {
  background: none;
  border: none;
  color: var(--white);
  padding: 4px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle button.active {
  background: var(--accent);
  font-weight: 600;
}

/* ===== Navbar ===== */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 8px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 20px;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-menu a {
  font-weight: 500;
  color: var(--text);
  position: relative;
  font-size: 15px;
}

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

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent);
}

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

.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0d3a66 50%, var(--primary-light) 100%);
  color: white;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'%3E%3Ccircle cx='650' cy='100' r='200' fill='rgba(255,255,255,0.03)'/%3E%3Ccircle cx='700' cy='400' r='150' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") no-repeat;
  background-size: cover;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: #5ba3f5;
}

.hero-content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 111, 217, 0.3);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
  border-color: white;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
}

.stat-card .number {
  font-size: 32px;
  font-weight: 800;
  color: #5ba3f5;
}

.stat-card .label {
  font-size: 14px;
  opacity: 0.85;
  margin-top: 5px;
}

/* ===== Section Common ===== */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .subtitle {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
}

/* ===== About ===== */
.about {
  background: var(--light-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-content h3 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 25px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.feature-item .icon {
  width: 36px;
  height: 36px;
  background: rgba(30, 111, 217, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}

.about-image {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 16px;
  padding: 40px;
  color: white;
  text-align: center;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about-image .big-icon {
  font-size: 80px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.about-image h4 {
  font-size: 24px;
  margin-bottom: 10px;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 35px 28px;
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(30,111,217,0.1), rgba(10,37,64,0.08));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}

.service-card h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== Countries ===== */
.countries {
  background: var(--light-bg);
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.country-card {
  background: white;
  border-radius: var(--radius);
  padding: 30px 15px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.country-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.country-flag {
  font-size: 48px;
  margin-bottom: 12px;
}

.country-card h4 {
  font-size: 16px;
  color: var(--primary);
  font-weight: 600;
}

/* ===== Why Choose ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.why-card {
  text-align: center;
  padding: 30px 20px;
}

.why-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 24px;
}

.why-card h4 {
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 10px;
}

.why-card p {
  color: var(--text-light);
  font-size: 14px;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 60px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 25px;
  font-size: 17px;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info h3 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  background: rgba(30, 111, 217, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item h5 {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 3px;
}

.contact-item a,
.contact-item span {
  font-weight: 600;
  color: var(--primary);
  font-size: 15px;
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-form {
  background: var(--light-bg);
  border-radius: 16px;
  padding: 35px;
}

.contact-form h3 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 111, 217, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-text {
  color: white;
  margin-bottom: 15px;
}

.footer-brand .logo-text span {
  color: rgba(255,255,255,0.6);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 18px;
}

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

.footer ul a {
  font-size: 14px;
  opacity: 0.8;
}

.footer ul a:hover {
  opacity: 1;
  color: #5ba3f5;
}

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

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 30px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

/* ===== Language Content ===== */
[data-lang="bn"] { display: none; }
body.lang-bn [data-lang="en"] { display: none; }
body.lang-bn [data-lang="bn"] { display: block; }
body.lang-bn span[data-lang="bn"],
body.lang-bn a[data-lang="bn"],
body.lang-bn option[data-lang="bn"] { display: inline; }
body.lang-bn .nav-menu a[data-lang="bn"] { display: inline; }

/* Inline language spans */
span[data-lang] { display: inline; }
body.lang-bn span[data-lang="en"] { display: none; }
body:not(.lang-bn) span[data-lang="bn"] { display: none; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content p {
    margin: 0 auto 30px;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-stats {
    max-width: 400px;
    margin: 0 auto;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .countries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    transition: var(--transition);
    gap: 20px;
    align-items: flex-start;
  }
  .nav-menu.open {
    right: 0;
  }
  .hero-content h1 {
    font-size: 32px;
  }
  .section-header h2 {
    font-size: 28px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .countries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .top-bar .container {
    justify-content: center;
    text-align: center;
  }
  .top-bar .right {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .countries-grid {
    grid-template-columns: 1fr 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 60px 0 50px;
  }
}
