:root {
    --space-black: #0a0a0f;
    --space-blue: #0f172a;
    --neon-blue: #06b6d4;
    --neon-purple: #8b5cf6;
    --neon-pink: #ec4899;
    --neon-amber: #f59e0b;
    --neon-green: #10b981;
    --glass-color: rgba(255, 255, 255, 0.1);
    --text-glow: 0 0 15px currentColor;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo 2', 'Montserrat', sans-serif;
    background-color: var(--space-black);
    color: white;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Улучшенный заглавный текст - добавьте эти стили */
.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 10vw, 6rem);
    font-weight: 900;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.1;
    position: relative;
    overflow: hidden;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(100%);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: clamp(1px, 0.5vw, 3px);
    will-change: transform, opacity;
}

.line-1 {
    color: #ffffff;
    font-weight: 300;
    font-size: clamp(2rem, 7vw, 4rem);
}

.line-2 {
    color: #ffffff;
    font-weight: 400;
    font-size: clamp(2.2rem, 8vw, 4.5rem);
}

.line-3 {
    color: #ffffff;
    font-weight: 300;
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    margin-bottom: clamp(1rem, 3vw, 2rem);
}

.title-highlight {
    display: block;
    background: linear-gradient(90deg, 
        var(--neon-blue), 
        var(--neon-purple), 
        var(--neon-pink),
        var(--neon-amber)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 
        0 0 20px rgba(6, 182, 212, 0.5),
        0 0 40px rgba(139, 92, 246, 0.3),
        0 0 60px rgba(236, 72, 153, 0.2);
    font-size: clamp(3rem, 12vw, 8rem);
    opacity: 0;
    transform: scale(0.8) translateY(50px);
    position: relative;
    display: inline-block;
    will-change: transform, opacity, text-shadow;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--neon-blue), 
        var(--neon-purple), 
        var(--neon-pink)
    );
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
}

/* Эффект свечения при наведении */
.hero-title:hover .title-highlight {
    text-shadow: 
        0 0 30px rgba(6, 182, 212, 0.8),
        0 0 60px rgba(139, 92, 246, 0.5),
        0 0 90px rgba(236, 72, 153, 0.3);
    animation: textGlow 2s infinite alternate;
}

@keyframes textGlow {
    0% {
        text-shadow: 
            0 0 20px rgba(6, 182, 212, 0.5),
            0 0 40px rgba(139, 92, 246, 0.3),
            0 0 60px rgba(236, 72, 153, 0.2);
    }
    100% {
        text-shadow: 
            0 0 30px rgba(6, 182, 212, 0.8),
            0 0 60px rgba(139, 92, 246, 0.5),
            0 0 90px rgba(236, 72, 153, 0.3);
    }
}

/* Машинописный текст */
.typewriter-text {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: clamp(1px, 0.5vw, 2px);
    font-family: 'Exo 2', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
  /*  border-right: 3px solid transparent; */
    opacity: 0;
}

/* Улучшенный прелоадер - добавьте эти стили */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--space-black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.preloader-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.loading-text {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 6vw, 3rem);
    letter-spacing: 3px;
    color: white;
    text-align: center;
}

.loading-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: charFadeIn 0.6s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    will-change: transform, opacity;
}

.loading-char:nth-child(1) { 
    animation-delay: 0.1s; 
    color: var(--neon-blue);
}
.loading-char:nth-child(2) { 
    animation-delay: 0.2s; 
    color: var(--neon-purple);
}
.loading-char:nth-child(3) { 
    animation-delay: 0.3s; 
    color: var(--neon-pink);
}
.loading-char:nth-child(4) { 
    animation-delay: 0.4s; 
    color: var(--neon-blue);
}
.loading-char:nth-child(5) { 
    animation-delay: 0.5s; 
    color: var(--neon-purple);
}
.loading-char:nth-child(6) { 
    animation-delay: 0.6s; 
    color: var(--neon-pink);
}
.loading-char:nth-child(8) { 
    animation-delay: 0.8s; 
    color: var(--neon-blue);
}
.loading-char:nth-child(9) { 
    animation-delay: 0.9s; 
    color: var(--neon-purple);
}
.loading-char:nth-child(10) { 
    animation-delay: 1.0s; 
    color: var(--neon-pink);
}
.loading-char:nth-child(11) { 
    animation-delay: 1.1s; 
    color: var(--neon-blue);
}
.loading-char:nth-child(12) { 
    animation-delay: 1.2s; 
    color: var(--neon-purple);
}

.loading-space {
    display: inline-block;
    width: 20px;
}

@keyframes charFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
        text-shadow: 0 0 10px currentColor;
    }
}

/* Фоновые частицы для прелоадера */
.preloader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: preloaderBg 10s infinite alternate;
}

@keyframes preloaderBg {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/*.loading-space {
    display: inline-block;
    width: clamp(8px, 2vw, 15px);
} */

/* Canvas для частиц */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Nebula фон с улучшениями */
.nebula-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.nebula-layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: nebulaFloat 20s ease-in-out infinite;
}

.nebula-1 {
    width: min(800px, 80vw);
    height: min(800px, 80vw);
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, var(--neon-purple), transparent 70%);
    animation-duration: 25s;
}

.nebula-2 {
    width: min(600px, 60vw);
    height: min(600px, 60vw);
    bottom: -150px;
    left: -80px;
    background: radial-gradient(circle, var(--neon-blue), transparent 70%);
    animation-duration: 30s;
    animation-direction: reverse;
}

.nebula-3 {
    width: min(400px, 40vw);
    height: min(400px, 40vw);
    top: 30%;
    left: 20%;
    background: radial-gradient(circle, var(--neon-pink), transparent 70%);
    animation-duration: 20s;
}

/* Основной контейнер */
.main-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
}

/* Hero секция с улучшениями */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem clamp(1rem, 3vw, 2rem);
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: min(1200px, 95vw);
    position: relative;
    z-index: 5;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    animation: titleReveal 1.2s forwards 0.5s;
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
}

.title-highlight {
    display: block;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--text-glow);
    font-size: clamp(3rem, 10vw, 6rem);
    opacity: 0;
    transform: scale(0.8);
    animation: highlightGlow 2s infinite alternate;
}

@keyframes highlightGlow {
    0% {
        text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
    }
    100% {
        text-shadow: 0 0 20px var(--neon-purple), 0 0 40px var(--neon-purple);
    }
}

.hero-subtitle {
    margin-bottom: clamp(2rem, 5vw, 3rem);
    height: clamp(40px, 8vw, 60px);
    overflow: hidden;
}

.typewriter-text {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: clamp(1px, 0.5vw, 2px);
    opacity: 0;
    animation: fadeIn 1s forwards 1.5s;
}

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

.hero-cta {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    justify-content: center;
    margin-bottom: clamp(2rem, 6vw, 4rem);
    flex-wrap: wrap;
}

.magnetic-btn {
    padding: clamp(1rem, 2vw, 1.2rem) clamp(1.5rem, 3vw, 2.5rem);
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border: none;
    border-radius: 50px;
    color: white;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.magnetic-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 10px 40px rgba(6, 182, 212, 0.4),
        0 0 100px rgba(139, 92, 246, 0.3);
}

.btn-orbits {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: orbitPulse 2s infinite;
}

@keyframes orbitPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.orbit-1 { width: 120%; height: 300%; }
.orbit-2 { width: 140%; height: 350%; animation-delay: 0.3s; }
.orbit-3 { width: 160%; height: 400%; animation-delay: 0.6s; }

.hologram-btn {
    padding: clamp(1rem, 2vw, 1.2rem) clamp(1.5rem, 3vw, 2rem);
    background: transparent;
    border: 1px solid var(--neon-pink);
    border-radius: 50px;
    color: var(--neon-pink);
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 2.2s;
}

.hologram-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.2), transparent);
    transition: left 0.6s;
}

.hologram-btn:hover {
    background: rgba(236, 72, 153, 0.1);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
}

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

.scroll-indicator {
    position: absolute;
    bottom: clamp(2rem, 5vw, 3rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    animation: fadeIn 1s forwards 2.5s;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--neon-blue), transparent);
    animation: scrollLine 2s infinite;
}

.scroll-text {
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    letter-spacing: clamp(2px, 0.5vw, 3px);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Orbitron', sans-serif;
}

/* Парящие молекулы */
.floating-molecules {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.molecule {
    position: absolute;
    width: clamp(20px, 5vw, 40px);
    height: clamp(20px, 5vw, 40px);
    border-radius: 50%;
    background: radial-gradient(circle, var(--neon-blue), transparent 70%);
    filter: blur(5px);
    opacity: 0.3;
    animation: moleculeFloat 15s infinite ease-in-out;
}

.molecule:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    background: radial-gradient(circle, var(--neon-blue), transparent 70%);
}

.molecule:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    background: radial-gradient(circle, var(--neon-purple), transparent 70%);
}

.molecule:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
    background: radial-gradient(circle, var(--neon-pink), transparent 70%);
}

.molecule:nth-child(4) {
    top: 40%;
    right: 25%;
    animation-delay: 6s;
    background: radial-gradient(circle, var(--neon-amber), transparent 70%);
}

.molecule:nth-child(5) {
    bottom: 50%;
    left: 30%;
    animation-delay: 8s;
    background: radial-gradient(circle, var(--neon-green), transparent 70%);
}

@keyframes moleculeFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.1); }
    50% { transform: translate(-20px, 30px) scale(0.9); }
    75% { transform: translate(20px, 20px) scale(1.05); }
}

/* Галерея с улучшениями */
.perfume-gallery {
    padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 3vw, 2rem);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 8vw, 6rem);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
    overflow: hidden;
}

.title-part {
    display: block;
    opacity: 0;
    transform: translateY(50px);
}

.section-desc {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: min(600px, 90vw);
    margin: 0 auto;
    line-height: 1.6;
}

/* Карточки с улучшениями */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 90vw), 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    perspective: 2000px;
    margin-bottom: 3rem;
}

.perfume-card {
    width: 100%;
    height: 500px;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.perfume-card:hover {
    transform: translateY(-10px);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.perfume-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-front {
 /*   background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9)); */
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
    transition: transform 0.5s ease;
}

.perfume-card:hover .card-bg {
    transform: scale(1.1);
}

.perfume-bottle {
    position: relative;
    width: 120px;
    height: 200px;
    margin-bottom: 2rem;
    z-index: 2;
    transition: transform 0.5s ease;
}

.perfume-card:hover .perfume-bottle {
    transform: scale(1.05) translateY(-10px);
}

.bottle-glass {
    position: absolute;
    width: 100%;
    height: 85%;
    bottom: 0;
    background: var(--glass-color);
    backdrop-filter: blur(5px);
    border-radius: 10px 10px 30px 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.bottle-liquid {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 70%;
    border-radius: 0 0 30px 30px;
    transition: height 0.5s ease;
}

.perfume-card:hover .bottle-liquid {
    height: 75%;
}

.liquid-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: bubbleFloat 3s infinite ease-in-out;
}

.bottle-cap {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 15px;
    background: #333;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.bottle-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--glow-color, rgba(6, 182, 212, 0.2)), transparent 70%);
    filter: blur(20px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.perfume-card:hover .bottle-glow {
    opacity: 1;
}

.card-title {
    text-align: center;
    z-index: 2;
}

.perfume-name {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.perfume-name span {
    display: block;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--neon-blue);
}

.perfume-year {
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
}

.card-back {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border: 1px solid rgba(6, 182, 212, 0.3);
    transform: rotateY(180deg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.perfume-notes {
    margin-bottom: 2rem;
}

.note-category {
    margin-bottom: 1.5rem;
}

.note-category h4 {
    font-size: 0.9rem;
    color: var(--neon-blue);
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.note-category p {
    font-size: 1.1rem;
    color: white;
}

.perfume-stats {
    margin-bottom: 2rem;
}

.stat {
    margin-bottom: 1rem;
}

.stat-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    border-radius: 3px;
    width: 0;
}

.stat span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.card-btn {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--neon-blue);
    border-radius: 10px;
    color: var(--neon-blue);
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.card-btn:hover {
    background: rgba(6, 182, 212, 0.1);
    padding-right: 1.5rem;
    transform: translateY(-2px);
}

.btn-arrow {
    transition: transform 0.3s;
}

.card-btn:hover .btn-arrow {
    transform: translateX(5px) rotate(90deg);
}

.card-orbits {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    pointer-events: none;
    z-index: -1;
}

.card-orbits .orbit {
    border-color: rgba(6, 182, 212, 0.1);
    animation: orbitRotate 20s linear infinite;
}

.card-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.card-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(139, 92, 246, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border-radius: 20px;
    z-index: 1;
}

.perfume-card:hover .card-hover-effect {
    opacity: 1;
}

/* Навигация галереи с улучшениями */
.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.nav-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.nav-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: var(--transition-fast);
}

.nav-dot:hover::before {
    border-color: var(--neon-blue);
}

.nav-dot.active {
    background: var(--neon-blue);
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--neon-blue);
}

.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-prev,
.gallery-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(6, 182, 212, 0.2);
    transform: scale(1.1);
}

/* Параллакс секция с улучшениями */
.parallax-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(to bottom, transparent, var(--space-blue), var(--space-black));
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    max-width: min(1200px, 95vw);
    padding: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.molecule-diagram {
    position: relative;
    width: min(300px, 80vw);
    height: min(300px, 80vw);
    flex-shrink: 0;
}

.atom-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
}

.nucleus {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--neon-blue), var(--neon-purple));
    border-radius: 50%;
    filter: blur(5px);
    animation: nucleusPulse 2s infinite;
}

.electron {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(2px);
    box-shadow: 0 0 10px var(--neon-blue);
}

.electron-1 { animation: electronOrbit 4s linear infinite; }
.electron-2 { animation: electronOrbit 6s linear infinite reverse; }
.electron-3 { animation: electronOrbit 5s linear infinite; }
.electron-4 { animation: electronOrbit 7s linear infinite reverse; }

.bond {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    top: 50%;
    left: 50%;
    transform-origin: left center;
}

.bond-1 { width: 100px; transform: rotate(0deg); }
.bond-2 { width: 100px; transform: rotate(90deg); }
.bond-3 { width: 100px; transform: rotate(180deg); }
.bond-4 { width: 100px; transform: rotate(270deg); }

.parallax-text {
    max-width: min(500px, 90vw);
}

.parallax-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.parallax-title span {
    display: block;
}

.parallax-title .highlight {
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    animation: textGlow 2s infinite alternate;
}

.parallax-desc {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.parallax-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
    border: none;
    border-radius: 50px;
    color: white;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition-fast);
}

.parallax-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.floating-formulas {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.formula {
    position: absolute;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.3);
    animation: formulaFloat 20s infinite linear;
}

.formula:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.formula:nth-child(2) { top: 60%; right: 15%; animation-delay: 5s; }
.formula:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 10s; }
.formula:nth-child(4) { top: 40%; right: 25%; animation-delay: 15s; }

@keyframes formulaFloat {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Новая секция: селектор ароматов */
.aroma-selector {
    padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 3vw, 2rem);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
    position: relative;
    overflow: hidden;
}

.selector-container {
    max-width: min(800px, 95vw);
    margin: 0 auto;
    background: rgba(10, 10, 15, 0.6);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(6, 182, 212, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.selector-step {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.selector-step.active {
    opacity: 1;
    transform: translateY(0);
}

.selector-step h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--neon-blue);
    text-align: center;
}

.selector-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.option:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--neon-blue);
    transform: translateY(-5px);
}

.option i {
    font-size: 2rem;
    color: var(--neon-blue);
}

.option span {
    font-weight: 600;
    font-size: 1.1rem;
}

.selector-progress {
    margin: 2rem 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    border-radius: 3px;
    width: 33%;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.selector-result {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.result-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--neon-blue);
    text-align: center;
}

/* Футер с улучшениями */
.footer-section {
    position: relative;
    background: var(--space-blue);
    margin-top: -1px;
}

.footer-wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
}

.wave-path {
    fill: var(--space-blue);
}

.footer-content {
    padding: 4rem clamp(1rem, 3vw, 2rem) 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    position: relative;
}

.logo-molecule {
    width: 100%;
    height: 100%;
    position: relative;
}

.logo-atom {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--neon-blue);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(2px);
    animation: logoAtomPulse 2s infinite;
}

@keyframes logoAtomPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

.logo-electron {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    animation: logoOrbit 3s linear infinite;
}

.logo-electron:nth-child(3) {
    animation-delay: 1.5s;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
}

.logo-text span {
    color: var(--neon-blue);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition-fast);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--neon-blue);
    transform: translateY(-5px) scale(1.1);
}

.footer-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border: none;
    border-radius: 50px;
    color: white;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
}

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

.footer-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
}

.footer-btn:hover .btn-pulse {
    width: 200px;
    height: 200px;
}

.footer-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 2rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.footer-subtext {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: min(90%, 800px);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border-radius: 20px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-blue);
    font-size: 1.5rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-content {
    padding: 2rem;
    overflow-y: auto;
    flex-grow: 1;
}

/* Анимации */
@keyframes nebulaFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -20px); }
    50% { transform: translate(-20px, 30px); }
    75% { transform: translate(20px, 20px); }
}

@keyframes scrollLine {
    0%, 100% { height: 60px; opacity: 1; }
    50% { height: 100px; opacity: 0.5; }
}

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

@keyframes orbitRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

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

@keyframes electronOrbit {
    from { transform: translate(-50%, -50%) rotate(0deg) translateX(100px) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg) translateX(100px) rotate(-360deg); }
}

@keyframes logoOrbit {
    from { transform: rotate(0deg) translateX(25px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(25px) rotate(-360deg); }
}

@keyframes textGlow {
    0% { text-shadow: 0 0 10px rgba(236, 72, 153, 0.5); }
    100% { text-shadow: 0 0 20px rgba(245, 158, 11, 0.5); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .parallax-content {
        flex-direction: column;
        text-align: center;
    }
    
    .molecule-diagram {
        width: 200px;
        height: 200px;
    }
    
    .selector-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-container {
        width: 95%;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .selector-options {
        grid-template-columns: 1fr;
    }
    
    .footer-social {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Дополнительные стили для динамического контента */
.modal-perfume {
    color: white;
}

.modal-perfume h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--neon-blue);
}

.modal-desc {
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.modal-stats {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.modal-stat {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-stat:last-child {
    margin-bottom: 0;
}

.modal-bar {
    flex: 1;
    min-width: 200px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.modal-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    border-radius: 4px;
}

.season-badge {
    background: var(--neon-purple);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.modal-notes h5 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.note-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    transition: var(--transition-fast);
}

.note-item:hover {
    background: rgba(6, 182, 212, 0.1);
    transform: translateX(5px);
}

.note-dot {
    width: 10px;
    height: 10px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-blue);
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-green);
    margin: 1rem 0;
    text-align: center;
}

/* Индикатор загрузки для карточек */
.card-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    z-index: 10;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(6, 182, 212, 0.3);
    border-top-color: var(--neon-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Стили для tooltip */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 100;
    white-space: nowrap;
}

.tooltip.active {
    opacity: 1;
    transform: translateY(0);
}

/* Стили для пульсирующих элементов */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Стили для плавного появления */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

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

/* Улучшения для доступности */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Стили для фокуса */
:focus {
    outline: 2px solid var(--neon-blue);
    outline-offset: 2px;
}

/* Стили для выделения */
::selection {
    background: var(--neon-blue);
    color: white;
}

/* Добавьте эти стили в конец файла */

/* Улучшенные анимации для поочередного появления */
.stagger-animation > * {
    opacity: 0;
    transform: translateY(30px);
}

.stagger-animation.animate > * {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Уникальная анимация волны для текста */
.wave-text {
    position: relative;
    overflow: hidden;
}

.wave-text span {
    display: inline-block;
    opacity: 0;
    animation: waveIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes waveIn {
    0% {
        opacity: 0;
        transform: translateY(100%) rotate(10deg);
    }
    50% {
        opacity: 0.5;
        transform: translateY(-10%) rotate(-5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

/* Анимация молекулярной сборки */
.molecular-build {
    position: relative;
}

.molecular-build .atom {
    position: absolute;
    opacity: 0;
    transform: scale(0);
    animation: atomAppear 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes atomAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }
    70% {
        opacity: 1;
        transform: scale(1.2) rotate(-20deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Адаптивные улучшения */
@media (max-width: 1200px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 4rem);
    }
}

@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .perfume-card {
        height: 450px;
    }
    
    .parallax-content {
        flex-direction: column;
        text-align: center;
    }
    
    .molecule-diagram {
        width: 250px;
        height: 250px;
        margin-bottom: 2rem;
    }
    
    .selector-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
}

@media (max-width: 480px) {
    .hero-title .title-highlight {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
    
    .perfume-card {
        height: 400px;
    }
    
    .selector-options {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        width: 95%;
        margin: 1rem;
        padding: 1rem;
    }
    
    .footer-content {
        padding: 2rem 1rem;
    }
}

/* Анимация появления карточек с задержкой */
.perfume-card {
    animation: cardRise 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--card-index, 0) * 0.1s);
    opacity: 0;
    transform: translateY(50px) rotateX(10deg);
}

@keyframes cardRise {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

/* Плавная анимация фона при скролле */
.scroll-bg-animate {
    background-attachment: fixed;
    transition: background-position 0.3s ease-out;
}

/* Анимация плавного увеличения масштаба */
.scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: scale(0.8);
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    70% {
        opacity: 0.7;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Анимация вращения по орбите */
.orbit-animation {
    animation: orbitRotate 20s linear infinite;
}

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

/* Эффект градиентного текста с анимацией */
.gradient-text {
    background: linear-gradient(90deg, 
        var(--neon-blue), 
        var(--neon-purple), 
        var(--neon-pink),
        var(--neon-amber)
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 3s ease-in-out infinite alternate;
}

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

/* Анимация морфинга для фоновых элементов */
.morph-shape {
    animation: morphShape 8s ease-in-out infinite alternate;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

@keyframes morphShape {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* Анимация пульсации для интерактивных элементов */
.pulse-effect {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Эффект стеклянного морфинга */
.glass-morph {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: glassMorph 5s ease-in-out infinite alternate;
}

@keyframes glassMorph {
    0% {
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.05);
    }
    100% {
        backdrop-filter: blur(15px);
        background: rgba(255, 255, 255, 0.08);
    }
}

/* Анимация появления с раскручиванием */
.spin-in {
    animation: spinIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

@keyframes spinIn {
    0% {
        opacity: 0;
        transform: rotate(-180deg) scale(0);
    }
    70% {
        opacity: 1;
        transform: rotate(20deg) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Адаптивная типографика */
.responsive-text {
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: clamp(1.4, 3vw, 1.8);
}

/* Медиа-запросы для высоких экранов */
@media (min-height: 800px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .perfume-card {
        height: 550px;
    }
}

/* Поддержка темной темы браузера */
@media (prefers-color-scheme: dark) {
    :root {
        --space-black: #0a0a0f;
        --space-blue: #0f172a;
    }
}

/* Улучшения для доступности */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .preloader {
        animation: none;
    }
}

/* Стили для состояний загрузки */
.loading-state {
    position: relative;
    overflow: hidden;
}

.loading-state::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
    animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Анимация для hover эффекта карточек */
.perfume-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(139, 92, 246, 0.1),
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
    border-radius: 20px;
}

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

/* Эффект параллакса для мобильных */
@media (hover: none) and (pointer: coarse) {
    .parallax-bg {
        background-attachment: scroll !important;
    }
    
    .magnetic-btn:hover {
        transform: none;
    }
}

/* Оптимизация анимаций для производительности */
.will-change {
    will-change: transform, opacity;
}

.optimize-performance {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Новые стили для улучшенных анимаций */
.text-reveal {
    overflow: hidden;
    position: relative;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--space-black);
    animation: textReveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform: translateX(-100%);
}

@keyframes textReveal {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.molecule-float {
    animation: moleculeFloat 15s ease-in-out infinite;
}

@keyframes moleculeFloat {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg);
    }
    25% { 
        transform: translate(30px, -20px) rotate(90deg);
    }
    50% { 
        transform: translate(-20px, 30px) rotate(180deg);
    }
    75% { 
        transform: translate(20px, 20px) rotate(270deg);
    }
}

.glow-pulse {
    animation: glowPulse 2s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    }
    100% {
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.7);
    }
}

/* Адаптивные сетки */
.adaptive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 2rem;
}

/* Фоновый градиент с анимацией */
.animated-gradient {
    background: linear-gradient(-45deg, 
        var(--space-black),
        var(--space-blue),
        rgba(15, 23, 42, 0.8),
        rgba(10, 10, 15, 0.9)
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Анимация для элементов при скролле */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Стили для мобильной навигации */
.mobile-nav-toggle {
    display: none;
}

.selector-result > h3 {
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        backdrop-filter: blur(10px);
    }
}

/* Анимация для кнопок на мобильных */
@media (max-width: 768px) {
    button:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }

    .hero-subtitle {
        overflow: visible;
    }

    .typewriter-text {
        white-space: wrap;
    }

    .selector-container {
        padding: 1.5rem;
    }

    .selector-result > h3 {
        margin-bottom: 30px;
    } 

    .logo-text {
        font-size: 1.5rem;
    }

    .perfume-gallery {
        padding: 30px;
    }

    .loading-text {
        font-size: 1.5rem !important;
        width: 100%;
        padding: 20px;
    }

    .loading-char {
        display: inline-flex;
        flex-wrap: wrap;
    }

    .modal-bar {
        min-width: 140px;
        width: 100%;
    }

    .card-content {
        min-height: 490px;
    }

    .parallax-section {
        height: 100%;
    }

    .modal-content {
        padding: 1rem;
    }
}

/* Улучшения для touch-устройств */
@media (hover: none) and (pointer: coarse) {
    .perfume-card:hover .card-inner {
        transform: none;
    }
    
    .perfume-card:active .card-inner {
        transform: rotateY(180deg);
    }
}