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

html {
    scroll-behavior: smooth;
    background: #0a0a0a;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Borel', cursive;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 3D Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
}

.btn-3d {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-3d:hover {
    transform: translateY(-8px) translateZ(20px) rotateX(10deg);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.btn-3d:hover .btn-glow {
    opacity: 1;
    animation: glowPulse 2s ease-in-out infinite;
}

.btn::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.6s;
}

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

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.6),
        0 0 0 2px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 12px 30px;
    font-size: 14px;
    backdrop-filter: blur(20px);
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

/* 3D Navigation - Hidden */
.navbar {
    display: none;
}

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

.nav-logo h2 {
    background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
    margin-bottom: 5px;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

.logo-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 2px;
}

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

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(240, 147, 251, 0.2));
    border-radius: 25px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

.nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 3D Hero Section */
.hero {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    position: fixed;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at center, rgba(102, 126, 234, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 20%, rgba(240, 147, 251, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    perspective: 1000px;
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(240, 147, 251, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(120, 219, 255, 0.05) 0%, transparent 40%);
    animation: floatBackground 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

@keyframes floatBackground {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
        opacity: 0.5;
    }
    50% { 
        transform: translate(-20px, -20px) scale(1.1); 
        opacity: 0.8;
    }
}

@keyframes glowPulse {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.05);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 30px;
    text-shadow: 0 0 50px rgba(102, 126, 234, 0.5);
    opacity: 0;
    animation: heroTitleAppear 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, heroTitleFloat 6s ease-in-out 1.5s infinite;
    font-family: 'Borel', cursive;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.1;
}

/* Pen Handwriting Animation Style */
.tagline-container {
    margin-bottom: 40px;
    text-align: center;
}

.tagline-line {
    margin-bottom: 20px;
    overflow: hidden;
}

.tagline-text {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 1px;
    opacity: 0;
    position: relative;
    font-family: 'Borel', cursive;
    animation: handwritingAppear 2s ease-out forwards;
    line-height: 1.2;
}

.tagline-line:nth-child(1) .tagline-text {
    animation-delay: 1.0s;
}

.tagline-line:nth-child(2) .tagline-text {
    animation-delay: 1.8s;
}

/* Pen Handwriting Effect */
.tagline-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #667eea, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: handwritingGlow 3s ease-in-out infinite;
    animation-delay: 3s;
}

/* Handwriting Animation */
@keyframes handwritingAppear {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    20% {
        opacity: 0.3;
        transform: scale(0.95) translateY(5px);
    }
    40% {
        opacity: 0.6;
        transform: scale(0.98) translateY(2px);
    }
    60% {
        opacity: 0.8;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Pen Glow Effect */
@keyframes handwritingGlow {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 0.3;
    }
}

/* Pen Cursor Effect */
.tagline-text::after {
    content: '|';
    position: absolute;
    top: 0;
    left: 0;
    color: #f093fb;
    font-size: 2.2rem;
    font-weight: bold;
    opacity: 0;
    animation: penCursor 2s ease-out forwards;
    text-shadow: 0 0 10px rgba(240, 147, 251, 0.8);
}

.tagline-line:nth-child(1) .tagline-text::after {
    animation-delay: 1.0s;
}

.tagline-line:nth-child(2) .tagline-text::after {
    animation-delay: 1.8s;
}

@keyframes penCursor {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    20% {
        opacity: 1;
        transform: translateX(0);
    }
    80% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* Ink Splash Effect */
.tagline-text {
    position: relative;
}

.ink-splash {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #f093fb, transparent);
    border-radius: 50%;
    opacity: 0;
    animation: inkSplash 1.5s ease-out forwards;
    transform: translate(-50%, -50%);
}

.tagline-line:nth-child(1) .ink-splash {
    animation-delay: 1.2s;
}

.tagline-line:nth-child(2) .ink-splash {
    animation-delay: 2.0s;
}

@keyframes inkSplash {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(3);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(5);
    }
}

/* Apple-style "Hello" Animation Complete */

/* Animation complete */

@keyframes heroTitleAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroTitleFloat {
    0%, 100% { transform: translateY(0px) rotateX(0deg); }
    50% { transform: translateY(-20px) rotateX(5deg); }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 1.8s both;
    line-height: 1.8;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    animation: fadeInUp 1s ease-out 2.2s both;
    opacity: 0;
}

/* Apple-style Startup Completion Indicator */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #f093fb);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    animation: startupPulse 2s ease-out 0.5s forwards;
    z-index: 1;
}

@keyframes startupPulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out 0.7s both;
    perspective: 1000px;
}

.floating-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotateY(-15deg) rotateX(10deg);
    animation: cardFloat 8s ease-in-out infinite;
    transition: all 0.5s ease;
}

.floating-card:hover {
    transform: rotateY(-5deg) rotateX(5deg) scale(1.05);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes cardFloat {
    0%, 100% { 
        transform: rotateY(-15deg) rotateX(10deg) translateY(0px); 
    }
    50% { 
        transform: rotateY(-15deg) rotateX(10deg) translateY(-30px); 
    }
}

.product-preview img {
    width: 350px;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.5s ease;
}

.floating-card:hover .product-preview img {
    transform: scale(1.1) rotateY(-5deg);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s infinite;
}

/* 3D Floating Particles */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(102, 126, 234, 0.6);
    border-radius: 50%;
    animation: particleFloat 8s infinite linear;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 10s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 12s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 8s;
}

.particle:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 6s;
    animation-duration: 15s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(102, 126, 234, 0.8);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-8px); }
}

/* 3D Products Section */
.products {
    padding: 120px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    position: relative;
}

/* Glassmorphism Elements */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.glass:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 0 40px rgba(102, 126, 234, 0.5);
}

.section-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.product-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 15px 35px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

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

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

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

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

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 25px;
}

.product-card:hover {
    transform: translateY(-20px) scale(1.02) rotateX(5deg);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.product-image {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.15) rotateY(-5deg);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transform: translateY(30px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-card:hover .quick-view-btn {
    transform: translateY(0) scale(1);
}

.quick-view-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.product-info {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.product-category {
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-name {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.product-price {
    font-size: 1.5rem;
    color: #f093fb;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(240, 147, 251, 0.5);
}

/* 3D Collections Section */
.collections {
    padding: 120px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
}

.collections::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(120, 119, 198, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 119, 198, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
}

.collection-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.collection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.collection-card:hover {
    transform: translateY(-20px) scale(1.03) rotateY(-5deg);
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.collection-image {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.collection-card:hover .collection-image img {
    transform: scale(1.2) rotateY(-10deg);
}

.collection-content {
    padding: 30px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.collection-content h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

.collection-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* 3D About Section */
.about {
    padding: 120px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    text-shadow: 0 0 40px rgba(102, 126, 234, 0.5);
}

.about-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
    line-height: 1.8;
}

.features {
    display: grid;
    gap: 30px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature i {
    font-size: 28px;
    color: #667eea;
    margin-top: 5px;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.feature h4 {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.feature p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

.about-image {
    position: relative;
    perspective: 1000px;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    transform: rotateY(-10deg) rotateX(5deg);
}

.about-image:hover img {
    transform: rotateY(-5deg) rotateX(2deg) scale(1.05);
}

/* 3D Newsletter Section */
.newsletter {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.newsletter-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.newsletter-content h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.newsletter-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 30px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.newsletter-form input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-form .btn {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    font-weight: 700;
    padding: 18px 35px;
}

.newsletter-form .btn:hover {
    background: white;
    transform: translateY(-5px) scale(1.05);
}

/* 3D Contact Section */
.contact {
    padding: 120px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info {
    display: grid;
    gap: 35px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(15px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-item i {
    font-size: 28px;
    color: #667eea;
    margin-top: 5px;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.contact-item h4 {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1.1rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

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

/* 3D Footer */
.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: white;
    padding: 80px 0 30px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.footer-section h3,
.footer-section h4 {
    background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 15px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 0;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #667eea;
    transform: translateX(10px);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.social-links a {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.social-links a:hover {
    background: linear-gradient(135deg, #764ba2, #f093fb);
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 2;
}

/* 3D Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(20px);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(102, 126, 234, 0.3);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

/* 3D Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
}

.modal-content {
    background: rgba(26, 26, 46, 0.95);
    margin: 5% auto;
    padding: 0;
    border-radius: 30px;
    width: 90%;
    max-width: 700px;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.close {
    color: rgba(255, 255, 255, 0.7);
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    right: 25px;
    top: 20px;
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s ease;
}

.close:hover {
    color: #667eea;
    transform: scale(1.2);
}

.modal-body {
    padding: 50px;
}

/* 3D Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px) rotateY(-10deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-100px) scale(0.8) rotateX(20deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.4s;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        padding: 30px 0;
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .collections-grid {
        grid-template-columns: 1fr;
    }

    .floating-card {
        transform: rotateY(0deg) rotateX(0deg);
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .product-filters {
        flex-direction: column;
        align-items: center;
    }

    .floating-card {
        padding: 20px;
    }

    .product-preview img {
        width: 280px;
        height: 380px;
    }

    .container {
        padding: 0 20px;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 3px solid #ffffff;
    }
    
    .nav-link::after {
        background: #ffffff;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .product-filters,
    .newsletter,
    .footer {
        display: none;
    }
}
