:root {
    --primary-color: #0d2c54;
    /* Deep Blue */
    --secondary-color: #00a896;
    /* Teal */
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;
    --white: #ffffff;
    --gray: #6c757d;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.active {
    color: var(--secondary-color) !important;
}

/* Header */
#header {
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo img {
    height: 50px;
    /* Adjust based on logo aspect ratio */
    width: auto;
}

.desktop-nav ul {
    display: flex;
    gap: 30px;
}

.desktop-nav a {
    font-weight: 500;
    font-size: 16px;
    color: var(--primary-color);
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.desktop-nav a:hover {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: 0.3s;
}

.mobile-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
}

.mobile-nav.open {
    transform: translateY(0);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-nav a {
    font-size: 18px;
    font-weight: 500;
}

/* Hero Section */
#hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 44, 84, 0.4);
    /* Dark blue overlay */
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1.5s ease-out;
}

.hero-content h4 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--light-bg);
}

/* About Section */
#about {
    background-image: url('assets/about.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

#about .section-header h2 {
    color: var(--white);
}

#about .section-header .subtitle {
    color: var(--white);
    font-size: 2.5rem;
    /* Doubled size */
    margin-top: 20px;
    font-weight: 300;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay removed as requested */
    display: none;
    z-index: 1;
}

/* Scroll Animation */
/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
    /* Slower animation speed */
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delay */
.about-item:nth-child(2) {
    transition-delay: 0.5s;
    /* Delay for the second item (Leadership) */
}

#about .container {
    position: relative;
    z-index: 2;
}

.about-content {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-item {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--secondary-color);
}

.about-item h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.read-more {
    display: inline-block;
    margin-top: 20px;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Research Section */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.research-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.research-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
}

.research-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Pipeline Section */
.pipeline-list {
    max-width: 900px;
    margin: 0 auto;
}

.pipeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pipeline-info {
    width: 30%;
    padding-right: 20px;
}

.pipeline-info h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.pipeline-info .indication {
    color: var(--gray);
    font-size: 0.9rem;
}

.pipeline-progress {
    width: 70%;
}

.progress-bar-container {
    background-color: #eee;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Partners Section */
.partners-category h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--gray);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.partner-item {
    background: var(--white);
    padding: 20px 40px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid #eee;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 200px;
}

.partner-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.mt-5 {
    margin-top: 50px;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-date {
    display: block;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.news-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.3rem;
    line-height: 1.4;
}

/* Contact Footer */
.bg-dark {
    background-color: var(--dark-bg);
    color: #ccc;
}

.contact-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 2rem;
}

.contact-info address {
    font-style: normal;
    line-height: 1.8;
}

.contact-info a {
    color: var(--secondary-color);
}

.copyright {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #777;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.map-container {
    flex: 1;
    min-width: 300px;
    height: 300px;
    background-color: #333;
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .pipeline-item {
        flex-direction: column;
        text-align: center;
    }

    .pipeline-info {
        width: 100%;
        margin-bottom: 15px;
        padding-right: 0;
    }

    .pipeline-progress {
        width: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subpage Header */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 120px 0 60px;
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Secondary Button */
.btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 500;
    margin-top: 30px;
    transition: background 0.3s;
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* Partners Layout */
.partners-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
}

.partners-list ul {
    list-style: none;
    padding: 0;
}

.partners-list li {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.partners-list.left-list {
    text-align: left;
    min-width: 150px;
}

.partners-list.right-list {
    text-align: left;
    min-width: 150px;
}

.partners-image-center {
    flex: 0 1 500px;
}

.partners-image-center img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .partners-layout {
        flex-direction: column;
    }

    .partners-list.left-list,
    .partners-list.right-list {
        text-align: center;
        width: 100%;
    }
}

/* Leadership Section */
.leadership-profile {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.profile-image {
    flex: 0 0 300px;
}

.profile-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-info {
    flex: 1;
    text-align: left;
}

.profile-info h3 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-info h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.bio-list {
    list-style: none;
    padding: 0;
}

.bio-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
    line-height: 1.6;
    color: #444;
}

.bio-list li::before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

@media (max-width: 768px) {
    .leadership-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }

    .profile-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        margin-bottom: 30px;
    }

    .profile-info {
        text-align: center;
    }
}

/* Team Grid Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 60px auto 0;
}

.team-member {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-member .member-image {
    width: 100%;
    max-width: 300px;
    height: 450px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-member .member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.team-member h3 {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-member h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.team-member .bio-list li {
    text-align: left;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}