/* Global Styles */
:root {
    --primary-color: #34495e;
    --secondary-color: #3498db;
    --background-color: #f8f9fa;
    --text-color: #333;
    --light-color: #f5f5f5;
    --dark-color: #2c3e50;
    --gray-color: #666;
    --border-color: #eaeaea;
    --border-radius: 10px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Noto Sans KR', 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
    background-image: radial-gradient(circle at -50% -20%, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.05) 30%, transparent 70%);
    background-size: 200% 200%;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
}

.btn:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo a {
    text-decoration: none;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.logo p {
    font-size: 12px;
    margin: 5px 0 0;
    color: #666;
}

header nav ul {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

header nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--secondary-color);
}

header nav ul li a:hover:after,
header nav ul li a.active:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

@media (max-width: 992px) {
    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    header nav.active {
        display: block;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .menu-toggle {
        display: block;
    }
}

/* 헤더 아래 컨텐츠 여백 조정 */
main, section:first-of-type {
    margin-top: 80px;
}

/* Page Header Standardized Style */
.page-header {
    height: 40vh;
    min-height: 300px;
    background-color: var(--dark-color);
    background-image: url('../images/main\ image.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: 80px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.7);
    z-index: -1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 700;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: white;
    margin: 0;
}

/* About Section Styles */
.about-section {
    padding: 100px 0;
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.about-text h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--dark-gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Team Section Styles */
.team-section {
    padding: 100px 0;
    background-color: var(--background-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.team-member {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-image {
    height: 300px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .team-image img {
    transform: scale(1.05);
}

.team-info {
    padding: 25px;
    text-align: center;
}

.team-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-weight: 600;
}

.team-info p {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.team-bio {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Research Area Styles */
.research-area {
    padding: 100px 0;
    background-color: white;
}

.research-item {
    margin-bottom: 80px;
}

.research-item:last-child {
    margin-bottom: 0;
}

.research-item h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}

.research-item h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 80%;
    background-color: var(--secondary-color);
    border-radius: 4px;
}

.research-item p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.research-list {
    margin: 20px 0;
}

.research-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    color: var(--dark-gray);
    font-size: 1.05rem;
    position: relative;
    padding-left: 25px;
}

.research-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Publications Styles */
.publications {
    padding: 100px 0;
    background-color: var(--background-color);
}

.publication-item {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.publication-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.publication-year {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.publication-year:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.publication-list {
    list-style: none;
}

.publication-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.publication-list li:last-child {
    border-bottom: none;
}

.publication-list h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.5;
}

.publication-list p {
    font-size: 0.95rem;
    color: var(--dark-gray);
}

/* News and Events Styles */
.news-events {
    padding: 100px 0;
    background-color: white;
}

.news-item {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-image {
    flex: 0 0 300px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    flex: 1;
    padding: 30px 30px 30px 0;
}

.news-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.news-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.4;
}

.news-content p {
    color: var(--dark-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Contact Styles */
.contact {
    padding: 100px 0;
    background-color: var(--background-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details p {
    margin-bottom: 15px;
    color: var(--dark-gray);
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
}

.contact-details p i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 페이지 스크롤 애니메이션 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 섹션 제목 애니메이션 */
section h2 {
    position: relative;
    overflow: hidden;
}

section h2:after {
    transition: width 1s ease-out;
    width: 0;
}

section.in-view h2:after {
    width: 80px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        flex: 0 0 200px;
    }
    
    .news-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .research-item h3 {
        font-size: 1.5rem;
    }
    
    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* 커스텀 커서 스타일 */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.5);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-active {
    width: 40px;
    height: 40px;
    background-color: rgba(52, 152, 219, 0.3);
}

/* 푸터 스타일 */
footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info h3,
.footer-links h3,
.footer-social h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-info h3::after,
.footer-links h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #ccc;
}

.footer-info p i {
    color: var(--secondary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    font-size: 0.95rem;
    position: relative;
    padding-left: 15px;
    transition: var(--transition);
}

.footer-links ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 20px;
}

.footer-social .social-icons {
    display: flex;
    gap: 15px;
}

.footer-social .social-icons a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social .social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #999;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-info {
        grid-column: span 2;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-info {
        grid-column: span 1;
    }
}

/* Parallax 효과 */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: background-position 0.5s ease;
}

/* iOS Safari 고정 배경 문제 해결 */
@supports (-webkit-overflow-scrolling: touch) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* Professor Section Styles */
.professor-section {
    padding: 80px 0;
    background-color: white;
}

.professor-section .container {
    max-width: 1120px;
    margin: 0 auto;
}

.professor-profile {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 60px;
}

.professor-image {
    flex: 0 0 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.professor-image img {
    width: 100%;
    display: block;
}

.professor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.professor-info h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.professor-info h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.professor-title {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: 500;
}

.professor-contact {
    margin-top: 10px;
}

.professor-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.professor-contact i {
    width: 25px;
    color: var(--secondary-color);
    margin-right: 10px;
}

@media (max-width: 992px) {
    .professor-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .professor-image {
        margin-bottom: 30px;
    }
    
    .professor-info h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .professor-contact p {
        justify-content: center;
    }
}

.info-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 250px;
    transition: all 0.3s ease;
}

.info-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.info-card h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

.info-card li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.info-card li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

.cards-container {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .cards-container {
        flex-direction: column;
    }
    
    .info-card {
        width: 100%;
    }
} 

/* language switcher */
#lang-switcher{position:fixed;top:10px;right:10px;z-index:9999;display:flex;gap:6px;font-family:inherit}
#lang-switcher button{background:#fff;border:1px solid #ddd;border-radius:14px;padding:4px 10px;cursor:pointer;font-size:12px;line-height:1}
#lang-switcher button.active{background:#222;color:#fff;border-color:#222}
#lang-switcher button:focus{outline:2px solid #4c9ffe;outline-offset:1px}
/* hide google bar */
body .goog-te-banner-frame{display:none!important}
body{top:0!important}
#google_translate_element{display:none} 

/* nav alignment fix */
header nav ul{justify-content:flex-start!important;text-align:left;direction:ltr} 

/* force left alignment for header nav (ko/en) */
html[dir="rtl"] header nav, header nav{direction:ltr!important;text-align:left!important}
header nav ul{justify-content:flex-start!important;margin-left:0!important}
header nav ul li{text-align:left!important} 