        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Nunito', sans-serif;
            background-color: #eef2f7;
            color: #3a3a4a;
            min-height: 100%;
            transition: background-color 0.4s ease, color 0.4s ease;
        }

        body.dark {
            background-color: #1a1a2e;
            color: #d0d0e0;
        }

        body.dark nav {
            background: rgba(30, 30, 50, 0.75);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        body.dark nav a {
            color: #a0a8c0;
        }

        body.dark nav a:hover,
        body.dark nav a.active {
            background: #2a2a48;
            color: #7eaadf;
            box-shadow: 0 4px 12px rgba(40, 60, 100, 0.3);
        }

        body.dark .lang-divider,
        body.dark .theme-divider {
            background: #3a3a58;
        }

        body.dark .lang-btn:hover,
        body.dark .theme-btn:hover,
        body.dark .lang-btn.active,
        body.dark .theme-btn.active {
            background: #2a2a48;
        }

        body.dark .lang-btn.active,
        body.dark .theme-btn.active {
            border-color: #7eaadf;
        }

        body.dark .about-text {
            background: rgba(30, 30, 50, 0.7);
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
        }

        body.dark .about-text h1 {
            color: #7eaadf;
        }

        body.dark .project-card {
            background: rgba(30, 30, 50, 0.7);
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
        }

        body.dark .project-card h2 {
            color: #7eaadf;
        }

        body.dark .project-tag {
            background: #2a2a48;
            color: #a0b4d0;
            border-color: #3a3a58;
        }

        body.dark .project-tag:hover {
            background: #303052;
            color: #dce8f5;
        }

        body.dark .project-link {
            color: #7eaadf;
        }

        body.dark .project-link:hover {
            color: #a0c4f0;
        }

        nav {
            max-width: 820px;
            margin: 30px auto 0;
            background: rgba(255, 255, 255, 0.75);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: 16px;
            padding: 10px 16px;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 20px rgba(100, 120, 160, 0.12);
            transition: background 0.4s ease, box-shadow 0.4s ease;
        }

        nav a {
            text-decoration: none;
            color: #4a5568;
            font-weight: 600;
            font-size: 0.95rem;
            padding: 10px 24px;
            border-radius: 12px;
            transition: background 0.3s ease, color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
        }

        nav a:hover {
            background: #d6e4f5;
            color: #2b5ea7;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(100, 140, 200, 0.18);
        }

        nav a.active {
            background: #c4d8f0;
            color: #2b5ea7;
        }

        .lang-divider,
        .theme-divider {
            width: 1px;
            height: 20px;
            background: #c4d0e0;
            margin: 0 8px;
            transition: background 0.4s ease;
        }

        .lang-switcher,
        .theme-switcher {
            display: flex;
            gap: 6px;
            align-items: center;
        }

        .lang-btn,
        .theme-btn {
            background: none;
            border: 2px solid transparent;
            border-radius: 8px;
            padding: 4px;
            cursor: pointer;
            font-size: 1.1rem;
            line-height: 1;
            transition: transform 0.25s ease, border-color 0.3s ease, background 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .lang-btn:hover,
        .theme-btn:hover {
            transform: translateY(-2px);
            background: #d6e4f5;
        }

        .lang-btn.active,
        .theme-btn.active {
            border-color: #2b5ea7;
            background: #c4d8f0;
        }

        .container {
            max-width: 860px;
            margin: 40px auto;
            padding: 0 20px 60px;
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .about-text {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(8px);
            border-radius: 18px;
            padding: 32px;
            box-shadow: 0 6px 24px rgba(100, 130, 180, 0.1);
            line-height: 1.75;
            font-size: 0.95rem;
            text-align: justify;
            transition: background 0.4s ease, box-shadow 0.4s ease;
        }

        .about-text h1 {
            font-size: 1.6rem;
            color: #2b5ea7;
            margin-bottom: 16px;
            font-weight: 700;
            transition: color 0.4s ease;
        }

        .project-card {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(8px);
            border-radius: 18px;
            padding: 28px 32px;
            box-shadow: 0 6px 24px rgba(100, 130, 180, 0.1);
            display: flex;
            gap: 28px;
            align-items: stretch;
            transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
        }

        .project-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 32px rgba(100, 130, 180, 0.18);
        }

        .project-img {
            flex-shrink: 0;
            width: 276px;
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .project-img img {
            width: 100%;
            aspect-ratio: 460 / 215;
            object-fit: cover;
            border-radius: 12px;
            display: block;
        }

        .project-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 12px;
        }

        .project-card h2 {
            font-size: 1.35rem;
            color: #2b5ea7;
            font-weight: 700;
            transition: color 0.4s ease;
        }

        .project-description {
            font-size: 0.93rem;
            line-height: 1.7;
            text-align: justify;
        }

        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: -4px;
        }

        .project-tag {
            display: inline-block;
            text-decoration: none;
            background: #dce8f5;
            color: #3a5a8a;
            font-size: 0.78rem;
            font-weight: 600;
            padding: 4px 12px;
            border-radius: 20px;
            border: 1px solid #c4d8f0;
            transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
        }

        .project-tag a,
        .project-tag a:visited,
        .project-tag a:active {
            color: inherit;
            text-decoration: none;
        }

        .project-tag:hover {
            box-shadow: 0 4px 10px rgba(58, 90, 138, 0.15);
            background: #c4d8f0;
        }

        .project-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: #2b5ea7;
            font-weight: 600;
            font-size: 0.9rem;
            text-decoration: none;
            margin-top: 4px;
            transition: color 0.3s ease, transform 0.25s ease;
            width: fit-content;
        }

        .project-link:hover {
            color: #1a4580;
            transform: translateX(3px);
        }

        .project-link svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
            transition: transform 0.25s ease;
        }

        .project-link:hover svg {
            transform: translateX(2px);
        }

        .preload, .preload * {
            transition: none !important;
        }

        @media (max-width: 640px) {
            nav {
                flex-wrap: wrap;
                margin: 16px 20px 0;
                padding: 16px 12px; 
                gap: 8px;
            }
            .theme-switcher,
            .lang-switcher {
                width: 100%;
                justify-content: center;
            }
            .lang-divider,
            .theme-divider {
                width: 100%;
                height: 1px;
                margin: 4px 0;
            }
            nav a {
                padding: 8px 16px;
                font-size: 0.88rem;
            }
            .container {
                padding: 0 20px 40px;
            }
            .project-card {
                flex-direction: column;
                padding: 24px;
                gap: 20px;
            }
            .project-img {
                width: 100%;
                max-height: 200px;
            }
        }