/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Custom styles for Gëlbö website */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Apply Montserrat to all headings and Lato to the body */
body, p, .description {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6, .brand-title, .font-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* Hero Heading (Gelibö) */
.hero h1 {
    font-size: 48px; /* mobile: 32px */
    font-weight: 700;
}

/* Section Title */
h2 {
    font-size: 32px; /* mobile: 24px */
    font-weight: 700;
}

/* CTA Button */
.btn, .cta {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

/* Custom button styles */
.btn-primary {
    @apply bg-primary hover:bg-green-700 text-white font-medium py-3 px-6 rounded-full transition-all duration-300 transform hover:scale-105;
}

.btn-secondary {
    @apply bg-white text-primary border-2 border-primary hover:bg-primary hover:text-white font-medium py-3 px-6 rounded-full transition-all duration-300;
}

/* Card hover effects */
.card-hover {
    @apply transition-all duration-300 transform hover:scale-105 hover:shadow-lg;
}

/* Product card styles */
.product-card {
    @apply relative rounded-lg overflow-hidden group cursor-pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(46, 125, 50, 0.1), rgba(25, 118, 210, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

/* Stats counter animation */
.stat-number {
    @apply text-5xl font-light text-primary;
    background: linear-gradient(135deg, #2E7D32, #1976D2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2E7D32;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1B5E20;
}

/* Modern Navbar Styles */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Mobile menu styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 20rem; /* 320px */
    z-index: 50;
    background-color: white; /* Simplified for clarity */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-left: 1px solid rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.dark .mobile-menu {
    background-color: #1c1917; /* stone-900 */
    border-left-color: rgba(255,255,255,0.1);
}

body.mobile-menu-is-open .mobile-menu {
    transform: translateX(0);
}

/* Hamburger Animation */
.hamburger-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.mobile-menu-is-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

body.mobile-menu-is-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

body.mobile-menu-is-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile nav link animations */
.mobile-nav-link {
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 125, 50, 0.1), transparent);
    transition: left 0.5s;
}

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

/* Sticky header enhancement */
header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Logo hover effect */
.logo-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-hover:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Modern Stats Section Animations */
.stat-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

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

.stat-number {
    background: linear-gradient(135deg, #39b770, #fdd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

/* Floating animation for background elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float:nth-child(2) {
    animation-delay: 2s;
}

.animate-float:nth-child(3) {
    animation-delay: 4s;
}

/* Vision & Mission Section Enhancements */
.vision-mission-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.vision-mission-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(57, 183, 112, 0.05) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.vision-mission-card:hover::after {
    transform: translateX(100%);
}

/* Mission item animations */
.mission-item {
    transition: all 0.3s ease;
}

.mission-item:hover {
    transform: translateX(8px);
}

/* Image overlay animation */
.image-overlay {
    transition: all 0.5s ease;
}

.group:hover .image-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

/* Staggered animation for mission items */
.mission-item:nth-child(1) { animation-delay: 0.1s; }
.mission-item:nth-child(2) { animation-delay: 0.2s; }
.mission-item:nth-child(3) { animation-delay: 0.3s; }
.mission-item:nth-child(4) { animation-delay: 0.4s; }

/* Pulse animation for floating elements */
@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(57, 183, 112, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(57, 183, 112, 0.6);
        transform: scale(1.05);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Gradient text animation */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Loading animation */
.loading-spinner {
    @apply inline-block w-6 h-6 border-2 border-white border-t-transparent rounded-full animate-spin;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #2E7D32, #1976D2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section spacing */
.section-padding {
    @apply py-16 md:py-24;
}

/* Hero section enhancements */
.hero-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(46, 125, 50, 0.3));
}

/* Contact form styles */
.contact-form {
    @apply space-y-4;
}

.form-input {
    @apply w-full px-4 py-3 border border-stone-300 dark:border-stone-600 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent bg-white dark:bg-stone-800 text-stone-900 dark:text-stone-100;
}

.form-textarea {
    @apply w-full px-4 py-3 border border-stone-300 dark:border-stone-600 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent bg-white dark:bg-stone-800 text-stone-900 dark:text-stone-100 resize-none;
}

/* 
footer {
    width: 100% !important;
} */

/* Footer enhancements */
.footer-link {
    @apply text-stone-400 hover:text-white transition-colors duration-200;
}

/* Responsive typography */
@media (max-width: 768px) {
    .hero-title {
        @apply text-4xl;
    }
    
    .section-title {
        @apply text-3xl;
    }
    
    .product-title {
        @apply text-xl;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        @apply border-2 border-black;
    }
    
    .product-card {
        @apply border border-stone-300;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* New Mobile Menu Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body.mobile-menu-is-open .mobile-nav-link {
    animation: slideInRight 0.4s ease-out forwards;
    /* Make links initially invisible so they can be animated */
    opacity: 0;
}

/* Filter Buttons */
.filter-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s ease-in-out;
    border: 1px solid #e5e7eb;
    background-color: #fff;
    color: #374151;
}

.dark .filter-btn {
    background-color: #1f2937;
    border-color: #4b5563;
    color: #d1d5db;
}

.filter-btn:hover {
    background-color: rgba(57, 183, 112, 0.1);
    color: #39b770;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    transform: scale(1.05);
}

.filter-btn.active {
    background-image: linear-gradient(to right, #39b770, #fdd700);
    color: #fff;
    border-color: #39b770;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    transform: scale(1.05);
}
/* Variant Buttons */
.variant-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease-in-out;
    border: 1px solid #e5e7eb;
    background-color: #fff;
    color: #374151;
    cursor: pointer;
}

.dark .variant-btn {
    background-color: #1f2937;
    border-color: #4b5563;
    color: #d1d5db;
}

.variant-btn:hover {
    background-color: rgba(57, 183, 112, 0.1);
    color: #39b770;
}

.variant-btn.active {
    background-color: #39b770;
    color: #fff;
    border-color: #39b770;
}

.slide-in-elliptic-top-fwd {
	animation: slide-in-elliptic-top-fwd 0.7s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.roll-in-left {
	animation: roll-in-left 0.6s ease-out both;
}

.swing-in-top-fwd {
	animation: swing-in-top-fwd 0.5s cubic-bezier(0.175, 0.885, 0.320, 1.275) both;
}

.fade-in {
	animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

.slide-in-fwd-center {
	animation: slide-in-fwd-center 0.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@keyframes slide-in-elliptic-top-fwd {
  0% {
    -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0);
            transform: translateY(-600px) rotateX(-30deg) scale(0);
    -webkit-transform-origin: 50% 100%;
            transform-origin: 50% 100%;
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0) rotateX(0) scale(1);
            transform: translateY(0) rotateX(0) scale(1);
    -webkit-transform-origin: 50% 1400px;
            transform-origin: 50% 1400px;
    opacity: 1;
  }
}

@keyframes roll-in-left {
  0% {
    -webkit-transform: translateX(-800px) rotate(-540deg);
            transform: translateX(-800px) rotate(-540deg);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0) rotate(0deg);
            transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
}

@keyframes swing-in-top-fwd {
  0% {
    -webkit-transform: rotateX(-100deg);
            transform: rotateX(-100deg);
    -webkit-transform-origin: top;
            transform-origin: top;
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(0deg);
            transform: rotateX(0deg);
    -webkit-transform-origin: top;
            transform-origin: top;
    opacity: 1;
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slide-in-fwd-center {
  0% {
    -webkit-transform: translateZ(-1400px);
            transform: translateZ(-1400px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
    opacity: 1;
  }
}