/* ===================================
   JPsaltcleanser - Ocean-Inspired Design
   Уникальный морской дизайн с WOW-эффектами
   =================================== */

/* ===================================
   CSS Variables - Ocean Theme
   =================================== */
:root {
    /* Ocean Color Palette */
    --ocean-deep: #0a192f;
    --ocean-primary: #0ea5e9;
    --ocean-light: #38bdf8;
    --ocean-cyan: #06b6d4;
    --coral-primary: #f97316;
    --coral-light: #fb923c;
    --sand-warm: #fbbf24;
    --sand-light: #fde68a;
    --seafoam: #34d399;
    --pearl-white: #f8fafc;
    --pearl-gray: #e2e8f0;
    
    /* Gradients */
    --gradient-ocean: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #34d399 100%);
    --gradient-sunset: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fbbf24 100%);
    --gradient-wave: linear-gradient(180deg, rgba(14, 165, 233, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    
    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* Effects */
    --shadow-soft: 0 4px 24px rgba(14, 165, 233, 0.12);
    --shadow-medium: 0 8px 32px rgba(14, 165, 233, 0.18);
    --shadow-hard: 0 16px 48px rgba(14, 165, 233, 0.25);
    --glow-ocean: 0 0 30px rgba(14, 165, 233, 0.4);
    --glow-coral: 0 0 30px rgba(249, 115, 22, 0.4);
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--pearl-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===================================
   Container
   =================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===================================
   Animated Background
   =================================== */
.ocean-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
    overflow: hidden;
}

.floating-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6), rgba(14, 165, 233, 0.2));
    backdrop-filter: blur(4px);
    animation: float-up 15s infinite ease-in-out;
}

.floating-bubble:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    bottom: -100px;
    animation-delay: 0s;
    animation-duration: 12s;
}

.floating-bubble:nth-child(2) {
    width: 120px;
    height: 120px;
    left: 30%;
    bottom: -150px;
    animation-delay: 2s;
    animation-duration: 15s;
}

.floating-bubble:nth-child(3) {
    width: 60px;
    height: 60px;
    left: 50%;
    bottom: -80px;
    animation-delay: 4s;
    animation-duration: 10s;
}

.floating-bubble:nth-child(4) {
    width: 100px;
    height: 100px;
    left: 70%;
    bottom: -120px;
    animation-delay: 1s;
    animation-duration: 14s;
}

.floating-bubble:nth-child(5) {
    width: 90px;
    height: 90px;
    left: 85%;
    bottom: -110px;
    animation-delay: 3s;
    animation-duration: 13s;
}

@keyframes float-up {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        transform: translateY(-50vh) translateX(20px) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-110vh) translateX(-20px) scale(0.8);
        opacity: 0;
    }
}

/* Wave Animation */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
    line-height: 0;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
}

.wave-1 {
    animation: wave-animation 25s linear infinite;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,50 Q300,10 600,50 T1200,50 L1200,120 L0,120 Z' fill='rgba(14, 165, 233, 0.1)'/%3E%3C/svg%3E");
    opacity: 0.4;
}

.wave-2 {
    animation: wave-animation 20s linear infinite reverse;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,70 Q300,30 600,70 T1200,70 L1200,120 L0,120 Z' fill='rgba(6, 182, 212, 0.1)'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.wave-3 {
    animation: wave-animation 30s linear infinite;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,90 Q300,50 600,90 T1200,90 L1200,120 L0,120 Z' fill='rgba(52, 211, 153, 0.1)'/%3E%3C/svg%3E");
    opacity: 0.2;
}

@keyframes wave-animation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(248, 250, 252, 0.95);
    box-shadow: var(--shadow-soft);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
}

.logo-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 8px rgba(14, 165, 233, 0.3));
    animation: rotate-slow 20s linear infinite;
}

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

.logo-text {
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--ocean-primary);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    padding: 8px 0;
    font-size: 15px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-ocean);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

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

.nav-cta {
    background: var(--gradient-ocean);
    color: white !important;
    padding: 12px 28px !important;
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-bounce);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-medium), var(--glow-ocean);
}

/* ===================================
   Hero Section - WOW Effect
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    z-index: 2;
    animation: fade-in-up 1s ease-out;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    color: var(--ocean-primary);
    margin-bottom: 32px;
    box-shadow: var(--shadow-soft);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: var(--shadow-soft);
    }
    50% {
        box-shadow: var(--shadow-soft), 0 0 20px rgba(14, 165, 233, 0.3);
    }
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--seafoam);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

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

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 28px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.gradient-text-coral {
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* 3D Visual Hero Section */
.hero-visual {
    flex: 1;
    position: relative;
    z-index: 2;
    animation: fade-in-left 1s ease-out 0.3s both;
}

@keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-3d-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    perspective: 1000px;
}

.hero-card-3d {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-card-3d:hover {
    transform: rotateY(10deg) rotateX(-10deg) scale(1.05);
}

.hero-image-main {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-hard);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.floating-element-1 {
    top: 10%;
    right: -40px;
    width: 120px;
    height: 120px;
    background: var(--gradient-ocean);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.15;
    animation-delay: 0s;
}

.floating-element-2 {
    bottom: 15%;
    left: -60px;
    width: 160px;
    height: 160px;
    background: var(--gradient-sunset);
    border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
    opacity: 0.12;
    animation-delay: 2s;
}

@keyframes float-element {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* Stats Badges on Hero */
.hero-stat-badge {
    position: absolute;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(14, 165, 233, 0.15);
    animation: fade-in-scale 0.6s ease-out both;
}

@keyframes fade-in-scale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-stat-badge.badge-1 {
    top: 20%;
    right: -30px;
    animation-delay: 0.5s;
}

.hero-stat-badge.badge-2 {
    bottom: 25%;
    left: -40px;
    animation-delay: 0.8s;
}

.stat-number {
    font-size: 32px;
    font-weight: 900;
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===================================
   Buttons - Enhanced
   =================================== */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition-bounce);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-primary {
    background: var(--gradient-ocean);
    color: white;
    box-shadow: var(--shadow-soft);
}

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

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: var(--shadow-medium), var(--glow-ocean);
}

.btn-secondary {
    background: var(--gradient-sunset);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: var(--shadow-medium), var(--glow-coral);
}

.btn-outline {
    background: transparent;
    color: var(--ocean-primary);
    border: 2px solid var(--ocean-primary);
}

.btn-outline:hover {
    background: var(--ocean-primary);
    color: white;
    transform: translateY(-3px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    color: var(--ocean-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.btn-primary:hover .btn-icon,
.btn-secondary:hover .btn-icon {
    transform: translateX(5px);
}

/* ===================================
   Interactive Comparison Section
   =================================== */
.comparison-section {
    padding: 120px 0;
    background: white;
    position: relative;
}

.comparison-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-hard);
    max-width: 900px;
    margin: 60px auto 0;
}

.comparison-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transition: clip-path 0.1s;
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    cursor: ew-resize;
    transform: translateX(-50%);
}

.comparison-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--ocean-primary);
}

.comparison-label {
    position: absolute;
    top: 30px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 18px;
}

.comparison-label.label-before {
    left: 30px;
}

.comparison-label.label-after {
    right: 30px;
}

/* ===================================
   Feature Cards - 3D Flip
   =================================== */
.features-section {
    padding: 120px 0;
    background: linear-gradient(180deg, white 0%, #f0f9ff 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card-flip {
    perspective: 1000px;
    height: 400px;
}

.feature-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

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

.feature-card-front,
.feature-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-medium);
}

.feature-card-front {
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(14, 165, 233, 0.1);
}

.feature-card-back {
    background: var(--gradient-ocean);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-icon {
    font-size: 72px;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.3));
}

.feature-card-front h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card-front p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-card-back h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}

.feature-card-back ul {
    list-style: none;
    text-align: left;
}

.feature-card-back li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
}

.feature-card-back li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 900;
    color: var(--sand-warm);
}

/* ===================================
   Timeline - Process Steps
   =================================== */
.timeline-section {
    padding: 120px 0;
    background: white;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--ocean-primary), var(--seafoam));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    flex: 1;
    padding: 32px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    border: 2px solid rgba(14, 165, 233, 0.1);
    transition: var(--transition-smooth);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 60px;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    text-align: left;
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hard);
    border-color: var(--ocean-primary);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    width: 60px;
    height: 60px;
    background: var(--gradient-ocean);
    border-radius: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 24px;
    box-shadow: var(--shadow-medium), var(--glow-ocean);
    z-index: 2;
}

.timeline-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.timeline-content h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(14, 165, 233, 0.1);
    border: 2px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    color: var(--ocean-primary);
    margin-bottom: 20px;
}

.section-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===================================
   Glassmorphism Cards
   =================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-8px);
    box-shadow: var(--shadow-hard);
}

/* ===================================
   Testimonials - Carousel Style
   =================================== */
.testimonials-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-rating {
    font-size: 24px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
    opacity: 0.95;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
}

.author-name {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 4px;
}

.author-location {
    font-size: 14px;
    opacity: 0.8;
}

/* ===================================
   FAQ - Accordion
   =================================== */
.faq-section {
    padding: 120px 0;
    background: white;
}

.faq-container {
    max-width: 900px;
    margin: 60px auto 0;
}

.faq-item {
    margin-bottom: 20px;
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(14, 165, 233, 0.1);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--ocean-primary);
    box-shadow: var(--shadow-soft);
}

.faq-question {
    width: 100%;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    background: transparent;
}

.faq-question:hover {
    color: var(--ocean-primary);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--ocean-primary);
}

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

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

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 0 32px 28px;
}

.faq-answer p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ===================================
   CTA Section - Full Width
   =================================== */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #0a192f 0%, #172a46 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2), transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

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

.cta-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
}

.cta-description {
    font-size: 20px;
    opacity: 0.9;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 48px;
}

/* ===================================
   Contact Form - Modern
   =================================== */
.contact-form-wrapper {
    max-width: 800px;
    margin: 60px auto 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 60px;
    border-radius: var(--radius-xl);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-hard);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-weight: 700;
    font-size: 15px;
    color: white;
}

.required {
    color: var(--coral-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: var(--transition-smooth);
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-checkbox {
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--ocean-primary);
}

.checkbox-label a {
    color: var(--sand-warm);
    text-decoration: underline;
}

.error-message {
    color: var(--coral-primary);
    font-size: 13px;
    display: none;
    margin-top: 4px;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--coral-primary);
}

.form-group.error .error-message {
    display: block;
}

.btn-submit {
    width: 100%;
    margin-top: 20px;
    background: white;
    color: var(--ocean-primary);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.3);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--ocean-deep);
    color: rgba(255, 255, 255, 0.9);
    padding: 80px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-logo .logo-text {
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

.footer-description {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 24px;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a,
.cookie-settings-btn {
    font-size: 15px;
    opacity: 0.8;
    transition: var(--transition-smooth);
    color: white;
    display: inline-block;
}

.footer-links a:hover,
.cookie-settings-btn:hover {
    opacity: 1;
    transform: translateX(6px);
    color: var(--ocean-light);
}

.cookie-settings-btn {
    cursor: pointer;
    text-align: left;
    padding: 0;
    background: none;
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
}

/* ===================================
   Cookie Banner & Modal
   =================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    padding: 28px;
    z-index: 10000;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.cookie-text h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.cookie-text p {
    font-size: 15px;
    color: var(--text-secondary);
}

.cookie-text a {
    color: var(--ocean-primary);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.3s ease;
}

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

.cookie-modal-content {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
    box-shadow: var(--shadow-hard);
}

@keyframes slideDown {
    from {
        transform: translateY(-60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-modal-header {
    padding: 28px;
    border-bottom: 2px solid var(--pearl-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal-header h3 {
    font-size: 24px;
    font-weight: 800;
}

.close-modal {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pearl-gray);
    font-size: 28px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.close-modal:hover {
    background: var(--ocean-primary);
    color: white;
    transform: rotate(90deg);
}

.cookie-modal-body {
    padding: 28px;
}

.cookie-category {
    padding: 24px 0;
    border-bottom: 1px solid var(--pearl-gray);
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    margin-bottom: 10px;
}

.cookie-toggle input[type="checkbox"] {
    position: relative;
    width: 54px;
    height: 28px;
    appearance: none;
    background: #cbd5e1;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cookie-toggle input[type="checkbox"]:checked {
    background: var(--ocean-primary);
}

.cookie-toggle input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input[type="checkbox"]:checked::before {
    left: 29px;
}

.toggle-label {
    font-weight: 700;
    font-size: 16px;
}

.cookie-description {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 70px;
    line-height: 1.7;
}

.cookie-modal-footer {
    padding: 28px;
    border-top: 2px solid var(--pearl-gray);
}

.cookie-modal-footer .btn-primary {
    width: 100%;
}

/* ===================================
   Animations - Scroll Reveal
   =================================== */
[data-aos] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-down"] {
    transform: translateY(-50px);
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
    }
    
    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 80px;
        margin-right: 0;
        text-align: left;
    }
    
    .timeline-dot {
        left: 30px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(248, 250, 252, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hero {
        flex-direction: column;
        padding-top: 120px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .section-title {
        font-size: 38px;
    }
    
    .cta-title {
        font-size: 38px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 40px 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stat-badge.badge-1,
    .hero-stat-badge.badge-2 {
        position: static;
        margin: 16px auto;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-label {
        font-size: 14px;
        padding: 8px 16px;
    }
}
