:root {
    /* Colors */
    --primary-bg: #FFFFFF;
    --secondary-bg: #FAFAFA;
    /* Very light gray for backgrounds */
    --accent-red: #C62828;
    /* Corporate Burgundy */
    --accent-red-hover: #B71C1C;
    --text-dark: #1A1A1A;
    /* Nearly Black */
    --text-gray: #546E7A;
    /* Muted text */
    --text-light: #90A4AE;
    --border-color: #ECEFF1;
    --input-bg: #F5F7F9;
    /* Slight blue-tinted gray for inputs */

    /* Typography */
    --font-heading: 'Rajdhani', 'Noto Sans KR', sans-serif;
    --font-body: 'Inter', 'Noto Sans KR', sans-serif;

    /* Spacing */
    --section-spacing: 6rem;
    --container-width: 1200px;

    /* Shadows */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--primary-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 0;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-red {
    color: var(--accent-red);
}

.text-gray {
    color: var(--text-gray);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    /* Slightly rounded, not full pill */
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--accent-red);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--text-dark);
    border: 1px solid #E0E0E0;
}

.btn-secondary:hover {
    border-color: var(--text-dark);
    background-color: #f5f5f5;
}

.btn-dark {
    background-color: #263238;
    color: white;
}

.btn-dark:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Header */
header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

header.scrolled {
    border-color: #eee;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent-red);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-red);
}

/* Lang Toggle */
.lang-toggle {
    background: #F5F5F5;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
}

/* Hero Section */
#hero {
    position: relative;
    padding: 4rem 0 4rem;
    /* Reduced top padding */
    overflow: hidden;
    background: radial-gradient(circle at center, #ffffff 0%, #FAFAFA 100%);
    /* Reverted to Light */
    min-height: 60vh;
    /* Reduced height to move content up */
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    /* Increased to allow one-line text */
    margin: 0 auto;
    text-align: center;
    /* New Dark Content Box Styles */
    background-color: rgba(60, 70, 80, 0.01);
    /* 1% Opacity */
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    /* Stronger Glass Effect */
}

.hero-logo-box {
    /* Legacy box, can be hidden or adapted if present */
    display: none;
    width: 100px;
    height: 100px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
}

.hero-logo-box img {
    width: 60px;
    height: auto;
}

.hero-title {
    font-size: 4.5rem;
    /* Reduced size as requested */
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.9;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    color: var(--accent-red);
    /* Burgundy */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    /* White-grayish text */
    margin-bottom: 2.5rem;
    font-weight: 400;
    white-space: pre-line;
    /* Allow \n to break lines */
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Gateway / Features Grid */
.gateway-section {
    padding: var(--section-spacing) 0;
    background-color: var(--secondary-bg);
}

.section-kicker {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-red);
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--accent-red);
    margin: 0 auto 3rem;
    border-radius: 2px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.card-icon-box {
    width: 60px;
    height: 60px;
    background: transparent;
    /* Removed background */
    /* border-radius: 10px; Removed box shape */
    display: flex;
    justify-content: flex-start;
    /* Align left alongside text if needed, or keeping centered but without box */
    align-items: center;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.card-icon-box .material-symbols-outlined {
    font-size: 3.5rem;
    /* Larger, cleaner icon */
    font-weight: 300;
    /* Thin, futuristic look */
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-red);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Product Section Styles (LUX / CELLA) */
.product-section {
    padding: var(--section-spacing) 0;
    scroll-margin-top: 120px;
}

.product-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.product-pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.pill-red {
    background: #FFEBEE;
    color: var(--accent-red);
}

.pill-blue {
    background: #E3F2FD;
    color: #1565C0;
}

.product-title-large {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.product-title-large span {
    font-weight: 300;
    color: #90A4AE;
}

.product-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.product-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.product-feature-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}

.product-feature-card:hover {
    transform: translateY(-5px);
}

.p-card-image {
    height: 200px;
    background-color: #f0f0f0;
    width: 100%;
    object-fit: cover;
}

.p-card-body {
    padding: 1.5rem;
    text-align: left;
}

.p-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.p-card-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Services Page Specifics */
.services-4grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.service-tile {
    background: #F5F7F9;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.service-tile:hover {
    background: white;
    box-shadow: var(--card-shadow);
}

.service-icon-circle {
    width: 60px;
    height: 60px;
    background: transparent;
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon-circle .material-symbols-outlined {
    font-size: 3.5rem;
    font-weight: 300;
}

/* Expertise Section */
.expertise-section {
    background: #fff;
    padding: 2rem 0;
}

.expertise-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    color: var(--text-dark);
    box-shadow: var(--card-shadow);
}

@media (max-width: 900px) {
    .expertise-layout {
        grid-template-columns: 1fr;
    }
}

/* Actually image shows a dark overlay with text, let's adapt */
.expertise-card-dark {
    position: relative;
    background: #212121;
    color: white;
    border-radius: 20px;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.expertise-bg-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.expertise-content {
    position: relative;
    z-index: 1;
    width: 50%;
    padding: 4rem;
}

.expertise-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.expertise-subcards {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.exp-subcard {
    background: white;
    color: var(--text-dark);
    padding: 1.5rem;
    border-radius: 10px;
    flex: 1;
}

.exp-subcard h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exp-subcard p {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin: 0;
}

/* Contact Page Split Layout */
.contact-split {
    display: grid;
    grid-template-columns: 4fr 6fr;
    /* 40% Info, 60% Form */
    gap: 4rem;
    align-items: start;
}

.contact-info-panel h2 {
    font-size: 3.5rem;
    /* Huge "Let's build" text */
    line-height: 1.1;
    margin-bottom: 3rem;
    color: #263238;
}

.contact-info-panel h2 span {
    color: var(--accent-red);
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: #FFEBEE;
    color: var(--accent-red);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-text h4 {
    margin-bottom: 0.2rem;
}

.info-text p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

.info-text .alert {
    color: var(--accent-red);
    font-size: 0.8rem;
    font-weight: 500;
}

.contact-form-panel {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid #eee;
}

.form-title-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    align-items: baseline;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    background: var(--input-bg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    box-sizing: border-box;
    /* Fix width issues */
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-red);
    background: white;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.privacy-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    color: var(--text-gray);
}

/* Footer */
footer {
    background-color: var(--secondary-bg);
    padding: 2rem 2rem 2rem;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    /* Logo Area + 3 Link Cols */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #eee;
    padding-bottom: 3rem;
}

.footer-brand h3 {
    color: var(--accent-red);
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-gray);
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer-col a {
    display: block;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.footer-col a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.8rem;
    color: #90A4AE;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Simplified for now, assuming JS handles mobile menu */
    .hero-title {
        font-size: 3rem;
    }

    .product-showcase-grid {
        grid-template-columns: 1fr;
    }

    .contact-split {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Center align the description specifically on mobile to override any left-alignment */
    .footer-brand p {
        margin: 0 auto;
    }

    .expertise-card-dark {
        flex-direction: column;
    }

    .expertise-bg-img {
        width: 100%;
        height: 200px;
        position: relative;
    }

    .expertise-content {
        width: 100%;
        padding: 2rem;
    }
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.scroll-down-indicator:hover .chevron {
    border-color: var(--text-dark);
}

.chevron {
    display: block;
    width: 16px;
    /* Reduced from 24px */
    height: 16px;
    /* Reduced from 24px */
    border-bottom: 2px solid var(--accent-red);
    /* Thinner lines */
    border-right: 2px solid var(--accent-red);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    40% {
        transform: translateY(-10px) rotate(45deg);
    }

    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* Modal Styles - Hidden by default */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Mobile Responsive Navigation --- */

.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Desktop Default */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

.hamburger .material-symbols-outlined {
    font-size: 2rem;
}

.mobile-menu {
    display: none;
    /* JS toggles to 'flex' */
    flex-direction: column;
    position: fixed;
    top: 76px;
    /* Align below header */
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    border-top: 1px solid #f0f0f0;
    align-items: center;
    /* Center children horizontally */
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 1rem 2rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    /* Full width for border */
    text-align: center;
    /* Center text */
    box-sizing: border-box;
    /* Include padding in width */
}

.mobile-menu a:hover {
    background: #f9f9f9;
    color: var(--accent-red);
}

.btn-lang {
    background: none;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    white-space: nowrap;
}

.btn-lang:hover {
    border-color: var(--text-dark);
}

/* Mobile Breakpoint */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

/* Ensure mobile menu is hidden on desktop even if active class is present */
@media (min-width: 1025px) {

    .mobile-menu,
    .mobile-menu.active {
        display: none !important;
    }
}