/* SejfPrzygód.pl - Complete Premium Styles */

/* CSS Variables for consistency */
:root {
    --font-display: 'Playfair Display', serif;
    --font-body: 'Crimson Text', serif;
    --font-decorative: 'Cormorant Garamond', serif;
    --font-handwritten: 'Berkshire Swash', cursive;
    --font-casual: 'Amatic SC', cursive;
    
    --color-ancient-50: #faf8f3;
    --color-ancient-100: #f4e4bc;
    --color-ancient-200: #e6d19e;
    --color-ancient-300: #d4b575;
    --color-ancient-400: #c9a227;
    --color-ancient-500: #b8941f;
    --color-ancient-600: #a08118;
    --color-ancient-700: #8a6e15;
    --color-ancient-800: #735b14;
    --color-ancient-900: #5d4912;
    
    --color-mystical-50: #fdf4f4;
    --color-mystical-100: #fbe8e8;
    --color-mystical-200: #f5d5d6;
    --color-mystical-300: #ebb5b8;
    --color-mystical-400: #dd8a8f;
    --color-mystical-500: #cc646b;
    --color-mystical-600: #b34851;
    --color-mystical-700: #963a42;
    --color-mystical-800: #7d3139;
    --color-mystical-900: #722f37;
    
    --color-shadow-50: #f6f5f4;
    --color-shadow-600: #78716c;
    --color-shadow-700: #57534e;
    --color-shadow-800: #44403c;
    --color-shadow-900: #1a1510;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-strong: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    color: var(--color-shadow-900);
}

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

::-webkit-scrollbar-track {
    background: var(--color-ancient-50);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-ancient-400), var(--color-mystical-600));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-ancient-500), var(--color-mystical-700));
}

/* Typography */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-ancient-400), var(--color-mystical-600));
    border-radius: 2px;
}

.hero-title {
    text-shadow: 3px 3px 0px rgba(0,0,0,0.1);
    position: relative;
}

.hero-title::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle at center, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
    z-index: -1;
    animation: pulse-glow 4s ease-in-out infinite;
}

/* Navigation */
#navigation {
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

#navigation.scrolled {
    background: rgba(250, 248, 243, 0.95) !important;
    box-shadow: var(--shadow-soft);
}

.nav-link {
    color: var(--color-shadow-900);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition-smooth);
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-ancient-400);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--color-ancient-400);
}

/* Buttons */
.cta-button {
    position: relative;
    overflow: hidden;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.cta-button::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;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-strong);
}

.secondary-button {
    position: relative;
    font-weight: 600;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Product Cards */
.product-card {
    position: relative;
    transition: var(--transition-smooth);
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    cursor: default;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--color-ancient-400), var(--color-mystical-600), var(--color-ancient-400));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.problem-card {
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    cursor: default;
}

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

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

.problem-card:hover {
    transform: translateY(-8px) rotateY(5deg);
    box-shadow: var(--shadow-strong);
}

/* Floating Elements */
.floating-coin {
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 50%),
                linear-gradient(145deg, var(--color-ancient-400), var(--color-ancient-500));
    box-shadow: 0 4px 8px rgba(0,0,0,0.2),
                inset 0 1px 0 rgba(255,255,255,0.3),
                inset 0 -1px 0 rgba(0,0,0,0.3);
    filter: drop-shadow(0 2px 4px rgba(201, 162, 39, 0.3));
}

/* Testimonial Cards */
.testimonial-card {
    position: relative;
    transition: var(--transition-smooth);
    overflow: hidden;
    cursor: default;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 80px;
    font-family: var(--font-display);
    color: rgba(201, 162, 39, 0.2);
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    transition: var(--transition-smooth);
}

.faq-question {
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: rgba(201, 162, 39, 0.05);
    color: var(--color-ancient-600);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: var(--color-shadow-700);
    line-height: 1.7;
}

.faq-answer.open {
    max-height: 300px;
    padding-bottom: 1.5rem;
}

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

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

/* Cryptex Styles */
.cryptex-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.cryptex-wrapper {
    position: relative;
    z-index: 1;
}

.cryptex-device {
    position: relative;
    z-index: 2;
}

.cryptex-body {
    position: relative;
    z-index: 3;
}

.cryptex-rings {
    position: relative;
    z-index: 4;
}

.cryptex {
    display: flex;
    gap: 8px;
    transform-style: preserve-3d;
}

.cryptex-ring {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

@media (min-width: 768px) {
    .cryptex-ring .ring-container {
        width: 72px !important;
        height: 100px !important;
    }
    .cryptex-ring .letter-display {
        font-size: 1.875rem !important;
    }
    .cryptex-ring .ring-up,
    .cryptex-ring .ring-down {
        width: 36px !important;
        height: 36px !important;
    }
}

.ring-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #8b7355, #6b5b47);
    border: 2px solid #c9a227;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: bold;
    color: #c9a227;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.1),
                inset 0 -2px 4px rgba(0,0,0,0.3),
                0 4px 8px rgba(0,0,0,0.3);
}

.ring-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 8px;
}

.ring-control {
    background: linear-gradient(145deg, #c9a227, #b8941f);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.ring-control:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-shadow-900);
    color: var(--color-ancient-100);
    padding: 1rem 0;
    z-index: 45;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

/* Footer Links */
.footer-link {
    color: var(--color-ancient-200);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--color-ancient-400);
    text-decoration: underline;
}

/* Promotion Timer */
.promotion-timer {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--color-ancient-200);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-ancient-400), var(--color-mystical-600));
    z-index: 51;
    transition: width 0.1s linear;
}

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

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes ring-spin {
    0% { transform: rotateX(0deg); }
    50% { transform: rotateX(180deg); }
    100% { transform: rotateX(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes success-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(201, 162, 39, 0.4); }
    50% { box-shadow: 0 0 40px rgba(201, 162, 39, 0.8); }
}

@keyframes success-spin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes bounce-in {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

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

@keyframes slide-out-left {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}

@keyframes confetti-fall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

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

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

/* Animation classes */
.spinning { animation: ring-spin 0.3s ease-in-out; }
.shake { animation: shake 0.5s ease-in-out; }
.success-glow { animation: success-glow 2s ease-in-out infinite; box-shadow: 0 0 30px rgba(201, 162, 39, 0.6); }
.success-spin { animation: success-spin 1s ease-in-out; }
.animate-bounce-in { animation: bounce-in 0.5s ease-out; }
.animate-fade-out { animation: fade-out 0.3s ease-in forwards; }
.animate-slide-in-left { animation: slide-in-left 0.5s ease-out forwards; }
.animate-slide-out-left { animation: slide-out-left 0.5s ease-in forwards; }
.animate-fade-in { animation: fade-in 0.3s ease-out forwards; }

/* Perspective helper */
.perspective-1000 { perspective: 1000px; }

/* GPU acceleration for animations */
.transform-gpu {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.animate-on-scroll {
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animated {
    transform: translateY(0);
}

/* Animation delays */
.animation-delay-200 { animation-delay: 200ms; }
.animation-delay-400 { animation-delay: 400ms; }
.animation-delay-1000 { animation-delay: 1000ms; }
.animation-delay-1500 { animation-delay: 1500ms; }
.animation-delay-2000 { animation-delay: 2000ms; }
.animation-delay-3000 { animation-delay: 3000ms; }

/* Field validation styles */
.field-error input,
.field-error textarea,
.field-error select {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.field-success input,
.field-success textarea,
.field-success select {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem !important;
    }
    
    .cryptex {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
    }
    
    .cryptex-ring {
        width: 50px;
        height: 100px;
    }
    
    .ring-face {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .cryptex-ring {
        width: 45px;
        height: 90px;
    }
    
    .ring-face {
        font-size: 18px;
    }
}

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

/* Focus states for accessibility */
.focus-visible:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-ancient-400);
    outline-offset: 2px;
}
