:root {
            
            --bg-color: #0f172a;
            --text-primary: #f1f5f9;
            --text-secondary: #94a3b8;
            --accent-color: #38bdf8;
            --accent-glow: rgba(56, 189, 248, 0.5);
            --glass-bg: rgba(255, 255, 255, 0.03);
            --glass-border: rgba(255, 255, 255, 0.05);
            --card-hover: rgba(255, 255, 255, 0.07);
        }

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

        body {
            font-family: 'Outfit', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-primary);
            overflow-x: hidden;
            line-height: 1.6;
        }

        /* Taustan efektit (Blobs) */
        .background-gradient {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background: radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.15), transparent 25%),
                        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15), transparent 25%);
        }

        /* Navigaatio */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 1.5rem 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
            backdrop-filter: blur(10px);
            background: rgba(15, 23, 42, 0.8);
            border-bottom: 1px solid var(--glass-border);
        }

        .social-links {
            display: flex;
            align-items: center;
        }

        .hamburger-btn {
            background: transparent;
            border: 1px solid var(--accent-color);
            border-radius: 10px;
            width: 44px;
            height: 38px;
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .hamburger-btn:hover {
            background: rgba(56, 189, 248, 0.1);
        }
        .hamburger-bar {
            width: 20px;
            height: 2px;
            background: var(--text-primary);
            border-radius: 2px;
        }

        .hamburger-menu {
            position: absolute;
            top: calc(100% + 12px);
            left: 5%;
            right: 5%;
            display: none;
            flex-direction: column;
            gap: 0.25rem;
            padding: 0.75rem;
            border-radius: 16px;
            background: rgba(5, 5, 5, 0.95);
            border: 1px solid var(--glass-border);
        }
        .hamburger-menu.open {
            display: flex;
        }
        .hamburger-menu a {
            color: var(--text-primary);
            text-decoration: none;
            padding: 0.75rem 1rem;
            border-radius: 12px;
            border: 1px solid transparent;
        }
        .hamburger-menu a:hover {
            background: var(--card-hover);
            border-color: rgba(255,255,255,0.1);
        }

        .logo {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-primary);
            text-decoration: none;
            letter-spacing: -0.5px;
        }
        .logo span { color: var(--accent-color); }

        .social-links a {
            color: var(--text-secondary);
            font-size: 1.2rem;
            margin-left: 1.5rem;
            transition: 0.3s;
        }
        .social-links a:hover { color: var(--accent-color); transform: translateY(-2px); }

        /* Container & Layout */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        section {
            padding: 6rem 0;
            opacity: 0; /* Alussa piilossa scroll-animaatiota varten */
            transform: translateY(30px);
            transition: all 0.8s ease-out;
        }
        
        section.visible {
            opacity: 1;
            transform: translateY(0);
        }

        h2 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 2.5rem;
            margin-bottom: 3rem;
            position: relative;
            display: inline-block;
        }
        h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60px;
            height: 4px;
            background: var(--accent-color);
            border-radius: 2px;
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding-top: 80px;
        }

        .hero h1 {
            font-size: 4rem;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            font-family: 'Space Grotesk', sans-serif;
        }

        .typewriter-box {
            /* FIXED: Kiinteä korkeus estää elementtien hyppimisen */
            height: 160px;
            margin-bottom: 3rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .type-text {
            font-size: 1.5rem;
            color: var(--accent-color);
            display: block;
            margin: 0.5rem 0;
            font-family: 'Space Grotesk', monospace;
            /* FIXED: Varataan tila riville vaikka se olisi tyhjä (font-size * line-height) */
            min-height: 2.4rem; 
        }

        /* Buttons */
        .btn-group {
            display: flex;
            gap: 20px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn {
            padding: 1rem 2rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .btn-3d {
            background: linear-gradient(135deg, var(--accent-color), #3b82f6);
            color: #fff;
            box-shadow: 0 0 20px var(--accent-glow);
            border: 1px solid transparent;
        }
        .btn-3d:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 0 40px var(--accent-glow);
        }

        .btn-outline {
            background: transparent;
            border: 1px solid var(--accent-color);
            color: var(--text-primary);
        }
        .btn-outline:hover {
            background: rgba(56, 189, 248, 0.1);
        }

        /* Glass Cards */
        .glass-card {
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 2rem;
            transition: transform 0.3s, box-shadow 0.3s;
        }
        .glass-card:hover {
            transform: translateY(-5px);
            background: var(--card-hover);
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            border-color: rgba(255,255,255,0.1);
        }

        /* About Section */
        .about-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }
        .profile-img-container {
            position: relative;
            width: 100%;
            height: 400px;
            border-radius: 20px;
            overflow: hidden;
            border: 1px solid var(--glass-border);
        }
        .profile-img-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            /* Placeholder kuva filtteri */
            filter: grayscale(20%);
            transition: 0.5s;
        }
        .profile-img-container:hover img {
            filter: grayscale(0%);
            transform: scale(1.03);
        }

        /* Projects Section */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
        }
        .project-tags span {
            font-size: 0.8rem;
            background: rgba(56, 189, 248, 0.1);
            color: var(--accent-color);
            padding: 4px 10px;
            border-radius: 12px;
            margin-right: 5px;
        }
        .project-link {
            display: inline-block;
            margin-top: 1.5rem;
            color: var(--text-primary);
            text-decoration: none;
            border-bottom: 1px solid var(--accent-color);
            padding-bottom: 2px;
        }
        
        /* Experience & Goals */
        .experience-item {
            border-left: 2px solid var(--accent-color);
            padding-left: 2rem;
            margin-bottom: 3rem;
            position: relative;
        }
        .experience-item::before {
            content: '';
            position: absolute;
            left: -6px;
            top: 0;
            width: 10px;
            height: 10px;
            background: var(--accent-color);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--accent-color);
        }
        .date {
            font-size: 0.9rem;
            color: var(--accent-color);
            margin-bottom: 0.5rem;
            display: block;
        }

        .skills-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
        }
        .skill-tag {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            padding: 0.8rem 1.5rem;
            border-radius: 50px;
            font-size: 1rem;
            transition: 0.3s;
        }
        .skill-tag:hover {
            background: var(--accent-color);
            color: #000;
            border-color: var(--accent-color);
        }

        .experience-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
        }

        /* Courses */
        .courses-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
        }
        .course-list {
            margin-top: 1.25rem;
        }
        .course-item {
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--glass-border);
        }
        .course-item:last-child {
            border-bottom: 0;
        }
        .course-name {
            font-weight: 600;
        }
        .course-meta {
            color: var(--text-secondary);
            white-space: nowrap;
        }

        /* Mobiiliresponsiivisuus */
        @media (max-width: 768px) {
            .hero h1 { 
                font-size: 2.5rem; 
            }
            
            .about-content { 
                grid-template-columns: 1fr; 
            }
            
            .type-text { 
                font-size: 1.1rem; 
                min-height: 1.8rem;
            }
            
            .typewriter-box {
                height: auto;
                min-height: 120px;
            }

            .projects-grid { 
                grid-template-columns: 1fr; 
            }
            
            .experience-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

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

            nav { 
                padding: 1rem 5%; 
                flex-direction: column;
                gap: 1rem;
                background: rgba(5, 5, 5, 0.95);
            }

            .hamburger-menu {
                left: 5%;
                right: 5%;
            }
            
            .social-links {
                margin-top: 0.5rem;
            }

            .btn-group {
                flex-direction: column;
                width: 100%;
                gap: 15px;
            }

            .btn {
                width: 100%;
                justify-content: center;
            }

            section {
                padding: 3rem 0;
            }

            h2 {
                font-size: 2rem;
                margin-bottom: 2rem;
            }
            
            .container {
                padding: 0 1.5rem;
            }
        }

        /* Modal Styles */
        .modal {
            display: none; 
            position: fixed; 
            z-index: 2000; 
            left: 0;
            top: 0;
            width: 100%; 
            height: 100%; 
            overflow: auto; 
            background-color: rgba(0,0,0,0.8); 
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(5px);
        }

        .modal-content {
            position: relative;
            background-color: #000;
            margin: auto;
            padding: 0;
            border: 1px solid rgba(255, 255, 255, 0.1);
            width: 90%;
            max-width: 1000px;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
            border-radius: 15px;
            overflow: hidden;
        }

        .close-modal {
            color: white;
            position: absolute;
            top: 10px;
            right: 20px;
            font-size: 40px;
            font-weight: bold;
            z-index: 2001;
            cursor: pointer;
            line-height: 1;
            text-shadow: 0 0 10px rgba(0,0,0,0.8);
            transition: color 0.3s;
        }

        .close-modal:hover,
        .close-modal:focus {
            color: var(--accent-color);
            text-decoration: none;
            cursor: pointer;
        }

        #trailer-video {
            display: block;
            width: 100%;
            height: auto;
            max-height: 80vh;
        }