:root {
  --bg: #f5f7fa;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --text: #1e293b;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --border: rgba(0, 0, 0, 0.07);
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body{
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.tp-container {
  max-width: 1100px;
  margin: auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Top Header */
.tp-top-header {
  background: var(--nav-bg);
  border-bottom: 0.1px solid var(--border);
  font-size: 0.9rem;
  padding: 10px 0;
}

.tp-top-header a {
  margin-right: 30px;
  color: var(--text);
  opacity: 0.9;
  font-weight: 400;
  transition: 0.3s;
}

.tp-top-header a:hover {
  opacity: 1;
  color: var(--accent);
}

/* Navbar */
.tp-main-navbar {
  background: var(--nav-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0; /* Ensures the navbar sticks to the top */
  z-index: 1000; /* Keeps the navbar above other content */
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
}

.tp-logo img {
  max-height: 40px;
  width: auto;
}

.tp-nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.tp-nav-links li a {
  font-weight: 300;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
}

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

.tp-nav-links li a:hover::after {
  width: 100%;
}

.tp-nav-links li a:hover {
  color: var(--accent);
}

.tp-cta-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  padding: 10px 24px;
  border-radius: 5px;
  font-weight: 400;
  transition: 0.3s ease;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

.tp-cta-button:hover {
  transform: translateY(-2px);
}

/* Hamburger Icon */
.tp-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.tp-hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 3px;
}

.tp-hamburger span {
  display: block;
  height: 4px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.tp-hamburger span:nth-child(1) {
  width: 30px;
}
.tp-hamburger span:nth-child(2) {
  width: 25px;
}
.tp-hamburger span:nth-child(3) {
  width: 17px;
}

.tp-menu-toggle.active .tp-hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  width: 22px;
}

.tp-menu-toggle.active .tp-hamburger span:nth-child(2) {
  opacity: 0;
}

.tp-menu-toggle.active .tp-hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  width: 22px;
}

/* Slide Menu */
.tp-slide-menu {
  position: fixed;
  top: 0;
  left: -260px;
  height: 100%;
  width: 250px;
  background: var(--nav-bg);
  transition: left 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  z-index: 1001;
  padding-top: 40px;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.tp-slide-menu.active {
  left: 0;
  opacity: 1;
}

.tp-slide-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tp-slide-menu li {
  opacity: 0;
  transform: translateX(-30px);
  animation: flyInLeft 0.4s ease forwards;
}

.tp-slide-menu.active li:nth-child(1) {
  animation-delay: 0.1s;
}
.tp-slide-menu.active li:nth-child(2) {
  animation-delay: 0.2s;
}
.tp-slide-menu.active li:nth-child(3) {
  animation-delay: 0.3s;
}
.tp-slide-menu.active li:nth-child(4) {
  animation-delay: 0.4s;
}
.tp-slide-menu.active li:nth-child(5) {
  animation-delay: 0.5s;
}

.tp-slide-menu li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 100;
  color: var(--text);
  padding: 10px 20px;
  margin: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
}

.tp-slide-menu li a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateX(3px);
}

.tp-slide-menu li a i {
  font-size: 0.9rem;
  opacity: 0.6;
  transition: transform 0.3s ease;
}

.tp-slide-menu li a:hover i {
  transform: translateX(3px);
  opacity: 1;
}

@keyframes flyInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Overlay */
.tp-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 41, 59, 0.1);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.tp-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Mobile CTA */
.tp-mobile-cta {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 500;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  z-index: 2000;
}

.tp-mobile-cta:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .tp-top-header {
    display: none;
  }
  .tp-nav-links,
  .tp-cta-button {
    display: none;
  }
  .tp-menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
  }
  .tp-mobile-cta {
    display: inline-block;
  }
  .tp-container {
    position: relative;
    justify-content: space-between;
  }
}

@media (min-width: 769px) {
  .tp-menu-toggle,
  .tp-slide-menu,
  .tp-menu-overlay {
    display: none;
  }
}
