/* ============================================================
   BIOAUREA - Layout Components
   Navigation, Hero, Sections, Footer
   ============================================================ */

/* ===== Navigation ===== */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #000000;
    border-bottom: 1px solid rgba(0, 228, 122, 0.4);
    box-shadow: 0 2px 15px rgba(0, 200, 100, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    transform: translateY(-2px);
}

.btn-register {
    background: linear-gradient(135deg, #1fa855, #178a45);
    color: #000000;
    padding: 10px 25px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.02em;
    font-size: 0.9em;
    box-shadow: 0 4px 15px rgba(31, 168, 85, 0.25);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 168, 85, 0.4);
    background: linear-gradient(135deg, #24b85e, #1c9a4f);
}

/* Mobile auth button — hidden on desktop, shown in hamburger menu */
.mobile-auth-btn {
    display: none;
}
@media (max-width: 768px) {
    .nav-links a.mobile-auth-btn {
        display: block;
        margin-top: 16px;
        background: linear-gradient(135deg, #1fa855, #178a45);
        color: #000;
        font-weight: 700;
        padding: 14px 32px;
        border-radius: 50px;
        font-size: 1.05em;
        text-align: center;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== Hamburger Menu Button ===== */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10002;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}
.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a4d2e 100%);
    overflow: hidden;
    margin-top: 82px;
    padding-bottom: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(0,255,136,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1100px;
    padding: 20px 20px;
}

.logo-hero {
    width: 420px;
    height: auto;
    margin: 0 auto 36px;
    filter: drop-shadow(0 30px 80px rgba(0,255,136,0.5));
    animation: pulse-glow 4s ease-in-out infinite;
}

.logo-hero img {
    width: 100%;
    height: auto;
}

.hero .subtitle {
    font-size: 1.45em;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.hero .description {
    font-size: 1.05em;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* ===== Section Headers ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5px;
}

.section-title {
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #fff, var(--green-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 0.85em;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.3;
}

/* ===== Stats Section — Compact Stat Strip ===== */
.stats-section {
    padding: 24px 20px;
    background: var(--bg-dark);
}

.stats-section .section-header { display: none; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0 auto;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
}

.stat-card {
    padding: 24px 16px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}
.stat-card:last-child { border-right: none; }

.stat-card.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

.stat-card:hover {
    background: rgba(0, 255, 136, 0.04);
}

.stat-icon {
    width: 28px;
    height: 28px;
    margin: 0 auto 8px;
    stroke: #00cc6a;
    stroke-width: 1.8;
    opacity: 0.7;
}

.stat-number {
    font-size: 1.8em;
    font-weight: 800;
    color: #00e07a;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-label {
    font-size: 0.78em;
    color: #888;
    font-weight: 500;
}

.stat-footnote {
    font-size: 0.65em;
    color: #666;
    margin-top: 4px;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* ===== Features Section — Accordion Expand Cards ===== */
.features-section { padding: 60px 20px 80px; background: var(--bg-dark); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: rgba(255,255,255,0.02);
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    cursor: pointer;
}

.feature-card.animate { animation: fadeInUp 0.6s ease-out forwards; }

.feature-card::before { display: none; }

/* Collapsed state: only icon + title visible */
.feature-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    transition: all 0.25s;
}

.feature-card:hover {
    border-color: rgba(0, 255, 136, 0.2);
    background: rgba(0, 255, 136, 0.03);
    transform: translateY(-2px);
}

.feature-card.expanded {
    border-color: rgba(0, 255, 136, 0.25);
    background: rgba(0, 255, 136, 0.04);
}

.feature-icon {
    width: 32px; height: 32px;
    stroke: #00cc6a; stroke-width: 1.8;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon,
.feature-card.expanded .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    font-size: 0.92em;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.feature-expand-icon {
    width: 18px; height: 18px;
    stroke: #555;
    stroke-width: 2;
    flex-shrink: 0;
    transition: transform 0.3s;
}
.feature-card.expanded .feature-expand-icon {
    transform: rotate(180deg);
    stroke: #00cc6a;
}

/* Expandable description */
.feature-description-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    opacity: 0;
}

.feature-card.expanded .feature-description-wrap {
    max-height: 300px;
    opacity: 1;
}

.feature-description {
    font-size: 0.82em;
    color: #999;
    line-height: 1.6;
    padding: 0 16px 14px;
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 12px;
    margin: 0;
}

.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.15s; }
.feature-card:nth-child(4) { animation-delay: 0.2s; }
.feature-card:nth-child(5) { animation-delay: 0.25s; }
.feature-card:nth-child(6) { animation-delay: 0.3s; }

/* ===== Newsletter ===== */
.newsletter-section { padding: 100px 20px; background: linear-gradient(135deg, var(--green-dark), var(--bg-dark)); text-align: center; }
.newsletter-content { max-width: 800px; margin: 0 auto; }
.newsletter-form { display: flex; gap: 15px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }

.newsletter-input {
    padding: 18px 25px;
    border-radius: 12px;
    border: 2px solid var(--green-primary);
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    font-size: 1em;
    min-width: 300px;
    transition: all 0.3s;
}

.newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(0,255,136,0.3);
    background: rgba(255,255,255,0.08);
}

/* ===== Footer ===== */
.footer { background: #000; padding: 40px 20px; text-align: center; border-top: 1px solid rgba(0, 200, 100, 0.3); }
.footer-links { display: flex; gap: 30px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
.footer-link { color: #00cc6a; text-decoration: none; transition: all 0.3s; }
.footer-link:hover { color: #00e07a; text-decoration: underline; }
