        :root {
            --text-primary: #ffffff;
            --text-secondary: #e0e0e0;
            --text-muted: #b0b0b0;
            --background: #10141c;
            --card-background: rgba(255, 255, 255, 0.55);
            --border-color: rgba(255, 255, 255, 0.3);
            --accent: #000000;
            --accent-hover: #333333;
        }

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

        html {
            height: 100%;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--background);
            color: var(--text-primary);
            line-height: 1.6;
            padding: 3rem 2rem;
            position: relative;
            overflow-x: hidden;
            min-height: 100%;
        }

        body::before {
            content: '';
            position: fixed;
            inset: calc(-1 * env(safe-area-inset-top, 0px)) 0 calc(-1 * env(safe-area-inset-bottom, 0px));
            background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
            z-index: -3;
        }

        /* Hidden - kept for compatibility */
        .background-layer {
            display: none;
        }

        /* Main content wrapper */
        .main-content {
            position: relative;
        }

        /* Solar System */
        #solar-system {
            position: fixed;
            inset: calc(-1 * env(safe-area-inset-top, 0px)) 0 calc(-1 * env(safe-area-inset-bottom, 0px));
            z-index: -1;
            display: flex;
            justify-content: center;
            align-items: center;
            pointer-events: none;
        }

        .sun {
            position: absolute;
            width: 80px;
            height: 80px;
            background: #ccc;
            border-radius: 50%;
            box-shadow: 0 0 50px rgba(255, 255, 255, 0.5), 0 0 80px rgba(200, 200, 200, 0.25);
        }

        .orbit {
            position: absolute;
            border: none;
            border-radius: 50%;
            animation: rotate linear infinite;
        }

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

        .planet {
            position: absolute;
            top: 50%;
            left: 0;
            transform: translate(-50%, -50%);
            width: 1em;
            height: 1em;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, #fff, #555);
            box-shadow: inset -4px -4px 8px rgba(0, 0, 0, 0.6), 0 4px 8px rgba(0, 0, 0, 0.4);
        }

        .moon {
            position: absolute;
            top: 50%;
            left: 0;
            transform: translate(-50%, -50%);
            width: 1em;
            height: 1em;
            border-radius: 50%;
            background: #aaa;
            box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .moon-orbit {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            animation: rotate-moon linear infinite;
        }

        @keyframes rotate-moon {
            from { transform: translate(-50%, -50%) rotate(0deg); }
            to { transform: translate(-50%, -50%) rotate(360deg); }
        }

        #saturn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 150%;
            height: 12%;
            background: #ccc;
            transform: translate(-50%, -50%) rotate(30deg);
            border-radius: 50%;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        /* Planet and orbit sizes */
        #mercury-orbit { width: 160px; height: 160px; animation-duration: 10s; }
        #mercury { font-size: 8px; background: #888; }

        #venus-orbit { width: 240px; height: 240px; animation-duration: 20s; }
        #venus { font-size: 12px; background: #aaa; }

        #earth-orbit { width: 320px; height: 320px; animation-duration: 30s; }
        #earth { font-size: 16px; background: #999; }
        #moon-orbit { width: 48px; height: 48px; animation-duration: 8s; }
        #moon { font-size: 4px; }

        #mars-orbit { width: 400px; height: 400px; animation-duration: 40s; }
        #mars { font-size: 14px; background: #777; }
        #phobos-orbit { width: 24px; height: 24px; animation-duration: 2s; }
        #phobos { font-size: 3px; background: #888; }
        #deimos-orbit { width: 32px; height: 32px; animation-duration: 4s; }
        #deimos { font-size: 2px; background: #888; }

        #jupiter-orbit { width: 560px; height: 560px; animation-duration: 60s; }
        #jupiter { font-size: 40px; background: #bbb; }
        #io-orbit { width: 48px; height: 48px; animation-duration: 4s; }
        #io { font-size: 6px; }
        #europa-orbit { width: 64px; height: 64px; animation-duration: 6s; }
        #europa { font-size: 5px; }
        #ganymede-orbit { width: 80px; height: 80px; animation-duration: 8s; }
        #ganymede { font-size: 7px; }
        #callisto-orbit { width: 96px; height: 96px; animation-duration: 12s; }
        #callisto { font-size: 6px; }

        #saturn-orbit { width: 720px; height: 720px; animation-duration: 80s; }
        #saturn { font-size: 32px; background: #999; position: relative; }
        #titan-orbit { width: 64px; height: 64px; animation-duration: 10s; }
        #titan { font-size: 8px; }

        #uranus-orbit { width: 880px; height: 880px; animation-duration: 100s; }
        #uranus { font-size: 24px; background: #888; }
        #titania-orbit { width: 48px; height: 48px; animation-duration: 6s; }
        #titania { font-size: 5px; }
        #oberon-orbit { width: 64px; height: 64px; animation-duration: 8s; }
        #oberon { font-size: 5px; }

        #neptune-orbit { width: 1040px; height: 1040px; animation-duration: 120s; }
        #neptune { font-size: 22px; background: #777; }
        #triton-orbit { width: 48px; height: 48px; animation-duration: 6s; animation-direction: reverse; }
        #triton { font-size: 6px; }

        #stars {
            position: fixed;
            inset: calc(-1 * env(safe-area-inset-top, 0px)) 0 calc(-1 * env(safe-area-inset-bottom, 0px));
            pointer-events: none;
            z-index: -2;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }

        .container {
            max-width: 800px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .card {
            background: rgba(255, 255, 255, 0.01);
            backdrop-filter: blur(4px) saturate(100%);
            -webkit-backdrop-filter: blur(4px) saturate(100%);
            border-radius: 12px;
            padding: 2.5rem;
            transition: all 0.3s ease;
            position: relative;
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 12px;
            padding: 1px;
            background: linear-gradient(
                135deg,
                rgba(255, 255, 255, 0.4),
                rgba(255, 255, 255, 0.1)
            );
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
        }

        .card:hover {
            background: rgba(255, 255, 255, 0.02);
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.7);
        }

        .card.profile {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(4px) saturate(100%);
            -webkit-backdrop-filter: blur(4px) saturate(100%);
            color: white;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .card.profile:hover {
            background: rgba(255, 255, 255, 0.08);
            transform: translateY(-2px);
            box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.8);
        }

        .card.profile .subtitle {
            color: rgba(255, 255, 255, 0.75);
        }

        .card.profile .email {
            color: rgba(255, 255, 255, 0.9);
        }

        h1 {
            font-size: 2rem;
            font-weight: 600;
            letter-spacing: -0.02em;
            margin-bottom: 0.5rem;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        }

        h2 {
            font-size: 1rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 1.5rem;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .card.profile h1 {
            color: white;
        }

        .subtitle {
            font-size: 0.95rem;
            font-weight: 400;
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
        }

        .subtitle-small {
            font-size: 0.85rem;
            margin-bottom: 1.5rem;
        }

        .email {
            font-size: 0.9rem;
            font-weight: 400;
            color: var(--text-secondary);
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
        }

        .links {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .link-item {
            border-top: 1px solid rgba(255, 255, 255, 0.15);
            padding: 1.25rem 0;
        }

        .links .link-item:last-child {
            border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        }

        .links a {
            display: block;
            color: var(--text-primary);
            text-decoration: none;
            font-weight: 500;
            font-size: 1rem;
            transition: all 0.2s ease;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
        }

        .links a:hover {
            color: #ffffff;
            padding-left: 0.5rem;
            text-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
        }

        .project-description {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-top: 0.5rem;
            line-height: 1.5;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
        }

        .link-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
        }

        .status-indicator {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            padding: 0.25rem 0.5rem;
            border-radius: 6px;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .status-indicator:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #666;
            box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
            transition: all 0.3s ease;
        }

        .status-dot.online {
            background: #2ecc71;
            box-shadow: 0 0 12px rgba(46, 204, 113, 0.8);
        }

        .status-dot.offline {
            background: #e74c3c;
            box-shadow: 0 0 12px rgba(231, 76, 60, 0.8);
        }

        .status-dot.checking {
            background: #f39c12;
            box-shadow: 0 0 12px rgba(243, 156, 18, 0.8);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .status-text {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.6);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* Status Modal */
        .status-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            height: 100dvh; /* iOS 26+ */
            min-height: -webkit-fill-available; /* iOS Safari fallback */
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 1000;
            padding: 2rem;
            overflow-y: auto;
        }

        .status-modal.active {
            display: flex;
            justify-content: center;
            align-items: flex-start;
        }

        .status-modal-content {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(12px) saturate(100%);
            -webkit-backdrop-filter: blur(12px) saturate(100%);
            border-radius: 12px;
            padding: 2rem;
            max-width: 600px;
            width: 100%;
            margin-top: 2rem;
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
            position: relative;
        }

        .status-modal-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 12px;
            padding: 1px;
            background: linear-gradient(
                135deg,
                rgba(255, 255, 255, 0.4),
                rgba(255, 255, 255, 0.1)
            );
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        }

        .modal-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .modal-close {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: var(--text-primary);
            font-size: 1.5rem;
            width: 36px;
            height: 36px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .modal-close:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.4);
        }

        .status-history {
            max-height: 500px;
            overflow-y: auto;
            padding-right: 0.5rem;
        }

        .status-history-item {
            padding: 1rem;
            margin-bottom: 0.75rem;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 8px;
            transition: all 0.2s ease;
        }

        .status-history-item:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.25);
        }

        .status-history-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }

        .status-history-status {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 500;
        }

        .status-history-time {
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.5);
        }

        .status-history-details {
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.6);
            margin-top: 0.5rem;
        }

        .status-history::-webkit-scrollbar {
            width: 8px;
        }

        .status-history::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
        }

        .status-history::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 4px;
        }

        .status-history::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .locked-content {
            position: relative;
            transition: opacity 0.4s ease;
        }

        .locked-content.hidden {
            opacity: 0.15;
            pointer-events: none;
        }

        .quadrant-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 10;
            cursor: pointer;
        }

        .quadrant-button {
            position: absolute;
            background: rgba(0, 0, 0, 0.01);
            border: 1px solid transparent;
        }

        .quadrant-button:hover {
            background: rgba(0, 0, 0, 0.03);
            border-color: rgba(0, 0, 0, 0.1);
        }

        @keyframes flash-white {
            0% { background: rgba(0, 0, 0, 0.01); }
            50% { background: rgba(255, 255, 255, 0.4); }
            100% { background: rgba(0, 0, 0, 0.01); }
        }

        .quadrant-button.flash {
            animation: flash-white 0.3s ease-out;
        }

        .quadrant-top-left {
            top: 0;
            left: 0;
            width: 50%;
            height: 50%;
            border-top-left-radius: 12px;
        }
        .quadrant-top-right {
            top: 0;
            right: 0;
            width: 50%;
            height: 50%;
            border-top-right-radius: 12px;
        }
        .quadrant-bottom-left {
            bottom: 0;
            left: 0;
            width: 50%;
            height: 50%;
            border-bottom-left-radius: 12px;
        }
        .quadrant-bottom-right {
            bottom: 0;
            right: 0;
            width: 50%;
            height: 50%;
            border-bottom-right-radius: 12px;
        }

        .dummy-link {
            display: block;
            color: rgba(255, 255, 255, 0.5);
            font-weight: 500;
            font-size: 1rem;
            filter: blur(2px);
            user-select: none;
        }

        /* Resume Modal */
        .resume-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            height: 100dvh; /* iOS 26+ */
            min-height: -webkit-fill-available; /* iOS Safari fallback */
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            z-index: 2000;
            padding: 2rem;
            overflow: hidden;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .resume-modal.active {
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 1;
        }

        .resume-modal-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(16px) saturate(100%);
            -webkit-backdrop-filter: blur(16px) saturate(100%);
            border-radius: 16px;
            width: 95%;
            max-width: 1000px;
            height: 90vh;
            height: 90dvh; /* iOS 26+ */
            max-height: 900px;
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
            position: relative;
            display: flex;
            flex-direction: column;
            opacity: 0;
            transform: perspective(1500px) rotateY(180deg) scale(0.4);
            transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .resume-modal.active .resume-modal-card {
            transform: perspective(1500px) rotateY(0deg) scale(1);
            opacity: 1;
        }

        .resume-modal-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 16px;
            padding: 1px;
            background: linear-gradient(
                135deg,
                rgba(255, 255, 255, 0.5),
                rgba(255, 255, 255, 0.15)
            );
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
        }

        .resume-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 2rem 2.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            flex-shrink: 0;
        }

        .resume-modal-title {
            font-size: 1.75rem;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0;
            text-transform: none;
            letter-spacing: -0.02em;
        }

        .resume-timeline-container {
            position: relative;
            flex: 1;
            overflow: hidden;
        }

        .resume-timeline-content {
            height: 100%;
            overflow: hidden;
            padding: 3rem 2.5rem;
        }

        .timeline-container-wrapper {
            position: relative;
            display: grid;
            grid-template-columns: 250px 2px 1fr;
            gap: 1rem;
            height: 100%;
        }

        .timeline-scroll-area {
            overflow-y: auto;
            overflow-x: hidden;
            height: 100%;
            scrollbar-width: none; /* Firefox */
        }

        .timeline-scroll-area::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Edge */
        }

        .timeline-dates-column {
            position: relative;
            padding-top: 0.5rem;
        }

        .timeline-date {
            text-align: right;
            padding-right: 0.65rem;
            height: 80px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.6);
            font-weight: 500;
            line-height: 1.2;
        }

        .timeline-line-column {
            position: relative;
        }

        .timeline-line {
            position: absolute;
            top: 0;
            left: 0;
            width: 2px;
            height: 100%;
            background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
        }

        .timeline-entries-column {
            position: relative;
            overflow-y: auto;
            overflow-x: hidden;
            height: 100%;
            padding: 1.5rem 1rem 1.5rem 0;
            scrollbar-width: none; /* Firefox */
        }

        .timeline-entries-column::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Edge */
        }

        .resume-section {
            transition: opacity 0.8s ease;
            margin-bottom: 2rem;
        }

        .resume-section.visible {
            opacity: 1;
        }

        .resume-section.fading-out {
            opacity: 0;
        }

        .resume-section.hidden {
            display: none;
        }

        .resume-section-content {
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.7);
            line-height: 1.6;
        }

        .resume-section-title {
            font-size: 1.1rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 1rem;
        }

        .resume-section-content strong {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .resume-section-content em {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.8);
            font-style: italic;
        }

        @keyframes cardFlip {
            0% {
                transform: rotateY(-90deg) scale(0.5);
                opacity: 0;
            }
            100% {
                transform: rotateY(0deg) scale(1);
                opacity: 1;
            }
        }

        @media (max-width: 768px) {
            body {
                padding: 1.5rem 1rem;
            }
            h1 {
                font-size: 1.75rem;
            }
            .card {
                padding: 2rem;
            }
            .resume-modal {
                padding: 0.5rem;
            }
            .resume-modal-card {
                width: 100%;
                height: 96vh;
                height: 96dvh; /* iOS 26+ */
                max-height: none;
                border-radius: 12px;
            }
            .resume-modal-header {
                padding: 1.25rem 1.5rem;
            }
            .resume-modal-title {
                font-size: 1.25rem;
            }
            .resume-timeline-content {
                padding: 1.5rem 0.75rem;
            }
            .timeline-container-wrapper {
                grid-template-columns: 100px 2px 1fr;
                gap: 0.5rem;
            }
            .timeline-date {
                font-size: 0.75rem;
                padding-right: 0.4rem;
                height: 80px;
                color: rgba(255, 255, 255, 0.85);
            }
            .timeline-scroll-area {
                scrollbar-width: thin;
                scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
                -webkit-overflow-scrolling: touch;
                touch-action: pan-y;
            }
            .timeline-scroll-area::-webkit-scrollbar {
                display: block;
                width: 4px;
            }
            .timeline-scroll-area::-webkit-scrollbar-track {
                background: transparent;
            }
            .timeline-scroll-area::-webkit-scrollbar-thumb {
                background: rgba(255, 255, 255, 0.3);
                border-radius: 2px;
            }
            .timeline-dates-column {
                user-select: none;
                -webkit-user-select: none;
            }
            .timeline-entries-column {
                padding: 1.5rem 0.5rem 1.5rem 0;
                gap: 1.5rem;
                position: sticky;
                top: 1rem;
            }
            .resume-section {
                padding: 0;
            }
            .resume-section-title {
                font-size: 0.95rem;
                margin-bottom: 1rem;
            }
            .resume-item-title {
                font-size: 0.9rem;
            }
            .resume-item-company {
                font-size: 0.8rem;
            }
            .resume-item-meta {
                font-size: 0.75rem;
            }
            .resume-item-details {
                font-size: 0.75rem;
            }
        }

