:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2440;
  --secondary: #2c6fbb;
  --accent: #4a9eff;
  --accent-light: #e8f0fe;
  --bg: #f8f9fa;
  --bg-card: #ffffff;
  --text: #2d3436;
  --text-light: #636e72;
  --text-muted: #b2bec3;
  --border: #e0e5ec;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

/* Particles canvas */
#particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  transition: all var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-logo span {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--accent-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition);
  border-radius: 2px;
}

/* Main */
main {
  position: relative;
  z-index: 1;
  flex: 1;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 8rem 1.5rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.hero-logo {
  width: 160px;
  display: block;
  margin: 0 auto 1.5rem;
  animation: hero-logo-glow 3s ease-in-out infinite;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--secondary);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Section titles */
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1rem;
}

/* Content cards */
.content-card {
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(74, 158, 255, 0.1), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.content-card:hover::before {
  left: 100%;
}

.content-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.content-card h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.content-card h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin: 1.5rem 0 0.75rem;
}

.content-card p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.content-card ul li {
  padding: 0.5rem 0 0.5rem 1.8rem;
  position: relative;
  color: var(--text-light);
  line-height: 1.6;
}

.content-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.content-card .card-image {
  margin: 1.5rem auto;
  max-width: 200px;
}

/* Hero card (for pages with large hero-like content) */
.hero-card {
  text-align: center;
  padding: 7rem 1.5rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-card h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-icon {
  width: 40px;
  height: 40px;
  vertical-align: middle;
  margin-right: 8px;
  display: inline-block;
}

.hero-card p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto 1.5rem;
}

/* Contact section */
.contact-hero {
  text-align: center;
  padding: 7rem 1.5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.contact-hero .sub-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 2.5rem;
}

.contact-hero .sub-label::before,
.contact-hero .sub-label::after {
  content: '';
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
  border-radius: 2px;
}

.contact-hero .sub-label::after {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 2.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all var(--transition);
  min-width: 180px;
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--accent);
}

.contact-card .card-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  transition: all var(--transition);
}

.contact-card:hover .card-icon {
  transform: scale(1.1);
}

.contact-card .card-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.contact-card .card-value {
  font-size: 0.8rem;
  color: var(--text-light);
}

.contact-cta {
  text-align: center;
  padding: 0 1.5rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-cta .cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.contact-cta p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(44,111,187,0.3);
}

.btn-primary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44,111,187,0.4);
}

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

.btn-outline:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-center {
  text-align: center;
  display: block;
  margin: 1.5rem auto;
  width: fit-content;
}

/* Image helpers */
.img-center {
  margin: 1.5rem auto;
}

.img-rounded {
  border-radius: var(--radius);
}

.img-circle {
  border-radius: 50%;
  object-fit: cover;
}

.img-shadow {
  box-shadow: var(--shadow-sm);
}

/* QR image */
.qr-img {
  width: 200px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border);
  margin: 1rem auto;
  transition: all var(--transition);
}

.qr-img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Founder info */
.founder-info {
  text-align: center;
  margin: 1rem 0;
  line-height: 1.8;
}

.founder-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary), #6c5ce7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
}

.founder-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 1rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

.founder-role {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.founder-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto;
}

/* Services grid (for index page) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

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

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.service-card .card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
}

.service-card .card-link:hover {
  color: var(--accent);
}

/* Video container */
.video-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.video-container video {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  margin-top: 3rem;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 30px;
  width: auto;
}

.footer-logo span {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
}

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

.footer-contact img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
}

.footer-copy {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
}

.footer-copy .heart {
  color: #e74c3c;
  display: inline-block;
}

/* Page wrapper */
.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 0.75rem 1rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    z-index: 1001;
    box-shadow: var(--shadow-md);
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links a {
    padding: 0.8rem 1rem;
    display: block;
    width: 100%;
    font-size: 0.9rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-card h1 {
    font-size: 1.8rem;
  }

  .content-card h1,
  .section-title {
    font-size: 1.4rem;
  }

  .hero {
    padding: 6rem 1rem 2rem;
  }

  .hero-card {
    padding: 5.5rem 1rem 2rem;
  }

  .content-card {
    padding: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-cards {
    gap: 1rem;
  }

  .contact-card {
    padding: 1.5rem 1.5rem;
    min-width: 140px;
  }

  .contact-card .card-icon {
    width: 48px;
    height: 48px;
  }

  .contact-hero h1 {
    font-size: 1.8rem;
  }

  .contact-hero .sub-label {
    font-size: 0.95rem;
  }

  .contact-hero .sub-label::before,
  .contact-hero .sub-label::after {
    width: 20px;
  }

  .hero-logo {
    width: 130px;
  }

  .footer-links {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-card h1 {
    font-size: 1.5rem;
  }

  .content-card h1,
  .section-title {
    font-size: 1.2rem;
  }

  .content-card p {
    font-size: 0.95rem;
  }

  .nav-logo span {
    font-size: 1.1rem;
  }

  .nav-logo img {
    height: 32px;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .contact-card {
    padding: 1.2rem 1rem;
    min-width: 120px;
  }

  .contact-card .card-icon {
    width: 42px;
    height: 42px;
  }

  .contact-hero h1 {
    font-size: 1.5rem;
  }

  .contact-hero .sub-label {
    font-size: 0.85rem;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
  }

  .footer-links {
    gap: 0.6rem;
  }

  .footer-links a {
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.3rem;
  }
}

/* --- Animations --- */
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-slow {
  animation: float-slow 3s ease-in-out infinite;
}

/* Avatar glass reflection effect */
@keyframes float-glow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.avatar-glass {
  position: relative;
  display: inline-flex;
  border-radius: 50%;
  padding: 3px;
  overflow: hidden;
  box-shadow:
    0 4px 20px rgba(44,111,187,0.2),
    0 0 40px rgba(44,111,187,0.1);
  animation: glass-shadow-pulse 3s ease-in-out infinite;
}

@keyframes glass-shadow-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(44,111,187,0.2), 0 0 40px rgba(44,111,187,0.1); }
  50% { box-shadow: 0 6px 30px rgba(44,111,187,0.35), 0 0 50px rgba(44,111,187,0.2); }
}

.avatar-glass .glass-border {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  z-index: 2;
  pointer-events: none;
}

.avatar-glass .glass-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(255,255,255,0.8) 0%,
    rgba(255,255,255,0.4) 20%,
    transparent 50%
  );
  animation: flash-radial 3.5s ease-out infinite;
  z-index: 3;
  pointer-events: none;
}

.avatar-glass .glass-shine-2 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(74,158,255,0.5) 0%,
    transparent 45%
  );
  animation: flash-radial-2 3.5s ease-out infinite;
  z-index: 3;
  pointer-events: none;
}

@keyframes flash-radial {
  0% { transform: scale(0.2); opacity: 0; }
  12% { opacity: 1; }
  45% { opacity: 0.15; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes flash-radial-2 {
  0% { transform: scale(0.1); opacity: 0; }
  25% { opacity: 0.5; }
  55% { opacity: 0; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes hero-logo-glow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.7);
  }
}
