/* Custom CSS for Ferma Orenjë */

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    text-align: center;
    max-width: 300px;
}

.loader-logo {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.loader-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.2);
    animation: logoFloat 2s ease-in-out infinite;
}

.loader-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 3px solid rgba(40, 167, 69, 0.1);
    border-top: 3px solid #28a745;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: #28a745;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: textPulse 2s ease-in-out infinite;
}

.loader-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 2rem;
    animation: textFade 2s ease-in-out infinite;
}

.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 2px;
    width: 0%;
    animation: progressLoad 3s ease-in-out infinite;
}

/* Loader Animations */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes textFade {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.5; }
}

@keyframes progressLoad {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Hide content while loading */
body.loading .navbar,
body.loading .hero-section,
body.loading section:not(.page-loader),
body.loading footer {
    visibility: hidden;
}

:root {
    --primary-color: #28a745;
    --secondary-color: #20c997;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --text-color: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1050;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--secondary-color) !important;
    text-decoration: none;
}

.navbar-brand span {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.3rem;
}

.navbar-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
    opacity: 1 !important;
    z-index: 1000;
    position: relative;
}

.navbar-logo:hover {
    transform: scale(1.1);
}

/* Clean logo styling - no borders or backgrounds */
.navbar-logo {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Alternative: Use icon if logo is not available */
.navbar-brand .logo-fallback {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.language-toggle {
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
}

.language-toggle:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.flag-text {
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Mobile responsive - hide text on small screens */
@media (max-width: 576px) {
    .flag-text {
        display: none;
    }
    
    .language-toggle {
        padding: 8px 12px;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.7), rgba(32, 201, 151, 0.7));
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-section .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.6s both;
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators [data-bs-target] {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    margin: 0 5px;
}

.carousel-indicators .active {
    background: white;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* About Section */
.feature-box {
    padding: 2rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-box i {
    margin-bottom: 1rem;
}

.feature-box h5 {
    color: var(--dark-color);
    font-weight: 600;
}

/* Products Section */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-content {
    padding: 2rem;
}

.product-content h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-content p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Contact Section */
.contact-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.contact-info {
    padding: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    font-size: 1.5rem;
    width: 50px;
}

.contact-item h6 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.social-links {
    margin-top: 2rem;
}

.social-link {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

/* Adventure & Map Section */
.map-container-large {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.map-container-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.map-container-large iframe {
    width: 100%;
    height: 500px;
    border: none;
}

.adventure-content {
    padding: 2rem;
}

.adventure-content h3 {
    color: var(--dark-color);
    font-weight: 700;
}

.adventure-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.adventure-features {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-item {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 1rem;
}

.feature-item i {
    font-size: 1.2rem;
}

.adventure-cta {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.adventure-cta h4 {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.8rem;
}

.adventure-cta p {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .map-container-large iframe {
        height: 350px;
    }
    
    .adventure-content {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .adventure-features {
        padding: 1.5rem;
    }
    
    .adventure-cta {
        padding: 2rem 1.5rem;
    }
    
    .adventure-cta .btn {
        display: block;
        margin-bottom: 1rem;
        width: 100%;
    }
}

/* Footer */
footer {
    background: var(--dark-color) !important;
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-section .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .feature-box {
        padding: 1.5rem;
    }
}

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

/* Button Styles */
.btn-success {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, #218838, #1ea080);
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Loading button animation */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Form message animations */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Products Section */
.premium-product-image {
    position: relative;
}

.premium-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: var(--dark-color);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.premium-badge i {
    font-size: 1rem;
}

.premium-content {
    padding: 2rem;
}

.premium-product-title {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 2rem;
}

.premium-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.premium-features {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.premium-features h5 {
    color: var(--dark-color);
    font-weight: 600;
}

.benefit-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--dark-color);
}

.premium-cta {
    margin-top: 2rem;
}

.premium-cta .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
}

/* Products Carousel */
.products-carousel {
    position: relative;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 320px;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 3rem;
}

.product-image::before {
    content: '🌱';
    font-size: 3rem;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-content h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.product-content p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Carousel Controls for Products */
#productsCarousel .carousel-control-prev,
#productsCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

#productsCarousel .carousel-control-prev:hover,
#productsCarousel .carousel-control-next:hover {
    opacity: 1;
    background: var(--secondary-color);
}

#productsCarousel .carousel-control-prev {
    left: -25px;
}

#productsCarousel .carousel-control-next {
    right: -25px;
}

/* Responsive Design for Products */
@media (max-width: 768px) {
    .premium-content {
        padding: 1rem;
        margin-top: 2rem;
    }
    
    .premium-product-title {
        font-size: 1.5rem;
    }
    
    .premium-features {
        padding: 1.5rem;
    }
    
    .premium-cta .btn {
        display: block;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .product-card {
        height: auto;
        margin-bottom: 1rem;
    }
    
    #productsCarousel .carousel-control-prev,
    #productsCarousel .carousel-control-next {
        display: none;
    }
}
