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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f8fafc;
}

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

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #7c3aed;
    text-decoration: none;
}

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

.nav-links a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: #7c3aed;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #7c3aed;
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #7c3aed 0%, #3730a3 100%);
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    padding: 4rem 0;
}

.section {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Story Section */
.story-section {
    position: relative;
    background-image: url("../assets/images/team/teamphoto2.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 20px;
    margin-bottom: 2rem;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Fallback gradient if image doesn't load */
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(55, 48, 163, 0.15)), 
                url('../assets/images/team/teamphoto2.png') center/cover;
    background-blend-mode: multiply;
}

.story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(85, 82, 136, 0.05) 50%,
        rgba(124, 58, 237, 0.1) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.story-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    color: white;
}

.story-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.story-highlight {
    backdrop-filter: blur(3px);
    background: rgba(49, 86, 141, 0.15);
    padding: 2.5rem;
    border-radius: 20px;
    margin: 2.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.story-highlight h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.story-highlight p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .story-section {
        min-height: 500px;
        background-attachment: scroll;
    }
    
    .story-overlay {
        padding: 2rem;
    }
    
    .story-section-title {
        font-size: 2rem;
    }
    
    .story-content p {
        font-size: 1rem;
    }
    
    .story-highlight {
        padding: 2rem;
        margin: 2rem 0;
    }
    
    .story-highlight h3 {
        font-size: 1.3rem;
    }
    
    .story-highlight p {
        font-size: 1.1rem;
    }
}

/* Animation enhancement */
.story-section.visible .story-container {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.story-section .story-container {
    opacity: 0;
    transform: translateY(30px);
}
/* Team Members - Updated for actual photos */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.member-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-align: center;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-color: #7c3aed;
}

/* Updated photo styles for actual images */
.member-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.2);
    border: 4px solid white;
    background: #f3f4f6;
    position: relative;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.member-card:hover .member-photo img {
    transform: scale(1.1);
}

/* Fallback emoji for missing images */
.member-photo .photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #7c3aed, #3730a3);
    color: white;
}

.member-photo img:not([src=""]) + .photo-placeholder {
    display: none;
}

.member-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.member-role {
    color: #7c3aed;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.member-achievements {
    margin-bottom: 1.5rem;
}

.achievement {
    background: rgba(124, 58, 237, 0.08);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #374151;
    text-align: left;
    border-left: 3px solid #7c3aed;
}

.achievement.highlight {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
    font-weight: 600;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.skill.primary {
    background: #7c3aed;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .section {
        padding: 2rem;
    }

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

    .member-photo {
        width: 120px;
        height: 120px;
    }
}

/* Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

/* University Section */
.university-section {
    position: relative;
    background-image: url("../assets/images/team/hgu_building.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 20px;
    margin: 2rem 0;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* 이미지가 없을 때의 fallback gradient */
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.2), rgba(56, 48, 163, 0.15)), 
                url('../assets/images/team/hgu_building.jpg') center/cover;
    background-blend-mode: multiply;
}

.university-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(30, 58, 138, 0.0) 0%, 
        rgba(55, 48, 163, 0.1) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.university-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    color: white;
}

.university-logo {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.university-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.university-description {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.value-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid #7c3aed;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateX(5px);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.value-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.value-description {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Journey Timeline */

/* Journey Cards - Compact Layout */
.journey-cards {
    margin: 2rem 0;
}

.year-section {
    margin-bottom: 3rem;
}

.year-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.year-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #7c3aed;
    border-radius: 2px;
}

.cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.journey-card {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.journey-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #7c3aed;
}

.card-photo {
    width: 100%;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #f3f4f6;
    margin-bottom: 1rem;
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.journey-card:hover .card-photo img {
    transform: scale(1.05);
}

.photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #9ca3af;
    background: #f3f4f6;
}

.card-photo img:not([src=""]):not([src*="placeholder"]) + .photo-placeholder {
    display: none;
}

.card-content {
    text-align: center;
}

.card-date {
    background: #7c3aed;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.card-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.card-tag {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Special card colors */
.journey-card.launch .card-date {
    background: #10b981;
}

.journey-card.award .card-date {
    background: #f59e0b;
}

.journey-card.global .card-date {
    background: #ec4899;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cards-row {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .journey-card {
        padding: 0.75rem;
    }
    
    .card-photo {
        height: 100px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-description {
        font-size: 0.8rem;
    }
    
    .year-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Image loading enhancement */
.card-photo img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-photo img.loaded {
    opacity: 1;
}

/* Special event colors */
.launch .timeline-date {
    background: #10b981;
}

.award .timeline-date {
    background: #f59e0b;
}

.global .timeline-date {
    background: #ec4899;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    text-align: center;
    padding: 3rem;
    border-radius: 20px;
    margin: 2rem 0;
}

.cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #f59e0b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background: #1f2937;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer-content {
    color: #d1d5db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .section {
        padding: 2rem;
    }

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

    .timeline-item {
        flex-direction: column !important;
        gap: 1rem;
    }

    .timeline-date {
        align-self: flex-start;
    }

    .university-section {
        padding: 3rem 1.5rem;
    }

    .university-title {
        font-size: 1.8rem;
    }
}

/* Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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