:root {
    /* Color Palette */
    --bg-color: #050b14;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --accent-glow: rgba(56, 189, 248, 0.5); /* Light Blue */
    --accent-glow-2: rgba(167, 139, 250, 0.5); /* Purple */
    
    --card-bg: rgba(15, 23, 42, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(255, 255, 255, 0.2);
    
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, #0a1128 0%, #02040a 100%);
}

.overlay-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: 
        radial-gradient(circle at 15% 40%, rgba(56, 189, 248, 0.05), transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(192, 132, 252, 0.05), transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(52, 211, 153, 0.05), transparent 50%);
    pointer-events: none;
    animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Typography & Layout */
a {
    text-decoration: none;
    color: inherit;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-shine-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
}

.logo-shine-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg) translateX(-100%);
    animation: shineSweep 8s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

@keyframes shineSweep {
    0% { transform: rotate(30deg) translateX(-100%); }
    20%, 100% { transform: rotate(30deg) translateX(100%); }
}

.logo-image {
    height: 22px;
    width: auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.logo-shine-wrapper:hover .logo-image {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.2);
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-top: 5rem;
    margin-bottom: 5rem;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 30px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.text-justice {
    color: #38bdf8;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.text-justice:hover {
    color: #7dd3fc;
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.7);
}

.text-peace {
    color: #c084fc;
    text-shadow: 0 0 20px rgba(192, 132, 252, 0.4);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.text-peace:hover {
    color: #d8b4fe;
    text-shadow: 0 0 30px rgba(192, 132, 252, 0.7);
}

.text-life {
    color: #34d399;
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.text-life:hover {
    color: #6ee7b7;
    text-shadow: 0 0 30px rgba(52, 211, 153, 0.7);
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #c084fc, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    width: 100%;
    position: relative;
    z-index: 10;
    padding-bottom: 4rem;
}

/* Glassmorphism Cards */
.service-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    transform-style: preserve-3d;
    will-change: transform;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.4), rgba(255,255,255,0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.3s;
}

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

.card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent-glow);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    transform: translate(-50%, -50%);
    top: 0;
    left: 0;
}

.service-card:hover .card-glow {
    opacity: 1;
}

.service-card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.1);
}

.card-content {
    position: relative;
    z-index: 1;
    transform: translateZ(30px); /* 3D effect on hover */
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #38bdf8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
    background: rgba(56, 189, 248, 0.15);
    color: #60a5fa;
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* Special styling for PROK main website card */
.prok-main .icon-wrapper {
    color: #c084fc;
}
.prok-main:hover .icon-wrapper {
    background: rgba(192, 132, 252, 0.15);
    color: #d8b4fe;
    border-color: rgba(192, 132, 252, 0.3);
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.3);
}
.prok-main:hover .card-glow {
    background: var(--accent-glow-2);
}

.service-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.feature-list li {
    font-size: 0.85rem;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
    opacity: 0.6;
    transform: translateY(5px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.service-card:hover .feature-list li {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover .feature-list li:nth-child(1) { transition-delay: 0.05s; }
.service-card:hover .feature-list li:nth-child(2) { transition-delay: 0.15s; }
.service-card:hover .feature-list li:nth-child(3) { transition-delay: 0.25s; }
.service-card:hover .feature-list li:nth-child(4) { transition-delay: 0.35s; }

.feature-list .bullet {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #38bdf8;
    border-radius: 50%;
    margin-top: 0.4rem;
    flex-shrink: 0;
    box-shadow: 0 0 5px rgba(56, 189, 248, 0.5);
}

.prok-main .feature-list .bullet {
    background-color: #c084fc;
    box-shadow: 0 0 5px rgba(192, 132, 252, 0.5);
}

.domain-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    align-self: flex-start;
    transition: all 0.3s ease;
    margin-top: auto;
}

.mt-auto {
    margin-top: auto;
}

.service-card:hover .domain-label {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glitch-hover {
    position: relative;
    display: inline-block;
}

.glitch-hover:hover {
    animation: glitch-anim 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch-anim {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 1px) }
    40% { transform: translate(-1px, -1px) }
    60% { transform: translate(2px, 1px) }
    80% { transform: translate(1px, -1px) }
    100% { transform: translate(0) }
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #050b14;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: #fff;
    margin-bottom: 1.5rem;
    animation: glitch-anim 2s infinite alternate;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    position: absolute;
    top: 0; left: 0; height: 100%;
    width: 0%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    animation: progress 1.2s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(1.2rem, 6.5vw, 2.2rem);
        white-space: nowrap;
        letter-spacing: -0.03em;
    }
    .header {
        flex-direction: column;
        gap: 1.5rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    margin-left: -300px;
    margin-top: -300px;
    background: radial-gradient(circle, var(--cursor-color, rgba(255,255,255,0.03)) 0%, transparent 50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
}

/* Info Page Styles */
.info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
    width: 100%;
    z-index: 10;
    position: relative;
    padding-bottom: 5rem;
}

.info-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.info-hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.info-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.5);
    background: linear-gradient(135deg, #7dd3fc, #a5b4fc);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.info-section.reverse {
    direction: rtl;
}

.info-section.reverse > * {
    direction: ltr;
}

.info-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.info-content .highlight {
    color: #38bdf8;
}

.info-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.info-features {
    list-style: none;
}

.info-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.info-features .check {
    color: #34d399;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.info-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.info-image-wrapper:hover img {
    transform: scale(1.03);
}

@media (max-width: 992px) {
    .info-section {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    .info-section.reverse {
        direction: ltr;
    }
}

