@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --primary: #f97316;
    --primary-glow: rgba(249, 115, 22, 0.4);
    --primary-hover: #ea580c;
    --bg-dark: #020617;
    --bg-card: rgba(15, 23, 42, 0.6);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-red: #ef4444;
    --accent-green: #10b981;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
}

h1, h2, h3, h4, .hero-title {
    font-family: 'Outfit', sans-serif;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Outfit';
    color: var(--text-main);
}

.nav-logo i {
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

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

.nav-cta {
    padding: 10px 24px;
    background: var(--primary);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.nav-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(rgba(2, 6, 23, 0.8), rgba(2, 6, 23, 0.95)), url('neural_network_bg_premium_1773399041477.png');
    background-size: cover;
    background-position: center;
    padding-top: var(--nav-height);
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
    color: var(--primary);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--primary);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--primary-glow);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px var(--primary-glow);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-primary-glass {
    background: rgba(249, 115, 22, 0.15);
    color: var(--primary);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.btn-primary-glass:hover {
    background: rgba(249, 115, 22, 0.25);
    border-color: var(--primary);
}

/* Sections General */
section {
    padding: 120px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Methodology Grid */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.method-card {
    background: var(--bg-card);
    padding: 48px 40px;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.method-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
}

.method-icon {
    width: 64px;
    height: 64px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 32px;
}

.method-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.method-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Analysis Container */
.analysis-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 14px 28px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.analysis-container {
    background: var(--bg-card);
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    padding: 60px;
    backdrop-filter: blur(20px);
}

/* Upload Box */
.upload-box {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 80px 40px;
    cursor: pointer;
    transition: 0.4s;
    background: rgba(255, 255, 255, 0.01);
}

.upload-box:hover, .upload-box.dragover {
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.05);
}

.upload-circle {
    width: 100px;
    height: 100px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0 auto 32px;
    transition: 0.4s;
}

.upload-box:hover .upload-circle {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
}

/* Webcam UI */
.webcam-container {
    max-width: 800px;
    margin: 0 auto;
}

.webcam-viewer {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    margin-bottom: 32px;
}

.preview-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.webcam-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: var(--text-muted);
}

.webcam-placeholder i {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.webcam-status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #94a3b8;
    border-radius: 50%;
}

.status-dot.active {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.webcam-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Status Log */
.status-log {
    margin: 32px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Dashboard */
.results-dashboard {
    margin-top: 60px;
    border-top: 1px solid var(--glass-border);
    padding-top: 60px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.result-card {
    background: rgba(15, 23, 42, 0.4);
    padding: 32px;
    border-radius: 28px;
    border: 1px solid var(--glass-border);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.result-card h4 {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.icon-circle.orange { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.icon-circle.red { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.icon-circle.blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.icon-circle.green { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.result-card .value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.confidence-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: var(--primary);
}

/* Dashboard Row 2 */
.dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.insights-card {
    background: rgba(15, 23, 42, 0.4);
    padding: 32px;
    border-radius: 28px;
    border: 1px solid var(--glass-border);
}

.chart-card h4, .insights-card h4 {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.insight-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    margin-bottom: 16px;
}

.insight-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.insight-item h5 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.insight-item p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.insight-alert {
    padding: 16px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 16px;
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-top: 24px;
}

/* Care Locator Wrapper */
.care-wrapper {
    background: var(--bg-card);
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.location-bar {
    padding: 24px 40px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.locator-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    height: 600px;
}

#map {
    height: 100%;
}

.doctor-list {
    background: rgba(15, 23, 42, 0.3);
    padding: 24px;
    overflow-y: auto;
}

/* Doctor Cards */
.doctor-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: 0.3s all ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doctor-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.doctor-type {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
    background: rgba(249, 115, 22, 0.15);
    padding: 4px 10px;
    border-radius: 50px;
    align-self: flex-start;
}

.doctor-card h4 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0px;
}

.doctor-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.doctor-info i {
    color: var(--accent-blue);
    width: 16px;
    text-align: center;
}

.doctor-action {
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.doctor-card:hover .doctor-action {
    gap: 12px;
}

/* History Container */
.history-container {
    background: var(--bg-card);
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    padding: 40px;
}

.history-item {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border);
    transform: translateX(8px);
}

/* Footer */
.main-footer {
    padding: 100px 40px 40px;
    background: #000;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 24px;
}

.footer-tech {
    display: flex;
    gap: 12px;
}

.tech-tag {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Transitions & Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .dashboard-row { grid-template-columns: 1fr; }
    .locator-grid { grid-template-columns: 1fr; height: auto; }
    #map { height: 400px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 3rem; }
    .analysis-container { padding: 30px 20px; }
    .cta-group { flex-direction: column; }
    .btn { width: 100%; }
    .navbar { padding: 0 20px; }
    .nav-container { padding: 0; }
    .section-header h2 { font-size: 2.2rem; }
}

