/* ===============================================
   FUTURISTIC COUNTY ADDRESS - ENHANCED NAVIGATION
   =============================================== */

/* Magical Cursor Effect */
.custom-cursor {
  display: none !important;
}

.cursor-dot {
  display: none !important;
}

/* Animated Particle Background */
.particle-background {
  display: none !important;
}

.particle {
  position: absolute;
  background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-particles 15s infinite;
  opacity: 0.3;
}

@keyframes float-particles {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-30px) translateX(20px) scale(1.2);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-60px) translateX(-15px) scale(0.8);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-30px) translateX(25px) scale(1.1);
    opacity: 0.6;
  }
}

/* ===== Tree Loading Animation ===== */
.loading-screen {
  display: none !important;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.tree-loader {
  text-align: center;
}

.tree-svg {
  width: 150px;
  height: 150px;
  filter: drop-shadow(0 0 20px rgba(45, 95, 63, 0.5));
}

.trunk {
  animation: trunkGrow 1.5s ease-in-out infinite;
  transform-origin: center bottom;
}

.crown {
  animation: crownGrow 1.5s ease-in-out infinite;
  transform-origin: center bottom;
}

.crown-1 {
  animation-delay: 0.2s;
}

.crown-2 {
  animation-delay: 0.4s;
}

.crown-3 {
  animation-delay: 0.6s;
}

.leaf {
  animation: leafFloat 2s ease-in-out infinite;
}

.leaf-1 {
  animation-delay: 0s;
}

.leaf-2 {
  animation-delay: 0.5s;
}

.leaf-3 {
  animation-delay: 1s;
}

.leaf-4 {
  animation-delay: 1.5s;
}

@keyframes trunkGrow {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.1);
  }
}

@keyframes crownGrow {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

@keyframes leafFloat {
  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.5;
  }
}

.loading-text {
  margin-top: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ===== Enhanced Navigation ===== */
.mega-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(29, 29, 31, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.5rem 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-nav.scrolled {
  background: rgba(29, 29, 31, 0.95);
  padding: 0.3rem 0;
  box-shadow: 0 4px 20px rgba(45, 95, 63, 0.3);
}

.mega-nav .nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.mega-nav .logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1001;
}

.mega-nav .logo-3d {
  width: 90px;
  height: 90px;
  object-fit: contain;
  background: transparent;
  border-radius: 50%;
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 0 10px rgba(45, 95, 63, 0.2));
  transition: all 0.3s ease;
  animation: logoFloat 3s ease-in-out infinite;
}

.mega-nav .logo-3d:hover {
  transform: scale(1.05) rotate(5deg);
  filter: drop-shadow(0 0 25px rgba(45, 95, 63, 0.8));
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.mega-nav .brand-text-modern {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #2d5f3f, #4a7c59, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

/* Desktop Menu */
.desktop-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link-modern {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.nav-link-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(74, 124, 89, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.nav-link-modern:hover {
  color: #d4af37;
  background: rgba(45, 95, 63, 0.2);
  transform: translateY(-2px);
}

.nav-link-modern:hover::before {
  left: 100%;
}

.nav-link-modern i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.nav-link-modern:hover i {
  transform: scale(1.2) rotate(5deg);
}

.nav-link-cta {
  background: linear-gradient(135deg, #2d5f3f, #4a7c59);
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(45, 95, 63, 0.4);
}

.nav-link-cta:hover {
  background: linear-gradient(135deg, #4a7c59, #2d5f3f);
  box-shadow: 0 6px 20px rgba(45, 95, 63, 0.6);
  transform: translateY(-3px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, #2d5f3f, #d4af37);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: linear-gradient(180deg, #1d1d1f 0%, #2d5f3f 100%);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  padding: 2rem 0;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-sidebar.active {
  right: 0;
}

.sidebar-header {
  padding: 0 2rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.sidebar-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
  object-fit: contain;
  border-radius: 50%;
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 0 10px rgba(45, 95, 63, 0.2));
}

.sidebar-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #d4af37, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.sidebar-menu {
  padding: 2rem 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background: rgba(45, 95, 63, 0.3);
  color: #d4af37;
  border-left-color: #d4af37;
  padding-left: 2.5rem;
}

.sidebar-link i {
  font-size: 1.2rem;
  width: 24px;
  transition: transform 0.3s ease;
}

.sidebar-link:hover i {
  transform: scale(1.2) rotate(10deg);
}

.sidebar-footer {
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #2d5f3f, #4a7c59);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(45, 95, 63, 0.4);
}

.sidebar-contact-btn:hover {
  background: linear-gradient(135deg, #4a7c59, #2d5f3f);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 95, 63, 0.6);
}

.sidebar-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.sidebar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.sidebar-social a:hover {
  background: #d4af37;
  color: #1d1d1f;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #2d5f3f, #4a7c59, #d4af37);
  z-index: 1001;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(45, 95, 63, 0.5);
}

/* ===== Floating Action Buttons ===== */
.fab-container {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.fab-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d5f3f, #4a7c59);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(45, 95, 63, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-button:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 30px rgba(45, 95, 63, 0.6);
  background: linear-gradient(135deg, #4a7c59, #2d5f3f);
}

.fab-button i {
  font-size: 1.3rem;
}

/* ===== Morphing Background Shapes ===== */
.morphing-bg {
  display: none !important;
}

.morph-shape {
  position: absolute;
  background: linear-gradient(45deg, #2d5f3f, #4a7c59, #d4af37);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: morph 10s ease-in-out infinite;
  filter: blur(40px);
}

.morph-shape:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 10%;
}

.morph-shape:nth-child(2) {
  width: 400px;
  height: 400px;
  bottom: 10%;
  right: 10%;
  animation-delay: 2s;
}

@keyframes morph {
  0%,
  100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transform: rotate(0deg) scale(1);
  }
  25% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: rotate(90deg) scale(1.2);
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: rotate(180deg) scale(0.9);
  }
  75% {
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    transform: rotate(270deg) scale(1.1);
  }
}

/* ===== 3D Card Effects ===== */
.card-3d {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.card-3d::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.2),
    transparent
  );
  transition: left 0.5s ease;
  z-index: 1;
}

.card-3d:hover::before {
  left: 100%;
}

.card-3d:hover {
  box-shadow: 0 20px 50px rgba(45, 95, 63, 0.3);
}

/* Apply 3D effects to all card types */
.stats-card,
.amenity-card,
.info-card,
.contact-card,
.feature-card,
.stats-counter,
.notice-board-card,
.infrastructure-container {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.stats-card::before,
.amenity-card::before,
.info-card::before,
.contact-card::before,
.feature-card::before,
.stats-counter::before,
.notice-board-card::before,
.infrastructure-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.2),
    transparent
  );
  transition: left 0.5s ease;
  z-index: 1;
}

.stats-card:hover::before,
.amenity-card:hover::before,
.info-card:hover::before,
.contact-card:hover::before,
.feature-card:hover::before,
.stats-counter:hover::before,
.notice-board-card:hover::before,
.infrastructure-container:hover::before {
  left: 100%;
}

.stats-card:hover,
.amenity-card:hover,
.info-card:hover,
.contact-card:hover,
.feature-card:hover,
.stats-counter:hover,
.notice-board-card:hover,
.infrastructure-container:hover {
  transform: translateY(-10px);
  box-shadow:
    0 20px 40px rgba(45, 95, 63, 0.3),
    0 0 30px rgba(212, 175, 55, 0.2);
}

/* ===== Responsive Design ===== */
@media (max-width: 991px) {
  .desktop-menu {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mega-nav .nav-content {
    padding: 0 1rem;
  }

  .mega-nav .logo-3d {
    width: 50px;
    height: 50px;
  }

  .mega-nav .brand-text-modern {
    font-size: 1rem;
  }
}

@media (min-width: 992px) {
  .mobile-sidebar,
  .sidebar-overlay,
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  .custom-cursor,
  .cursor-dot {
    display: none;
  }

  .tree-svg {
    width: 100px;
    height: 100px;
  }

  .loading-text {
    font-size: 1rem;
  }

  .mega-nav .brand-text-modern {
    display: none;
  }

  .fab-container {
    right: 15px;
    bottom: 15px;
  }

  .fab-button {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .morph-shape {
    display: none;
  }
}
