/* Theme Variables: Light Mode Default & Dark Mode Override */
        :root {
            --bg-primary: #f8fafc;
            --bg-secondary: #ffffff;
            --bg-tertiary: #f1f5f9;
            --text-primary: #0f172a;
            --text-secondary: #475569;
            --text-muted: #64748b;
            --border-subtle: rgba(15, 23, 42, 0.09);
            --glass-bg: rgba(255, 255, 255, 0.85);
            --card-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
            --accent-primary: #059669;
            --accent-secondary: #0284c7;
        }

        html.dark {
            --bg-primary: #090d16;
            --bg-secondary: #0f172a;
            --bg-tertiary: #1e293b;
            --text-primary: #f8fafc;
            --text-secondary: #cbd5e1;
            --text-muted: #94a3b8;
            --border-subtle: rgba(148, 163, 184, 0.14);
            --glass-bg: rgba(9, 13, 22, 0.85);
            --card-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.55);
            --accent-primary: #10b981;
            --accent-secondary: #06b6d4;
        }

        body {
            background-color: var(--bg-primary);
            color: var(--text-primary);
            transition: background-color 0.25s ease, color 0.25s ease;
            overflow-x: hidden;
        }

        .surface-card {
            background-color: var(--bg-secondary);
            border: 1px solid var(--border-subtle);
            box-shadow: var(--card-shadow);
            transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.25s ease;
        }

        .surface-card:hover {
            border-color: rgba(16, 185, 129, 0.45);
        }

        .glass-header {
            background-color: var(--glass-bg);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border-bottom: 1px solid var(--border-subtle);
        }

        .site-icon {
            width: 1rem;
            height: 1rem;
            display: inline-block;
            flex: 0 0 auto;
            stroke-width: 1.8;
        }

        a:focus-visible,
        button:focus-visible,
        input:focus-visible,
        select:focus-visible,
        textarea:focus-visible {
            outline: 2px solid var(--accent-primary);
            outline-offset: 3px;
        }

        /* True Multi-Page Isolation */
        .page-view {
            display: none;
            animation: pageEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        .page-view.active {
            display: block;
        }

        @keyframes pageEnter {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Subtle Architectural Grid Pattern */
        .bg-grid-pattern {
            background-size: 36px 36px;
            background-image:
                linear-gradient(to right, rgba(16, 185, 129, 0.06) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(6, 182, 212, 0.06) 1px, transparent 1px);
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        ::-webkit-scrollbar-track {
            background: var(--bg-primary);
        }
        ::-webkit-scrollbar-thumb {
            background: #475569;
            border-radius: 9999px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #10b981;
        }

        /* Print Styles for CV Modal */
        @media print {
            body * {
                visibility: hidden;
            }
            #cv-printable-area, #cv-printable-area * {
                visibility: visible;
            }
            #cv-printable-area {
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                background: #ffffff !important;
                color: #000000 !important;
                padding: 20px;
            }
        }
