/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header .subtitle {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 300;
    opacity: 0.95;
}

header .conference {
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    margin-top: 10px;
}

/* Navigation */
nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 20px;
}

nav a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #667eea;
    color: white;
}

/* Main Content */
main {
    background-color: white;
    margin: 40px auto;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
#hero {
    text-align: center;
    padding: 40px 0 60px;
    border-bottom: 2px solid #f0f0f0;
}

.lead {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    margin: 40px 0;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background-color: #667eea;
    color: white;
}

/* Sections */
section {
    margin: 60px 0;
}

section h2 {
    font-size: 2.2rem;
    color: #2d3748;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

section h3 {
    font-size: 1.6rem;
    color: #4a5568;
    margin: 30px 0 20px;
}

section h4 {
    font-size: 1.3rem;
    color: #667eea;
    margin: 20px 0 15px;
}

section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 20px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #667eea;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

/* Module Cards */
.module-card {
    background-color: #f8f9fa;
    padding: 25px;
    border-left: 4px solid #667eea;
    margin: 20px 0;
    border-radius: 5px;
}

.module-card h4 {
    color: #667eea;
    margin-top: 0;
}

.module-card ul {
    margin-left: 20px;
    margin-top: 15px;
}

.module-card li {
    margin-bottom: 10px;
    color: #4a5568;
}

/* Training Strategy */
.training-strategy {
    margin-top: 40px;
}

.phases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.phase {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    text-align: center;
}

.phase-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: white;
    color: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.phase h4 {
    color: white;
    margin-top: 20px;
    margin-bottom: 15px;
}

.phase p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

/* Tables */
.table-container {
    margin: 30px 0;
    overflow-x: auto;
}

.table-container h4 {
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

tbody tr.highlight {
    background-color: #fff3cd;
    font-weight: 600;
}

tbody tr.highlight:hover {
    background-color: #ffe8a1;
}

/* Ablation Study */
.ablation-study {
    margin-top: 40px;
}

/* Image Styles */
.architecture-image,
.comparison-image,
.analysis-image {
    margin: 30px 0;
    text-align: center;
}

.architecture-image img,
.comparison-image img,
.analysis-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.architecture-image img:hover,
.comparison-image img:hover,
.analysis-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.image-caption {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    text-align: center;
}

.visual-comparison {
    margin-top: 40px;
}

.analysis-description {
    margin-top: 30px;
    background-color: #f8f9fa;
    padding: 25px;
    border-left: 4px solid #667eea;
    border-radius: 5px;
}

.analysis-description p {
    margin: 0;
}

/* Contributions List */
.contributions-list {
    margin-left: 25px;
    margin-top: 20px;
}

.contributions-list li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 20px;
}

/* Code Section */
.code-section {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
}

.code-section p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

/* Authors Grid */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.author {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.author:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.author h4 {
    color: #667eea;
    margin-bottom: 10px;
}

.author p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* Acknowledgements */
#acknowledgements p {
    background-color: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #667eea;
    border-radius: 5px;
}

/* Citation */
.citation-box {
    background-color: #2d3748;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
}

.citation-box pre {
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-x: auto;
    margin: 0;
}

/* Footer */
footer {
    background-color: #2d3748;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

footer p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.8);
}

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

    header .subtitle {
        font-size: 1.1rem;
    }

    nav .container {
        flex-direction: column;
        gap: 10px;
    }

    main {
        padding: 20px;
        margin: 20px auto;
    }

    .lead {
        font-size: 1.1rem;
    }

    .buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    section h2 {
        font-size: 1.8rem;
    }

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

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

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

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 8px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: #667eea;
    color: white;
}