/* --- VARIABLES & RESET --- */
:root {
    --primary-red: #ff3c3c;
    --primary-red-glow: rgba(255, 60, 60, 0.4);
    --tech-black: #0a0a0a;
    --tech-dark-gray: #121212;
    --tech-card-bg: #1e1e1e;
    --tech-card-hover: #2a2a2a;
    --text-pure-white: #ffffff;
    --text-off-white: #e0e0e0;
    --text-muted: #999999;
    --container-width: 1200px;
    --font-family: 'Noto Sans KR', sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-off-white);
    background-color: var(--tech-dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.logo img {
    height: 30px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav ul li a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-off-white);
}

.main-nav ul li a:hover {
    color: var(--primary-red);
}

/* --- MENU TOGGLE --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-off-white);
    border-radius: 10px;
    transition: 0.3s;
}

/* --- HERO BANNER --- */
.hero-banner {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('background_hero.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(transparent, var(--tech-dark-gray));
}

.hero-content h2 {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 45px;
    font-weight: 300;
    color: var(--text-off-white);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-more {
    display: inline-block;
    padding: 18px 45px;
    background-color: var(--primary-red);
    color: #fff;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 10px 20px var(--primary-red-glow);
    transition: 0.3s;
}

.btn-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--primary-red-glow);
    background-color: #ff5555;
}

/* --- SECTION CARDS --- */
.section-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 120px 20px;
    background-color: var(--tech-dark-gray);
}

.card {
    background-color: var(--tech-card-bg);
    padding: 45px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-15px);
    background-color: var(--tech-card-hover);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-pure-white);
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Specific accent styles for cards */
.card-service:hover h3 { color: #5bc0de; }
.card-ai:hover h3 { color: var(--primary-red); }
.card-careers:hover h3 { color: #a589ff; }
.card-esg:hover h3 { color: #62c462; }

/* --- SECTION PRODUCTS --- */
.section-products {
    padding: 120px 20px;
    background-color: var(--tech-dark-gray);
    position: relative;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

.product-card {
    background: linear-gradient(135deg, rgba(255, 60, 60, 0.1), rgba(18, 18, 18, 0.9));
    border: 1px solid rgba(255, 60, 60, 0.2);
    border-radius: 20px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: 0.5s;
    backdrop-filter: blur(5px);
}

.product-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 0 40px rgba(255, 60, 60, 0.15);
    transform: translateY(-5px);
}

.product-badge {
    background-color: var(--primary-red);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.product-card h3 {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-pure-white);
    margin-bottom: 20px;
}

.product-card p {
    font-size: 18px;
    color: var(--text-off-white);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.btn-product {
    padding: 15px 40px;
    border: 2px solid var(--primary-red);
    color: var(--text-pure-white);
    border-radius: 4px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-product:hover {
    background-color: var(--primary-red);
    color: #fff;
    box-shadow: 0 0 20px var(--primary-red-glow);
}

/* YAAPS Specific Cyan Theme */
.card-yaaps {
    background: linear-gradient(135deg, rgba(0, 231, 255, 0.1), rgba(18, 18, 18, 0.9)) !important;
    border-color: rgba(0, 231, 255, 0.2) !important;
}

.card-yaaps:hover {
    border-color: #00E7FF !important;
    box-shadow: 0 0 40px rgba(0, 231, 255, 0.15) !important;
}

.yaaps-logo-img {
    height: 50px;
    width: auto;
    margin-bottom: 25px;
    display: block;
}

.badge-yaaps {
    background-color: #00E7FF !important;
    color: #000 !important;
}

.btn-yaaps {
    border-color: #00E7FF !important;
}

.btn-yaaps:hover {
    background-color: #00E7FF !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(0, 231, 255, 0.4) !important;
}

.btn-yaaps-alt {
    background: rgba(0, 231, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.btn-yaaps-alt:hover {
    background: rgba(0, 231, 255, 0.15) !important;
    border-color: #00E7FF !important;
}

/* --- SECTION DIRECT --- */
.section-direct {
    padding: 120px 20px;
    background-color: var(--tech-black);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 70px;
    color: var(--text-pure-white);
}

.direct-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.direct-item {
    padding: 45px;
    border-radius: 8px;
    background-color: var(--tech-card-bg);
    border-left: 3px solid transparent;
    transition: 0.3s;
}

.direct-item:hover {
    background-color: var(--tech-card-hover);
    border-left-color: var(--primary-red);
    transform: translateX(10px);
}

.direct-item .category {
    font-weight: 700;
    font-size: 13px;
    color: var(--primary-red);
    margin-bottom: 20px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.direct-item strong {
    font-size: 22px;
    color: var(--text-off-white);
    line-height: 1.4;
}

/* --- FOOTER --- */
.footer {
    background-color: #000;
    color: #fff;
    padding: 80px 20px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo img {
    height: 28px;
    width: auto;
}

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

.footer-group h4 {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-pure-white);
}

.footer-group ul li {
    margin-bottom: 12px;
}

.footer-group ul li a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-group ul li a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* --- ANIMATIONS --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-cards .card:nth-child(1) { transition-delay: 0.1s; }
.section-cards .card:nth-child(2) { transition-delay: 0.2s; }
.section-cards .card:nth-child(3) { transition-delay: 0.3s; }
.section-cards .card:nth-child(4) { transition-delay: 0.4s; }


/* --- GLOBAL SUBPAGE STYLES --- */
.subpage-hero {
    padding: 140px 0 80px;
    background-color: var(--tech-black);
    text-align: center;
    border-bottom: 1px solid rgba(255, 60, 60, 0.1);
}

.subpage-hero h1 {
    font-size: 56px;
    font-weight: 900;
    color: var(--text-pure-white);
    margin-bottom: 15px;
}

.subpage-hero .subtitle {
    font-size: 20px;
    color: var(--primary-red);
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto 20px;
}

.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.breadcrumb a:hover {
    color: var(--primary-red);
}

.section-padding {
    padding: 100px 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* --- RESPONSIVE --- */
 @media (max-width: 992px) {
    .header-inner { height: 70px; }
    
    .menu-toggle {
        display: flex;
    }
    
    .subpage-hero h1 { font-size: 36px; }
    .subpage-hero { padding: 120px 20px 60px; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--tech-black);
        padding-top: 100px;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 1050;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav ul li a {
        display: block;
        padding: 20px 40px;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Transform hamburger to X */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--primary-red);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--primary-red);
    }

    .hero-content h2 { 
        font-size: 36px; 
    }
    
    .hero-content p {
        font-size: 16px;
    }

    .section-cards, .section-products, .section-direct {
        padding: 80px 20px;
    }

    .product-card {
        padding: 40px 20px;
    }

    .product-card h3 { 
        font-size: 28px; 
    }

    .section-title {
        font-size: 30px;
        margin-bottom: 40px;
    }

    .footer-top { flex-direction: column; }
    .footer-links { flex-direction: column; gap: 30px; }
}

@media (max-width: 480px) {
    .hero-content h2 { font-size: 28px; }
    .btn-more { width: 100%; padding: 15px 20px; }
    .card { padding: 30px; }
}