:root {
    --bg-color: #050505;
    --card-bg: #121212;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-color: #e2b714;
    /* Gold/Yellow accent */
    --hover-bg: #1f1f1f;
    --border: #333;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    transition: 0.3s;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    /* Further increased size */
    width: auto;
}

.logo span {
    color: var(--accent-color);
}

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

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(226, 183, 20, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    /* Luxury Gold Gradient */
    background: linear-gradient(to right, #ffffff 20%, #e2b714 40%, #e2b714 60%, #ffffff 80%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
    letter-spacing: -2px;
}

.hero p {
    color: #ccc;
    font-size: 1.3rem;
    max-width: 800px;
    /* Widened to keep text on one line */
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Filter Section */
.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 40px 0;
    margin-bottom: 20px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.filter-btn.active {
    background: var(--text-main);
    color: #000;
    border-color: var(--text-main);
    font-weight: 600;
}

/* Portfolio Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding-bottom: 80px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    cursor: pointer;
    /* group property removed */
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.thumb-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #000;
}

.thumb-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.9;
}

.card:hover .thumb-wrapper img {
    transform: scale(1.05);
    opacity: 1;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-info {
    padding: 20px;
}

.card-cat {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.4;
}

.card-client {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.video-modal {
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: 0.3s;
}

.modal-overlay.active .video-modal {
    transform: scale(1);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

.modal-info {
    padding: 25px;
    background: #151515;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.modal-desc {
    color: #bbb;
    font-size: 1rem;
    line-height: 1.6;
}

/* About Page Specifics */
.about-hero {
    padding: 150px 0 80px;
    text-align: center;
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    /* Luxury Gold Gradient */
    background: linear-gradient(to right, #ffffff 20%, #e2b714 40%, #e2b714 60%, #ffffff 80%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

.about-hero span {
    color: var(--accent-color);
}

.about-intro-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    text-align: center;
    margin-bottom: 50px;
}

.about-text p {
    color: #bbb;
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.stat-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.stat-item h4 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    background: var(--card-bg);
    padding: 40px;
    border: 1px solid #222;
    border-radius: 8px;
    transition: 0.3s;
}

.value-card:hover {
    border-color: var(--accent-color);
    background: #1a1a1a;
}

.value-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #fff;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    /* Reduced to fit text in two lines */
    line-height: 1.6;
    word-break: keep-all;
    /* Prevent awkward word breaks */
}

.cta-section {
    text-align: center;
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, #111 100%);
}

.cta-btn {
    display: inline-block;
    background: var(--accent-color);
    color: #000;
    padding: 15px 40px;
    font-weight: 700;
    border-radius: 50px;
    margin-top: 30px;
    transition: transform 0.2s;
}

.cta-btn:hover {
    transform: scale(1.05);
}

/* Contact Page Specifics */
.contact-hero {
    padding-top: 150px;
    padding-bottom: 80px;
    text-align: center;
}

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

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-bottom: 100px;
}

.contact-info-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #fff;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--accent-color);
    border: 1px solid #333;
}

.info-content h4 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-content p {
    color: var(--text-muted);
}

.contact-form-panel {
    background: #111;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #222;
}

.c-form .form-group {
    margin-bottom: 20px;
}

.c-form label {
    display: block;
    margin-bottom: 10px;
    color: #bbb;
    font-size: 0.9rem;
}

.c-form input,
.c-form textarea,
.c-form select {
    width: 100%;
    background: #080808;
    border: 1px solid #333;
    padding: 15px;
    color: #fff;
    border-radius: 6px;
    font-family: inherit;
    transition: 0.3s;
}

.c-form input:focus,
.c-form textarea:focus,
.c-form select:focus {
    border-color: var(--accent-color);
    outline: none;
    background: #151515;
}

.c-form button {
    width: 100%;
    padding: 15px;
    background: #fff;
    color: #000;
    border: none;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}

.c-form button:hover {
    background: var(--accent-color);
}

/* Footer */
footer {
    border-top: 1px solid #222;
    padding: 50px 0;
    text-align: center;
    color: #666;
    background: #080808;
    margin-top: 50px;
}

/* Scroll To Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-color);
    color: #000;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollToTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(226, 183, 20, 0.4);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .close-modal {
        top: 10px;
        right: 10px;
        z-index: 10;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* Team Section (New - Professional/Cool Style) */
.team-section {
    padding: 50px 0 100px;
    background: #050505;
}

.team-section h2 {
    font-size: 2rem;
    margin-bottom: 60px;
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: start;
}

.team-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-card {
    padding: 40px;
    /* Matched to value-card size */
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 16px;
    /* Rounded corners */
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* Clickable */
    width: calc((100% - 60px) / 3);
    /* 3 columns with 30px gap */
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: #444;
    background: #252525;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Subtle Accent Line on Hover */
.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-color);
    opacity: 0;
    transition: 0.3s;
}

.team-card:hover::before {
    opacity: 1;
}

/* Open State Border */
.team-card.open {
    border-color: var(--accent-color);
    background: #222;
    height: 500px;
    /* Enforce consistent expanded size */
}

.team-card.open::before {
    opacity: 1;
}

/* Card Variants - Use subtle accents instead of full backgrounds */
.team-card.blue:hover,
.team-card.blue.open {
    border-color: rgba(52, 152, 219, 0.5);
}

.team-card.olive:hover,
.team-card.olive.open {
    border-color: rgba(100, 100, 255, 0.5);
}

.team-card.dark:hover,
.team-card.dark.open {
    border-color: rgba(200, 200, 200, 0.5);
}

.team-card.green:hover,
.team-card.green.open {
    border-color: rgba(46, 204, 113, 0.5);
}

.team-card.purple:hover,
.team-card.purple.open {
    border-color: rgba(155, 89, 182, 0.5);
}


.team-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0px;
    /* Removed margin when closed */
    padding-bottom: 0px;
    /* Removed padding when closed */
    border-bottom: 1px solid transparent;
    /* Hidden border when closed */
    transition: 0.3s;
}

.team-card.open .team-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom-color: #333;
}

.memoji {
    width: 45px;
    height: 45px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    border: 1px solid #333;
    overflow: hidden;
    /* Ensure image stays in circle */
    flex-shrink: 0;
}

.memoji img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    /* flex-grow: 1; Removed to avoid weird stretching in header flex */
}

/* Chevron Icon for Expansion */
.team-card::after {
    content: '\f078';
    /* FontAwesome Chevron Down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 40px;
    /* Adjusted to match new padding */
    right: 40px;
    /* Adjusted to match new padding */
    color: #666;
    transition: 0.3s;
}

.team-card.open::after {
    transform: rotate(180deg);
}

.team-quote {
    font-weight: 700;
    font-size: 1rem;
    /* Reduced from 1.15rem */
    margin-bottom: 0;
    /* No margin bottom when closed if desc is hidden, but usually fine */
    margin-top: 15px;
    /* Add space from header */
    line-height: 1.4;
    color: #fff;
    font-family: 'Noto Sans KR', sans-serif;
    display: block;
    /* Show by default */
}

.team-desc {
    font-size: 0.95rem;
    color: #bbb;
    line-height: 1.7;
    word-break: keep-all;
    font-weight: 400;

    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.team-card.open .team-desc {
    max-height: 500px;
    /* Arbitrary large height */
    opacity: 1;
    margin-top: 10px;
    /* Add scroll if content exceeds */
    overflow-y: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .team-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .team-card {
        width: 100%;
    }

    .team-section h2 {
        font-size: 1.5rem;
    }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #1a1a1a;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px solid #333;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success { border-left-color: #2ecc71; }
.toast.error { border-left-color: #e74c3c; }
.toast.info { border-left-color: var(--accent-color); }

.toast i { font-size: 1.1rem; }
.toast.success i { color: #2ecc71; }
.toast.error i { color: #e74c3c; }
.toast.info i { color: var(--accent-color); }