/* ========= Root Theme Variables ========= */
:root {
  --primary-glow: #00f0ff;
  --cta-glow: #ff6600;
  --header-gradient: linear-gradient(270deg, #1e90ff, #00a1ff, #1e90ff);
  --frosted-glass: rgba(18, 52, 86, 0.8);
  --transition-default: 0.3s ease;
  --font-primary: 'Open Sans', sans-serif;
  --font-secondary: 'Roboto', sans-serif;
}

/* ========= Typography ========= */
body {
  font-family: var(--font-primary);
  background-color: #f4f4f4;
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--font-secondary);
  font-weight: 700;
}

p, a, li {
  font-family: var(--font-primary);
  font-weight: 400;
}

/* ========= Header ========= */
@keyframes animatedBackground {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.custom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;
  background: var(--header-gradient);
  background-size: 400% 400%;
  animation: animatedBackground 12s ease infinite;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ========= Logo ========= */
.custom-logo {
  text-align: center;
  padding: 10px 0;
}

.custom-logo img {
  display: inline-block;
  max-width: 90%;
  height: auto;
  margin: 0 auto;
}

.custom-logo h1 {
  background: linear-gradient(to right, #ff6a00, #ee0979);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  margin: 0;
}

@media (min-width: 769px) {
  .custom-logo img {
    max-width: 300px;
  }
}

/* ========= Navigation ========= */
.custom-nav {
  flex: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.custom-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
}

.custom-nav li a {
  text-decoration: none;
  color: inherit;
  font-size: 16px;
  display: flex;
  align-items: center;
  transition: var(--transition-default);
}

.custom-nav li a:hover,
.custom-mobile-nav li a:hover {
  color: #fff;
  text-shadow: 0 0 5px var(--primary-glow), 0 0 10px var(--primary-glow);
}

/* ========= Icons & CTA Buttons ========= */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0px var(--cta-glow); }
  50% { box-shadow: 0 0 15px var(--cta-glow); }
}

.custom-icon-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-icon {
  font-size: 24px;
  padding: 10px;
  border-radius: 5px;
  background-color: var(--cta-glow);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: pulse 2s infinite;
  transition: var(--transition-default);
}

.custom-icon:hover,
.custom-nav-btn:hover {
  transform: translateY(-2px) scale(1.05);
}

/* ========= Mobile CTA Buttons ========= */
.custom-nav-btn {
  background-color: var(--cta-glow);
  padding: 10px 20px;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: block;
  border-radius: 5px;
  animation: pulse 2s infinite;
  transition: var(--transition-default);
}

/* ========= Mobile Navigation Overlay ========= */
.custom-mobile-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  background: var(--frosted-glass);
  backdrop-filter: blur(12px);
  padding: 20px;
  color: #fff;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.custom-mobile-nav.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
}

.custom-mobile-nav li {
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-mobile-nav li a {
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  transition: var(--transition-default);
}

.custom-mobile-nav .custom-icon-container {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  gap: 20px;
}

/* ========= Responsive Layout Adjustments ========= */
@media only screen and (min-width: 769px) {
  .custom-nav-btn {
    display: none;
  }

  .custom-mobile-nav {
    display: none !important;
  }
}

@media only screen and (max-width: 768px) {
  .custom-header {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .custom-logo {
    order: 1;
    margin-bottom: 15px;
  }

  .custom-nav-btn {
    order: 2;
    align-self: flex-start;
  }

  .custom-icon-container {
    order: 3;
    align-self: flex-end;
    margin-top: 10px;
  }
}