:root {
    --primary-color: #0F1115;
    --primary-light: #B7F500;
    --primary-dark: #050608;
    --secondary-color: #E7FF67;
    --text-main: #F8FAF2;
    --text-muted: #B5BAAE;
    --bg-white: #050608;
    --bg-light: #0B0D10;
    --border-color: rgba(255, 255, 255, 0.16);
    --font-heading: 'DM Sans', 'Noto Sans KR', sans-serif;
    --font-main: 'DM Sans', 'Noto Sans KR', sans-serif;
    --box-shadow: 0 18px 45px -28px rgba(0, 0, 0, 0.35);
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1,
h2,
h3,
h4,
.korean-title {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main);
}

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

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 7.5rem 0;
}

.bg-light {
    background-color: rgba(11, 13, 16, 0.9);
}

.highlight {
    color: var(--primary-light);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(183, 245, 0, 0.18);
    z-index: -1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-dark);
    color: white;
    box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.85);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 18px 35px -20px rgba(0, 0, 0, 0.8);
    color: var(--primary-dark);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(5, 6, 8, 0.78);
    backdrop-filter: blur(16px);
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(5, 6, 8, 0.94);
    box-shadow: 0 14px 40px -32px rgba(255, 255, 255, 0.28);
    padding: 0.85rem 0;
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--primary-light);
}

/* For initial transparent state on hero */
.navbar .nav-links a {
    color: var(--text-main);
}

/* Removed text logo color */

.navbar .mobile-menu-btn {
    color: var(--text-main);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-typo {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-main);
    line-height: 0.96;
    width: 260px;
    min-width: 260px;
}

.brand-main {
    font-family: 'Noto Sans KR', var(--font-main);
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0;
}

.brand-sub {
    margin-top: 0.4rem;
    font-size: clamp(1.05rem, 1.65vw, 1.32rem);
    font-weight: 800;
    line-height: 1;
    text-transform: none;
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 800;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--primary-light);
}

.nav-links .nav-cta {
    color: white !important;
}

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

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 6, 8, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease-in-out;
}

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

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-light);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-color: transparent;
    overflow: hidden;
    padding-top: 82px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(5, 6, 8, 0.9) 0%, rgba(5, 6, 8, 0.72) 48%, rgba(15, 17, 21, 0.88) 48%, rgba(15, 17, 21, 0.98) 100%);
}

.circuit-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.42;
}

.scope-image {
    position: absolute;
    top: -16%;
    right: -18%;
    width: min(112%, 820px);
    aspect-ratio: 16 / 8.5;
    border: 1px solid rgba(183, 245, 0, 0.34);
    background:
        linear-gradient(90deg, rgba(5, 6, 8, 0.14), rgba(5, 6, 8, 0)),
        url('hero-scope.png') center / cover no-repeat;
    border-radius: 0;
    box-shadow:
        inset 0 0 60px rgba(183, 245, 0, 0.08),
        0 0 90px rgba(183, 245, 0, 0.08);
    opacity: 0.92;
    overflow: hidden;
    z-index: 1;
}

.scope-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(183, 245, 0, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(183, 245, 0, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    mix-blend-mode: screen;
    opacity: 0.38;
}

.scope-image::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -18%;
    width: 18%;
    background: linear-gradient(90deg, transparent, rgba(183, 245, 0, 0.28), transparent);
    animation: signal-scan 4.2s linear infinite;
}

@keyframes signal-scan {
    to {
        left: 100%;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    position: relative;
    left: -8ch;
}

.hero-text h1 {
    font-size: clamp(1.8rem, 3.33vw, 3.13rem);
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 0.98;
    font-weight: 900;
}

.hero-text h1 .highlight {
    color: var(--text-main);
}

.hero-text h1 .highlight::after {
    background-color: rgba(183, 245, 0, 0.42);
}

.hero-text h2 {
    font-size: 1.35rem;
    color: var(--primary-light);
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-image {
    width: 100%;
    min-height: 500px;
    background: transparent;
    border-radius: 0;
    border: none;
    position: relative;
    display: block;
    backdrop-filter: none;
    overflow: visible;
    box-shadow: none;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(183, 245, 0, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(183, 245, 0, 0.14) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 76%);
    opacity: 0.58;
    z-index: 2;
    mix-blend-mode: screen;
}

.hero-chip-image {
    position: absolute;
    left: -12%;
    bottom: -14%;
    width: min(112%, 840px);
    height: auto;
    aspect-ratio: 16 / 10.5;
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 32px 100px -52px rgba(183, 245, 0, 0.55);
    z-index: 3;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4.5rem;
}

.subtitle {
    display: inline-block;
    color: var(--primary-light);
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    line-height: 0.98;
    font-weight: 900;
    margin-bottom: 1rem;
}

.divider {
    height: 6px;
    width: 72px;
    background-color: var(--primary-light);
    margin: 0 auto;
    border-radius: 999px;
}

.notice-content {
    min-height: 120px;
    background: rgba(255, 255, 255, 0.04);
    padding: 2.25rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
}

/* About Section */
.about-content {
    max-width: 920px;
    margin: 0 auto;
    text-align: left;
    border-left: 8px solid var(--primary-light);
    padding-left: 2rem;
}

.lead-text {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--text-main);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-content strong {
    color: var(--primary-light);
}

/* Values Section */
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.value-card:hover .icon-box {
    background: var(--primary-color);
    color: white;
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.korean-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Services / Capabilities Section */
/* Group text flow */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0;
    padding: 2.25rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 100%;
    background: var(--primary-light);
    transform: scaleY(0);
    transition: var(--transition);
    transform-origin: top;
}

.service-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.service-item:hover::before {
    transform: scaleY(1);
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-icon {
    width: 64px;
    height: 64px;
    border: 1px solid rgba(183, 245, 0, 0.42);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-light);
    background:
        linear-gradient(135deg, rgba(183, 245, 0, 0.12), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at 70% 20%, rgba(183, 245, 0, 0.22), transparent 36%);
    box-shadow:
        inset 0 0 24px rgba(183, 245, 0, 0.08),
        0 0 28px rgba(183, 245, 0, 0.12);
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    right: -14px;
    top: 50%;
    width: 14px;
    height: 1px;
    background: var(--primary-light);
    opacity: 0.55;
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 900;
}

.service-content ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-content li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.service-content li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-light);
    font-size: 0.9rem;
}

.service-content li.list-note::before {
    content: none;
}

@media (min-width: 768px) {
    .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Timeline / Portfolio Section */
.timeline {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--primary-light);
    border: 4px solid var(--bg-light);
    border-radius: 50%;
    z-index: 2;
}

.timeline-date {
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.04);
    padding: 2rem;
    border-radius: 0;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.timeline-content h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.timeline-content ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-content li {
    color: var(--text-muted);
    position: relative;
    padding-left: 1rem;
}

.timeline-content li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--primary-light);
}

@media (min-width: 640px) {
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: 40px;
        text-align: right;
    }

    .timeline-item:nth-child(even) {
        margin-left: auto;
        padding-right: 0;
        padding-left: 40px;
        text-align: left;
    }

    .timeline-dot {
        left: auto;
        right: -30px;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        right: auto;
        left: -10px;
    }
}

/* Footer / Contact Section */
.footer {
    background-color: rgba(5, 6, 8, 0.94);
    color: white;
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-brand-typo {
    color: white;
    width: auto;
    min-width: unset;
}

.footer-brand-typo .brand-main {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    white-space: nowrap;
}

.footer-brand-typo .brand-sub {
    color: var(--primary-light);
}

.footer-desc {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-intro {
    color: var(--secondary-color);
}

.contact-details h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--bg-light);
    font-size: 1.1rem;
}

.contact-list i {
    color: var(--secondary-color);
}

.contact-list a:hover {
    color: white;
}

.contact-list a {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* Animations Trigger Classes */
.animate-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Responsive Styles */
@media (max-width: 991px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        left: 0;
    }

    .hero-text p {
        margin: 0 auto 2rem;
    }

    .hero-image {
        width: min(92vw, 680px);
        min-height: 470px;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .navbar {
        background: rgba(15, 17, 21, 0.96);
    }

    .navbar:not(.scrolled) .brand-typo {
        color: white;
    }

    .navbar:not(.scrolled) .brand-sub {
        color: var(--primary-light);
    }

    .brand-typo {
        width: 218px;
        min-width: 218px;
    }

    .brand-main {
        font-size: 2rem;
    }

    .brand-sub {
        font-size: 1.06rem;
    }

    .footer-brand-typo {
        width: auto;
        min-width: unset;
    }

    .footer-brand-typo .brand-main {
        font-size: clamp(1rem, 5vw, 1.35rem);
        white-space: normal;
    }

    .section-padding {
        padding: 4.5rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }

    .lead-text {
        font-size: clamp(1.2rem, 5.5vw, 1.8rem);
    }

    .hero-bg {
        background: linear-gradient(180deg, rgba(5, 6, 8, 0.92) 0%, rgba(5, 6, 8, 0.84) 58%, rgba(15, 17, 21, 0.96) 58%, rgba(15, 17, 21, 1) 100%);
    }

    .hero-image {
        min-height: 300px;
    }

    .scope-image {
        top: -10%;
        right: -18%;
        width: 108%;
        opacity: 0.78;
    }

    .hero-chip-image {
        left: -10%;
        bottom: -12%;
        width: 108%;
    }

    .about-content {
        padding-left: 1.25rem;
    }

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

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    body {
        line-height: 1.45;
    }

    h1, h2, h3, h4 {
        line-height: 1.15;
    }

    .lead-text {
        line-height: 1.1;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: clamp(1.15rem, 5.8vw, 1.7rem);
        margin-bottom: 0.6rem;
    }

    .hero-text h2 {
        font-size: 1rem;
    }

    .hero-image {
        min-height: 220px;
    }

    .service-item {
        padding: 1.5rem;
    }

    .notice-content {
        padding: 1.5rem;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .timeline-item {
        padding-left: 44px;
    }
}

@media (max-width: 360px) {
    .brand-typo {
        width: 175px;
        min-width: 175px;
    }

    .brand-main {
        font-size: 1.65rem;
    }

    .brand-sub {
        font-size: 0.88rem;
    }
}
