@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

/** Variables **/
:root {
  --color-background: #cbd5e1;
  --color-background-alt: #8ec6ff;
  --color-border-active: #173db6;
  --color-border-default: #94a3b8;
  --color-highlight: #8ec6ff;
  --color-primary: #144be1;
  --color-primary-active: #19388f;
  --color-text-default: #0f172a;
  --color-text-muted: #475569;
  --font-family-body: "Open Sans", sans-serif;
  --font-family-display: "Nunito Sans", sans-serif;
}

/** Base **/
*, ::before, ::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
body {
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-family-body);
  background-color: white;
  color: #004080;
  line-height: 1.6;
}

/* [Include your form component styles (fs-form, fs-field, etc.) here as needed] */

/* Intro Animation */
#intro {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.intro-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.2); /* Reduced scale from 2 to 1.2 */
  z-index: 9999;
  animation: zoomFadeOut 8s ease-in-out forwards;
  opacity: 1;
  max-width: 40vw;  /* You can adjust this to fit the size you want */
  height: auto;
  background-color: white;
  padding: 20px;
  border-radius: 20px;
}

@keyframes zoomFadeOut {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(2.2);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
    visibility: hidden;
  }
}

/* Header */
header {
  background-color: white;
  text-align: center;
  padding: 20px;
}
header img {
  height: 80px;
  margin-bottom: 10px;
}
header h1.soft-title {
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 3rem;
  color: #004080;
  font-weight: 700;
  letter-spacing: 2px;
}
nav {
  margin-top: 10px;
}
nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #004080;
  font-weight: 500;
  transition: color 0.3s;
}
nav a:hover {
  color: #0073e6;
}

/* Hero Section with Doctor Info */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-color: #e6f2ff;
}
.hero-content {
  flex: 1 1 300px;
  padding: 20px;
}
.hero-content h2 {
  font-size: 2.2rem;
  color: #004080;
  margin-bottom: 10px;
}
.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 15px;
}
.doctor-info {
  font-style: italic;
  color: #004080;
}
.hero-doctor {
  flex: 1 1 300px;
  text-align: center;
  padding: 20px;
}
.hero-doctor img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Button Styling */
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background-color: #0073e6;
  color: white;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.btn:hover {
  background-color: #005bb5;
}

/* Carousel Section */
.carousel-container {
  overflow: hidden;
  position: relative;
  width: 90%;
  margin: 40px auto;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.carousel-track img {
  width: 100%; /* Display one image at a time */
  height: auto;
  margin-right: 15px;
  border-radius: 10px;
  flex-shrink: 0;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #0073e6;
  border: none;
  color: white;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}
.carousel-btn.left {
  left: 10px;
}
.carousel-btn.right {
  right: 10px;
}

/* Sections */
section {
  padding: 40px 20px;
  text-align: center;
}
h2 {
  font-size: 2rem;
  color: #004080;
  margin-bottom: 20px;
}

/* Gallery */
.gallery-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.gallery-grid img {
  width: 50%;
  border-radius: 8px;
  border: 2px solid #004080;
}

/* Video Section */
.video-section {
  background-color: #f0f8ff;
  text-align: center;
}
.video-item {
  margin: 30px auto;
  width: 80%;
  max-width: 700px;
}
.video-item video {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}
.video-description {
  margin-top: 10px;
  font-size: 1rem;
  color: #004080;
}
.video-item video:hover {
  transform: scale(1.03);
}

/* Contact Section with Background Image */
#contact {
  background: url('assets/contact_bg.jpg') no-repeat center center/cover;
  padding: 60px 20px;
  color: white;
}
#contact h2 {
  color: white;
}
#contact form {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  margin: 20px auto;
}
#contact form input,
#contact form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #004080;
  border-radius: 5px;
  font-size: 1rem;
}
#contact form button {
  background-color: #0073e6;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}
#contact form button:hover {
  background-color: #005bb5;
}

/* Footer */
footer {
  background-color: #e6f2ff;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  color: #004080;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-track img {
    width: 100%;
  }
  .gallery-grid img {
    width: 90%;
  }
  .video-item {
    width: 90%;
  }
  .hero {
    flex-direction: column;
  }
}
