/* 
=================================================
  HEYDOC - GLOBAL STYLES & DESIGN SYSTEM
=================================================
*/

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

:root {
  /* Logo Colors */
  --color-primary: #1D5A9C; /* Deep Blue from "Hey" */
  --color-primary-dark: #123D6D;
  --color-secondary: #359E87; /* Teal/Green from "Doc" */
  --color-secondary-dark: #247563;
  --color-accent: #E8F3F1; /* Light teal tint for backgrounds */
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Backgrounds & Text */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-text-main: #1E293B;
  --color-text-muted: #64748B;
  
  /* Shadows & Glass */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.2);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

ul {
  list-style: none;
}

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

/* ================= HEADER & NAVIGATION ================= */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

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

.logo {
  max-height: 50px;
  display: flex;
  align-items: center;
}
.logo img {
  height: 50px;
  width: auto;
}

.main-nav ul.nav-list {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a.nav-link {
  color: var(--color-text-main);
  font-weight: 500;
  font-size: 1rem;
}

.main-nav a.nav-link:hover {
  color: var(--color-secondary);
}

/* Mega Menu */
.has-mega-menu {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #fff;
  width: 800px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  border: 1px solid #f1f5f9;
}

.has-mega-menu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-column h4 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.5rem;
}

.mega-menu-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mega-menu-column a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.mega-menu-column a:hover {
  color: var(--color-secondary);
  padding-left: 5px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(53, 158, 135, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(53, 158, 135, 0.4);
}

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

.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff !important;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-primary);
  background: none;
  border: none;
}

/* ================= PARTICLES JS ================= */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none; /* Allows clicking through particles */
}

/* ================= HERO SECTION ================= */
.hero, .page-hero {
  position: relative;
  overflow: hidden;
}

.hero-content, .page-hero .container {
  position: relative;
  z-index: 1; /* Place above particles */
}

.hero {
  padding: 160px 0 100px;
  background: var(--color-bg-alt);
  text-align: center;
}

/* Decorative Background Elements */
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-accent) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary-dark);
}

.hero h1 span {
  background: linear-gradient(120deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ================= SECTION STYLES ================= */
.section {
  padding: 100px 0;
}

.section-bg-light {
  background-color: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-secondary-dark);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

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

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* ================= SERVICES SECTION ================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid #f1f5f9;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--color-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-secondary);
  font-size: 1.8rem;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--color-secondary);
  color: #fff;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
}

.service-card .read-more:hover {
  color: var(--color-secondary);
  gap: 0.8rem;
}

/* ================= ABOUT / WHY CHOOSE US ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content ul {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-content li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.1rem;
}

.about-content li i {
  color: var(--color-secondary);
  margin-top: 5px;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 400px;
  object-fit: cover;
  background-color: var(--color-accent);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--color-secondary);
  border-radius: 20px;
  z-index: -1;
}

/* ================= CTA SECTION ================= */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  padding: 80px 0;
  color: #fff;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-secondary {
  border-color: #fff;
  color: #fff !important;
}

.cta-section .btn-secondary:hover {
  background: #fff;
  color: var(--color-primary) !important;
}

/* ================= FOOTER ================= */
.site-footer {
  background: #0F172A;
  color: #fff;
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-col p {
  color: #94A3B8;
  margin-bottom: 1.5rem;
}

.footer-logo {
  max-height: 40px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: #94A3B8;
}

.footer-links a:hover {
  color: var(--color-secondary);
  padding-left: 5px;
}

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

.contact-info li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #94A3B8;
}

.contact-info a {
  color: #94A3B8;
}

.contact-info a:hover {
  color: var(--color-secondary);
}

.contact-info i {
  color: var(--color-secondary);
  font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #64748B;
  font-size: 0.9rem;
}

/* ================= WHATSAPP WIDGET ================= */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition-normal);
}

.whatsapp-widget:hover {
  transform: scale(1.1);
  color: white;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.8rem; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-md);
  }
  .main-nav.active {
    display: flex;
  }
  .main-nav ul.nav-list {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
  }
  .mega-menu {
    position: static;
    width: 100%;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 1rem 0 0 1rem;
    grid-template-columns: 1fr;
    display: none;
  }
  .has-mega-menu.active .mega-menu {
    display: grid;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero { padding: 120px 0 60px; }
  .page-hero { padding: 120px 0 40px; }
  .hero h1, .page-hero h1 { font-size: 2.2rem; }
  .hero p, .page-hero p { font-size: 1.1rem; }
  .hero-buttons { flex-direction: column; width: 100%; gap: 0.5rem; }
  .hero-buttons .btn { width: 100%; }
  
  .section { padding: 60px 0; }
  .section-title { font-size: 2rem; }
  
  .about-grid, .content-grid, .contact-grid { gap: 2rem; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-col h4 { margin-bottom: 1rem; }
  .site-footer { padding: 60px 0 20px; }
  
  /* Form on mobile */
  .contact-info-box, .contact-form { padding: 1.5rem; }
  
  /* Service content */
  .main-text h2 { font-size: 1.8rem; margin: 2rem 0 1rem; }
  .feature-box { padding: 1.5rem; }
  
  /* Mega menu stacking on smaller phones */
  .mega-menu { padding: 0.5rem 0 0 0.5rem; }
  .mega-menu-column h4 { font-size: 1rem; margin-top: 1rem; margin-bottom: 0.5rem;}
}
