/* Premium Stove Specialist Website - Advanced Styles */

/* CSS Custom Properties */
:root {
    /* Brand Colors - Custom Blue, Custom Green, White, Black */
    --navy-blue: #002648;
    --lime-green: #77b13d;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f8fafc;
    --gray-medium: #64748b;
    --gray-dark: #334155;
    
    /* Simplified Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(30, 58, 138, 0.1);
    --glass-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    --glass-backdrop: blur(8px);
    
    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Advanced Keyframe Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(1deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
    75% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes pulse-glow {
    0% { 
        box-shadow: 0 0 20px rgba(0, 38, 72, 0.3),
                    0 0 40px rgba(0, 38, 72, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 38, 72, 0.5),
                    0 0 60px rgba(0, 38, 72, 0.3),
                    0 0 90px rgba(0, 38, 72, 0.2);
        transform: scale(1.02);
    }
    100% { 
        box-shadow: 0 0 20px rgba(0, 38, 72, 0.3),
                    0 0 40px rgba(0, 38, 72, 0.2);
        transform: scale(1);
    }
}

@keyframes slide-up {
    0% { 
        opacity: 0; 
        transform: translateY(50px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slide-in-right {
    0% { 
        opacity: 0; 
        transform: translateX(100px); 
    }
    100% { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes slide-in-left {
    0% { 
        opacity: 0; 
        transform: translateX(-100px); 
    }
    100% { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

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

@keyframes scale-in {
    0% { 
        opacity: 0; 
        transform: scale(0.8); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1); 
    }
}

@keyframes wiggle {
    0%, 7% { transform: rotateZ(0); }
    15% { transform: rotateZ(-15deg); }
    20% { transform: rotateZ(10deg); }
    25% { transform: rotateZ(-10deg); }
    30% { transform: rotateZ(6deg); }
    35% { transform: rotateZ(-4deg); }
    40%, 100% { transform: rotateZ(0); }
}

@keyframes particle {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translateY(-25px) translateX(10px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-50px) translateX(-10px) rotate(180deg);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-25px) translateX(15px) rotate(270deg);
        opacity: 0.4;
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(360deg);
        opacity: 1;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #f59e0b;
    }
}

/* Glassmorphism Components */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    position: relative;
}

/* Hero Section - Clean Navy Blue */
.hero-gradient {
    background: var(--navy-blue);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="80" height="80" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="80" height="80" patternUnits="userSpaceOnUse"><circle cx="40" cy="40" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    opacity: 1;
}

/* Text Gradient - Navy Blue */
.text-gradient {
    background: var(--navy-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--navy-blue);
}

/* Premium Button Styles - Lime Green */
.btn-primary {
    background: var(--lime-green);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(132, 204, 22, 0.3);
    border: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.025em;
    color: var(--white);
}

.btn-primary:hover {
    background: #65a30d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(132, 204, 22, 0.4);
}

.btn-primary::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.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-primary:active {
    transform: translateY(0);
    transition: transform 0.1s;
}

/* Ripple Effect */
.ripple-effect {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

.ripple-effect:active::before {
    width: 300px;
    height: 300px;
}

/* Service Cards */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1), 
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 50px rgba(0, 38, 72, 0.2);
}

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

/* Interactive Card */
.interactive-card {
    position: relative;
    cursor: pointer;
}

.interactive-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border-radius: inherit;
}

.interactive-card:hover::after {
    opacity: 1;
}

/* Floating Elements */
.floating-element {
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.floating-element:nth-child(even) {
    animation-delay: -3s;
    animation-direction: reverse;
}

.floating-element:nth-child(3n) {
    animation-delay: -1.5s;
    animation-duration: 8s;
}

/* Pulse Ring Effect */
.pulse-ring {
    position: relative;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(0, 38, 72, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Navigation Enhancements */
.nav-link {
    position: relative;
    overflow: hidden;
}

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

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

/* Testimonial Cards */
.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(0, 38, 72, 0.05) 50%, transparent 60%);
    transform: rotate(-45deg) translateX(-100%);
    transition: transform 0.6s;
}

.testimonial-card:hover::before {
    transform: rotate(-45deg) translateX(100%);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Brand Logos */
.brand-logo {
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
    cursor: pointer;
}

.brand-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Trust Indicators */
.trust-indicator {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.trust-indicator:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Counter Animation */
.counter-stat {
    position: relative;
}

.counter {
    display: inline-block;
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
}

/* Progress Bars */
.progress-bar {
    transition: width 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Team Showcase */
.team-showcase {
    position: relative;
    overflow: hidden;
}

.team-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

/* Booking Form Styles */
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: rgba(0, 38, 72, 0.5);
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(0, 38, 72, 0.1);
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    transition: all var(--transition-normal);
}

/* Typing Animation */
.typing-animation {
    overflow: hidden;
    border-right: 3px solid #f59e0b;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: typing 2s steps(40, end), blink-caret .75s step-end infinite;
}

/* Parallax Background */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* Loading Screen */
#loadingScreen {
    transition: opacity 0.5s ease-in-out;
}

#loadingScreen.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Back to Top Button */
#backToTop {
    transition: all var(--transition-normal);
}

#backToTop.show {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Design Enhancements */
@media (max-width: 1024px) {
    .hero-gradient {
        background-attachment: scroll;
    }
    
    .parallax-bg {
        background-attachment: scroll;
    }
    
    .service-card:hover {
        transform: translateY(-5px) rotateX(2deg);
    }
}

@media (max-width: 768px) {
    :root {
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
        --text-3xl: 1.75rem;
    }
    
    .service-card:hover {
        transform: translateY(-3px);
    }
    
    .floating-element {
        animation-duration: 4s;
    }
    
    .glass,
    .glass-dark {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

@media (max-width: 640px) {
    .hero-gradient::before,
    .hero-gradient::after {
        animation: none;
    }
    
    .floating-element {
        display: none;
    }
    
    .trust-indicator {
        padding: 0.25rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-element {
        animation: none;
    }
    
    .typing-animation {
        animation: none;
        border-right: none;
    }
}

/* Print Styles */
@media print {
    .floating-element,
    #backToTop,
    #loadingScreen,
    .glass::before,
    .service-card::before {
        display: none !important;
    }
    
    .hero-gradient,
    .glass,
    .glass-dark {
        background: white !important;
        color: black !important;
    }
    
    .text-gradient {
        -webkit-text-fill-color: black !important;
        color: black !important;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #002648, #002648);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #002648, #002648);
}

/* Selection Styles */
::selection {
    background: rgba(0, 38, 72, 0.3);
    color: #002648;
}

::-moz-selection {
    background: rgba(0, 38, 72, 0.3);
    color: #002648;
}

/* Focus Styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #002648;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .glass,
    .glass-dark {
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid #000;
    }
    
    .text-gradient {
        -webkit-text-fill-color: #000 !important;
        color: #000 !important;
    }
}

/* Performance Optimizations */
.service-card,
.testimonial-card,
.interactive-card {
    will-change: transform;
}

.floating-element {
    will-change: transform;
    transform: translateZ(0);
}

/* Utility Classes */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

.transition-fast { transition: all var(--transition-fast); }
.transition-normal { transition: all var(--transition-normal); }
.transition-slow { transition: all var(--transition-slow); }
.transition-bounce { transition: all var(--transition-bounce); }

.shadow-glow {
    box-shadow: 0 0 20px rgba(0, 38, 72, 0.3);
}

.shadow-glow-lg {
    box-shadow: 0 0 40px rgba(0, 38, 72, 0.4);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}