:root {
  --primary: #17bbef;
  --primary-dark: #0fa3d4;
  --primary-light: #e8f8fd;
  --white: #ffffff;
  --black: #000000;
  --text-dark: #333333;
  --text-medium: #555555;
  --text-light: #777777;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1a2e;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s ease;
}

/* ===== Header ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#header.header-no-hero:not(.scrolled) {
  background: var(--bg-light);
}

#header.header-no-hero:not(.scrolled) .logo {
  color: var(--primary);
}

#header.header-no-hero:not(.scrolled) .nav-links a {
  color: var(--text-dark);
}

#header.header-no-hero:not(.scrolled) .hamburger span {
  background: var(--text-dark);
}

#header.header-no-hero:not(.scrolled) .header-socials a {
  color: var(--text-medium);
}

#header.header-no-hero:not(.scrolled) .nav-cta {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white) !important;
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  transition: gap 0.4s ease;
}

#header.scrolled .header-inner {
  gap: 8px;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: gap 0.4s ease;
}

#header.scrolled .logo-container {
  gap: 4px;
}

.logo-img {
  display: block;
}

.logo-actual {
  height: 60px;
  width: auto;
  display: block;
  transition: all 0.4s ease;
  object-fit: contain;
}

#header.scrolled .logo-actual {
  height: 40px;
}

.logo {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  transition: color 0.4s ease, font-size 0.4s ease;
}

.logo span {
  display: block;
  font-size: 0.6em;
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-top: 4px;
}

#header.scrolled .logo {
  color: var(--primary);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
  justify-content: center;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

#header.scrolled .nav-links a {
  color: var(--text-dark);
}

#header.scrolled .nav-links a::after {
  background: var(--primary);
}

.nav-links a:hover {
  color: var(--white);
}

#header.scrolled .nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  padding: 8px 24px !important;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--white);
  color: var(--white) !important;
  border-radius: 50px;
  font-weight: 700 !important;
  transition: var(--transition) !important;
}

.nav-cta:hover {
  background: var(--white) !important;
  color: var(--primary) !important;
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

#header.scrolled .nav-cta {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white) !important;
}

#header.scrolled .nav-cta:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  position: absolute;
  top: 10px;
  right: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

#header.scrolled .hamburger span {
  background: var(--text-dark);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Header Socials ===== */
.header-socials {
  position: absolute;
  top: 0px;
  right: 0;
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 10;
}

.header-socials a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.4rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

#header.scrolled .header-socials a {
  color: var(--text-medium);
}

.header-socials a.social-line:hover,
#header.scrolled .header-socials a.social-line:hover {
  color: #06C755;
  transform: translateY(-2px);
}

.header-socials a.social-ig:hover,
#header.scrolled .header-socials a.social-ig:hover {
  color: #E1306C;
  transform: translateY(-2px);
}

/* ===== Footer ===== */
#footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo-footer {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  display: block;
}

.footer-brand .logo-footer span {
  display: block;
  font-size: 0.65em;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.08em;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-area {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  color: var(--primary);
}

.footer-nav h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav ul li {
  margin-bottom: 10px;
}

.footer-nav ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-nav ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.82rem;
  opacity: 0.5;
}

/* ===== Mobile Nav ===== */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(23, 187, 239, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 100px 24px 60px;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  visibility: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav a {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 10px 24px;
  transition: var(--transition);
  text-align: center;
  width: 100%;
}

.mobile-nav a:hover {
  opacity: 0.7;
}

.mobile-nav .btn-primary {
  display: inline-block;
  padding: 16px 40px;
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  border: 2px solid var(--white);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  margin-top: 8px;
}

@media (max-width: 991px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-socials {
    top: 8px;
    right: 48px;
    gap: 12px;
  }

  .header-socials a {
    font-size: 1.25rem;
    width: 28px;
    height: 28px;
  }
}