:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #00ff88;
    /* Cyberpunk Green/Cyan */
    --accent-glow: rgba(0, 255, 136, 0.4);
    --secondary-bg: #111111;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Montserrat', 'Inter', sans-serif;
    --font-body: 'Noto Sans KR', sans-serif;
    --transition-speed: 0.3s;
    --container-width: 1200px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

/* Grid Overlay Effect */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    backdrop-filter: none;
    background-color: transparent;
    border-bottom: none;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-color);
}

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

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    position: relative;
    opacity: 0.7;
}

.nav-link.active,
.nav-link:hover {
    opacity: 1;
    color: var(--accent-color);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 6px 0;
    transition: var(--transition-speed);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Header offset */
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1;
}

.accent-text {
    /* Text Gradient */
    background: linear-gradient(90deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

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

.btn-outline {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-color);
}

.btn-outline:hover {
    border-color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Sections General */
.section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #888;
}

/* About Section */
.about-section .large-text {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 30px;
}

.highlight {
    color: var(--accent-color);
    font-weight: 700;
}

.desc-text {
    font-size: 1.1rem;
    color: #aaa;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px;
    border-radius: 8px;
    transition: var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 40px -10px rgba(0, 255, 136, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-sub {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.service-desc {
    font-size: 1rem;
    color: #ccc;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    transition: 0.3s;
}

.team-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.team-info h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.team-info .role {
    display: block;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

.team-info p {
    color: #888;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    padding: 150px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1952&q=80') center/cover;
}

.cta-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ddd;
}

.quote {
    font-family: serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 50px;
    opacity: 0.8;
}

.btn-large {
    padding: 20px 60px;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background-color: #000;
    padding: 80px 0 40px;
    border-top: 1px solid var(--card-border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #fff;
}

.footer-info address {
    font-style: normal;
    color: #888;
    margin-bottom: 30px;
}

.footer-info address p {
    margin-bottom: 10px;
}

.footer-info address i {
    width: 20px;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
}

.social-links a:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
}

.footer-copyright {
    width: 100%;
    margin-top: 50px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    color: #555;
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.visible {
    opacity: 1;
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 60px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        /* Separator line */
    }

    /* Alternating background for better distinction */
    .section:nth-child(even) {
        background-color: rgba(255, 255, 255, 0.02);
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .cta-title {
        font-size: 2.5rem;
    }

    .services-grid,
    .team-grid,
    .about-grid,
    .process-grid,
    .services-list,
    .gallery-grid,
    .customer-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Navigation */
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #000;
        padding-top: 80px;
        align-items: center;
        gap: 30px;
        transform: translateY(-100%);
        transition: transform 0.4s ease;
        z-index: 1000;
    }

    .nav-list.active {
        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.5rem;
    }
}

/* --- Subpage Specific Styles --- */

/* Subpage Hero */
.subpage-hero {
    height: 500px;
    /* Fixed height for consistency */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.3), var(--bg-color));
    text-align: center;
    padding: 80px 0;
    /* Keeps some padding but height is dominant */
}

.subpage-hero .hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.subpage-hero .hero-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    /* Add space below subtitle */
}

.subpage-hero .hero-description {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    /* Ensure block centering */
}

/* Specific Subpage Backgrounds */
.subpage-hero.about-hero {
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.7), var(--bg-color)),
        url('images/02.jpg');
    background-size: cover;
    background-position: center;
}

.subpage-hero.services-hero {
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.7), var(--bg-color)),
        url('images/Untitled-3.jpg');
    background-size: cover;
    background-position: center;
}

.subpage-hero.contact-hero {
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.7), var(--bg-color)),
        url('images/Untitled-2.jpg');
    background-size: cover;
    background-position: center;
}

/* About Page - Process */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 20px;
    /* Reduced from 80px */
}

.about-item h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.about-item p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
}

.what-we-do-list li {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 5px;
    line-height: 1.8;
}

.what-we-do-list li strong {
    color: #999;
    font-weight: 700;
    display: inline-block;
    width: 70px;
    /* Fixed width for alignment */
}

/* Mission Section Spacing */
.mission-section {
    padding-bottom: 0px !important;
    /* Force reduce bottom gap */
}

/* Process Section Spacing */
.process-section {
    padding-top: 20px;
    /* Reduced from 40px */
}

.process-section .section-header,
.customer-section .section-header {
    margin-bottom: 40px;
    /* Reduced from global 80px */
}

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

.process-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 30px;
    border-radius: 8px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.process-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.step-num {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 10px;
    right: 20px;
}

.process-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
    position: relative;
}

.process-card p {
    font-size: 0.95rem;
    color: #aaa;
    position: relative;
}

/* Services Page - Detailed Rows */
/* Services Page - Detailed Rows */
.services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    text-align: center;
    height: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    /* Subtle background for card feel */
    border-radius: 12px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.service-row:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

/* Remove reverse logic as it is single column now */
.service-row.reverse {
    flex-direction: column;
}

.service-info {
    width: 100%;
    margin: 0;
}

.service-info h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
}

.service-info ul {
    margin-bottom: 20px;
    padding: 0;
    list-style: none;
    /* Remove bullets for centered look */
}

.service-info ul li {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.service-detail {
    font-size: 1rem;
    color: #bbb;
    line-height: 1.7;
}

.service-img-placeholder {
    flex: 1;
    height: 400px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #333;
}

/* Portfolio Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 16/9;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-weight: 600;
    transition: 0.3s;
}

.gallery-item:hover {
    background: #222;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

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

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 5px;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.info-item p {
    color: #aaa;
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: invert(90%) hue-rotate(180deg);
    /* Dark mode map effect */
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #ccc;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
}

@media (max-width: 900px) {

    .about-grid,
    .process-grid,
    .services-list,
    /* Added for responsiveness */
    .contact-wrapper,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .service-row,
    .service-row.reverse {
        flex-direction: column;
    }

    .service-img-placeholder {
        width: 100%;
        height: 250px;
    }
}

/* Our Customers Grid */
.customer-section {
    padding-top: 40px;
    /* Reduced from default 120px */
}

.customer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 logos per row */
    gap: 20px;
}

.customer-item {
    background: #fff;
    /* White background for logos usually looks best if they aren't transparent */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    transition: 0.3s;
    height: 150px;
    /* Fixed height for consistency */
}

.customer-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.2);
    border: 1px solid var(--accent-color);
}

.customer-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    /* Make logos grayscale initially for cleaner look */
    transition: 0.3s;
}

.customer-item:hover img {
    filter: grayscale(0%);
    /* Color on hover */
}

@media (max-width: 900px) {
    .customer-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Increase to 3 per row for smaller size */
        gap: 10px;
    }

    .customer-item {
        height: 100px;
        /* Reduce height on mobile */
        padding: 10px;
    }
}

/* Experience Section Image */
.experience-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.experience-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.experience-img-wrapper:hover .experience-img {
    transform: scale(1.02);
}

.experience-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 20px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.experience-overlay h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-style: italic;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .experience-overlay h3 {
        font-size: 1rem;
    }
}