/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #0056b3;
    /* Adjust based on preference, using a standard blue for now */
    --text-color: #333;
    --light-text: #fff;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.3);
    /* Transparent background */
    transition: background 0.3s;
}

header:hover,
header.scrolled {
    background: rgba(0, 0, 0, 0.8);
}

/* Header Inner Container for Centering */
.header-container {
    width: 100%;
    max-width: 1280px;
    /* Requested constraint */
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    /* Padding for when screen is smaller than 1280px */
}

.logo h1 {
    color: var(--light-text);
    font-size: 24px;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu li a {
    color: var(--light-text);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--light-text);
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(0, 0, 0, 0.9);
    transition: right 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    text-align: center;
}

.mobile-menu ul li {
    margin: 30px 0;
}

.mobile-menu ul li a {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

/* Hero Section (Video Background) */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -5px;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.video-background iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--light-text);
    padding-top: var(--header-height);
    width: 100%;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

/* Subpage Banner */
.sub-banner {
    width: 100%;
    height: 300px;
    background: #333;
    /* Placeholder for banner image */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding-top: var(--header-height);
}

.sub-banner h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

/* Subpage Content */
.sub-content {
    padding: 80px 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.sub-content h3 {
    font-size: 28px;
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

/* Grids */
.product-grid,
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-item,
.project-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    transition: transform 0.3s;
}

.product-item:hover,
.project-item:hover {
    transform: translateY(-5px);
}

.product-item h4,
.project-item h4 {
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

.btn-submit:hover {
    background: #004494;
}

/* Cards Section - Centered */
.section-cards {
    position: relative;
    z-index: 2;
    margin-top: -100px;
    padding-bottom: 80px;
    padding-left: 20px;
    padding-right: 20px;
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    width: 300px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.card .btn-more {
    margin-top: auto;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.card .btn-more:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background: #222;
    color: #aaa;
    padding: 50px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-info span {
    margin: 0 10px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 0;
        /* Remove padding on header to let container handle it */
    }

    .nav-menu {
        display: none;
        /* Hide menu for mobile for now (simple implementation) */
    }

    .mobile-menu-btn {
        display: block;
    }

    .section-cards {
        margin-top: 50px;
        /* Remove overlap on mobile */
    }

    .card {
        width: 100%;
        max-width: 350px;
    }

    .hero-content h2 {
        font-size: 28px;
        padding: 0 20px;
    }
}