/* Navigation Styles */
.nav-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: #333;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.nav-menu.active {
    left: 0;
}

.nav-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.nav-header img {
    margin-right: 10px;
}

.nav-header span {
    font-size: 1.2em;
    font-weight: 600;
    flex-grow: 1;
}

.nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.nav-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-links {
    list-style: none;
    padding: 20px 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: white;
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: white;
    font-weight: 600;
}

/* Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Page Content Styles */
.page-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.content-section h3 {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.content-section p {
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

/* About Feature Grid */
.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.about-feature-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.about-feature-card ul {
    list-style: none;
    padding: 0;
}

.about-feature-card li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    color: #555;
}

.about-feature-card li:last-child {
    border-bottom: none;
}

.about-feature-card li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
}

/* Architecture Diagram */
.architecture-diagram {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

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

.arch-layer h4 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.arch-layer p {
    margin: 0;
    color: #d0d0d0;
}

/* Team Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.team-member {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.member-photo {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.member-photo img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.photo-placeholder {
    width: 160px;
    height: 160px;
    background: #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-weight: bold;
    color: #666;
    font-size: 1.2em;
}

.team-member h3 {
    margin-bottom: 5px;
    color: #333;
    font-size: 1.3em;
}

.role {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 10px;
}

.bio {
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.tag {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

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

.advisor {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.affiliation {
    font-style: italic;
    color: #667eea;
    margin-bottom: 10px;
}

/* Partners Logos */
.partners-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 80px;
    margin-top: 30px;
    align-items: center;
    justify-items: center;
    padding: 40px 0;
}

.partner-logo {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 150px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.partner-logo img:hover {
    transform: scale(1.05);
    filter: brightness(0.9);
}

.partner-logo p {
    display: none;
}

/* Collaboration Info */
.collaboration-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
}

.collaboration-info h4 {
    color: #667eea;
    margin-bottom: 15px;
}

.collaboration-info ul {
    list-style: none;
    padding: 0;
}

.collaboration-info li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    color: #555;
}

.collaboration-info li:last-child {
    border-bottom: none;
}

.collaboration-info li:before {
    content: "🔬";
    margin-right: 10px;
}

/* EMOS Introduction Section Styles */
.emos-intro-container {
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 20px 0;
}

.emos-intro-text {
    flex: 1;
    padding-right: 20px;
}

.emos-intro-text p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
}

.emos-intro-image {
    flex: 0 0 auto;
    max-width: 400px;
    width: 100%;
}

.emos-cartoon {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.emos-cartoon:hover {
    transform: scale(1.02);
}

.framework-description {
    margin-top: 30px;
    display: flex;
    gap: 30px;
    align-items: center;
}

.framework-description p {
    flex: 1;
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.framework-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.framework-diagram {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.framework-diagram:hover {
    transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-content {
        padding: 20px;
        margin: 10px;
    }
    
    .about-feature-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .emos-intro-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .emos-intro-text {
        padding-right: 0;
    }
    
    .emos-intro-image {
        max-width: 100%;
    }
    
    .framework-description {
        flex-direction: column;
        gap: 20px;
    }
    
    .framework-image-container {
        max-width: 100%;
    }
    
    .advisor-grid {
        grid-template-columns: 1fr;
    }
    
    .architecture-diagram {
        margin: 15px 0;
    }
}