/* CSS Variables */
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #45B7D1;
    --dark-color: #2C3E50;
    --light-color: #ECF0F1;
    --text-color: #34495E;
    --gradient-1: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-2: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 12px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header Styles */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    text-decoration: none;
}

.logo-svg {
    width: 150px;
    height: 50px;
}

.logo-path {
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    animation: draw 3s ease-in-out infinite alternate;
}

.logo-dot {
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-icon {
    width: 20px;
    height: 20px;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-icon {
    width: 24px;
    height: 24px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 5%;
    background: radial-gradient(ellipse at center, rgba(78, 205, 196, 0.1) 0%, transparent 70%);
}

.main-title {
    font-size: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 3rem;
}

/* Constellation Container */
.constellation-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 600px;
    position: relative;
}

.constellation {
    width: 100%;
    height: 100%;
}

.constellation-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 3s ease forwards;
}

.product-node {
    text-decoration: none;
    cursor: pointer;
}

.node-circle {
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.product-node:hover .node-circle {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.inner-ring {
    animation: rotate 10s linear infinite;
}

.particle {
    animation: twinkle 3s ease-in-out infinite;
}

/* Product Grid */
.featured-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

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

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.product-card a {
    text-decoration: none;
    color: inherit;
}

.svg-preview {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    overflow: hidden;
}

.product-svg {
    width: 100%;
    height: 100%;
}

.product-card h3 {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.price {
    padding: 0 1.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
}

.description {
    padding: 0.5rem 1.5rem 1.5rem;
    color: var(--text-color);
}

/* About Preview Section */
.about-preview {
    position: relative;
    padding: 4rem 5%;
    text-align: center;
    background: white;
    margin-top: 4rem;
}

.svg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    overflow: hidden;
}

.wave-decoration {
    width: 100%;
    height: 100%;
}

.about-preview h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.about-preview p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-color);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

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

/* Product Page Styles */
.product-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.product-visual {
    flex: 1;
    min-width: 300px;
}

.product-info {
    flex: 1;
    min-width: 300px;
}

.product-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.product-price {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.color-options {
    margin: 2rem 0;
}

.color-palette {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-swatch:hover {
    transform: scale(1.2);
    border-color: var(--dark-color);
}

.add-to-cart-btn {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Footer Styles */
.main-footer {
    background: var(--dark-color);
    color: white;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
}

.footer-wave {
    width: 100%;
    height: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--gradient-1);
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.newsletter-form button:hover {
    opacity: 0.9;
}

.send-icon {
    width: 20px;
    height: 20px;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    width: 100px;
    height: 20px;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes draw {
    0% { stroke-dashoffset: 100; }
    100% { stroke-dashoffset: 0; }
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

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

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

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

/* SVG Animation Classes */
.spiral-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawLine 5s ease forwards;
}

.floating-orb {
    animation: float 4s ease-in-out infinite;
}

.petal {
    transform-origin: center;
    animation: pulse 3s ease-in-out infinite;
}

.bloom-center {
    animation: rotate 20s linear infinite;
}

.wave {
    animation: waveMotion 8s ease-in-out infinite;
}

@keyframes waveMotion {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.crystal-facet {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.crystal-facet:nth-child(2) { animation-delay: 0.1s; }
.crystal-facet:nth-child(3) { animation-delay: 0.2s; }
.crystal-facet:nth-child(4) { animation-delay: 0.3s; }
.crystal-facet:nth-child(5) { animation-delay: 0.4s; }
.crystal-facet:nth-child(6) { animation-delay: 0.5s; }
.crystal-facet:nth-child(7) { animation-delay: 0.6s; }
.crystal-facet:nth-child(8) { animation-delay: 0.7s; }

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

.aurora-layer {
    animation: auroraFlow 10s ease-in-out infinite;
}

.aurora-layer:nth-child(2) { animation-delay: 2s; }
.aurora-layer:nth-child(3) { animation-delay: 4s; }
.aurora-layer:nth-child(4) { animation-delay: 6s; }

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

/* Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

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

/* Thank You Page */
.thank-you-container {
    text-align: center;
    padding: 4rem 5%;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.confetti-svg {
    width: 400px;
    height: 400px;
    max-width: 90%;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Loading State */
body.loaded {
    animation: fadeIn 0.5s ease-out;
}

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

/* Button position for ripple */
.cta-button, .add-to-cart-btn {
    position: relative;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .constellation-container {
        height: 400px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-hero {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
}