/* ===================================
   Health Atlas - Futuristic Design
   Black & Violet Theme
   =================================== */

/* CSS Variables */
:root {
    --bg-dark: #1a0933;
    --bg-purple-dark: #2d1b4e;
    --purple-glow: #a855f7;
    --purple-bright: #c084fc;
    --purple-deep: #7e22ce;
    --white: #ffffff;
    --light-text: #e9d5ff;
    --gray-text: #c4b5fd;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Orbitron', 'Inter', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated hallway background with backlight */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        radial-gradient(ellipse at 50% 50%, #3b2667 0%, #2d1b4e 30%, #1a0933 60%, #0f0520 100%);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(168, 85, 247, 0.08) 50px, rgba(168, 85, 247, 0.08) 100px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(168, 85, 247, 0.08) 50px, rgba(168, 85, 247, 0.08) 100px);
    animation: hallwayMove 20s linear infinite;
}

/* Backlight glow effects */
body::before {
    box-shadow:
        inset 0 0 200px rgba(168, 85, 247, 0.3),
        inset 0 0 400px rgba(168, 85, 247, 0.15);
}

@keyframes hallwayMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(100px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1 {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--purple-deep), var(--purple-bright), var(--purple-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(168, 85, 247, 0.3);
}

h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--purple-bright);
    text-shadow: 0 0 40px rgba(168, 85, 247, 0.2);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

p {
    margin-bottom: 1rem;
    color: var(--gray-text);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 9, 51, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(168, 85, 247, 0.5);
    box-shadow: 0 4px 30px rgba(168, 85, 247, 0.3);
    z-index: 1000;
    padding: 1.5rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.logo-dot {
    width: 24px;
    height: 24px;
    background: var(--purple-glow);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6), 0 0 60px rgba(168, 85, 247, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.6), 0 0 60px rgba(168, 85, 247, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(168, 85, 247, 0.8), 0 0 80px rgba(168, 85, 247, 0.5), 0 0 100px rgba(168, 85, 247, 0.3);
        transform: scale(1.15);
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--light-text);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple-glow);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(168, 85, 247, 0.2) 30%, transparent 70%);
    animation: heroGlow 6s ease-in-out infinite alternate;
    filter: blur(40px);
}

@keyframes heroGlow {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.disclaimer {
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    display: inline-block;
}

.disclaimer p {
    color: var(--purple-bright);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

/* Mission Section */
.mission {
    padding: 120px 0;
    background: rgba(26, 9, 51, 0.6);
    backdrop-filter: blur(10px);
    position: relative;
}

.mission::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.mission .container {
    max-width: 900px;
    text-align: center;
}

.mission-statement {
    font-size: 2rem;
    line-height: 1.6;
    color: var(--light-text);
    font-weight: 400;
    margin-top: 2rem;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: transparent;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.features-notice {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 1.5rem 2rem;
    background: rgba(45, 27, 78, 0.8);
    border: 2px solid rgba(168, 85, 247, 0.5);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.features-notice p {
    color: var(--light-text);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.features-notice strong {
    color: var(--purple-bright);
}

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

.feature-card {
    padding: 3rem;
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 20px;
    background: rgba(45, 27, 78, 0.6);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--purple-glow);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.4), 0 0 100px rgba(168, 85, 247, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.blue-dot {
    background: var(--purple-glow);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.6), 0 0 80px rgba(168, 85, 247, 0.3);
    position: relative;
}

.blue-dot::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    animation: pulse 2s ease-in-out infinite;
}

.ar-icon {
    background: linear-gradient(135deg, var(--purple-deep), var(--purple-glow));
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.6), 0 0 80px rgba(168, 85, 247, 0.3);
}

.feature-card h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--light-text);
    line-height: 1.7;
    font-size: 1.125rem;
}

.feature-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 20px;
    color: var(--purple-bright);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Contact Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    z-index: 2001;
    background: rgba(26, 9, 51, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(168, 85, 247, 0.6);
    border-radius: 30px;
    padding: 4rem 3rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 80px rgba(168, 85, 247, 0.5), 0 0 100px rgba(168, 85, 247, 0.3);
    text-align: center;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--white);
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--purple-glow);
    transform: rotate(90deg);
}

.modal-content h2 {
    margin-bottom: 3rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.contact-link {
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border: 2px solid var(--purple-glow);
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 300px;
    text-align: center;
    background: rgba(45, 27, 78, 0.5);
}

.contact-link:hover {
    background: var(--purple-glow);
    color: var(--white);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.6), 0 0 80px rgba(168, 85, 247, 0.4);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: rgba(26, 9, 51, 0.6);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(168, 85, 247, 0.5);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer .logo {
    margin-bottom: 1rem;
}

.footer p {
    color: var(--light-text);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .mission-statement {
        font-size: 1.5rem;
    }

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

@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.875rem;
    }

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

    .mission-statement {
        font-size: 1.25rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .contact-link {
        min-width: 100%;
        font-size: 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }
}
