/* Landing Page Specific CSS */

/* Hero Section */
.hero {
    padding: 4rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: var(--font-size-5xl);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow:0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Style the X in hero title */
.hero-x-gradient {
    background: #4A0E1E;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

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

.hero-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Animation */
.animation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.5s ease;
}

.hero-visual {
    position: relative;
    width: 300px; /* increased 1.5x */
    height: 300px;
}

/* Textboxes */
.textboxes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 30;
}

.section-textboxes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    will-change: opacity;
    transform: translateZ(0);
}

.section-textboxes.active {
    opacity: 1;
}

.image-textboxes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    will-change: opacity;
    transform: translateZ(0);
}

.section-textboxes.active .image-textboxes.active {
    opacity: 1;
}

.textbox {
    position: absolute;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 0.85rem;
    color: var(--text-primary);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    pointer-events: none;
    transform: translateY(-8px) translateZ(0);
    animation: float 3s infinite ease-in-out;
    z-index: 35;
    will-change: backdrop-filter, opacity, transform;
    backface-visibility: hidden;
}

/* Position textboxes */
.textbox-1 {
    top: 20%;
    left: 55%;
    animation-delay: 0s;
}

.textbox-2 {
    top: 42%;
    right: 40%;
    animation-delay: 0s;
}

.textbox-3 {
    top: 70%;
    left: 35%;
    animation-delay: 0s;
}

.textbox-4 {
    top: 10%;
    right: 45%;
    animation-delay: 0s;
}

/* Static hero visuals */
.hero-visual {
    position: relative;
    width: 300px; /* 1.5x of original 200px */
    height: 300px;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}


/* Features Section */
.features-section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.features-section .container {
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
    will-change: transform, box-shadow;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.35);
}

.stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Different card sizes for visual hierarchy */
.stat-card:nth-child(1) {
    grid-column: span 2;
}

.stat-card:nth-child(2) {
    grid-row: span 2;
}

.stat-card:nth-child(4) {
    grid-column: span 2;
}

/* Product Sections */
.product-section {
    padding: var(--section-padding);
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: var(--transition);
    align-items: center;
    width: 100%;
    max-width: 1000px;
}

.product-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.35);
}

.product-text h3 {
    font-size: var(--font-size-3xl);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.product-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.product-features {
    list-style: none;
    margin: 1.5rem 0 2rem 0;
    padding: 0;
}

.product-features li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
}

.product-features li:before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.beta-tag {
    color: var(--accent);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.product-animation {
    display: flex;
    justify-content: center;
    min-height: 400px;
    position: relative;
}

.product-animation .animation-container {
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Section-specific textbox styles */
/* Hero section specific styles - hide 4th data point and textbox */
.hero .data-point:nth-child(4) {
    display: none;
}

.hero .section-textboxes[data-section="hero"] .textbox-4 {
    display: none;
}

/* Fashion Intelligence section specific styles */
.fashion-intelligence .data-point:nth-child(1) {
    background: #3b82f6; /* Blue */
}

.fashion-intelligence .data-point:nth-child(2) {
    background: #10b981; /* Green */
}

.fashion-intelligence .data-point:nth-child(3) {
    background: #f59e0b; /* Amber */
}

.fashion-intelligence .data-point:nth-child(4) {
    background: #ef4444; /* Red */
}

.fashion-intelligence .textbox.checked::before {
    content: '☑';
    color: #10b981;
}

/* Fashion Sourcer section specific styles - favicons on left */
.fashion-sourcer .textbox {
    display: flex;
    align-items: center;
    padding-left: 40px; /* Make room for favicon */
}

.fashion-sourcer .textbox::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.fashion-sourcer .textbox-1::before {
    background-image: url('assets/images/favicon1.webp');
}

.fashion-sourcer .textbox-2::before {
    background-image: url('assets/images/favicon2.webp');
}

.fashion-sourcer .textbox-3::before {
    background-image: url('assets/images/favicon3.webp');
}

.fashion-sourcer .textbox-4::before {
    background-image: url('assets/images/favicon4.webp');
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 0 4rem;
        min-height: 100vh;
    }

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

    .hero-animation {
        order: 1;
    }

    .hero-text {
        order: 2;
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-actions {
        justify-content: center;
    }

    .product-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        text-align: center;
    }

    .product-actions {
        justify-content: center;
    }

    .product-features {
        text-align: left;
        max-width: 300px;
        margin: 1.5rem auto 2rem auto;
    }

    .product-animation {
        min-height: 250px;
        order: -1;
    }

    .product-animation .animation-container {
        height: 250px;
    }

    .features-section {
        padding: var(--section-padding-mobile);
        min-height: auto;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 100%;
    }

    .stat-card {
        padding: 1.5rem 1rem;
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .hero-visual {
        width: 220px; /* scale up from original mobile size proportionally */
        height: 220px;
    }

    .textbox {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }

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

    .product-section {
        padding: 1.5rem 0;
        min-height: auto;
    }

    .product-content {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .product-animation {
        min-height: 200px;
    }

    .product-animation .animation-container {
        height: 200px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .hero-visual {
        width: 180px; /* scale up from original smallest size proportionally */
        height: 180px;
    }

    .textbox {
        font-size: 0.65rem;
        padding: 5px 8px;
    }
}