/* ===================================
   FRESH BLUE DESIGN - WAVE THEME
   =================================== */

:root {
  --midnight: #001524;
  --deep-blue: #15616D;
  --teal: #2E8B9E;
  --aqua: #78C5D7;
  --foam: #C8E5F0;
  --white: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Work Sans', sans-serif;
  color: var(--midnight);
  overflow-x: hidden;
  background: var(--white);
}

/* ===================================
   LAYERED WAVE BACKGROUND
   =================================== */
.wave-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.wave-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
}

.wave-layer:nth-child(1) {
  background: linear-gradient(180deg, transparent 0%, var(--foam) 100%);
  opacity: 0.3;
  animation: wave 25s linear infinite;
}

.wave-layer:nth-child(2) {
  background: linear-gradient(180deg, transparent 30%, var(--aqua) 100%);
  opacity: 0.4;
  animation: wave 35s linear infinite reverse;
}

.wave-layer:nth-child(3) {
  background: linear-gradient(180deg, transparent 60%, var(--teal) 100%);
  opacity: 0.5;
  animation: wave 45s linear infinite;
}

@keyframes wave {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-50%) translateY(0); }
}

/* Bubble effects */
.bubble {
  position: absolute;
  bottom: -100px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, 
    rgba(120, 197, 215, 0.6),
    rgba(46, 139, 158, 0.3)
  );
  animation: rise 15s ease-in infinite;
}

.bubble:nth-child(4) {
  width: 80px;
  height: 80px;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.bubble:nth-child(5) {
  width: 120px;
  height: 120px;
  left: 25%;
  animation-delay: 3s;
  animation-duration: 22s;
}

.bubble:nth-child(6) {
  width: 60px;
  height: 60px;
  left: 50%;
  animation-delay: 6s;
  animation-duration: 20s;
}

.bubble:nth-child(7) {
  width: 100px;
  height: 100px;
  left: 70%;
  animation-delay: 2s;
  animation-duration: 25s;
}

.bubble:nth-child(8) {
  width: 90px;
  height: 90px;
  left: 85%;
  animation-delay: 8s;
  animation-duration: 19s;
}

@keyframes rise {
  0% {
    bottom: -100px;
    opacity: 0;
    transform: translateX(0) scale(1);
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    bottom: 110%;
    opacity: 0;
    transform: translateX(100px) scale(0.5);
  }
}

/* ===================================
   HEADER - TOP BAR (NO CLIP-PATH)
   =================================== */
.site-header {
  position: relative;
  z-index: 1000;
  background: transparent;
  padding: 0;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Wave background using pseudo-element - sits behind header */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 60px);
  background: linear-gradient(135deg, var(--midnight) 0%, var(--deep-blue) 100%);
  z-index: -1;
  clip-path: ellipse(150% 100% at 50% 0%);
  pointer-events: none;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 3rem;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  line-height: 1.2;
}

.logo-section .subtitle {
  font-size: 0.75rem;
  color: var(--aqua);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Navigation inline */
.header-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.header-nav a {
  display: flex;
  align-items: center;
  padding: 0.7rem 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-nav a:hover {
  background: rgba(120, 197, 215, 0.2);
  border-color: var(--aqua);
  color: var(--white);
  transform: translateY(-2px);
}

/* Dropdown for products */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: fixed;
  top: auto;
  left: auto;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(0, 21, 36, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(120, 197, 215, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 99999;
  pointer-events: auto;
}

.dropdown-content a {
  display: block;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--white);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.dropdown-content a:hover {
  background: rgba(120, 197, 215, 0.15);
}

/* Products dropdown - three column layout */
.products-dropdown {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  min-width: 750px;
}

.products-column {
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem;
  position: relative;
}

.products-column:nth-child(1)::after,
.products-column:nth-child(2)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.products-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--aqua);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  padding: 0 1rem;
}

/* Support dropdown - two column layout */
.support-dropdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-width: 700px;
  transform: translateX(-75%) translateY(-10px);
}

.support-dropdown.visible {
  transform: translateX(-75%) translateY(0);
}

.support-column {
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem;
  position: relative;
}

.support-column:first-child::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.support-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--aqua);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  padding: 0 1rem;
}

.support-dropdown a {
  padding: 0.7rem 1rem;
}

/* Contact dropdown - single column layout */
.contact-dropdown {
  display: flex;
  flex-direction: column;
  min-width: 220px;
  transform: translateX(-60%) translateY(-10px);
}

.contact-dropdown.visible {
  transform: translateX(-60%) translateY(0);
}

.contact-dropdown a {
  padding: 0.7rem 1rem;
}

/* ===================================
   HERO/WELCOME SECTION - LIGHT COLORS
   =================================== */
.hero-section {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--foam) 0%, var(--white) 100%);
  padding: 5rem 3rem;
  margin-top: -50px;
  padding-top: 9rem;
}

.hero-text {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-text h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--midnight);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--deep-blue);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* ===================================
   MAIN CONTENT - OFFSET BLOCKS
   =================================== */
.main-content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 4rem auto 0;
  padding: 0 3rem 6rem;
}

.content-blocks {
  display: grid;
  gap: 2.5rem;
}

.block {
  background: var(--white);
  border-radius: 24px;
  padding: 3.5rem;
  box-shadow: 
    0 20px 60px rgba(21, 97, 109, 0.15),
    0 0 0 1px rgba(21, 97, 109, 0.08);
  position: relative;
  transition: all 0.4s ease;
}

.block:hover {
  transform: translateX(10px);
  box-shadow: 
    0 30px 80px rgba(21, 97, 109, 0.25),
    0 0 0 1px rgba(21, 97, 109, 0.15);
}

/* Colored side bar */
.block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 5px;
  background: linear-gradient(180deg, var(--teal), var(--aqua));
  border-radius: 0 5px 5px 0;
  transition: all 0.4s ease;
}

.block:hover::before {
  width: 8px;
  background: linear-gradient(180deg, var(--deep-blue), var(--teal));
}

.block-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.block-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--teal), var(--aqua));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.block h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--midnight);
  margin: 0;
}

.block p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--deep-blue);
  margin: 0;
}

/* Decorative wave element */
.block::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at bottom right, 
    rgba(120, 197, 215, 0.08) 0%, 
    transparent 70%
  );
  border-radius: 24px 0 24px 0;
  pointer-events: none;
}

/* ===================================
   FOOTER
   =================================== */
footer {
  position: relative;
  z-index: 100;
  background: linear-gradient(135deg, var(--midnight) 0%, var(--deep-blue) 100%);
  padding: 2.5rem 3rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--foam);
  font-size: 0.9rem;
}

.footer-link {
  color: var(--foam);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--aqua);
}

/* ===================================
   MOBILE NAVIGATION
   =================================== */
.mobile-nav {
  display: none;
  background: linear-gradient(135deg, var(--midnight) 0%, var(--deep-blue) 100%);
  position: relative;
  z-index: 1001;
  padding: 1rem 1.5rem;
  align-items: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.hamburger-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  z-index: 1001;
  color: var(--white);
  transition: all 0.3s ease;
}

.menu-label {
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: linear-gradient(180deg, var(--deep-blue) 0%, var(--midnight) 100%);
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 31, 63, 0.3);
}

.mobile-menu.open {
  display: flex;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu li {
  width: 100%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu li a {
  display: block;
  padding: 1.1rem 1.5rem;
  color: var(--white);
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.mobile-menu li a:hover {
  background-color: rgba(120, 197, 215, 0.2);
  color: var(--aqua);
}

.mobile-dropdown {
  position: relative;
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.1rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-dropdown-toggle a {
  color: var(--white);
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  flex: 1;
  text-align: center;
  padding: 0;
  display: block;
}

.submenu-toggle {
  background: none;
  border: none;
  color: var(--aqua);
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  position: absolute;
  right: 1.5rem;
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: rgba(0, 31, 63, 0.6);
  backdrop-filter: blur(10px);
  flex-direction: column;
  width: 100%;
}

.mobile-submenu.open {
  max-height: 1000px;
}

.mobile-submenu li {
  border-top: none;
}

.mobile-submenu li a {
  padding: 0.9rem 3rem;
  font-size: 0.9rem;
  color: var(--foam);
}

.mobile-submenu li a:hover {
  color: var(--white);
  background-color: rgba(120, 197, 215, 0.15);
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */
@media (max-width: 968px) {
  .site-header {
    padding-bottom: 1rem;
  }

  .site-header::before {
    height: calc(100% + 50px);
  }

  .header-inner {
    padding: 1.5rem 2rem;
  }

  .top-bar {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .header-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  .hero-section {
    padding: 3rem 2rem;
    margin-top: -50px;
    padding-top: 6rem;
  }

  .dropdown-content {
    min-width: auto;
    width: 90vw;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
  }

  .dropdown:hover .dropdown-content {
    transform: translateX(-50%) translateY(0);
  }

  .hero-text h2 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .main-content {
    padding: 0 2rem 4rem;
  }

  .block {
    padding: 2.5rem 2rem;
  }

  .block:hover {
    transform: translateX(5px);
  }

  .block-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .block h3 {
    font-size: 1.5rem;
  }

  .block p {
    font-size: 1rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}