/* ============================================
   NEW HERO COMPONENT STYLES
   Hero section with particles, tooth animation, and glass card
   Theme-compatible with light and dark modes
   ============================================ */

/* Spacer to create scroll height */
.scroll-section {
    height: 250vh;
    position: relative;
    background: transparent;
    pointer-events: none;
}

/* Hero background with particles */
.hero {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    z-index: 1;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    background: linear-gradient(135deg, var(--bg) 0%, var(--panel) 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
    top: 10%;
    left: -10%;
    animation: float-blob 20s ease-in-out infinite;
    filter: blur(60px);
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--success) 0%, transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
    bottom: 10%;
    right: -10%;
    animation: float-blob 15s ease-in-out infinite reverse;
    filter: blur(60px);
}

@keyframes float-blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 100px) scale(0.9);
    }
}

/* Dark theme hero background */
:root[data-theme="dark"] .hero,
:root:not([data-theme]) .hero {
    background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.08) 0%, rgba(16, 185, 129, 0.05) 40%, transparent 70%);
}

/* Light theme hero background */
:root[data-theme="light"] .hero {
    background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.12) 0%, rgba(16, 185, 129, 0.08) 40%, transparent 70%);
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: all;
    max-width: 1200px;
    padding: 120px 20px 60px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 100px 15px 40px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 90px 15px 30px;
    }
}

/* Badge - Subtle outline style to not compete with CTA button */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

:root[data-theme="light"] .hero-badge {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease-out;
}

:root[data-theme="light"] .hero-title {
    color: #0f172a;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-highlight {
    background: linear-gradient(135deg, var(--accent), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--paragraph-color);
    max-width: 800px;
    line-height: 1.8;
    margin: 0 auto 40px;
}
    }
    50% {
        background-position: 100% center;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--paragraph-color);
    max-width: 800px;
    line-height: 1.8;
    margin: 0 auto 40px;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    pointer-events: all;
}

@media (max-width: 768px) {
    .hero-cta-group {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-cta-group {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    text-decoration: none;
}

@media (max-width: 768px) {
    .hero-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

.hero-btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--success));
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(6, 182, 212, 0.4);
}

.hero-features {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--muted);
}

.hero-feature-item i {
    color: var(--success);
    font-size: 0.9rem;
}

/* Hero Visual Section */
.hero-visual {
    position: absolute;
    bottom: 50px;
    right: 5%;
    width: 45%;
    max-width: 600px;
    z-index: 3;
    pointer-events: none;
}

.hero-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-analysis-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
}

.analysis-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--accent), var(--success));
    border-radius: 10px;
    color: white;
    font-weight: 600;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.analysis-badge.processing i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.analysis-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(16, 185, 129, 0.9);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
}

.result-item i {
    font-size: 1.1rem;
}

/* Fixed container for the tooth image */
.tooth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

.tooth-image {
    width: 700px;
    height: auto;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Glass card section */
.glass-card-section {
    position: fixed;
    top: 58%;
    right: 5%;
    transform: translateY(-50%);
    width: 55%;
    max-width: 900px;
    pointer-events: all;
    z-index: 15;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease;
}

.glass-card-section.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.info-card {
    padding: 40px;
    border-radius: 25px;
    width: 100%;
    pointer-events: all;
    transition: all 0.3s ease;
}

/* Dark theme glass card */
:root[data-theme="dark"] .info-card,
:root:not([data-theme]) .info-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
}

/* Light theme glass card */
:root[data-theme="light"] .info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
}

.glass-card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.glass-card-text {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.glass-card-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: var(--heading-color);
}

.glass-card-description {
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    line-height: 1.6;
    margin: 0;
}

/* Dark theme description */
:root[data-theme="dark"] .glass-card-description,
:root:not([data-theme]) .glass-card-description {
    color: var(--paragraph-color);
}

/* Light theme description */
:root[data-theme="light"] .glass-card-description {
    color: var(--paragraph-color);
}

.glass-card-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--container-shadow);
}

.glass-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .glass-card-section {
        width: 55%;
        right: 3%;
    }
    
    .glass-card-content {
        gap: 20px;
    }
    
    .glass-card-image {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .tooth-image {
        width: 250px;
    }

    .glass-card-section {
        width: 92%;
        max-width: 500px;
        right: auto;
        top: auto;
        bottom: 5%;
        left: 50%;
        transform: translateX(-50%);
    }

    .info-card {
        padding: 20px;
    }

    .glass-card-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .glass-card-image {
        min-height: 220px;
        order: -1;
    }

    .glass-card-title {
        font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    }

    .glass-card-description {
        font-size: clamp(0.85rem, 2vw, 0.95rem);
    }
}

@media (max-width: 480px) {
    .glass-card-section {
        width: 95%;
        max-width: 350px;
    }

    .info-card {
        padding: 15px;
        border-radius: 16px;
    }

    .glass-card-image {
        min-height: 180px;
    }

    .glass-card-title {
        font-size: 1.3rem;
    }

    .glass-card-description {
        font-size: 0.85rem;
    }
}
