@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --primary: #0f172a;
    /* Navy */
    --accent: #3b82f6;
    /* Blue */
    --accent-light: #60a5fa;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Layout Utils */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.light-bg {
    background-color: var(--bg-light);
}

.dark-bg {
    background-color: var(--primary);
    color: var(--white);
}

.white-text {
    color: var(--white) !important;
}

.white-text p {
    color: #cbd5e1 !important;
}

/* Grid System */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Header */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo-highlight {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700 !important;
}

.nav-cta:hover {
    background: var(--accent-light);
}

/* Hero */
.hero {
    height: 80vh;
    min-height: 500px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    margin-top: 70px;
    /* Nav height */
}

.hero-content {
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    word-break: keep-all;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    font-weight: 400;
    word-break: keep-all;
}

.hero-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform 0.2s;
}

.hero-btn:hover {
    transform: scale(1.05);
    background: var(--accent-light);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    color: var(--accent);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Cards (Instructors & Portfolios) */
.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid #e2e8f0;
}

.card:hover {
    transform: translateY(-10px);
}

/* Instructor Specific */
.instructor-card {
    text-align: center;
}

.profile-img-box {
    width: 100px;
    height: 100px;
    background: #f1f5f9;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-icon {
    font-size: 2.5rem;
    color: var(--accent);
}

.instructor-card h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.position {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.career-list {
    text-align: left;
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
}

.career-list li {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.career-list li::before {
    content: "• ";
    color: var(--accent);
}

/* Portfolio / Mentor Projects Specific */
.mentor-project {
    text-align: left;
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensure uniform height */
}

.mentor-project h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-dark);
}

.project-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    width: fit-content;
}

.tag-security {
    background: #fee2e2;
    color: #ef4444;
}

.tag-cloud {
    background: #dbeafe;
    color: #3b82f6;
}

.tag-ai {
    background: #f3e8ff;
    color: #a855f7;
}

.tag-dev {
    background: #dcfce7;
    color: #22c55e;
}

.tag-infra {
    background: #ffedd5;
    color: #f97316;
}

.project-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
    /* Pushes bottom elements down */
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-stack span {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    color: #94a3b8;
    font-size: 0.85rem;
}

.project-meta span i {
    margin-right: 5px;
}

/* Footer */
footer {
    background: #020617;
    color: #64748b;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Global Responsive (Nav/Hero) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

/* =========================================
   Integrated Vertical Poster Styles
   ========================================= */

/* Removed old poster-container styles */

/* Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 2;
    padding: 33% 10% 60px 10%;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

/* The Poster Frame */
.poster-container {
    margin: auto;
    width: 100%;
    max-width: 900px;
    height: auto;
    position: relative;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

.poster-image {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA Button */
.action-area {
    position: absolute;
    bottom: 5%;
    left: 0;
    width: 100%;
    margin-top: 0;
    text-align: center;
    padding-top: 0;
    z-index: 10;
}

.cta-btn {
    background-color: #4CC9F0;
    /* Bright Blue */
    color: white;
    font-size: clamp(1rem, 5vw, 1.4rem);
    font-weight: 800;
    width: 80%;
    max-width: 300px;
    padding: 16px 0;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(76, 201, 240, 0.3);
    transition: transform 0.2s;
}

.cta-btn:hover {
    transform: scale(1.05);
}

/* Poster Mobile Responsive */
@media (max-width: 600px) {
    .poster-container {
        width: 100%;
        height: auto;
        background-size: 100% 100%;
        border-radius: 0;
        box-shadow: none;
        position: relative;
    }

    .content-wrapper {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        padding: 50% 6% 10% 6%;
    }
}