/* ===== ROOT VARIABLES & BASE ===== */
:root {
  --primary: #1a3a5c;
  --primary-light: #2c5f8a;
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --gradient-primary: linear-gradient(135deg, #1a3a5c 0%, #0ea5e9 100%);
  --gradient-accent: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.16);
  --radius: 12px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: 'Inter', sans-serif;
  color: #334155;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-weight: 700; color: var(--primary); line-height: 1.3; }
img { max-width: 100%; height: auto; }

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}
.navbar-brand {
  font-weight: 800;
  font-size: 1.6rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}
.navbar .nav-link {
  color: var(--primary) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--accent) !important;
  background: rgba(14,165,233,0.08);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ===== HERO CAROUSEL ===== */
.hero-section { position: relative; }
.hero-section .carousel-item {
  height: 92vh;
  min-height: 550px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-section .carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.82) 0%, rgba(14,165,233,0.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}
.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 15px rgba(0,0,0,0.3);
}
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  line-height: 1.8;
}
.btn-hero {
  background: var(--gradient-accent);
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(14,165,233,0.4);
}
.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(14,165,233,0.5);
  color: #fff;
}
.carousel-indicators [data-bs-target] {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  opacity: 0.6;
}
.carousel-indicators .active {
  background: var(--accent);
  border-color: var(--accent);
  opacity: 1;
}

/* ===== SECTION STYLES ===== */
.section-padding { padding: 100px 0; }
.section-title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  position: relative;
}
.section-subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.title-line {
  width: 60px; height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ===== ABOUT ===== */
.about-section { background: #fff; }
.about-img-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-img-wrapper::after {
  content: '';
  position: absolute;
  bottom: -15px; right: -15px;
  width: 120px; height: 120px;
  background: var(--gradient-accent);
  border-radius: var(--radius);
  z-index: -1;
}
.about-img-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.about-img-wrapper:hover img { transform: scale(1.05); }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { color: #475569; font-size: 1.05rem; margin-bottom: 1rem; }

/* ===== SERVICES ===== */
.services-section { background: var(--light); }
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  border: 1px solid rgba(0,0,0,0.04);
  height: 100%;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.service-icon {
  width: 72px; height: 72px;
  border-radius: 16px;
  background: var(--gradient-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #fff;
  transition: transform 0.3s ease;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(5deg); }
.service-card h4 { font-size: 1.2rem; margin-bottom: 1rem; }
.service-card p { color: var(--gray); font-size: 0.95rem; }

/* ===== VISION & MISSION ===== */
.vm-section { background: #fff; }
.vm-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  height: 100%;
  border-left: 5px solid var(--accent);
  transition: all 0.3s ease;
}
.vm-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.vm-card .vm-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  color: #fff;
}
.vm-card h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.vm-card p, .vm-card li { color: #475569; font-size: 1rem; }
.vm-card ul { list-style: none; padding: 0; }
.vm-card ul li { padding: 0.4rem 0; padding-left: 1.5rem; position: relative; }
.vm-card ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* ===== RESEARCH AREAS ===== */
.research-section { background: var(--light); }
.research-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  height: 100%;
}
.research-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.research-card .r-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(6,182,212,0.1));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--accent);
  transition: all 0.3s ease;
}
.research-card:hover .r-icon {
  background: var(--gradient-accent);
  color: #fff;
}
.research-card h5 { font-size: 1rem; font-weight: 600; }

/* ===== CTA ===== */
.cta-section {
  background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1600') center/cover no-repeat;
  position: relative;
  padding: 100px 0;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.9) 0%, rgba(14,165,233,0.7) 100%);
}
.cta-section * { position: relative; z-index: 2; }
.cta-section h2 { color: #fff; font-size: 2.4rem; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 650px; margin: 0 auto 2rem; }
.btn-cta {
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin: 0.5rem;
}
.btn-cta-primary {
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(14,165,233,0.4);
}
.btn-cta-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(14,165,233,0.5); color: #fff; }
.btn-cta-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-cta-outline:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }

/* ===== CONTACT ===== */
.contact-section { background: #fff; }
.contact-form {
  background: var(--light);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.contact-form .form-control {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #fff;
}
.contact-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}
.contact-form .form-label { font-weight: 500; color: var(--primary); font-size: 0.9rem; }
.btn-submit {
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  padding: 12px 36px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(14,165,233,0.4); color: #fff; }

.contact-info-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.contact-info-card .ci-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  margin-right: 1rem;
  flex-shrink: 0;
}
.contact-info-card h5 { font-size: 1rem; margin-bottom: 0.25rem; }
.contact-info-card p { color: var(--gray); font-size: 0.9rem; margin: 0; }
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 220px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer h5 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}
.footer p { font-size: 0.9rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  margin-right: 0.6rem;
  transition: all 0.3s ease;
  font-size: 1rem;
}
.social-icons a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .hero-content h1 { font-size: 2.4rem; }
  .hero-section .carousel-item { height: 75vh; }
  .section-title { font-size: 2rem; }
  .section-padding { padding: 70px 0; }
}
@media (max-width: 767px) {
  .hero-content h1 { font-size: 1.8rem; }
  .hero-section .carousel-item { height: 65vh; }
  .section-title { font-size: 1.7rem; }
  .about-img-wrapper::after { display: none; }
  .vm-card { padding: 2rem 1.5rem; }
  .cta-section h2 { font-size: 1.8rem; }
}
