/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream: #faf7f2;
  --sage: #9caf88;
  --blush: #e8b4b8;
  --charcoal: #2c2c2c;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.2);
  --terracotta: #d2b48c;
  --clay: #a0522d;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lato", sans-serif;
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(156, 175, 136, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
} */

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.leaf-icon {
  width: 24px;
  height: 24px;
  color: var(--sage);
}

.logo-text {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sage);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sage);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Navigation Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(250, 247, 242, 0.98);
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  z-index: 1001;
  top: 100%;
  left: 0;
  padding: 1rem 0;
  border: 1px solid rgba(156, 175, 136, 0.2);
}

.dropdown-content a {
  color: var(--charcoal);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.dropdown-content a:hover {
  background-color: rgba(156, 175, 136, 0.1);
  color: var(--sage);
  transform: translateX(5px);
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--charcoal);
  margin: 3px 0;
  transition: 0.3s;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 50%, #6b8e23 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.loading-content p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Controls Info */
.controls-info {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    color: #2d5a27;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

/* Hero Section */
        .hero {
            height: 100vh;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .hero-bg {
            position: absolute;
            inset: 0;
            z-index: -1;
        }

       .hero-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* Ensures focus stays centered */
  transform: scale(1.2); /* Zoom in by 20% - adjust this value as needed */
  animation: parallaxFloat 20s ease-in-out infinite;
}

/* Add this to prevent edges from showing when zoomed */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden; /* Hides the zoomed-out edges */
}

        /* Gradient overlay */
        .hero-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(45deg, var(--sage), var(--blush));
            opacity: 0.5;
            mix-blend-mode: multiply;
        }

        /* Additional radial gradient effects */
        .hero-overlay::after {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 30% 70%, rgba(210, 180, 140, 0.2) 0%, transparent 50%),
                        radial-gradient(circle at 70% 30%, rgba(160, 82, 45, 0.15) 0%, transparent 50%);
            mix-blend-mode: overlay;
        }

        /* Content styles */
        .hero-content {
            text-align: center;
            color: white;
            z-index: 10;
            position: relative;
            padding: 0 20px;
        }

        /* Floating elements */
        .floating-elements {
            position: absolute;
            inset: 0;
            pointer-events: none;
        }

        .floating-petal {
            position: absolute;
            width: 20px;
            height: 20px;
            background: radial-gradient(circle, rgba(232, 180, 184, 0.8) 0%, rgba(156, 175, 136, 0.6) 100%);
            border-radius: 50% 0 50% 0;
            animation: gardenFloat 20s ease-in-out infinite;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .petal-1 {
            top: 20%;
            left: 10%;
            animation-delay: 0s;
        }

        .petal-2 {
            top: 60%;
            right: 15%;
            animation-delay: 5s;
        }

        .petal-3 {
            top: 40%;
            left: 80%;
            animation-delay: 10s;
        }

        /* Typography */
        .hero-title {
            font-size: clamp(2.5rem, 8vw, 6rem);
            font-weight: 700;
            margin-bottom: 2rem;
            line-height: 1.1;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .title-line-1,
        .title-line-2 {
            display: block;
            animation: slideInUp 1s ease-out;
        }

        .title-line-2 {
            color: var(--cream);
            animation-delay: 0.3s;
        }

        .hero-subtitle {
            font-size: 1.25rem;
            max-width: 600px;
            margin: 0 auto;
            opacity: 0.9;
            animation: fadeInUp 1s ease-out 0.6s both;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        /* Scroll indicator */
        .scroll-indicator {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            animation: bounce 2s infinite;
        }

        .scroll-mouse {
            width: 24px;
            height: 40px;
            border: 2px solid rgba(255, 255, 255, 0.5);
            border-radius: 12px;
            position: relative;
        }

        .scroll-mouse::before {
            content: "";
            position: absolute;
            top: 8px;
            left: 50%;
            transform: translateX(-50%);
            width: 4px;
            height: 12px;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 2px;
            animation: scrollDot 2s infinite;
        }

        /* Animations */
        @keyframes parallaxFloat {
            0%, 100% {
                transform: scale(1) translateY(0);
            }
            50% {
                transform: scale(1.05) translateY(-20px);
            }
        }

        @keyframes gardenFloat {
            0%, 100% {
                transform: translateY(0) rotate(0deg);
            }
            50% {
                transform: translateY(-30px) rotate(10deg);
            }
        }

        @keyframes slideInUp {
            from {
                transform: translateY(20px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        @keyframes fadeInUp {
            from {
                transform: translateY(10px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 0.9;
            }
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0) translateX(-50%);
            }
            40% {
                transform: translateY(-20px) translateX(-50%);
            }
            60% {
                transform: translateY(-10px) translateX(-50%);
            }
        }

        @keyframes scrollDot {
            0% {
                opacity: 1;
                transform: translateY(0) translateX(-50%);
            }
            100% {
                opacity: 0;
                transform: translateY(10px) translateX(-50%);
            }
        }
/* About Section */
.about-section {
  padding: 8rem 0;
  background: linear-gradient(135deg, rgba(156, 175, 136, 0.05) 0%, rgba(232, 180, 184, 0.05) 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  max-width: 600px;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--charcoal);
}

.about-description {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: rgba(44, 44, 44, 0.8);
}

.mission-statement {
  background: rgba(156, 175, 136, 0.1);
  padding: 2rem;
  border-radius: 15px;
  border-left: 4px solid var(--sage);
  margin-top: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.about-visual {
  position: relative;
}

.plant-showcase {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform: rotate(3deg);
  transition: transform 0.3s ease;
}

.plant-showcase:hover {
  transform: rotate(0deg) scale(1.02);
}

.showcase-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Plants Introduction */
.plants-intro {
  padding: 6rem 0;
  text-align: center;
  background: var(--cream);
}

.intro-header {
  margin-bottom: 3rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: rgba(44, 44, 44, 0.7);
  margin-top: 1rem;
}

.plants-description {
  max-width: 800px;
  margin: 0 auto;
}

.plants-description p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: rgba(44, 44, 44, 0.8);
}

/* Plant Categories Grid */
.plant-categories {
  padding: 6rem 0;
  background: rgba(156, 175, 136, 0.03);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.category-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  position: relative;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(210, 180, 140, 0.1) 0%, rgba(160, 82, 45, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.category-card:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 25px 60px rgba(210, 180, 140, 0.3), 0 15px 35px rgba(160, 82, 45, 0.2);
}

.category-card:hover::before {
  opacity: 1;
}

.category-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  filter: brightness(1.05) contrast(1.1) saturate(1.1);
}

.category-card:hover .category-image img {
  transform: scale(1.08) rotateZ(1deg);
  filter: brightness(1.1) contrast(1.2) saturate(1.2);
}

.category-content {
  padding: 2rem;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.category-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.category-content p {
  color: rgba(44, 44, 44, 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.category-link {
  color: var(--sage);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.category-link:hover {
  color: rgba(156, 175, 136, 0.8);
  transform: translateX(5px);
}

/* Habitats Section */
.habitats-section {
  padding: 6rem 0;
  background: var(--cream);
}

.habitats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.habitat-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid var(--sage);
}

.habitat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-left-width: 8px;
  border-left-color: var(--blush);
}

.habitat-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.habitat-card p {
  color: rgba(44, 44, 44, 0.7);
  line-height: 1.6;
}

/* Education Section */
.education-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(156, 175, 136, 0.05) 0%, rgba(232, 180, 184, 0.05) 100%);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.education-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
}

.education-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.education-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.education-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.education-card p {
  color: rgba(44, 44, 44, 0.7);
  line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
  padding: 8rem 0;
  background: rgba(156, 175, 136, 0.05);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.gallery-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  cursor: pointer;
  position: relative;
}

.gallery-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(210, 180, 140, 0.1) 0%, rgba(160, 82, 45, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.gallery-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 25px 60px rgba(210, 180, 140, 0.3), 0 15px 35px rgba(160, 82, 45, 0.2);
}

.gallery-card:hover::before {
  opacity: 1;
}

.card-image {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  filter: brightness(1.05) contrast(1.1) saturate(1.1);
}

.gallery-card:hover .card-image img {
  transform: scale(1.08) rotateZ(1deg);
  filter: brightness(1.1) contrast(1.2) saturate(1.2);
}

.card-content {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.card-description {
  color: rgba(44, 44, 44, 0.6);
}

/* Videos Section */
.videos-section {
  padding: 6rem 0;
  background: var(--cream);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.video-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.video-card:hover .play-button {
  background: var(--sage);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.25rem;
  color: var(--charcoal);
}

.video-card p {
  padding: 0 1.5rem 1.5rem;
  color: rgba(44, 44, 44, 0.7);
  line-height: 1.6;
}

/* Buttons */
.section-cta {
  text-align: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--sage);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: translateZ(0);
}

.cta-button:hover {
  background: rgba(156, 175, 136, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--shadow);
}

.cta-button.outline {
  background: transparent;
  color: var(--sage);
  border: 2px solid var(--sage);
}

.cta-button.outline:hover {
  background: var(--sage);
  color: white;
}

.button-arrow {
  transition: transform 0.3s ease;
}

.cta-button:hover .button-arrow {
  transform: translateX(5px);
}

/* Footer */
.footer {
  background: var(--charcoal);
  color: white;
  padding: 4rem 0;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.footer-logo .leaf-icon {
  width: 32px;
  height: 32px;
  color: var(--sage);
}

.footer-logo .logo-text {
  font-size: 1.5rem;
  color: white;
}

.footer-description {
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.7;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  text-align: left;
}

.footer-column h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--sage);
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  justify-content: center;
}

.social-link:hover {
  color: white;
}

.social-icon {
  font-size: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  margin-top: 2rem;
}

.footer-bottom p {
  opacity: 0.5;
  font-size: 0.875rem;
}

/* Animations */
@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.02);
  }
}

@keyframes gardenFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-40px) rotate(180deg);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-20px) rotate(270deg);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

@keyframes scrollDot {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.5;
    transform: translateX(-50%) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotateZ(0deg);
  }
  33% {
    transform: translateY(-10px) rotateZ(5deg);
  }
  66% {
    transform: translateY(-5px) rotateZ(-5deg);
  }
}

/* 3D Tilt Effect Enhancement */
.gallery-card[data-tilt],
.category-card[data-tilt],
.education-card[data-tilt] {
  transform-style: preserve-3d;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-card[data-tilt]:hover,
.category-card[data-tilt]:hover,
.education-card[data-tilt]:hover {
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateZ(20px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .categories-grid,
  .education-grid,
  .gallery-grid,
  .videos-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-top: 1px solid rgba(156, 175, 136, 0.2);
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(156, 175, 136, 0.1);
    margin-top: 0.5rem;
    border-radius: 5px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .categories-grid,
  .education-grid,
  .gallery-grid,
  .videos-grid {
    grid-template-columns: 1fr;
  }

  .habitats-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .container {
    padding: 0 1rem;
  }

  .about-section,
  .plants-intro,
  .plant-categories,
  .habitats-section,
  .education-section,
  .gallery-section,
  .videos-section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .category-card,
  .gallery-card,
  .education-card {
    margin: 0 0.5rem;
  }

  .nav-container {
    padding: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Loading Animation */
body {
  opacity: 0;
  transition: opacity 1.5s ease;
}

body.loaded {
  opacity: 1;
}

/* Smooth transitions for all interactive elements */
* {
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

/* Enhanced focus states for accessibility */
.nav-link:focus,
.cta-button:focus,
.category-link:focus {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  .floating-elements,
  .scroll-indicator {
    display: none;
  }

  .hero {
    height: auto;
    padding: 2rem 0;
  }

  * {
    box-shadow: none !important;
    transform: none !important;
  }
}
