/* -------------------------------------------------------------
   MegTools Master Design System
   3D Liquid Glassmorphism Light Theme (White & Ocean Blue)
   ------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-gradient: linear-gradient(135deg, #F0F6FF 0%, #FFFFFF 40%, #EBF3FF 100%);
  --bg-body: #F4F8FC;
  --bg-surface: #FFFFFF;
  --primary-blue: #0052FF;
  --primary-blue-hover: #0040D0;
  --primary-light: #E0EAFF;
  --accent-cyan: #00D2FF;
  --accent-glow: rgba(0, 210, 255, 0.35);
  --navy-dark: #0A192F;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Liquid Glass variables */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-hover: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-border-blue: rgba(0, 82, 255, 0.25);
  --glass-blur: blur(20px);
  --glass-shadow: 0 20px 50px rgba(0, 82, 255, 0.08), 0 8px 16px rgba(10, 25, 47, 0.04);
  --glass-shadow-hover: 0 30px 60px rgba(0, 82, 255, 0.16), 0 12px 24px rgba(10, 25, 47, 0.08);

  /* Spacing & Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Liquid Ambient Blobs */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
}

body::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.22) 0%, rgba(0, 82, 255, 0.08) 70%, transparent 100%);
  top: -100px;
  right: -100px;
  animation: floatBlob1 18s ease-in-out infinite alternate;
}

body::after {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.15) 0%, rgba(0, 210, 255, 0.05) 70%, transparent 100%);
  bottom: -150px;
  left: -150px;
  animation: floatBlob2 22s ease-in-out infinite alternate;
}

@keyframes floatBlob1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, 100px) scale(1.15); }
  100% { transform: translate(-150px, 40px) scale(0.9); }
}

@keyframes floatBlob2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, -90px) scale(1.2); }
  100% { transform: translate(40px, -140px) scale(0.95); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-dark);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p { color: var(--text-muted); font-size: 1.05rem; }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Liquid Glass Cards & Panels */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
  opacity: 0;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.01);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-blue);
  box-shadow: var(--glass-shadow-hover);
}

.glass-card:hover::before {
  opacity: 1;
}

/* Buttons & Interactive Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #003ECC 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(0, 82, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 82, 255, 0.5);
  background: linear-gradient(135deg, #0062FF 0%, #004BF0 100%);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy-dark);
  border: 1px solid rgba(0, 82, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 82, 255, 0.08);
}

.btn-glass:hover {
  background: #FFFFFF;
  color: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 82, 255, 0.18);
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(0, 82, 255, 0.08);
  color: var(--primary-blue);
  border: 1px solid rgba(0, 82, 255, 0.18);
}

.badge-glow {
  background: rgba(0, 210, 255, 0.12);
  color: #007299;
  border-color: rgba(0, 210, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

/* Navigation Header */
.site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1280px;
  z-index: 1000;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 15px 40px rgba(0, 82, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo img {
  height: 62px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-blue);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy-dark);
  cursor: pointer;
}

/* Hero Section Base */
.hero-section {
  position: relative;
  padding: 10rem 0 5rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  z-index: -2;
  filter: contrast(1.1) saturate(1.2);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 60% 40%, rgba(240, 246, 255, 0.7) 0%, rgba(244, 248, 252, 0.95) 100%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy-dark);
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* 3D Glass Hero Card Visual */
.hero-visual-glass {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  perspective: 1000px;
}

.glass-3d-card {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px rgba(0, 82, 255, 0.12), inset 0 0 20px rgba(255, 255, 255, 0.8);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: rotateY(-8deg) rotateX(6deg);
  transition: transform 0.5s ease;
  position: relative;
}

.hero-visual-glass:hover .glass-3d-card {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.floating-glass-badge {
  position: absolute;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 82, 255, 0.2);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 30px rgba(0, 82, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
  animation: floatSlow 5s ease-in-out infinite alternate;
}

.badge-top-right {
  top: -20px;
  right: -20px;
}

.badge-bottom-left {
  bottom: -20px;
  left: -20px;
  animation-delay: -2.5s;
}

@keyframes floatSlow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-15px); }
}

/* Page Section Standard */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.section-title {
  position: relative;
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Special Offers Section */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.offer-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.offer-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.1), rgba(0, 210, 255, 0.2));
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(0, 82, 255, 0.2);
}

/* Product System Cards */
.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.product-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(0, 82, 255, 0.08);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.product-card h3 {
  font-size: 1.25rem;
}

.product-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-features-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-features-list li i {
  color: #00C853;
  font-size: 0.85rem;
}

/* Global Offices Directory */
.office-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.office-flag-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.office-country {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-dark);
}

.office-detail {
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.office-detail i {
  color: var(--primary-blue);
  margin-top: 0.2rem;
}

/* FAQs Accordion */
.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-dark);
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.5);
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 1.25rem 1.5rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary-blue);
}

/* Forms (Contact & Booking) */
.glass-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-dark);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 82, 255, 0.18);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.12);
  background: #FFFFFF;
}

/* Call to Action Section */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, #002980 100%);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(10, 25, 47, 0.2);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content h2 {
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.cta-content p {
  color: #94A3B8;
}

/* Site Footer */
.site-footer {
  background: #061121;
  color: #94A3B8;
  padding: 5rem 0 2rem;
  margin-top: 6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  color: var(--navy-dark);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-left: 4px solid var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.3s ease;
}

.toast-success { border-left-color: #00C853; }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Breakpoints & Mobile Optimization */
@media (max-width: 1024px) {
  .site-header { width: calc(100% - 2rem); padding: 0.6rem 1.25rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero-content { align-items: center; text-align: center; }
  .hero-stats { justify-content: center; gap: 1.5rem; }
  .grid-4, .offers-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .site-header {
    top: 0.5rem;
    width: calc(100% - 1rem);
    border-radius: 20px;
    padding: 0.5rem 1rem;
  }

  .brand-logo img { height: 48px; }

  .nav-menu {
    position: fixed;
    top: 4.5rem;
    left: 0.5rem;
    right: 0.5rem;
    width: calc(100% - 1rem);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 82, 255, 0.18);
    border: 1px solid rgba(0, 82, 255, 0.15);
    transform: translateY(-160%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
    text-align: center;
  }

  .nav-link:hover, .nav-link.active {
    background: rgba(0, 82, 255, 0.08);
  }

  .nav-link::after { display: none; }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 82, 255, 0.08);
    color: var(--primary-blue);
    font-size: 1.2rem;
  }

  .hero-section { padding: 7.5rem 0 3rem; min-height: auto; }
  .hero-stats { flex-wrap: wrap; gap: 1.25rem; }
  .stat-number { font-size: 1.75rem; }

  .hero-visual-glass { perspective: none; }
  .glass-3d-card { transform: none !important; padding: 1.25rem; }
  .floating-glass-badge { position: relative; top: auto !important; bottom: auto !important; left: auto !important; right: auto !important; animation: none; margin-bottom: 0.75rem; }

  .section { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2.5rem; }

  .grid-2, .grid-3, .grid-4, .offers-grid, .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .cta-banner { padding: 2.5rem 1.5rem; flex-direction: column; text-align: center; gap: 1.5rem; }

  .site-footer { padding: 3.5rem 0 1.5rem; margin-top: 3.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }
  .btn { width: 100%; }
  .glass-card { padding: 1.25rem; }
}

