@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-color: #f8fafc;
  --bg-color-alt: #f1f5f9;
  --primary: #0284c7;
  --primary-glow: rgba(2, 132, 199, 0.2);
  --secondary: #0369a1;
  --text-light: #0f172a;
  --text-muted: #475569;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-blur: blur(20px);
  --transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* ==========================================================================
   AMBIENT BACKGROUNDS
   ========================================================================== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    background: var(--bg-color);
}

/* Faint ambient glass-glowing lights that float slowly in background */
.ambient-sphere {
    position: fixed;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.16;
    z-index: -1;
    pointer-events: none;
}

.sphere-1 {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.22) 0%, transparent 75%);
    animation: pulseSphere 20s infinite alternate ease-in-out;
}

.sphere-2 {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.16) 0%, transparent 75%);
    animation: pulseSphere 25s infinite alternate-reverse ease-in-out;
    animation-delay: -5s;
}

.sphere-3 {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.16) 0%, transparent 75%);
    animation: pulseSphere 30s infinite alternate ease-in-out;
    animation-delay: -10s;
}

@keyframes pulseSphere {
    0% { transform: scale(1) translate(0, 0); opacity: 0.1; }
    100% { transform: scale(1.15) translate(5%, 5%); opacity: 0.22; }
}

body {
  font-family: var(--font-body);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

/* Typography Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.container {
  width: var(--container-width, 100%);
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 4rem 0;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* Loading Animation */
.loader-wrapper {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-color);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 5px;
  color: transparent;
  -webkit-text-stroke: 1px var(--primary);
  position: relative;
}

.loader-text::before {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 0%;
  height: 100%;
  color: var(--primary);
  -webkit-text-stroke: 0;
  border-right: 2px solid var(--primary);
  overflow: hidden;
  animation: loadText 2s linear forwards;
}

@keyframes loadText {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Custom Cursor */
.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s;
  z-index: 10000;
  mix-blend-mode: difference;
}

.cursor-follower {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10000;
  transition: transform 0.1s;
}

/* Navigation */
nav {
  position: fixed;
  top: 1rem; left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1200px;
  padding: 1rem 2rem;
  z-index: 1000;
  transition: var(--transition);
  background: var(--nav-bg, rgba(255, 255, 255, 0.05));
  backdrop-filter: var(--nav-blur, blur(16px));
  -webkit-backdrop-filter: var(--nav-blur, blur(16px));
  border: var(--nav-border, 1px solid rgba(255, 255, 255, 0.4));
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

nav.scrolled {
  padding: 0.8rem 2rem;
  background: var(--nav-scrolled-bg, rgba(255, 255, 255, 0.15));
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--text-light);
  cursor: pointer;
  z-index: 1001;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  padding-bottom: 0.25rem;
}

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

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

.nav-links li a.nav-whatsapp-btn {
  color: #25D366 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}
.nav-links li a.nav-whatsapp-btn::after {
  background: #25D366 !important;
}
.nav-links li a.nav-whatsapp-btn:hover {
  color: #1ebe5d !important;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  min-height: 70vh;
  padding-top: 6rem;
  padding-bottom: 2rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.typing-container {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.typing-text {
  color: var(--primary);
  font-weight: 700;
  margin-left: 8px;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1.5rem;
  background-color: var(--primary);
  margin-left: 5px;
  animation: cursorBlink 0.8s infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: var(--btn-radius, 50px);
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--primary-glow);
}

.hero-image-wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 45%;
  height: 90%;
  z-index: 1;
  opacity: 0.9;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 15%), linear-gradient(to left, black 60%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to top, transparent 0%, black 15%), linear-gradient(to left, black 60%, transparent 100%);
  mask-composite: intersect;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.about-img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.05);
  transition: transform 1s ease;
}

.about-img-wrap:hover .about-img {
  transform: scale(1);
}

.about-glass-card {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  padding: 2rem;
  z-index: 2;
  max-width: 300px;
}

/* Treatments Grid */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.treatment-card {
  padding: 2.5rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.treatment-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.treatment-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.treatment-card:hover::before {
  opacity: 1;
}

.treatment-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.treatment-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.treatment-card p {
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(to right, rgba(0, 210, 255, 0.05), rgba(58, 123, 213, 0.05));
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h2 {
  font-size: 4rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Articles */
.articles-list {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 3rem;
}

.article-item {
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.article-item:last-child {
  border-bottom: none;
}

.article-header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.article-header:hover {
  background: rgba(0, 0, 0, 0.03);
}

.article-header h4 {
  font-size: 1.2rem;
  font-weight: 500;
}

.article-icon {
  color: var(--primary);
  transition: transform 0.3s ease;
}

.article-item.active .article-icon {
  transform: rotate(180deg);
}

.article-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(0, 0, 0, 0.01);
}

.article-body p {
  padding: 0 2rem 1.5rem;
  color: var(--text-muted);
  white-space: pre-wrap;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 4rem auto 0;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.02);
}

.faq-question h4 {
  font-size: 1.1rem;
  font-weight: 500;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(0, 0, 0, 0.02);
}

.faq-answer p {
  padding: 0 2rem 1.5rem;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  padding: 2rem;
}

.contact-card h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.contact-card p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Modal */
.modal-wrapper {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: var(--transition);
}

.modal-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
}

.modal-content {
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
  transform: translateY(0);
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.modal-wrapper.hidden .modal-content {
  transform: translateY(50px);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--primary);
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Responsive */
@media (max-width: 992px) {
  .hero-title { font-size: 3.5rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-image-wrap { width: 50%; opacity: 0.5; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links { 
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: var(--transition);
    text-align: center;
  }
  
  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  #home.hero { 
    padding-top: 10rem; 
    padding-bottom: 2rem; 
    flex-direction: column; 
    text-align: center; 
    min-height: auto;
  }
  
  .hero-content { max-width: 100%; }
  .hero-title { font-size: 2.5rem; }
  .hero-desc { margin: 0 auto 2rem auto; }
  
  .hero-image-wrap { 
    position: relative; 
    width: 100%; 
    height: 480px; 
    opacity: 1; 
    margin-top: 2rem;
  }
  
  .hero-image {
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 15%);
    mask-image: linear-gradient(to top, transparent 0%, black 15%);
    object-position: bottom center;
  }

  .section-padding { padding: 3rem 0; }
  .section-title { font-size: 2.2rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .modal-content { padding: 1.5rem; width: 95%; max-height: 90vh; }
}

/* WhatsApp Float */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 35px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 1000; transition: transform 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); color: white; }

/* Large Screen Optimization (1920x1080) */
@media (min-width: 1440px) {
  .section-padding { padding: 8rem 0; }
  .services-grid { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem; }
  .hero { min-height: 85vh; padding-top: 10rem; }
  .hero-title { font-size: 4.5rem; }
  .hero-desc { font-size: 1.4rem; max-width: 800px; }
  .about-grid, .contact-grid { gap: 6rem; }
  .articles-list { max-width: 1000px; margin-left: auto; margin-right: auto; }
  .hero-image-wrap { width: 55%; height: 100%; bottom: 30px; right: 5%; transform: scale(1.1); transform-origin: bottom center; }
}

@media (min-width: 1600px) {
  html { font-size: 18px; } /* Scales up 1rem from 16px to 18px globally */
  .hero { min-height: 95vh; padding-top: 12rem; }
  .hero-title { font-size: 5rem; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-image-wrap { width: 60%; right: 8%; bottom: 40px; transform: scale(1.2); }
}
