/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Premium Dark Palette */
    --primary: #3b82f6;
    /* Vivid Blue */
    --primary-dark: #2563eb;
    /* Deep Blue */
    --primary-light: #60a5fa;
    /* Soft Blue */
    --accent: #00e5ff;
    /* Cyan/Neon Accent - sharper than green */
    --accent-secondary: #7c3aed;
    /* Violet Accent for gradients */

    /* Backgrounds */
    --bg-main: #050511;
    /* Deepest Navy/Black */
    --bg-surface: #0f1225;
    /* Slightly lighter surface */
    --bg-glass: rgba(15, 18, 37, 0.7);

    /* Text */
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Borders & Glass */
    --border: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);

    /* Effects */
    --transition: cubic-bezier(0.25, 0.8, 0.25, 1) 0.3s;
    /* Snappier easing */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--bg-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 5, 17, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(5, 5, 17, 0.85);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.04em;
    font-family: 'Outfit', sans-serif;
}

.logo-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
    box-shadow: 0 0 8px var(--accent);
}

.nav-link:hover {
    color: var(--text-main);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

/* Language Toggle */
/* Language Toggle */
.lang-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* Hero Section */
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 6rem;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /* More subtle, tech-inspired grid */
    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: 40px 40px;
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
    z-index: 0;
}

.hero-container {
    max-width: 1100px;
    text-align: center;
    z-index: 1;
    position: relative;
}

.hero-title {
    font-size: clamp(3.5rem, 9vw, 6.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 2.5rem;
    background: linear-gradient(120deg, #ffffff 0%, #b4c6ef 25%, #7aa5f0 50%, #b4c6ef 75%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.04em;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.1));
    animation: shine 6s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: var(--primary-dark);
}

.hero-cta:hover::before {
    left: 100%;
}

/* Section Common */
section {
    position: relative;
    padding: 10rem 2rem;
}

.section-label {
    display: block;
    text-align: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
}

/* About Section */
.about {
    background: var(--bg-main);
    position: relative;
}

/* Subtle background accent for About */
.about::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    transform: translate(-30%, -50%);
    z-index: 0;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-content h3 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    color: var(--text-main);
    line-height: 1.3;
    font-weight: 700;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    padding: 2.5rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Partners Section */
.partners {
    background: var(--bg-main);
    padding: 8rem 2rem;
}

.partners-container {
    max-width: 1100px;
    margin: 0 auto;
}

.partner-category {
    margin-bottom: 4rem;
}

.partner-category:last-child {
    margin-bottom: 0;
}

.partner-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--primary);
}

.partner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.partner-tags-scroll {
    /* 전체 표시 */
}

.partner-tags-scroll::-webkit-scrollbar {
    width: 4px;
}

.partner-tags-scroll::-webkit-scrollbar-track {
    background: var(--bg-surface);
    border-radius: 4px;
}

.partner-tags-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.partner-tag {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 99px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.partner-tag:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
    color: var(--text-main);
}

/* Services Section */
.services {
    background: var(--bg-surface);
    position: relative;
    overflow: hidden;
    padding: 12rem 2rem;
    /* Increased padding */
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.services-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    /* Slightly wider cards */
    gap: 3rem;
    /* Increased gap */
}

/* Featured Service Card */
.service-card {
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    padding: 3.5rem 3rem;
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* More subtle initial border */
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.service-card::after {
    /* Glow border effect */
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 36px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.5;
    transition: var(--transition);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    /* More dynamic lift and scale */
    border-color: transparent;
    /* Handled by mask */
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.2);
    /* Added glow to shadow */
}

.service-card:hover::after {
    opacity: 1;
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-image {
    width: 100%;
    height: 180px;
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 1px solid var(--glass-border);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover .service-image img {
    transform: scale(1.08);
}

.service-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.service-card:hover .service-name {
    color: var(--accent);
    /* More vivid vivid color */
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.service-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Services Intro */
.services-intro {
    background: var(--bg-surface);
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.services-intro-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Service Detail Section */
.service-detail {
    background: var(--bg-main);
    padding: 6rem 2rem;
    position: relative;
}

.service-detail:nth-child(even) {
    background: var(--bg-surface);
}

.service-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.service-detail-reverse .service-detail-grid {
    direction: rtl;
}

.service-detail-reverse .service-detail-grid>* {
    direction: ltr;
}

.service-detail-image {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.service-detail:hover .service-detail-image img {
    transform: scale(1.03);
}

.service-detail-content {
    padding: 2rem 0;
}

.service-detail-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.service-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.service-detail-subtitle {
    font-size: 1.25rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.service-detail-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.service-detail-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.service-detail-features li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.service-detail-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.service-detail-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: var(--transition);
}

.service-detail-cta:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

@media (max-width: 1024px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .service-detail-reverse .service-detail-grid {
        direction: ltr;
    }

    .service-detail-title {
        font-size: 2rem;
    }
}

/* Contact Section */
.contact {
    background: var(--bg-main);
    padding-bottom: 6rem;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(124, 58, 237, 0.08));
    padding: 5rem 3rem;
    border-radius: 48px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.05);
    position: relative;
    overflow: hidden;
}

/* Glow effect */
.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03), transparent 60%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.contact-card * {
    position: relative;
    z-index: 1;
}

.contact-info {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.contact-item:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.contact-item svg {
    color: var(--primary-light);
    transition: var(--transition);
}

.contact-item:hover svg {
    color: white;
}

/* Footer */
.footer {
    padding: 6rem 2rem 3rem;
    border-top: 1px solid var(--border);
    background: var(--bg-main);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

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

.footer-tagline {
    color: var(--text-muted);
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

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

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 2rem;
        right: 2rem;
        background: rgba(15, 18, 37, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2.5rem;
        gap: 1.5rem;
        border-radius: 24px;
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        border: 1px solid var(--glass-border);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero {
        padding-top: 10rem;
    }

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

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

    .contact-card {
        padding: 2.5rem 1.5rem;
    }

    .contact-info {
        flex-direction: column;
    }
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: opacity, transform;
}

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

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

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

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

.delay-400 {
    transition-delay: 0.4s;
}

/* Floating Background Animation */
@keyframes float-bg {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }

    33% {
        transform: translateY(-30px) rotate(5deg) scale(1.05);
    }

    66% {
        transform: translateY(10px) rotate(-5deg) scale(0.95);
    }

    100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.05));
    backdrop-filter: blur(5px);
    z-index: 0;
    pointer-events: none;
    animation: float-bg 8s ease-in-out infinite;
}

.floating-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.floating-2 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 5%;
    animation-delay: 2s;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(59, 130, 246, 0.05));
}

.floating-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 10%;
    animation-delay: 4s;
}