/* Custom CSS für KIKUYA Restaurant */

/* CSS Custom Properties */
:root {
    --red: #d42020;
    --red-light: #e63535;
    --blue: #1a3a6b;
    --dark: #0A0A0A;
    --glass-bg: rgba(255,255,255,.04);
    --glass-border: rgba(255,255,255,.1);
}

/* Karo Pattern Background */
.karo-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: 
        linear-gradient(to right, var(--red) 1px, transparent 1px),
        linear-gradient(to bottom, var(--red) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
}

/* Seigaiha Wave Pattern */
.seigaiha-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    background-image: 
        radial-gradient(circle at 50% 0%, transparent 35%, var(--blue) 36%, var(--blue) 40%, transparent 41%),
        radial-gradient(circle at 25% 25%, transparent 35%, var(--blue) 36%, var(--blue) 40%, transparent 41%),
        radial-gradient(circle at 75% 25%, transparent 35%, var(--blue) 36%, var(--blue) 40%, transparent 41%);
    background-size: 80px 40px;
    background-position: 0 0, 40px 20px, 40px 20px;
    pointer-events: none;
    z-index: 2;
}

/* Red Spray Effect */
.red-spray {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(212,32,32,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: redPulse 4s ease-in-out infinite;
}

.red-spray::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(212,32,32,0.2) 0%, transparent 60%);
    border-radius: 50%;
    animation: redPulse 3s ease-in-out infinite reverse;
}

@keyframes redPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.3);
        opacity: 0.8;
    }
}

/* Navigation Glass */
.nav-glass {
    background: rgba(10,10,10,.7);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Section Labels */
.section-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--red);
    margin-bottom: 16px;
    position: relative;
}

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

/* Serif Accent */
.serif-accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--red);
    font-weight: 500;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

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

/* Hover Effects */
.hover-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0,0,0,.3),
        0 0 30px rgba(212,32,32,.2),
        inset 0 1px 0 rgba(255,255,255,.1);
    border-color: rgba(212,32,32,.3);
}

.hover-card:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212,32,32,.05) 0%, transparent 70%);
    pointer-events: none;
    animation: fadeIn 0.4s ease-out;
}

/* Icon Wrapper */
.icon-wrap {
    width: 52px;
    height: 52px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

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

.icon-wrap svg {
    filter: drop-shadow(0 0 8px rgba(212,32,32,.3));
    animation: iconFloat 4s ease-in-out infinite;
}

.hover-card:hover .icon-wrap {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(212,32,32,.3);
    border-color: rgba(212,32,32,.4);
}

.hover-card:hover .icon-wrap svg {
    filter: drop-shadow(0 0 12px rgba(212,32,32,.5));
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--red), #b81c1c, var(--red), var(--red-light));
    background-size: 200% 200%;
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
    animation: btnGradient 4s ease infinite, btnPulse 3s ease-in-out infinite;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.6;
    pointer-events: none;
}

.btn-primary:hover {
    transform: scale(1.06) translateY(-3px);
    box-shadow: 
        0 15px 35px rgba(0,0,0,.4),
        0 0 25px rgba(212,32,32,.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn-secondary:hover {
    transform: scale(1.06) translateY(-3px);
    border-color: rgba(212,32,32,.5);
    box-shadow: 
        0 15px 35px rgba(0,0,0,.3),
        0 0 20px rgba(212,32,32,.3);
}

@keyframes btnGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes btnPulse {
    0%, 100% { 
        box-shadow: 
            0 8px 25px rgba(0,0,0,.3),
            0 0 15px rgba(212,32,32,.2);
    }
    50% { 
        box-shadow: 
            0 8px 25px rgba(0,0,0,.3),
            0 0 25px rgba(212,32,32,.4);
    }
}

/* Form Elements */
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.form-input::placeholder {
    color: rgba(255,255,255,.4);
}

.form-input:focus {
    outline: none;
    border-color: rgba(212,32,32,.5);
    box-shadow: 
        0 0 20px rgba(212,32,32,.2),
        inset 0 1px 0 rgba(255,255,255,.1);
}

/* Section Bubbles */
.section-bubbles {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    pointer-events: none;
}

.section-bubbles::before,
.section-bubbles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(212,32,32,.1);
    animation: bubbleFloat 6s ease-in-out infinite;
}

.section-bubbles::before {
    width: 8px;
    height: 8px;
    top: 40px;
    left: 10px;
    animation-delay: 0s;
}

.section-bubbles::after {
    width: 12px;
    height: 12px;
    top: 20px;
    left: 30px;
    animation-delay: 2s;
}

@keyframes bubbleFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-20px) scale(1.1);
        opacity: 0.6;
    }
}

/* Background SVG */
.bg-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.bg-svg .af1 {
    animation: svgFloat1 8s ease-in-out infinite;
}

.bg-svg .af2 {
    animation: svgFloat2 6s ease-in-out infinite;
}

.bg-svg .af3 {
    animation: svgFloat3 10s ease-in-out infinite;
}

@keyframes svgFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10px, -10px) rotate(120deg); }
    66% { transform: translate(-5px, 5px) rotate(240deg); }
}

@keyframes svgFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5px, -8px) scale(1.1); }
}

@keyframes svgFloat3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-8px, -5px) rotate(90deg); }
    50% { transform: translate(8px, 8px) rotate(180deg); }
    75% { transform: translate(-3px, 10px) rotate(270deg); }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Counter Animation */
.counter {
    transition: all 0.3s ease;
}

/* FAQ Styles */
.faq-item .faq-question {
    transition: all 0.3s ease;
}

.faq-item .faq-question:hover {
    color: var(--red);
}

.faq-item .faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Mobile Menu */
.mobile-menu {
    transition: all 0.3s ease;
    transform: translateY(-100%);
    opacity: 0;
}

.mobile-menu.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .karo-pattern {
        background-size: 40px 40px;
    }
    
    .seigaiha-pattern {
        background-size: 60px 30px;
    }
    
    .section-bubbles {
        display: none;
    }
    
    .icon-wrap {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .red-spray {
        width: 80px;
        height: 80px;
    }
}

/* Sparkle Effects (will be added via JS) */
.sparkle {
    position: absolute;
    pointer-events: none;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    animation: sparkleAnim 1.5s ease-out forwards;
    z-index: 1000;
}

@keyframes sparkleAnim {
    0% {
        transform: translateY(0) scale(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-40px) scale(0.5);
        opacity: 0;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    animation: scrollBounce 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 100;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Selection Styling */
::selection {
    background: rgba(212,32,32,.3);
    color: white;
}

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

::-webkit-scrollbar-track {
    background: rgba(255,255,255,.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--red), var(--red-light));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--red-light), var(--red));
}

/* Print Styles */
@media print {
    .bg-svg,
    .section-bubbles,
    .red-spray,
    .karo-pattern,
    .seigaiha-pattern {
        display: none;
    }
    
    .glass-card {
        background: white !important;
        color: black !important;
        border: 1px solid #ddd !important;
    }
}