:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --spacing: 2rem;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--spacing);
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Sections */
.section {
    padding: var(--spacing) 0;
}

.section h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing);
    font-size: 2rem;
    text-align: center;
}

/* Image Grids */
.image-grid {
    display: grid;
    gap: 2rem;
    margin-top: var(--spacing);
    position: relative;
    z-index: 4;
}

.image-grid {
    display: grid;
    gap: 2rem;
}

.image-grid img {
    width: 100%;
    height: auto;
    display: block;
}

/* Medium-sized centered images */
.medium-image {
    display: flex;
    justify-content: center;
}

.medium-image .research-image {
    max-width: 600px;
    margin: 0 auto;
}

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

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.image-placeholder {
    background-color: var(--light-bg);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing);
}

.team-member {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing) 0;
    text-align: center;
}

/* Motivation Section */
.motivation-content {
    max-width: 900px;
    margin: 0 auto;
}

.motivation-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.motivation-section h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.motivation-section p {
    line-height: 1.8;
    color: var(--text-color);
}

/* Research Section */
.research-overview {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.research-overview h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.research-overview p {
    line-height: 1.8;
    font-size: 1.1rem;
    opacity: 0.95;
}

.research-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.research-component {
    background-color: white;
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.research-component:hover {
    transform: translateY(-5px);
}

.research-component h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.research-component p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

.research-component .image-grid {
    margin-top: 1.5rem;
}

.research-image {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    max-width: 700px;
    margin: 0 auto;
}

.research-image:hover {
    transform: scale(1.02);
}

.research-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.confusion-matrices {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.confusion-matrices p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
}

.classifier-results {
    margin-top: 2rem;
}

.classifier-results h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.classifier-results .image-grid {
    margin-bottom: 3rem;
}

.classifier-results .research-image {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.classifier-results .research-image img {
    width: 100%;
    height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid-2, .grid-3, .research-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}
