/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 2rem;
    color: #667eea;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link.active,
.nav-link:hover {
    color: #667eea;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: #667eea;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.medical-icon {
    font-size: 8rem;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Detection Section */
.detection-section {
    padding: 4rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

.upload-container {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.upload-area {
    border: 3px dashed #ddd;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8f9ff;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #667eea;
    background: #f0f2ff;
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.upload-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.upload-content p {
    color: #666;
    margin-bottom: 1rem;
}

.file-info {
    font-size: 0.9rem;
    color: #999;
}

/* Image Preview */
.image-preview {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.preview-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.preview-container img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
}

.image-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.image-info p {
    color: #666;
}

/* Analysis Controls */
.analysis-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: end;
    max-width: 800px;
    margin: 0 auto;
}

.settings-panel {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.settings-panel h4 {
    margin-bottom: 1.5rem;
    color: #333;
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.setting-group input[type="range"] {
    width: 100%;
    margin-bottom: 0.5rem;
}

.setting-group select {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.analyze-btn {
    height: fit-content;
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
}

.analyze-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Loading Animation */
.loading-container {
    text-align: center;
    padding: 4rem 0;
}

.medical-pulse {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 2rem;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.loading-animation h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.loading-animation p {
    color: #666;
    margin-bottom: 2rem;
}

.progress-bar {
    width: 300px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-weight: 600;
    color: #667eea;
}

/* Results Section */
.results-section {
    padding: 4rem 0;
    background: #f8f9ff;
}

.results-container {
    max-width: 1000px;
    margin: 0 auto;
}

.image-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.image-panel {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.image-panel h4 {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.result-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.results-summary {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.status-indicator.positive {
    color: #e74c3c;
}

.status-indicator.negative {
    color: #27ae60;
}

.confidence-score {
    font-size: 1.5rem;
}

.score-label {
    color: #666;
}

.score-value {
    font-weight: 700;
    color: #667eea;
}

.detection-details {
    margin-bottom: 2rem;
}

.detection-details h4 {
    margin-bottom: 1rem;
    color: #333;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    padding: 1rem;
    background: #f8f9ff;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.detail-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section p {
    line-height: 1.6;
    color: #bdc3c7;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .image-comparison {
        grid-template-columns: 1fr;
    }
    
    .analysis-controls {
        grid-template-columns: 1fr;
    }
    
    .summary-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
}



/* About Section Styles */
.about-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8eaf6 100%);
}

.about-intro {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.intro-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.intro-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-card h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Research Section */
.research-section {
    margin-bottom: 4rem;
}

.research-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.method-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.method-card:hover {
    transform: translateY(-5px);
}

.method-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.method-icon i {
    font-size: 1.5rem;
    color: white;
}

.method-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.method-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.method-card ul {
    list-style: none;
    padding: 0;
}

.method-card li {
    color: #555;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.method-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Dataset Section */
.dataset-section {
    margin-bottom: 4rem;
}

.dataset-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.dataset-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.dataset-info h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.dataset-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.dataset-details {
    display: grid;
    gap: 2rem;
}

.detail-group h5 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.detail-group ul {
    list-style: none;
    padding: 0;
}

.detail-group li {
    color: #555;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.dataset-charts h5 {
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
}

.fracture-types {
    margin-top: 2rem;
}

.type-bars {
    display: grid;
    gap: 0.8rem;
}

.type-bar {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    gap: 1rem;
}

.type-label {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.bar {
    height: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

.type-percent {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
}

/* Technical Section */
.technical-section {
    margin-bottom: 4rem;
}

.technical-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tech-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.tech-card h4 {
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-card h4 i {
    color: #667eea;
}

.tech-details p {
    color: #555;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.performance-metrics {
    display: grid;
    gap: 1rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: #f8f9ff;
    border-radius: 8px;
}

.metric-label {
    color: #555;
    font-weight: 500;
}

.metric-value {
    color: #667eea;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Applications Section */
.applications-section {
    margin-bottom: 4rem;
}

.applications-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.app-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.app-icon i {
    font-size: 2rem;
    color: white;
}

.app-card h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.app-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.app-benefits {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.benefit {
    background: #f0f2ff;
    color: #667eea;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Research Validation */
.research-validation {
    margin-bottom: 4rem;
}

.research-validation h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.validation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.publications {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.publications h4 {
    color: #333;
    margin-bottom: 1.5rem;
}

.publication-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.pub-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.pub-details {
    color: #666;
    font-size: 0.9rem;
}

.clinical-studies {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.clinical-studies h4 {
    color: #333;
    margin-bottom: 1.5rem;
}

.study-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.study-stat {
    text-align: center;
    padding: 1rem;
    background: #f8f9ff;
    border-radius: 10px;
}

.study-stat .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
}

.study-stat .stat-label {
    font-size: 0.9rem;
    color: #555;
}

/* Disclaimer Section */
.disclaimer-section {
    margin-top: 4rem;
}

.disclaimer-box {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 15px;
    padding: 2rem;
}

.disclaimer-box h4 {
    color: #856404;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disclaimer-content p {
    color: #856404;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.disclaimer-points {
    display: grid;
    gap: 1rem;
}

.disclaimer-point {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
}

.disclaimer-point i {
    color: #856404;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.disclaimer-point p {
    margin: 0;
    color: #856404;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-intro {
        grid-template-columns: 1fr;
    }
    
    .intro-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .methodology-grid {
        grid-template-columns: 1fr;
    }
    
    .dataset-overview {
        grid-template-columns: 1fr;
    }
    
    .validation-content {
        grid-template-columns: 1fr;
    }
    
    .study-metrics {
        grid-template-columns: 1fr;
    }
}


