:root {
    --primary-color: #00e5ff;
    --primary-glow: rgba(0, 229, 255, 0.5);
    --secondary-color: #0077ff;
    --bg-dark: #0a0e17;
    --bg-darker: #05070a;
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --glass-bg: rgba(16, 24, 39, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 20px 0;
}

#navbar.scrolled {
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

/* Desktop Fallbacks for Mobile Menu Elements */
.nav-icon,
.nav-subtitle,
.nav-arrow {
    display: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-glow);
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(5, 7, 10, 0.9) 0%, rgba(10, 14, 23, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-text {
    max-width: 1050px;
}

.hero h1 {
    font-size: 4.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.5);
}

/* Sections */
.section {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.8rem;
}

.section-desc {
    color: var(--text-muted);
    margin-top: 15px;
    font-size: 1.1rem;
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
}

/* About */
.about-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.icon-large {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-shadow: 0 0 20px var(--primary-glow);
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-main);
}

.about-card p:not(.lead) {
    color: var(--text-muted);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: left;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Services */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    display: flex;
    flex-direction: column;
}

.service-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-content p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

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

.service-list li {
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.service-list li i {
    color: var(--primary-color);
    margin-top: 5px;
    font-size: 0.8rem;
}

/* History Grid */
.history-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.history-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    cursor: default;
}

.history-tag:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.15);
}

/* Clients */
.clients-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.client-logo {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff; /* White background for logos */
    border-radius: 12px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.2);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.scale-up-300 {
    transform: scale(3);
}

.scale-down-20 {
    transform: scale(0.8);
}

/* Venture & Collaboration */
.venture-philosophy {
    display: flex;
    align-items: flex-start;
    gap: 36px;
    padding: 40px 44px;
    margin-bottom: 32px;
    border-left: 4px solid #ff9800;
}

.venture-icon {
    font-size: 2.6rem;
    color: #ff9800;
    text-shadow: 0 0 24px rgba(255, 152, 0, 0.45);
    flex-shrink: 0;
    margin-top: 4px;
}

.venture-text h3 {
    font-size: 0.8rem;
    color: #ff9800;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.venture-lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.85;
    margin-bottom: 12px;
}

.venture-body {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

.venture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.venture-card {
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 아이콘 + 제목 가로 정렬 헤더 */
.venture-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--glass-border);
}

.venture-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    text-shadow: 0 0 12px var(--primary-glow);
    flex-shrink: 0;
}

.venture-card h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.3;
}

.venture-card > p {
    color: var(--text-muted);
    line-height: 1.85;
    font-size: 0.93rem;
    margin-bottom: 10px;
}

.venture-card > p:last-of-type {
    margin-bottom: 16px;
}

.venture-highlight {
    color: var(--text-main);
    background: rgba(0, 229, 255, 0.06);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    font-size: 0.92rem;
    line-height: 1.85;
    margin-top: auto;
}

/* Mentor Timeline */
.mentor-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
}

.mentor-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
}

.mentor-item:last-child {
    border-bottom: none;
}

.mentor-year {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #000;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.mentor-content strong {
    color: var(--text-main);
    font-size: 0.93rem;
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.mentor-content p {
    margin: 0 !important;
    font-size: 0.87rem !important;
    color: var(--text-muted);
    line-height: 1.7;
}

.mentor-note {
    font-size: 0.87rem !important;
    color: rgba(160, 174, 192, 0.65) !important;
    font-style: italic;
    padding-top: 4px;
    line-height: 1.7;
}

.mentor-note .fa-quote-left {
    color: var(--primary-color);
    margin-right: 6px;
    font-size: 0.78rem;
}

/* Footer */
footer {
    background-color: var(--bg-darker);
    padding: 50px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo i {
    color: var(--primary-color);
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(8, 12, 20, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid var(--glass-border);
        gap: 14px;
        padding: 80px 24px;
    }

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

    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.16s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.22s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.28s; }

    .nav-links a {
        display: flex !important;
        align-items: center;
        width: 100%;
        padding: 13px 18px !important;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 14px;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .nav-links a:active {
        background: rgba(0, 229, 255, 0.08);
        border-color: rgba(0, 229, 255, 0.25);
        transform: scale(0.98);
    }

    .nav-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(0, 229, 255, 0.06);
        border: 1px solid rgba(0, 229, 255, 0.15);
        border-radius: 10px;
        color: var(--primary-color);
        font-size: 16px;
        margin-right: 14px;
        flex-shrink: 0;
        text-shadow: 0 0 10px var(--primary-glow);
    }

    .nav-text-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        flex-grow: 1;
    }

    .nav-title {
        color: var(--text-main);
        font-weight: 600;
    }

    .nav-subtitle {
        display: block !important;
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 500;
        margin-top: 2px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .nav-arrow {
        display: block !important;
        color: rgba(255, 255, 255, 0.2);
        font-size: 13px;
        margin-left: 10px;
    }

    .nav-links a::after {
        display: none !important;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 26px !important;
        white-space: normal !important;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.8rem !important;
    }

    .clients-container {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .venture-philosophy {
        flex-direction: column;
        gap: 16px;
        padding: 28px 24px;
    }

    .venture-lead {
        font-size: 1rem;
    }
}
