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

        body {
            margin: auto;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            overflow: auto;
            background: #2c3e50;
            color: white;
            line-height: 1.6;
            min-height: 100vh;
        }

        .intro-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            height: 100dvh; /* Dynamic viewport height for mobile */
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 99999;
            opacity: 1;
            transition: opacity 0.8s ease;
            cursor: pointer;
            /* Prevent scrolling issues on mobile */
            overflow: hidden;
            -webkit-overflow-scrolling: touch;
        }

        .intro-screen::after {
            content: 'Click to skip';
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            color: rgba(255, 255, 255, 0.7);
            font-size: 14px;
            animation: pulse 2s infinite;
        }

        .intro-screen.fade-out {
            opacity: 0;
            pointer-events: none;
        }

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

        .intro-title {
            font-size: 4rem;
            font-weight: 700;
            margin-bottom: 20px;
            color: white;
        }

        .intro-letter {
            display: inline-block;
            opacity: 0;
            transform: translateY(50px);
            animation: letterFadeIn 0.6s ease forwards;
        }

        .intro-letter:nth-child(1) { animation-delay: 0.1s; }
        .intro-letter:nth-child(2) { animation-delay: 0.2s; }
        .intro-letter:nth-child(3) { animation-delay: 0.3s; }
        .intro-letter:nth-child(4) { animation-delay: 0.4s; }
        .intro-letter:nth-child(5) { animation-delay: 0.5s; }
        .intro-letter:nth-child(6) { animation-delay: 0.6s; }
        .intro-letter:nth-child(7) { animation-delay: 0.7s; }

        .intro-subtitle {
            font-size: 1.5rem;
            opacity: 0;
            color: rgba(255, 255, 255, 0.9);
            animation: subtitleFadeIn 0.8s ease forwards;
            animation-delay: 1.2s;
        }

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

        @keyframes subtitleFadeIn {
            to {
                opacity: 1;
            }
        }

        .main-content {
            opacity: 0;
            transition: opacity 0.8s ease;
        }

        .main-content.show {
            opacity: 1;
            display: block;
        }

        .container {
            max-width: 900px;
            margin: 0 auto;
            padding: 60px 20px;
        }

        header {
            padding: 0 0 60px 0;
            color: white;
            margin-bottom: 80px;
            display: flex;
            align-items: center;
            gap: 40px;
            flex-wrap: wrap;
        }

        .profile-img {
            width: 120px;
            height: 120px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            color: white;
            font-weight: 600;
            flex-shrink: 0;
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
            transition: transform 0.3s ease;
        }

        .profile-img img {
            width: 120px;
            height: 120px;
            border-radius: 20px;
            object-fit: cover;
        }

        .profile-img:hover {
            transform: translateY(-5px) rotate(2deg);
        }

        .header-content {
            flex: 1;
            min-width: 300px;
        }

        h1 {
            font-size: 2.8em;
            margin-bottom: 8px;
            font-weight: 700;
            letter-spacing: -0.02em;
            background: linear-gradient(135deg, white 0%, #e0e7ff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .subtitle {
            font-size: 1.2em;
            margin-bottom: 30px;
            display: block !important;
            width: 100%;
            text-align: center;
            clear: both;
        }

        .contact-links {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
        }

        .contact-links a {
            color: #4a5568;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            padding: 10px 20px;
            background: white;
            border: 2px solid #e2e8f0;
            border-radius: 25px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        .contact-links a:hover {
            background: #667eea;
            color: white;
            border-color: #667eea;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
        }

        .content {
            background: none;
            border-radius: 0;
            padding: 0;
            margin: 0;
            box-shadow: none;
        }

        .section {
            margin-bottom: 100px;
        }

        h2 {
            color: white;
            font-size: 2.2em;
            margin-bottom: 30px;
            text-align: center;
            position: relative;
        }

        h2::after {
            content: '';
            width: 50px;
            height: 3px;
            background: white;
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
        }

        .about {
            font-size: 18px;
            text-align: left;
            color: #4a5568;
            max-width: 100%;
            line-height: 1.8;
            background: white;
            padding: 40px;
            border-radius: 16px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            border: 1px solid #e2e8f0;
        }

        .skills-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            margin-top: 32px;
        }

        .skill {
            background: white;
            color: #4a5568;
            padding: 16px 24px;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 600;
            transition: all 0.3s ease;
            border: 2px solid #e2e8f0;
            cursor: pointer;
        }

        .skill:hover {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            transform: translateY(-3px);
            border-color: transparent;
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 32px;
            margin-top: 40px;
        }

        .project-card {
            background: white;
            border-radius: 20px;
            padding: 0;
            transition: all 0.3s ease;
            border: 1px solid #e2e8f0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .project-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            z-index: 2;
        }

        .project-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
            border-color: #667eea;
        }

        .project-image {
            width: 100%;
            height: 240px;
            overflow: hidden;
            position: relative;
            background: #f8fafc;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 0;
        }

        .project-image img, 
        .project-image video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
            border-radius: 0;
        }

        .project-card:hover .project-image img {
            transform: scale(1.02);
        }

        .project-gif {
            width: 100%;
            height: 100%;
            object-fit: cover;
            background: #f8fafc;
            opacity: 0;
            transition: opacity 0.4s ease;
            position: absolute;
            top: 0;
            left: 0;
        }

        .project-card:hover .project-gif {
            opacity: 1;
        }

        .project-card:hover .project-image-placeholder {
            opacity: 0;
        }

        .project-card.mobile-gif-active .project-gif {
            opacity: 1;
        }

        .project-card.mobile-gif-active .project-image-placeholder {
            opacity: 0;
        }

        .project-card.mobile-gif-active .project-image-overlay {
            opacity: 1;
            background: rgba(102, 126, 234, 0.1);
        }

        .project-image-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(102, 126, 234, 0.0);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: all 0.3s ease;
            pointer-events: none;
        }

        .project-card:hover .project-image-overlay {
            opacity: 1;
            background: rgba(102, 126, 234, 0.1);
        }

        .play-indicator {
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: #667eea;
            backdrop-filter: blur(10px);
        }

        .project-image-placeholder {
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            color: #a0aec0;
            font-size: 48px;
            transition: opacity 0.4s ease;
        }

        .project-image-placeholder .placeholder-text {
            font-size: 14px;
            margin-top: 10px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        @media (max-width: 768px) {
            .project-image-placeholder::after {
                content: '👆 Tap to view';
                position: absolute;
                bottom: 15px;
                left: 50%;
                transform: translateX(-50%);
                font-size: 12px;
                color: #718096;
                background: rgba(255, 255, 255, 0.9);
                padding: 4px 8px;
                border-radius: 12px;
                font-weight: 600;
                animation: pulse 2s infinite;
                opacity: 0.8;
            }
            
            .project-card.mobile-gif-active .project-image-placeholder::after {
                display: none;
            }
            
            .project-card {
                cursor: pointer;
                touch-action: manipulation;
            }
            
            .project-card {
                border: 2px solid transparent;
                transition: border-color 0.3s ease;
            }
            
            .project-card.mobile-gif-active {
                border-color: #667eea;
            }
        }

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

        .project-content {
            padding: 32px;
            flex: 1;
        }

        .project-title {
            color: #1a202c;
            font-size: 1.4em;
            margin-bottom: 8px;
            font-weight: 600;
            letter-spacing: -0.01em;
        }

        .project-period {
            color: #a0aec0;
            font-size: 14px;
            margin-bottom: 16px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .project-description {
            color: #4a5568;
            margin-bottom: 24px;
            line-height: 1.7;
            font-size: 15px;
        }

        .project-tech {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .tech-tag {
            background: #f7fafc;
            color: #4a5568;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            border: 1px solid #e2e8f0;
        }

        .education {
            background: white;
            color: #2d3748;
            padding: 32px;
            border-radius: 16px;
            margin-top: 24px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease;
        }

        .education:hover {
            transform: translateY(-4px);
        }

        .education h3 {
            font-size: 1.3em;
            margin-bottom: 8px;
            color: #1a202c;
            font-weight: 600;
        }

        .education-period {
            color: #a0aec0;
            margin-bottom: 12px;
            font-size: 14px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .education p {
            color: #4a5568;
            line-height: 1.7;
            font-size: 15px;
        }

        footer {
            text-align: left;
            padding: 80px 0 40px 0;
            color: #a0aec0;
            margin-top: 120px;
            border-radius: 16px 16px 0 0;
        }

        footer p {
            font-size: 14px;
            margin-bottom: 4px;
            font-weight: 500;
        }

        .language-switcher {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1000;
            display: flex;
            gap: 10px;
        }

        .lang-btn {
            background: rgba(255,255,255,0.2);
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            font-weight: bold;
        }

        .lang-btn:hover {
            background: rgba(255,255,255,0.3);
            transform: translateY(-2px);
        }

        .lang-btn.active {
            background: rgba(255,255,255,0.4);
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }

        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.6s ease;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        @media (max-width: 768px) {
            .intro-screen {
                height: 100vh;
                height: 100dvh;
                min-height: 100vh;
                min-height: 100dvh;
                padding: 20px;
            }
            
            .intro-content {
                width: 100%;
                max-width: 90%;
                text-align: center;
            }
            
            .intro-title {
                font-size: 2.5rem;
                margin-bottom: 15px;
            }
            
            .intro-subtitle {
                font-size: 1.2rem;
                padding: 0 10px;
            }
            
            .language-switcher {
                top: 10px;
                right: 10px;
            }

            .container {
                padding: 40px 20px;
            }

            header {
                flex-direction: column;
                text-align: center;
                gap: 24px;
                padding-bottom: 40px;
                margin-bottom: 60px;
            }

            .header-content {
                text-align: center;
                min-width: auto;
            }

            h1 {
                font-size: 2.2em;
            }
            
            .contact-links {
                justify-content: center;
            }
            
            .skills-grid {
                justify-content: center;
                gap: 12px;
            }
            
            .profile-img {
                width: 100px;
                height: 100px;
                font-size: 28px;
            }

            .section {
                margin-bottom: 80px;
            }

            .projects-grid {
                grid-template-columns: 1fr;
                gap: 24px;
            }

            .project-content {
                padding: 24px;
            }

            .project-image {
                height: 200px;
            }

            .education {
                padding: 24px;
            }

            .about {
                padding: 24px;
            }

            footer {
                text-align: center;
                margin-top: 80px;
                padding-top: 60px;
            }
            
            h2 {
                font-size: 1.8em;
            }
        }

        @media (max-width: 480px) {
            .intro-screen {
                padding: 15px;
            }
            
            .intro-content {
                max-width: 95%;
            }
            
            .intro-title {
                font-size: 2rem;
                margin-bottom: 12px;
            }
            
            .intro-subtitle {
                font-size: 1rem;
                padding: 0 5px;
            }
            
            .intro-screen::after {
                bottom: 20px;
                font-size: 12px;
            }
            
            .container {
                padding: 30px 15px;
            }
            
            h1 {
                font-size: 1.9em;
            }

            h2 {
                font-size: 1.5em;
            }

            .projects-grid {
                grid-template-columns: 1fr;
            }

            .language-switcher {
                top: 5px;
                right: 5px;
            }

            .lang-btn {
                padding: 5px 10px;
                font-size: 11px;
            }

            .project-image {
                height: 180px;
            }

            .project-image-placeholder {
                font-size: 36px;
            }

            .project-image-placeholder .placeholder-text {
                font-size: 12px;
            }
        }

        .project-card,
        .skill,
        .contact-links a,
        .education {
            will-change: transform;
        }

        .project-gif {
            image-rendering: -webkit-optimize-contrast;
            image-rendering: crisp-edges;
        }

        html {
            scroll-behavior: smooth;
        }

        .lang-btn:focus,
        .contact-links a:focus,
        .skill:focus,
        .project-card:focus {
            outline: 2px solid #667eea;
            outline-offset: 2px;
        }

        .project-image img {
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .project-image.loading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 20px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            transform: translate(-50%, -50%);
        }

        @keyframes spin {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(360deg); }
        }