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

:root {
  /* Soft Background Colors */
  --bg-primary: #F8F9FB;
  --bg-secondary: #F0F4F8;
  --bg-tertiary: #EBF1F6;

  /* Accent & Gradient Colors */
  --accent-blue: #2563EB;
  --accent-aqua: #06B6D4;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-aqua) 100%);
  --gradient-text: linear-gradient(135deg, #1E293B 0%, #334155 100%);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.4);
  --glass-border: 1px solid rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-dark);
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  line-height: 1.6;
}

/* Page Transition Overlay */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  z-index: 9999;
  transform: translateY(100%);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}
.page-transition-overlay::after {
  content: '';
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--accent-blue);
  animation: spin 1s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.page-transition-overlay.is-active::after {
  opacity: 1;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
}

.glass-nav {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 90%;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border);
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.glass-nav:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Dropdown Menu */
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent-blue); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 15px 0;
  min-width: 240px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,1);
  list-style: none;
}
.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu li a {
  padding: 10px 20px;
  display: block;
  font-size: 14px;
}
.dropdown-menu li a::after { display: none; }
.dropdown-menu li a:hover { background: rgba(0,0,0,0.03); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 10px 20px -10px var(--accent-blue);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 25px -10px var(--accent-blue); }

/* GSAP Blur Class */
.blur-in {
  filter: blur(10px);
  opacity: 0;
}

/* Specific Section Styles */
.section-padding { padding: 120px 5%; }
.container { max-width: 1280px; margin: 0 auto; }

/* Animated Hero Backgrounds */
.hero-animated-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: heroPan 30s linear infinite alternate;
}
.hero-animated-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(15,23,42,0.4), rgba(15,23,42,0.8));
  z-index: 0;
}
@keyframes heroPan {
  0% { transform: scale(1); background-position: 0% 50%; }
  100% { transform: scale(1.1); background-position: 100% 50%; }
}
.hero-content { position: relative; z-index: 2; }

/* FAQ Accordion */
.faq-item {
  background: white;
  border-radius: 16px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.faq-header {
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}
.faq-header:hover { background: #f8fafc; }
.faq-content {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}
.faq-item.active .faq-content {
  padding: 20px 30px;
  max-height: 500px;
  border-top: 1px solid var(--bg-tertiary);
}
.faq-icon { transition: transform 0.3s; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* Advanced Footer */
.advanced-footer {
  background: var(--text-dark);
  color: white;
  padding: 80px 5% 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: var(--accent-aqua);
}
.footer-col p { color: #94a3b8; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: white; }
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  transition: background 0.3s;
}
.social-icons a:hover { background: var(--accent-blue); }
.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  outline: none;
}
.newsletter-form button {
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  background: var(--gradient-primary);
  color: white;
  cursor: pointer;
  font-weight: 600;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

/* Gallery Grid / Masonry */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  height: 250px;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { color: white; }

/* Reviews/Testimonials */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.review-card {
  background: white;
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  position: relative;
}
.review-stars { color: #f59e0b; margin-bottom: 15px; }
.review-text { font-style: italic; color: var(--text-muted); margin-bottom: 20px; }
.review-author { display: flex; align-items: center; gap: 15px; }
.author-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.author-info h4 { font-size: 16px; }
.author-info span { font-size: 13px; color: var(--text-muted); }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; } /* Add hamburger menu later */
  .section-padding { padding: 80px 5%; }
  .footer-grid { grid-template-columns: 1fr; }
}
/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 10001; /* Above overlay */
}
.mobile-menu-btn .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}
.mobile-menu-btn .bar-1 { top: 0; }
.mobile-menu-btn .bar-2 { top: 11px; }
.mobile-menu-btn .bar-3 { top: 22px; }

.mobile-menu-btn.active .bar-1 { top: 11px; transform: rotate(45deg); background-color: #fff; }
.mobile-menu-btn.active .bar-2 { opacity: 0; }
.mobile-menu-btn.active .bar-3 { top: 11px; transform: rotate(-45deg); background-color: #fff; }

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background: #000000;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.98);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.mobile-menu-container {
  width: 100%;
  max-width: 400px;
  position: relative;
  overflow: hidden; /* For sliding panels */
  padding: 20px;
}

.mobile-main-menu, .mobile-sub-menu {
  list-style: none;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-main-menu li {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-sub-menu li {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu-overlay.active .mobile-main-menu li {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu-overlay.active .mobile-main-menu li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-main-menu li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-main-menu li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-main-menu li:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu-overlay.active .mobile-main-menu li:nth-child(5) { transition-delay: 0.5s; }
.mobile-menu-overlay.active .mobile-main-menu li:nth-child(6) { transition-delay: 0.6s; }

.mobile-menu-container.show-sub .mobile-sub-menu li {
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-container.show-sub .mobile-sub-menu li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-container.show-sub .mobile-sub-menu li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-container.show-sub .mobile-sub-menu li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-container.show-sub .mobile-sub-menu li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-container.show-sub .mobile-sub-menu li:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu-container.show-sub .mobile-sub-menu li:nth-child(6) { transition-delay: 0.35s; }

.mobile-main-menu li a, .mobile-sub-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s;
  font-weight: 600;
}
.mobile-main-menu li a:hover, .mobile-sub-menu li a:hover {
  color: #fff;
}
.mobile-sub-menu {
  position: absolute;
  top: 20px; left: 20px; right: 20px;
  transform: translateX(120%);
  visibility: hidden;
}

/* State classes for sliding */
.mobile-menu-container.show-sub .mobile-main-menu {
  transform: translateX(-120%);
  visibility: hidden;
}
.mobile-menu-container.show-sub .mobile-sub-menu {
  transform: translateX(0);
  visibility: visible;
}

.back-btn-li a {
  color: var(--accent-aqua) !important;
  font-size: 1.2rem !important;
  justify-content: flex-start !important;
  gap: 10px;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .desktop-nav, .desktop-btn { display: none !important; }
  .mobile-menu-btn { display: block; }
  .glass-nav { padding: 15px 20px; width: 95%; }
}

/* Floating Badges */
.floating-badge {
    position: fixed;
    bottom: 25px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    overflow: hidden;
}

.floating-badge i {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.floating-badge:hover i {
    transform: scale(1.15);
}

.badge-wa {
    left: 25px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    transform-origin: bottom left;
}

.badge-call {
    right: 25px;
    background: linear-gradient(135deg, var(--accent-blue), #1e3a8a);
    transform-origin: bottom right;
}

.floating-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.3);
    pointer-events: none;
}

/* Pulsing animation for emphasis before scroll */
@keyframes pulseBadge {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes pulseCall {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.badge-wa:not(.shrunk) {
    animation: pulseBadge 2s infinite;
}
.badge-call:not(.shrunk) {
    animation: pulseCall 2s infinite;
}

/* Shrunk State when scrolled */
.floating-badge.shrunk {
    transform: scale(0.75);
    opacity: 0.85;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.floating-badge.shrunk:hover {
    transform: scale(0.85);
    opacity: 1;
}
