/* Home Page - Coolors-style with Scrolling Palettes */

.home-page {
    background: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: #333;
}

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

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

.nav-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #333;
}

/* Hero Section */
.hero-section {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fafafa;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

/* Animated Title with Individual Letters */
.animated-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 2rem 0;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

.title-word {
    display: inline-block;
    margin-right: 0.3em;
}

.letter {
    display: inline-block;
    transition: color 1.5s ease, transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
}

.letter:hover {
    animation: swing 0.6s ease-in-out;
    color: var(--letter-color, #FF6B6B);
}

@keyframes swing {
    0%, 50%, 100% { transform: rotate(0deg); }
    12.5% { transform: rotate(-15deg); }
    37.5% { transform: rotate(15deg); }
    62.5% { transform: rotate(-15deg); }
    87.5% { transform: rotate(15deg); }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin: 0 0 2.5rem 0;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn-hero-main,
.btn-hero-outline {
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-hero-main {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-hero-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #FF5252 0%, #FF7043 100%);
}

.btn-hero-outline {
    background: white;
    color: #333;
    border: 2px solid #333;
}

.btn-hero-outline:hover {
    background: #333;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Scrolling Palette Carousel */
.palette-carousel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    display: flex;
    overflow: hidden;
}

.palette-strip {
    display: flex;
    animation: scrollPalettes 40s linear infinite;
    will-change: transform;
}

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

.palette-item {
    display: flex;
    flex-shrink: 0;
    width: 400px;
    height: 200px;
    margin-right: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.palette-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.palette-color-bar {
    flex: 1;
    transition: flex 0.3s ease;
}

.palette-item:hover .palette-color-bar:hover {
    flex: 1.5;
}

/* Container */
.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Trending Showcase */
.trending-showcase {
    padding: 4rem 0;
    background: white;
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.showcase-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    margin: 0;
}

.view-all {
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: #333;
}

.palettes-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.palette-preview-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.palette-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.palette-preview-colors {
    display: flex;
    height: 150px;
}

.palette-preview-color {
    flex: 1;
    transition: flex 0.3s ease;
}

.palette-preview-card:hover .palette-preview-color:hover {
    flex: 1.5;
}

.palette-preview-info {
    padding: 1rem;
}

.palette-preview-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #333;
}

.palette-preview-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.palette-preview-tag {
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #666;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: #fafafa;
}

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

.feature-simple {
    text-align: center;
    padding: 2rem;
}

.feature-simple-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-simple h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.feature-simple p {
    color: #666;
    margin: 0;
}

/* Footer */
.simple-footer {
    background: white;
    padding: 2rem 0;
    border-top: 1px solid #e0e0e0;
}

.footer-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #333;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-main,
    .btn-hero-outline {
        width: 100%;
    }

    .palette-carousel {
        height: 150px;
    }

    .palette-item {
        width: 300px;
        height: 150px;
    }

    .showcase-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .palettes-preview {
        grid-template-columns: 1fr;
    }

    .features-simple {
        grid-template-columns: 1fr;
    }

    .footer-simple {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}
