/* Extremely Premium, Heavy Corporate B2B Theme */
:root {
    --primary: #1c435a;
    /* Brand Steel Blue from Logo */
    --primary-hover: #265a78;
    --accent: #2d6a8d;
    /* Coordinating Tech Blue */

    --bg-white: #ffffff;
    --bg-gray: #f8f9fa;
    /* Even lighter gray */
    --bg-dark: #122936;
    /* Darker variant of brand color */

    --text-main: #1d1d1f;
    /* Apple-style extremely dark gray for sharp text */
    --text-muted: #6b7280;
    --text-light: #9ca3af;

    --border-soft: #eaedf1;
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.04);
}

/* Page Transition Base */
.fade-wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease; /* Synced to 0.4s */
}

.fade-wrapper.is-ready {
    opacity: 1;
    transform: translateY(0);
}

.page-exit {
    opacity: 0 !important;
    transform: translateY(-10px) !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Pretendard', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    /* Sharper text */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--accent);
}

.bg-gray {
    background-color: var(--bg-gray);
}


/* Navbar */

.btn-customer {
    background: #dee2e6;
    padding: 2px 10px;
    border-radius: 3px;
    font-weight: 600;
}

/* Main Corporate Navigation */
.navbar {
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-soft);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-soft);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* Reduced from 200px for fixed header */
}

.brand-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.brand-logo img {
    height: 50px; /* Adjusted from 150px for fixed header */
    display: block;
}

.brand-dot {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    height: 100%;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0 35px; /* Increased from 20px */
}

.nav-item>a {
    font-weight: 600;
    font-size: 1.15rem;
    color: #343a40;
    transition: color 0.3s ease;
    position: relative;
    padding: 10px 0;
}

.nav-item:hover>a {
    color: var(--accent);
}

.nav-item>a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-item:hover>a::after {
    width: 100%;
}


/* Clean Navbar Styles - No Dropdowns */

.btn-contact-nav {
    background: var(--primary);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-contact-nav:hover {
    background: var(--primary-hover);
}

.btn-solid-primary {
    color: white !important; /* Ensure text is white */
}

.mobile-only {
    display: none !important;
}

.hero-section {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: 480px; /* Synchronized with inner-hero for seamless page turns */
    overflow: hidden;
    z-index: -1;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Synced to 0.4s */
}

/* Home Page Expansion State */
.hero-section.is-expanded {
    height: calc(100vh - 80px); /* Updated to match 80px navbar */
}

/* Exit/Shrink State */
.hero-section.is-collapsing {
    height: 480px !important;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Changed from 1200px to fill container */
    background: url('hero-bg.png') center center / cover no-repeat; /* Use cover to prevent cropping */
    z-index: -2;
    filter: blur(4px);
    transform: none;
}

/* Deep navy overlay - Optimized for absolute minimalist backgrounds */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(28, 67, 90, 0.7) 0%, rgba(28, 67, 90, 0.4) 100%);
    z-index: -1;
}

.hero-content {
    color: white;
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: #a5d8ff;
    border: 1px solid rgba(165, 216, 255, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

.hero-headline {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
}

.text-highlight {
    color: #74c0fc;
}

/* Lighter blue for dark background */
.hero-description {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
/* Global Inner Page Hero */
.inner-hero {
    position: relative;
    width: 100%;
    min-height: 480px; /* Standardize desktop height */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    z-index: 1; /* Above background but below nav */
}

/* Base background for sub-pages */
.inner-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(28, 67, 90, 0.7) 0%, rgba(28, 67, 90, 0.4) 100%), 
                url('hero-bg.png') center center / cover no-repeat;
    z-index: -1;
    filter: blur(4px); /* Perfectly matched with home hero-background */
}

.hero-inner-content {
    text-align: center;
    width: 100%;
    padding: 2rem;
}

.inner-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white !important;
}

.inner-hero p {
    font-size: 1.2rem;
    opacity: 0.8;
    color: white !important;
}

.btn-solid-primary {
    background: var(--accent);
    color: white;
    padding: 1.2rem 2.5rem;
    font-weight: 700;
    border-radius: 4px;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.btn-solid-primary:hover {
    background: #006ce4;
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 1.2rem 2.5rem;
    font-weight: 700;
    border-radius: 4px;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Partner Marquee (Crucial for B2B) */
.client-marquee {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-soft);
    padding: 2.5rem 0;
}

.marquee-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.marquee-track-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
}

/* Gradient mask for smooth fade out on edges */
.marquee-track-container::before,
.marquee-track-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.marquee-track-container::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.marquee-track-container::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.marquee-track {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.client-logo {
    display: inline-block;
    margin: 0 40px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #cbd5e1;
    /* Grayscale logos basically */
    font-family: Arial, sans-serif;
    letter-spacing: -1px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Serious Analytics/Data Section */
.analytics-section {
    padding: 6rem 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-soft);
}

.sub-heading {
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 1rem;
}

.analytics-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.analytics-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-soft);
    border: 1px solid var(--border-soft);
}

.data-box {
    background: var(--bg-white);
    padding: 4rem 3rem;
    text-align: left;
    position: relative;
}

.data-value {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    color: var(--primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
    font-family: 'Arial', sans-serif;
}

.data-value span:last-child {
    font-size: 2rem;
    color: var(--accent);
}

.data-label {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.data-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.info-row {
    font-size: 0.95rem;
    line-height: 1.8;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.data-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width 0.5s ease;
}

.data-box:hover .data-line {
    width: 100%;
}


/* Dense Alternating Content (Replaces simple cards) */
.solutions-area {
    padding: 7rem 0;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title-wrap h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.04em;
}

.solution-block {
    display: flex;
    align-items: center;
    gap: 6rem;
    margin-bottom: 6rem;
}

.solution-block.reverse {
    flex-direction: row-reverse;
}

.solution-block:last-child {
    margin-bottom: 0;
}

.solution-text {
    flex: 1;
}

/* About Page Location Grid */
.location-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.location-card {
    background: var(--bg-white);
    padding: 2rem;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.location-card h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.solution-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.solution-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.solution-list {
    margin-bottom: 2.5rem;
}

.solution-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    font-weight: 500;
}

.solution-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: bold;
}

.link-arrow {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
    transition: transform 0.2s;
    display: inline-block;
}

.link-arrow:hover {
    transform: translateX(5px);
}

.solution-visual {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
    aspect-ratio: 4/3;
}

.solution-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.solution-block:hover .solution-visual img {
    transform: scale(1.05);
}


/* Massive Final Corporate Footer */
.heavy-footer {
    background-color: var(--primary);
    color: white;
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-emergency-wrap {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    min-height: 120px;
}

.footer-box-left img {
    height: 100px;
    filter: brightness(0) invert(1) !important;
    display: block;
}

.footer-box-right {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 2;
}

@media (max-width: 768px) {
    .footer-emergency-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 2rem !important;
    }
    .footer-box-left img {
        height: 60px !important;
    }
    .footer-box-center {
        display: none !important;
    }
    .footer-box-right, .info-row {
        text-align: left !important;
        width: 100% !important;
    }
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

.contact-card small {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.contact-card strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--accent);
    font-weight: 600;
}

.legal-info span {
    margin-right: 2rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.copyright a {
    color: #9ca3af;
    margin-left: 10px;
}

.legal-info span {
    margin-right: 2rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.copyright a {
    color: #9ca3af;
    margin-left: 10px;
}

.copyright-row {
    margin-top: 35px;
    opacity: 0.6;
    font-size: 0.9rem;
}

.footer-box-right a {
    font-weight: 700;
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

.copyright a:hover {
    color: white;
    text-decoration: underline;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-observe {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-observe.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-headline {
        font-size: 3rem;
    }

    .data-grid {
        grid-template-columns: 1fr;
        border: none;
        background: transparent;
        gap: 2rem;
    }

    .data-box {
        border: 1px solid var(--border-soft);
        padding: 3rem 2rem;
    }

    .solution-block,
    .solution-block.reverse {
        flex-direction: column;
        gap: 3rem;
    }

    .solution-visual {
        width: 100%;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-links-wrapper {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}


/* --- RESPONSIVE DESIGN --- */

/* Mobile Nav Toggle Icon */
.nav-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dark);
}

@media (max-width: 1024px) {
    .container {
        padding: 0 4%;
    }
    .hero-headline {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }
    .navbar {
        height: var(--nav-height);
    }
    .nav-content {
        height: var(--nav-height) !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .brand-logo img {
        height: 40px !important;
    }
    .btn-contact-nav {
        display: none !important; /* Hide redundant button on mobile only */
    }
    .nav-toggle {
        display: block;
        order: 2; /* Ensure it stays right of logo if needed */
    }
    /* Mobile Menu Overlay with Animation */
    .nav-menu {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-20px);
        transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.4s;
    }

    .nav-menu.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-menu .nav-item {
        margin: 1rem 0;
        width: 100%;
        height: auto;
    }

    .nav-menu .nav-item a {
        font-size: 1.2rem;
        display: block;
        padding: 0.5rem 0;
    }


    .nav-item {
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .location-info-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .mobile-only {
        display: block !important;
    }

    .hero-section {
        height: 300px;
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        top: var(--nav-height);
    }

    .inner-hero {
        height: 300px;
        min-height: auto;
    }

    .hero-inner-content {
        padding-top: 4rem; /* Move text slightly down */
    }

    .hero-section.is-expanded {
        height: calc(100vh - var(--nav-height)) !important;
    }

    .hero-section.is-collapsing {
        height: 300px !important;
    }

    .hero-headline {
        font-size: 2.2rem; /* Reduced from 2.5rem */
    }

    .hero-description {
        font-size: 1rem;
    }

    .footer-emergency-wrap {
        padding: 20px 15px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .footer-box-left,
    .footer-box-center,
    .footer-box-right,
    .info-row,
    .footer-box-right div,
    .footer-box-right p {
        text-align: left !important;
        width: 100% !important;
        padding-left: 0 !important;
    }

    .heavy-footer {
        text-align: left !important;
    }

    .info-row {
        font-size: 0.85rem;
        word-break: break-all; /* Force wrap on very small screens */
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
}