/* ================================
   DUO WORKS - Corporate Homepage
   Color Scheme: Navy (#1a2a4a) & Gold (#c9a962)
   ================================ */

/* CSS Variables */
:root {
    --primary-color: #1a2a4a;
    --primary-light: #2d4a6f;
    --primary-dark: #0f1a2e;
    --accent-color: #c9a962;
    --accent-light: #dfc88a;
    --accent-dark: #a88a42;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --text-primary: #1a2a4a;
    --text-secondary: #6c757d;
    --shadow-sm: 0 2px 4px rgba(26, 42, 74, 0.08);
    --shadow-md: 0 4px 12px rgba(26, 42, 74, 0.12);
    --shadow-lg: 0 8px 24px rgba(26, 42, 74, 0.16);
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
}

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

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
}

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

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   Navigation
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
}

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

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

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

.navbar.scrolled .nav-links a {
    color: var(--primary-color);
}

.btn-contact {
    background-color: var(--accent-color) !important;
    color: var(--primary-dark) !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
}

.btn-contact::after {
    display: none !important;
}

.btn-contact:hover {
    background-color: var(--accent-dark) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .hamburger span {
    background-color: var(--primary-color);
}

/* ================================
   Hero Section
   ================================ */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 24px;
    font-size: 3.5rem;
    line-height: 1.2;
}

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

.hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(201, 169, 98, 0.1);
}

.circle-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -150px;
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
}

/* ================================
   About Section
   ================================ */
.about {
    background-color: var(--gray-100);
}

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

.about-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.about-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ================================
   Team Section
   ================================ */
.team {
    background-color: var(--white);
}

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

.team-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.team-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.member-avatar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-dark);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.avatar-character {
    width: 140px;
    height: 140px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.avatar-character svg {
    width: 100%;
    height: 100%;
}

.member-info {
    padding: 24px 32px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.member-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.member-info .role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 4px;
}

.member-info .experience {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.member-details {
    padding: 24px 32px;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: var(--gray-100);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--gray-200);
}

.career-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.career-list li {
    display: grid;
    grid-template-columns: 100px 100px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    background: var(--gray-100);
    border-radius: 8px;
}

.career-period {
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.85rem;
}

.career-company {
    color: var(--primary-color);
    font-weight: 600;
}

.career-position {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.project-list,
.education-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-list li,
.education-list li {
    position: relative;
    padding-left: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-list li::before,
.education-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
}

/* ================================
   Services Section
   ================================ */
.services {
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.service-card > p {
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.service-card ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-card ul li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding-left: 16px;
    position: relative;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

/* ================================
   Portfolio Section
   ================================ */
.portfolio {
    background-color: var(--white);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    color: var(--text-secondary);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Portfolio Table Styles */
.portfolio-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.portfolio-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.portfolio-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.portfolio-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.portfolio-table th.col-no {
    width: 50px;
    text-align: center;
}

.portfolio-table th.col-period {
    width: 140px;
}

.portfolio-table th.col-project {
    min-width: 300px;
}

.portfolio-table th.col-category {
    width: 120px;
    text-align: center;
}

.portfolio-table th.col-tech {
    width: 180px;
}

.portfolio-table tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.portfolio-table tbody tr:hover {
    background-color: var(--gray-100);
}

.portfolio-table tbody tr.hidden {
    display: none;
}

.portfolio-table td {
    padding: 14px 12px;
    vertical-align: middle;
}

.portfolio-table td:first-child {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 500;
}

.portfolio-table td:nth-child(2) {
    color: var(--accent-dark);
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
}

.portfolio-table td:nth-child(3) {
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

.portfolio-table td:nth-child(4) {
    text-align: center;
}

.portfolio-table td:nth-child(5) {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Category Tags */
.category-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.category-tag.xr {
    background-color: rgba(201, 169, 98, 0.15);
    color: var(--accent-dark);
}

.category-tag.digital-twin {
    background-color: rgba(26, 42, 74, 0.1);
    color: var(--primary-color);
}

.category-tag.robot {
    background-color: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}

.category-tag.training {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.category-tag.smart-factory {
    background-color: rgba(52, 152, 219, 0.1);
    color: #2980b9;
}

/* Responsive Table */
@media (max-width: 768px) {
    .portfolio-table {
        font-size: 0.8rem;
    }

    .portfolio-table th,
    .portfolio-table td {
        padding: 10px 8px;
    }

    .portfolio-table th.col-tech,
    .portfolio-table td:nth-child(5) {
        display: none;
    }

    .portfolio-table th.col-project {
        min-width: 200px;
    }
}

/* ================================
   Contact Section
   ================================ */
.contact {
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    background: var(--white);
    padding: 48px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 32px;
    font-size: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.info-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item h4 {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    grid-column: span 2;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

/* ================================
   Footer
   ================================ */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

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

.footer-logo p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ================================
   Animations
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    section {
        padding: 60px 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--primary-color) !important;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

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

    .hero p {
        font-size: 1rem;
    }

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

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

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

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

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

    .form-group.full-width {
        grid-column: span 1;
    }

    .btn-submit {
        grid-column: span 1;
    }

    .career-list li {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .member-details {
        padding: 20px;
    }

    .avatar-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
}

/* ================================
   Toast Notification
   ================================ */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--primary-color);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 9999;
}

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

.toast.success {
    border-left: 4px solid var(--accent-color);
}

.toast.error {
    border-left: 4px solid #e74c3c;
}
