.navbar-container {
  background: transparent;
}

.navbar {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  height: 64px;
  color: white;
  padding-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;

  /* transition: all 0.3s ease; */
  /* Initial transparent state */
  background: transparent;
  backdrop-filter: blur(0px);
}

/* Scrolled state with blur */
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.7) !important; /* Semi-transparent black */
  backdrop-filter: blur(20px); /* Blur effect */
  -webkit-backdrop-filter: blur(20px); /* Safari support */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
  /* padding: 15px 0; Slightly smaller when scrolled */
}

@supports not (backdrop-filter: blur(20px)) {
  .navbar.scrolled {
    background: rgba(0, 0, 0, 0.9); /* Fallback for older browsers */
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white;
  max-width: 82px;
  position: relative;
}

.logo.animating {
  overflow: visible;
  z-index: 1000; /* Ensure it's above everything during animation */
}

/* .logo img {
  width: 120px;
  height: 40px;
  object-fit: cover;
} */

.navbar .logo-text {
  image-rendering: crisp-edges;
  transform: translateZ(0);
}

.navbar .logo-text {
  opacity: 0;
}
.navbar .logo .logo-letter img {
  /* new */

  height: 80px;
  width: 64px;
}

.nav-middle {
  display: none;
  align-items: center;
  gap: 24px;
  background-color: #ed2399;
  color: white;
  font-weight: bold;
  padding: 8px 24px;
  border-radius: 9999px;
  font-size: 14px;
  letter-spacing: 0.05em;
  border: 1px solid white;
  /* REMOVED: opacity: 0; - Let GSAP handle this */
}

.nav-middle a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-middle a:hover {
  opacity: 0.8;
  background-color: #db2777;
}

.nav-right {
  display: none;
  align-items: center;
  gap: 12px;
}

.heart {
  color: #ed2399 !important;
  font-size: 20px;
  font-family: sans-serif;
  /* REMOVED: opacity: 0; - Let GSAP handle this */
}

.heart-svg {
  margin-top: 6px;
}

.hire-btn {
  background-color: #ed2399;
  color: white;
  padding: 8px 16px;
  border-radius: 9999px;
  font-weight: bold;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  border: 1px solid white;
  /* REMOVED: opacity: 0; and overflow: hidden - Let GSAP handle this */
}

.hire-btn:hover {
  background-color: #db2777;
}

.btn-text {
  /* REMOVED: opacity: 0; - Let GSAP handle this */
}

.hamburger {
  display: block;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  z-index: 60;
  opacity: 0;
  /* REMOVED: opacity: 0; - Let GSAP handle this */
}

.hamburger svg {
  width: 28px;
  height: 28px;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: black;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  color: white;
  font-weight: 600;
  z-index: 40;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
}

.mobile-menu a:hover {
  opacity: 0.8;
}

/* Medium screens and up */
@media (min-width: 768px) {
  .nav-middle {
    display: flex;
    opacity: 0;
    /* REMOVED: opacity: 0; - Let GSAP handle this */
  }

  .hire-btn {
    opacity: 0;
    /* REMOVED: opacity: 0; and overflow: hidden - Let GSAP handle this */
  }

  .btn-text {
    opacity: 0;
    /* REMOVED: opacity: 0; - Let GSAP handle this */
  }

  .heart {
    opacity: 0;
    /* REMOVED: opacity: 0; - Let GSAP handle this */
  }

  .nav-right {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }
}

/* Demo content */
.content {
  margin-top: 100px;
  padding: 20px;
  text-align: center;
  color: white;
}

/* Logo styling for both navbar and hero */
.logo-text,
.hero-logo {
  /* Or your preferred font */
  font-weight: 400;
  font-size: 2rem;
  display: flex;
  gap: 2px;
  z-index: 60;
  /* REMOVED: opacity: 0; - Let GSAP handle this */
}

.logo-letter {
  display: inline-block;
  color: #f6d764; /* Yellow for CTRL */
  /* REMOVED: transition: transform 0.2s ease; - This conflicts with GSAP */
}

.logo-letter.logo-b {
  color: #ed2399; /* Pink for B */
  font-weight: 900;
}

/* Navbar logo (smaller) - CRITICAL FOR SMOOTH ANIMATION */
.navbar .logo-text {
  font-size: 1.5rem;
  transform-origin: center center; /* UNCOMMENTED - Essential for smooth scaling! */
  will-change: transform; /* Optimize for animations */
}

/* Hero logo (larger, centered initially) */

/* Hide other hero content initially */
.hero-title,
.hero-subtitle,
.hero-services {
  opacity: 1;
}

/* Dust particle styling */
.dust-particle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: rgba(246, 215, 100, 0.8);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99;
}

/* Impact ring effect */
.impact-ring {
  position: fixed;
  border: 2px solid rgba(246, 215, 100, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 98;
}

@media (min-width: 768px) {
  .hero-logo {
    font-size: 6rem;
  }
}

@media (max-width: 480px) {
  .hero-logo .logo-letter img {
    max-width: 60px;
    max-height: 75px;
  }
}

/* Additional performance optimizations for smooth animations */
.logo-letter,
.nav-middle,
.hire-btn,
.heart,
.hamburger {
  will-change: transform, opacity; /* Optimize for animations */
  backface-visibility: hidden; /* Prevent flickering */
}
