/**
 * Chemistry Hub - Hero Section Styles
 */

/* =====================================================
   Hero Section
   ===================================================== */
.ch-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--ch-background), hsl(210 40% 96% / 0.3));
    width: 100%;
}

.ch-hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .ch-hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.ch-hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .ch-hero-content {
        text-align: right;
    }
}

.ch-hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: hsl(152 76% 40% / 0.1);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

.ch-hero-badge span {
    color: var(--ch-secondary);
    font-weight: 600;
}

.ch-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--ch-primary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .ch-hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .ch-hero-title {
        font-size: 3.75rem;
    }
}

.ch-hero-description {
    font-size: 1.125rem;
    color: var(--ch-muted-foreground);
    margin-bottom: 2rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .ch-hero-description {
        margin-left: 0;
        margin-right: 0;
        font-size: 1.25rem;
    }
}

.ch-hero-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 10;
    align-items: center;
}

.ch-hero-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ch-hero-buttons svg,
.ch-hero-buttons i {
    width: 1.25rem;
    height: 1.25rem;
}

@media (min-width: 640px) {
    .ch-hero-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
    }
}

@media (min-width: 1024px) {
    .ch-hero-buttons {
        justify-content: flex-start;
    }
}

.ch-hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .ch-hero-stats {
        justify-content: flex-start;
    }
}

.ch-hero-stat {
    text-align: center;
}

.ch-hero-stat-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ch-primary);
}

@media (min-width: 768px) {
    .ch-hero-stat-value {
        font-size: 1.875rem;
    }
}

.ch-hero-stat-value svg {
    color: var(--ch-secondary);
}

.ch-hero-stat-label {
    color: var(--ch-muted-foreground);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* =====================================================
   Molecule Animation Container
   ===================================================== */
.ch-hero-molecule {
    display: none;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
}

@media (min-width: 1024px) {
    .ch-hero-molecule {
        display: flex;
    }
}

.ch-hero-molecule-container {
    position: relative;
    width: 24rem;
    height: 24rem;
}

.ch-hero-molecule-bg {
    position: absolute;
    inset: 0;
    background-color: hsl(152 76% 40% / 0.05);
    border-radius: 9999px;
    animation: ch-pulse 3s ease-in-out infinite;
}

.ch-hero-molecule-inner {
    position: absolute;
    inset: 2rem;
    background-color: hsl(152 76% 40% / 0.1);
    border-radius: 9999px;
}

/* =====================================================
   Floating Molecules
   ===================================================== */
.ch-floating-molecules {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.ch-molecule {
    position: absolute;
    opacity: 0.15;
}

.ch-molecule svg polygon {
    fill: none;
    stroke: var(--ch-green);
    stroke-width: 3;
}

.ch-molecule svg circle {
    fill: var(--ch-green);
}

.ch-molecule svg circle:nth-child(even) {
    fill: var(--ch-navy);
}

/* =====================================================
   Molecule Animation (Hero)
   ===================================================== */
.ch-molecule-animation {
    width: 100%;
    height: 100%;
}

.ch-molecule-animation svg {
    width: 100%;
    height: 100%;
}

.ch-molecule-animation .node {
    fill: var(--ch-green);
    animation: ch-pulse-glow 3s ease-in-out infinite;
}

.ch-molecule-animation .bond {
    stroke: hsl(222 60% 22% / 0.3);
    stroke-width: 2;
}
