/* Base Styles */
:root {
  --primary-color: #2d79f3;
  --secondary-color: #063e9e;
  --accent-color: #ff7a01;
  --text-color: #333;
  --light-text: #fff;
  --bg-color: #f8f9fa;
  --footer-bg: #a1afcb;
  --section-bg: #f0f4f8;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

/* Apply Poppins to content sections */
.about-hero,
.about-section,
.story-section,
.why-choose-us {
  font-family: "Poppins", sans-serif;
}

/* Navigation (Same as existing) */
.navbar {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger .line {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: var(--transition);
}

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

.hamburger.active .line:nth-child(2) {
  opacity: 0;
}

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

.nav-links ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  bottom: 0;
  left: 0;
  transition: var(--transition);
}

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

.med-import-btn {
  border: none;
  display: block;
  position: relative;
  padding: 0.5em 1.4em;
  font-size: 15px;
  background-color: #00173c;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  color: rgb(255, 255, 255);
  z-index: 1;
  font-family: inherit;
  font-weight: 350;
  transition: all 0.4s ease;
  border-radius: 10px;
}

.med-import-btn span {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: -1;
  border-radius: 15px 15px;
  transition: all 0.3s ease;
}

.med-import-btn:hover {
  color: rgb(247, 247, 247);
  box-shadow: 0 0 2px rgba(24, 40, 226, 0.8), 0 0 5px rgba(24, 40, 226, 0.6),
    0 0 10px rgba(24, 40, 226, 0.4);
}

/* === HERO SECTION (Matched to Infrastructure) === */
.about-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("./../assets/about.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 75vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  width: 100%;
  padding: 0 20px;
}

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

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero-divider {
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  margin: 0 auto 25px;
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
  font-weight: 300;
  line-height: 1.6;
}

/* === SECTIONS GENERAL === */
.about-section,
.story-section,
.why-choose-us {
  padding: 80px 0;
  overflow: hidden;
}

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

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

.section-header h2 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  font-weight: 700;
  margin-bottom: 15px;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-subtitle {
  color: #556987;
  font-size: 1.1rem;
}

.section-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: #555;
}

.section-content p {
  margin-bottom: 25px;
}

/* === STORY SECTION === */
.story-section {
    background-color: #fff;
}

.story-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

/* .story-text {} removed */

.story-card {
    background: #fff;
    /* padding: 30px; */ /* Clean layout without box for text */
}

.story-card h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.story-card p {
    font-size: 1.05rem;
    color: #556987;
    line-height: 1.7;
    margin-bottom: 20px;
}

.image-frame {
  position: relative;
  z-index: 1;
}

.image-frame::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 20px;
  right: -20px;
  bottom: 20px;
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.3;
  transition: var(--transition);
}

.image-frame img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: block;
}

/* === MISSION / VISION === */
.mission-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 80px;
}

.mission-box,
.vision-box {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  text-align: center;
}

.mission-box:hover,
.vision-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(45, 121, 243, 0.1);
}

.mv-icon {
    width: 70px;
    height: 70px;
    background: rgba(45, 121, 243, 0.1);
    color: var(--primary-color);
    font-size: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.mission-box:hover .mv-icon,
.vision-box:hover .mv-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.mission-box h3,
.vision-box h3 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.mission-box p,
.vision-box p {
  color: #667;
  font-size: 1rem;
}

/* === CERTIFICATIONS === */
.certifications-section {
    padding-top: 40px;
    text-align: center;
}

.cert-logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    align-items: center;
}

.cert-logos {
    flex: 0 1 150px;
    transition: transform 0.3s ease;
}

.cert-logos:hover {
    transform: scale(1.05);
}

.cert-logo {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.cert-logos:hover .cert-logo {
    filter: grayscale(0%);
    opacity: 1;
}


/* === WHY CHOOSE US === */
.why-choose-us {
  background-color: var(--section-bg);
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(45, 121, 243, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.text-content h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.2;
}

.wcu-content p {
    font-size: 1.05rem;
    color: #556987;
    line-height: 1.7;
    margin-bottom: 20px;
}

.floating-image {
    width: 100%;
    height: auto;
    animation: float 4s ease-in-out infinite;
}

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

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
.fade-in-left { animation: fadeInLeft 0.8s ease-out forwards; }
.fade-in-right { animation: fadeInRight 0.8s ease-out forwards; }


/* Footer (Same as existing, just ensuring styles exist) */
.footer {
  background-color: var(--footer-bg);
  color: var(--text-color);
  padding: 50px 0 20px;
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-main { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
.footer-brand { flex: 1; min-width: 250px; }
.footer-logo { height: 70px; width: auto; margin-bottom: 20px; display: block; margin-left: auto; margin-right: auto; mix-blend-mode: color-burn; }
.footer-description { font-size: 14px; line-height: 1.7; margin-bottom: 20px; text-align: center; }
.footer-social { display: flex; justify-content: center; }
.social-links { display: flex; gap: 10px; list-style: none; padding: 0; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background-color: white; color: var(--text-color); transition: var(--transition); font-size: 14px; }
.social-links a:hover { transform: translateY(-3px); color: white; }
.social-links a:hover.facebook { background-color: #1877f2; }
.social-links a:hover.twitter { background-color: #1da1f2; }
.social-links a:hover.instagram { background-color: #e4405f; }
.social-links a:hover.whatsapp { background-color: #25d366; color: white; }
.footer-links { flex: 1; display: flex; gap: 20px; min-width: 250px; justify-content: center; }
.links-column { flex: 1; min-width: 120px; text-align: center; }
.links-column h3 { font-size: 1.1rem; margin-bottom: 15px; color: var(--secondary-color); }
.links-column ul { list-style: none; padding: 0; }
.links-column li { margin-bottom: 8px; }
.links-column a { text-decoration: none; color: var(--text-color); transition: var(--transition); font-size: 14px; display: inline-block; }
.links-column a:hover { color: var(--primary-color); transform: translateX(5px); }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 15px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: var(--border-radius); font-family: "Poppins", sans-serif; transition: var(--transition); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(45, 121, 243, 0.2); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-actions { display: flex; gap: 10px; justify-content: center; }
.submit-btn, .reset-btn { padding: 12px 20px; border: none; border-radius: var(--border-radius); font-weight: 500; cursor: pointer; transition: var(--transition); }
.submit-btn { background-color: var(--accent-color); color: white; flex: 2; }
.submit-btn:hover { background-color: #e06b00; }
.reset-btn { background-color: #ddd; color: var(--text-color); flex: 1; }
.reset-btn:hover { background-color: #ccc; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.copyright { font-size: 14px; color: var(--text-color); }

/* scroll to up */
.scroll-to-top { position: fixed; bottom: 35px; right: 30px; width: 60px; height: 60px; background: linear-gradient(135deg, #1f5ec5, #ba7cd2); color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); z-index: 9999; }
.scroll-to-top.show { opacity: 1; visibility: visible; }
.progress-circle { position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; transform: rotate(0deg); transition: transform 0.1s linear; }
.tooltip { position: absolute; right: 80px; background: rgba(0, 0, 0, 0.7); color: #fff; padding: 5px 10px; border-radius: 5px; font-size: 12px; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity 0.3s; pointer-events: none; }
.scroll-to-top:hover .tooltip { opacity: 1; visibility: visible; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* Responsive */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 2.5rem; }
  .content-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .story-container { grid-template-columns: 1fr; }
  .image-frame::before { display: none; }
  .text-content { text-align: center; }
  .story-text { order: 2; }
  .story-image { order: 1; }
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links { position: fixed; top: 80px; left: -100%; width: 100%; background-color: #fff; box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); transition: var(--transition); z-index: 999; padding: 20px 0; }
  .nav-links.active { left: 0; }
  .nav-links ul { flex-direction: column; align-items: center; gap: 15px; }
  .about-hero { height: 60vh; }
  .hero-content h1 { font-size: 2.2rem; }
  .footer-main { flex-direction: column; align-items: center; }
  .footer-links { flex-direction: column; }
}
