/* ==========================================
   Bark - Friluftskonsulent
   Custom Styles
   ========================================== */

/* Base Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(77, 119, 82, 0.3);
    color: #223425;
}

/* Focus States */
:focus-visible {
    outline: 2px solid #4d7752;
    outline-offset: 2px;
}

/* Hero Background */
.hero-bg {
    background: 
        linear-gradient(135deg, 
            rgba(17, 28, 20, 0.9) 0%, 
            rgba(34, 52, 37, 0.8) 30%,
            rgba(48, 77, 53, 0.7) 60%,
            rgba(34, 28, 24, 0.9) 100%
        ),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="sky" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%23223425;stop-opacity:1"/><stop offset="100%" style="stop-color:%23304d35;stop-opacity:1"/></linearGradient></defs><rect fill="url(%23sky)" width="1200" height="800"/><g fill="%23283e2c" opacity="0.5"><polygon points="0,800 200,400 400,800"/><polygon points="300,800 500,350 700,800"/><polygon points="600,800 850,300 1100,800"/><polygon points="900,800 1050,450 1200,800"/></g><g fill="%23223425" opacity="0.7"><polygon points="100,800 250,500 400,800"/><polygon points="500,800 700,400 900,800"/><polygon points="800,800 950,520 1100,800"/></g></svg>');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes floatDelayed {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animation-delay-100 {
    animation-delay: 0.1s;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

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

.leaf-float-delayed {
    animation: floatDelayed 8s ease-in-out infinite;
    animation-delay: 2s;
}

.animate-pulse-slow {
    animation: pulseSlow 4s ease-in-out infinite;
}

/* Header States */
#header {
    background: transparent;
    transition: all 0.5s ease;
}

#header.scrolled {
    background: rgba(34, 28, 24, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

#header.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

#header.scrolled .nav-link:hover {
    color: #6f9574;
}

/* Navigation Links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4d7752, #708858);
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

/* Service Cards Hover Effect */
article:hover h3 {
    color: #3a5f40;
}

/* Counter Animation */
.counter-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.counter-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4d7752, #708858);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3a5f40, #576c44);
}

/* Button Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:hover::before {
    width: 300px;
    height: 300px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #4d7752, #708858);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Quote Section */
blockquote::before {
    font-family: 'Cormorant Garamond', Georgia, serif;
    line-height: 1;
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

#mobile-menu:not(.hidden) {
    display: block;
}

/* Image Lazy Loading Placeholder */
.img-placeholder {
    background: linear-gradient(135deg, #e8e6db 0%, #d4cfb9 100%);
    animation: pulseSlow 2s ease-in-out infinite;
}

/* Decorative Lines */
.decorative-line {
    height: 3px;
    background: linear-gradient(90deg, transparent, #4d7752, transparent);
    border-radius: 2px;
}

/* Service Icons Background Patterns */
.service-icon-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

/* Philosophy Section Circles */
.philosophy-circle {
    position: relative;
}

.philosophy-circle::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, rgba(77, 119, 82, 0.2), transparent);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Stats Section Pattern */
.stats-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

/* Contact Section Glow */
.contact-glow {
    box-shadow: 
        0 0 60px rgba(77, 119, 82, 0.2),
        0 0 120px rgba(77, 119, 82, 0.1);
}

/* Footer Links */
footer a {
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-bg {
        background-position: center top;
    }
    
    .animate-fade-in-up {
        animation-duration: 0.6s;
    }
    
    .animation-delay-100,
    .animation-delay-200,
    .animation-delay-300,
    .animation-delay-400 {
        animation-delay: 0.1s;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    header,
    .leaf-float,
    .leaf-float-delayed {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .nav-link,
    .btn-ripple {
        border: 2px solid currentColor;
    }
    
    article {
        border-width: 2px;
    }
}

/* Dark Mode Support (if system prefers) */
@media (prefers-color-scheme: dark) {
    /* Already using dark theme elements, but can add adjustments here */
}


