
:root {
    /* --- Main Colors (Primitives) --- */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #6b7280; 
    --gray-500: #666666;
    --gray-600: #545454;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* --- Semantic Tokens (Design System) --- */
    
    /* Surface */
    --bg-main: var(--white);
    --bg-alt: var(--gray-50);
    --bg-card: var(--white);
    --bg-overlay: rgba(255, 255, 255, 0.1);
    
    /* Text */
    --text-main: var(--gray-900);
    --text-muted: var(--gray-600);
    --text-subtle: var(--gray-400);
    --text-main: var(--gray-900);
    --text-primary: var(--text-main);
    --text-muted: var(--gray-600);
    --text-secondary: var(--text-muted);
    --text-subtle: var(--gray-400);
    --text-inverse: var(--white);
    
    /* Border */
    --border-subtle: var(--gray-100);
    --border-default: var(--gray-200);
    --border-strong: var(--gray-300);
    --border-inverse: var(--white);
    --border-overlay: rgba(255, 255, 255, 0.15);

    /* --- Accents --- */
    --accent-blue: #0066ff;
    --accent-navy: #001f3f;
    --accent-neon: #00d2ff;
    --accent-soft-blue: #e0f2fe;
    --accent-orange: #20ad5d; 
    
    /* Default Accent */
    --accent: var(--accent-blue);
    --accent-indigo: var(--accent-navy);
    --accent-indigo-rgb: 0, 31, 63;

    /* --- Effects --- */
    --shadow-main: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-subtle: 0 4px 12px rgba(0,0,0,0.05);

    /* --- Animations --- */
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* --- Project Specific Themes --- */
    --theme-spico: #42D596;
    --theme-lufin: #3b82f6;
    --theme-docshund: #B97E65;
    --theme-everymatch: #f1654c;
    --theme-seoul42: #9266a5;
}

/* --- Dark Mode Semantic Tokens --- */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-main: var(--gray-800);
        --bg-alt: var(--gray-800);
        --bg-card: #1b222d;
        --bg-overlay: rgba(255, 255, 255, 0.05);
        
        --text-main: var(--gray-100);
        --text-muted: var(--gray-300);
        --text-subtle: #9ca3af;
        --text-primary: var(--text-main);
        --text-secondary: var(--text-muted);
        
        --border-subtle: #2d3748;
        --border-default: #3e4b5f;
        --border-strong: #4a5568;
        --border-overlay: rgba(255, 255, 255, 0.1);

        --shadow-main: 0 10px 30px rgba(0,0,0,0.3);
        --shadow-subtle: 0 4px 12px rgba(0,0,0,0.2);

        --accent-indigo: #60a5fa;
        --accent-indigo-rgb: 96, 165, 250;
        --accent-soft-blue: rgba(0, 102, 255, 0.1);
    }
}

/* Manual Theme Switch Support */
[data-theme='light'] {
    --bg-main: var(--white);
    --bg-alt: var(--gray-50);
    --bg-card: var(--white);
    --bg-overlay: rgba(255, 255, 255, 0.1);
    
    --text-main: var(--gray-900);
    --text-muted: var(--gray-600);
    --text-subtle: var(--gray-400);
    --text-primary: var(--text-main);
    --text-secondary: var(--text-muted);
    
    --border-subtle: var(--gray-100);
    --border-default: var(--gray-200);
    --border-strong: var(--gray-300);
    --border-overlay: rgba(255, 255, 255, 0.15);

    --shadow-main: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-subtle: 0 4px 12px rgba(0,0,0,0.05);

    --accent-soft-blue: #e0f2fe;
}

[data-theme='dark'] {
    --bg-main: var(--gray-800);
    --bg-alt: var(--gray-800);
    --bg-card: #1b222d;
    --bg-overlay: rgba(0, 0, 0, 0.4);
    
    --text-main: var(--gray-100);
    --text-muted: var(--gray-300);
    --text-subtle: #9ca3af;
    --text-primary: var(--text-main);
    --text-secondary: var(--text-muted);
    
    --border-subtle: #2d3748;
    --border-default: #3e4b5f;
    --border-strong: #4a5568;
    --border-overlay: rgba(255, 255, 255, 0.1);

    --shadow-main: 0 10px 30px rgba(0,0,0,0.3);
    --shadow-subtle: 0 4px 12px rgba(0,0,0,0.2);

    --accent-indigo: #60a5fa;
    --accent-soft-blue: rgba(0, 102, 255, 0.1);

    /* Dark Mode Project Accents (Subtle) */
    --theme-spico: #047b55;
    --theme-lufin: #1a4d9a;
    --theme-docshund: #753e1c;
    --theme-everymatch: #953922;
    --theme-seoul42: #60446c;
}



/* --- Global Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* --- Base Body --- */
body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-width: 370px;
    word-break: keep-all;
    scroll-behavior: smooth;
    width: 100%;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 6%;
}

/* --- Typography Utilities --- */
.text-desc {
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
    line-height: 1.5;
	font-size: 0.9rem;
}

.text-highlight {
    color: var(--text-primary);
    margin-top: 5px;
    font-weight: 700;
}

.sub-list {
    margin-top: 8px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Animation Utilities --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.reveal.active {
    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; }
.delay-500 { transition-delay: 0.5s; }

p {
    word-break: keep-all;
}
