/* ============================================
   Polasense Fragrance Studio - Custom Styles
   ============================================ */

/* CSS Custom Properties (Brand Colors) */
:root {
    /* Brand Colors - Indigo, Red, White, Black */
    --color-indigo: #4B0082;
    --color-indigo-light: #6A0DAD;
    --color-indigo-dark: #2E0854;
    --color-red: #DC143C;
    --color-red-light: #FF6B6B;
    --color-red-dark: #B91C1C;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray: #1F2937;
    --color-gray-light: #6B7280;

    /* Grays */
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-700: #374151;
    --color-gray-900: #111827;

    /* Spacing */
    --spacing-section: 5rem;

    /* Luxury Shadows */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-luxury: 0 20px 60px -15px rgba(75, 0, 130, 0.3);
    --shadow-luxury-hover: 0 30px 80px -20px rgba(75, 0, 130, 0.5);

    /* Premium Gradients */
    --gradient-indigo: linear-gradient(135deg, var(--color-indigo-light) 0%, var(--color-indigo) 50%, var(--color-indigo-dark) 100%);
    --gradient-red: linear-gradient(135deg, var(--color-red-light) 0%, var(--color-red) 50%, var(--color-red-dark) 100%);
}

/* ============================================
   Global Styles
   ============================================ */

* {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ============================================
   Header Styles
   ============================================ */

#header {
    transition: all 0.3s ease;
}

#header.scrolled {
    box-shadow: var(--shadow-medium);
}

/* Navigation Links */
.nav-link {
    position: relative;
    padding-bottom: 0.25rem;
}

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

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

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    background-image: linear-gradient(135deg, var(--color-beige) 0%, var(--color-cream) 50%, #ffffff 100%);
    position: relative;
}

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

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-delay-1 {
    animation: fadeIn 1s ease-out 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.4s forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

/* ============================================
   Fade In On Scroll (Intersection Observer)
   ============================================ */

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Typography Enhancements
   ============================================ */

h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: initial;
    color: var(--color-indigo);
}

h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-indigo);
}

p {
    line-height: 1.75;
}

/* ============================================
   Luxury Button Styles
   ============================================ */

.btn {
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

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

.btn:active {
    transform: translateY(0);
}

/* Luxury Red Button Effect */
.btn-red {
    background: var(--gradient-red);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-red::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

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

/* ============================================
   Luxury Card Styles
   ============================================ */

.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-indigo);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    z-index: -1;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-luxury-hover);
}

.card:hover::before {
    opacity: 0.05;
}

/* Premium Card Borders */
.card-luxury {
    border: 1px solid rgba(75, 0, 130, 0.2);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent);
    backdrop-filter: blur(10px);
}

/* ============================================
   Utility Classes
   ============================================ */

/* Container max-widths */
.container-narrow {
    max-width: 768px;
}

.container-medium {
    max-width: 1024px;
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--color-indigo) 0%, var(--color-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative divider */
.divider-decorative {
    width: 60px;
    height: 4px;
    background: var(--gradient-red);
    margin: 2rem auto;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
}

/* Luxury Text Shine Effect */
@keyframes textShine {
    0% {
        background-position: -500%;
    }
    100% {
        background-position: 500%;
    }
}

.text-shine {
    background: linear-gradient(90deg,
        var(--color-red-light) 0%,
        var(--color-red) 25%,
        var(--color-indigo) 50%,
        var(--color-red) 75%,
        var(--color-red-light) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s linear infinite;
}

/* Premium Border Glow */
.border-glow {
    position: relative;
    border: 1px solid rgba(75, 0, 130, 0.3);
}

.border-glow::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: var(--gradient-indigo);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.border-glow:hover::before {
    opacity: 0.5;
}

/* ============================================
   Responsive Adjustments & Mobile Optimization
   ============================================ */

@media (max-width: 768px) {
    :root {
        --spacing-section: 3rem;
    }

    h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.875rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Larger touch targets for mobile */
    .btn {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
    }

    .nav-link, .mobile-nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Better spacing on mobile */
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    /* Improve card readability */
    .card {
        padding: 1.25rem;
    }

    /* FAQ touch targets */
    .faq-question {
        min-height: 60px;
    }

    /* Form inputs */
    input, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Mobile landscape optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
    }
}

/* Tablet specific */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ============================================
   Accessibility Enhancements
   ============================================ */

/* Focus styles */
*:focus {
    outline: 2px solid var(--color-indigo);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-indigo: #6A0DAD;
        --color-red: #FF0000;
    }
}

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

/* ============================================
   Micro-interactions & Parallax Effects
   ============================================ */

/* Parallax scroll for hero background elements */
.parallax-slow {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Premium product card hover effects */
.product-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-indigo);
    opacity: 0;
    z-index: -1;
    border-radius: inherit;
    transition: opacity 0.4s ease;
}

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

.product-card:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 0 30px 90px -25px rgba(75, 0, 130, 0.6);
}

.product-card img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover img {
    transform: scale(1.1) rotate(2deg);
}

/* 3 Ścieżki cards - staggered reveal on hover */
.path-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.path-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.1) 0%, rgba(46, 8, 84, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

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

.path-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-red);
}

.path-card .path-icon {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.path-card:hover .path-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Button ripple effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: scale(0);
    pointer-events: none;
}

.btn-ripple:active::after {
    animation: ripple 0.6s ease-out;
}

/* Magnetic hover effect for CTA buttons */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth scale on hover for images */
.scale-hover {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Text reveal animation */
@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-reveal {
    animation: textReveal 0.8s ease-out forwards;
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

/* Pulse glow effect */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(75, 0, 130, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(75, 0, 130, 0.6);
    }
}

.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Gradient border animation */
@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-border {
    position: relative;
    background: linear-gradient(90deg,
        var(--color-indigo-light),
        var(--color-indigo),
        var(--color-red),
        var(--color-indigo),
        var(--color-indigo-light)
    );
    background-size: 300% 300%;
    animation: gradientBorder 6s ease infinite;
    padding: 2px;
    border-radius: 0.5rem;
}

.gradient-border-content {
    background: white;
    border-radius: calc(0.5rem - 2px);
}

/* Stagger animation delays for list items */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ============================================
   Print Styles
   ============================================ */

@media print {
    header, footer, .no-print {
        display: none;
    }

    body {
        font-size: 12pt;
        color: black;
        background: white;
    }
}
