@import url('https://fonts.googleapis.com/css2?family=Agdasima:wght@400;500;700&display=swap');

/* Title Area - Top Left */
.title-area {
    position: fixed;
    top: 30px;
    left: 40px;
    z-index: 10;
    color: #fff;
}

.title-area h1 {
    font-weight: 700;
    font-size: 42px;
    letter-spacing: 3px;
    margin: 0;
    line-height: 1.2;
}

.alias {
    font-family: 'Agdasima', sans-serif;
    font-size: 24px;
    color: #fff;
    margin: 8px 0 15px 0;
    font-style: normal;
    font-weight: 400;
}

.title-area h2 {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 12px;
    margin: 0;
    color: #ccc;
    text-transform: uppercase;
}

/* Top Navigation - Centered */
.top-nav {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Top Right Area */
.top-right {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Contact Button */
.contact-button {
    color: #aaa;
    text-decoration: none;
    font-family: 'Agdasima', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.contact-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Center Content Layout */
.center-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
}

/* Social Links - Top Version */
.social-links-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links-top a {
    display: inline-block;
    opacity: 0.6;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out, filter 0.3s ease-out;
}

.social-links-top img {
    width: 32px;
    height: auto;
}

.social-links-top a:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px #00aaff);
}

/* Mobile Layout - Completely Centered */
@media (max-width: 768px) {
    /* Mobile Title Area - Centered at top */
    .title-area {
        position: fixed;
        top: 25px;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    .title-area h1 {
        font-size: 34px;
        letter-spacing: 2px;
        line-height: 1.1;
    }
    
    .alias {
        font-size: 20px;
        margin: 6px 0 10px 0;
        color: #fff;
        font-style: normal;
    }
    
    .title-area h2 {
        font-size: 16px;
        letter-spacing: 8px;
    }
    
    /* Mobile Navigation - Below title, centered */
    .top-nav {
        position: fixed;
        top: 130px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        text-align: center;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    #text-h3 {
        font-size: 14px;
        letter-spacing: 1px;
        line-height: 1.4;
    }
    
    #text-h3 a {
        font-size: 14px;
        display: inline-block;
        margin: 3px 2px;
        padding: 6px 8px;
    }
    
    /* Mobile Top Right - Below nav, centered, with more spacing */
    .top-right {
        position: fixed;
        top: 250px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        align-items: center;
        gap: 18px;
        width: 100%;
    }
    
    .contact-button {
        font-size: 16px;
        padding: 10px 20px;
        border-radius: 25px;
    }
    
    .social-links-top {
        gap: 18px;
        justify-content: center;
    }
    
    .social-links-top img {
        width: 28px;
    }
    
    /* Mobile ENTER button - Perfectly centered */
    .center-content {
        top: 50%;
    }
    
    #text-h4 a {
        font-size: 70px !important;
        letter-spacing: 45px !important;
    }
    
    #text-h4 a:hover {
        font-size: 76px !important;
        letter-spacing: 48px !important;
    }
    
    /* Mobile interaction optimizations */
    body {
        touch-action: manipulation;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    canvas {
        touch-action: none;
        pointer-events: auto;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .title-area {
        top: 25px;
        left: 35px;
    }
    
    .title-area h1 {
        font-size: 38px;
    }
    
    .alias {
        font-size: 22px;
    }
    
    .title-area h2 {
        font-size: 18px;
        letter-spacing: 10px;
    }
    
    .top-nav {
        top: 25px;
    }
    
    .top-right {
        top: 25px;
        right: 35px;
    }
    
    #text-h3 {
        font-size: 16px;
    }
    
    .contact-button {
        font-size: 16px;
    }
    
    .social-links-top img {
        width: 28px;
    }
}
        head, body{
            width:100%;
            height:100%;
            overflow: hidden;
            top:0;
            left:0;
            margin:0;
            padding:0;
        }

        /* Allow scrolling on project pages */
        body.project-page {
            overflow-y: auto !important;
            overflow-x: hidden !important;
        }

        h1, h2, h3, h4 {
            color: #fff;
            font-family: 'Agdasima', sans-serif;
            margin: 0;
            padding: 0;
            user-select: none;
        }
        
        /* Center content styles */
        .center-content h4 {
            position: relative;
            margin: 0;
        }
        
        /* Top navigation styles */
        .top-nav h3 {
            position: relative;
            margin: 0;
        }



        #text-h3 {
            font-size: 18px;
            font-weight: 400;
            text-align: center;
            letter-spacing: 4px;
            margin: 0;
        }

        #text-h4 {
            font-size: 15px;
            font-weight: 400;
            text-align: center;
            letter-spacing: 3px;
            margin-top: 20px;
        }

        h3 a {
            font-size: 18px;
            color: #aaa;
            transition: 0.3s ease-out;
            text-decoration: none;
            padding: 6px 10px;
            border-radius: 8px;
        }

        h3 a:hover {
            font-size: 18px;
            cursor: pointer;
            font-weight: 400;
            color: #fff;
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-1px);
            transition: 0.3s ease-out;
        }

       h3 a:active {
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            color: #fff;
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(1px);
            transition: 0.1s ease-out;
        }


       

        h4 {
            position: absolute;
            
        }


        #text-h4 a {
            font-size: 92px;
            color: #aaa;
            transition: 0.3s ease-out;
            text-decoration: none;
            letter-spacing: 60px;
            display: inline-block;
        }

        #backtotitle a {
            font-size: 48px;
            color: #aaa;
            transition: 0.22s ease-out;
            text-decoration: none;
            letter-spacing: 15px;}

        #text-h4 a:hover {
            font-size: 100px;
            cursor: pointer;
            font-weight: 700;
            color: #fff;
            text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
            transform: scale(1.05);
            transition: 0.3s ease-out;
        }

        #backtotitle a:hover {
            font-size: 48px;
            cursor: pointer;
            font-weight: 300;
            color: #fff;
            opacity: 95%;
            transition: 0.02s ease-in;
            transition: 3.83s ease-out; }
            
        h4 a:before{
            color: #e33;
            transition: 5.07s ease-out;}
        
        .youtube-video {
            position: absolute;
            aspect-ratio: 16 / 9;
            width: 50%;
            margin: 0 auto;
        }

        @media screen and (min-width: 1080px) {
            .youtube-video {
                width: 50%;
                left: 25%;
                bottom: 25%;
             }
            #text-h2 {
                bottom: 7.5%;
            } 
        }

        @media screen and (max-width: 1080px) {
            .youtube-video {
                width: 80%;
                left: 10%;
                bottom: 35%;
             }
            #text-h2 {
                bottom: 7.5%;
            }
        }

        @media screen and (max-width: 580px) {
            .youtube-video {
                width: 80%;
                left: 10%;
                bottom: 35%;
             }
            #text-h2 {
                bottom: 7.5%;
            }
            #text-h4{
                left: 10%;
            }


        }

        /* Hamburger Menu Button */
        .hamburger-menu {
            position: fixed;
            top: 2.25rem;
            right: 2rem;
            z-index: 1001;
            display: none;
            flex-direction: column;
            justify-content: space-around;
            width: 30px;
            height: 25px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
        }
        
        .hamburger-menu span {
            width: 100%;
            height: 3px;
            background: #00f7ff;
            border-radius: 2px;
            transition: all 0.3s ease;
            box-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
        }
        
        .hamburger-menu.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }
        
        .hamburger-menu.active span:nth-child(2) {
            opacity: 0;
        }
        
        .hamburger-menu.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
        }
        
        /* Side Panel Navigation */
        .side-panel {
            position: fixed;
            top: 0;
            right: -100%;
            width: 100%;
            max-width: 350px;
            height: 100vh;
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 20, 0.95));
            backdrop-filter: blur(20px);
            border-left: 2px solid rgba(0, 247, 255, 0.3);
            z-index: 1000;
            transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            overflow-y: auto;
            padding: 2rem;
            box-sizing: border-box;
        }
        
        .side-panel.open {
            right: 0;
        }
        
        .side-panel-header {
            text-align: center;
            margin-top: 2rem;
            margin-bottom: 3rem;
            padding-bottom: 2rem;
            border-bottom: 1px solid rgba(0, 247, 255, 0.2);
            animation: fadeInUp 0.6s ease-out;
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .side-panel-header h3 {
            color: #00f7ff;
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 3px;
            font-family: 'Agdasima', sans-serif;
            text-shadow: 0 0 20px rgba(0, 247, 255, 0.3);
        }
        
        .side-panel-header p {
            color: #aaa;
            font-size: 1.1rem;
            line-height: 1.6;
            font-family: 'Agdasima', sans-serif;
            letter-spacing: 1px;
            font-weight: 400;
        }
        
        .side-panel-nav {
            margin-bottom: 3rem;
        }
        
        .side-panel-nav a {
            display: inline-block;
            color: #fff;
            text-decoration: none;
            padding: 1.4rem 2.2rem;
            margin-bottom: 1.2rem;
            border-radius: 25px;
            background: rgba(0, 247, 255, 0.1);
            border: 1px solid rgba(0, 247, 255, 0.2);
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 1.3rem;
            letter-spacing: 3px;
            font-family: 'Agdasima', sans-serif;
            font-weight: 600;
            position: relative;
            overflow: hidden;
            animation: slideInRight 0.6s ease-out;
            animation-fill-mode: both;
            transform: skewX(-15deg);
            box-shadow: 0 4px 15px rgba(0, 247, 255, 0.1);
            filter: drop-shadow(0 0 0 rgba(0, 247, 255, 0));
        }
        
        .side-panel-nav a span {
            display: inline-block;
            transform: skewX(15deg);
            position: relative;
            z-index: 2;
        }
        
        .side-panel-nav a:nth-child(1) { animation-delay: 0.1s; }
        .side-panel-nav a:nth-child(2) { animation-delay: 0.2s; }
        .side-panel-nav a:nth-child(3) { animation-delay: 0.3s; }
        .side-panel-nav a:nth-child(4) { animation-delay: 0.4s; }
        .side-panel-nav a:nth-child(5) { animation-delay: 0.5s; }
        .side-panel-nav a:nth-child(6) { animation-delay: 0.6s; }
        
        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: skewX(-15deg) translateX(40px) rotateY(-15deg);
            }
            to {
                opacity: 1;
                transform: skewX(-15deg) translateX(0) rotateY(0);
            }
        }
        
        .side-panel-nav a::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(0, 247, 255, 0.15), transparent);
            transition: left 0.6s ease;
        }
        
        .side-panel-nav a::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(0, 247, 255, 0.15), rgba(0, 247, 255, 0.05));
            opacity: 0;
            transition: opacity 0.4s ease;
        }
        
        .side-panel-nav a:hover {
            background: rgba(0, 247, 255, 0.25);
            border-color: rgba(0, 247, 255, 0.6);
            transform: skewX(-15deg) translateX(12px) translateY(-3px);
            box-shadow: 0 10px 30px rgba(0, 247, 255, 0.3);
            color: #00f7ff;
            filter: drop-shadow(0 0 20px rgba(0, 247, 255, 0.4));
        }
        
        .side-panel-nav a:hover::before {
            left: 100%;
        }
        
        .side-panel-nav a:hover::after {
            opacity: 1;
        }
        
        /* Special About & Contact button */
        .about-contact-special {
            background: transparent !important;
            border-color: rgba(255, 215, 0, 0.6) !important;
            transform: none !important;
            box-shadow: none !important;
            filter: none !important;
            text-align: center !important;
            display: block !important;
            margin: 0 auto !important;
            padding: 1.2rem 2rem !important;
            border-radius: 25px !important;
            border-width: 2px !important;
            border-style: solid !important;
            width: fit-content !important;
        }
        
        .about-contact-special span {
            transform: none !important;
        }
        
        .about-contact-special:hover {
            background: rgba(255, 215, 0, 0.15) !important;
            border-color: rgba(255, 215, 0, 0.8) !important;
            transform: none !important;
            box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3) !important;
            color: #ffd700 !important;
            filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4)) !important;
        }
        
        .side-panel-social {
            margin-bottom: 2rem;
        }
        
        .side-panel-social-links {
            display: flex;
            justify-content: center;
            gap: 1.8rem;
            flex-wrap: wrap;
        }
        
        .side-panel-social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 70px;
            height: 70px;
            background: rgba(0, 247, 255, 0.12);
            border: 1px solid rgba(0, 247, 255, 0.25);
            border-radius: 50%;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            animation: fadeInScale 0.6s ease-out;
            animation-fill-mode: both;
        }
        
        .side-panel-social-links a:nth-child(1) { animation-delay: 0.7s; }
        .side-panel-social-links a:nth-child(2) { animation-delay: 0.8s; }
        .side-panel-social-links a:nth-child(3) { animation-delay: 0.9s; }
        .side-panel-social-links a:nth-child(4) { animation-delay: 1.0s; }
        
        @keyframes fadeInScale {
            from {
                opacity: 0;
                transform: scale(0.8);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }
        
        .side-panel-social-links a::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(0, 247, 255, 0.2) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.4s ease;
        }
        
        .side-panel-social-links a:hover {
            background: rgba(0, 247, 255, 0.25);
            border-color: rgba(0, 247, 255, 0.7);
            transform: scale(1.15) translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 247, 255, 0.4);
        }
        
        .side-panel-social-links a:hover::before {
            opacity: 1;
        }
        
        .side-panel-social-links img {
            width: 36px;
            height: 36px;
            object-fit: contain;
            position: relative;
            z-index: 2;
            transition: all 0.3s ease;
        }
        
        .side-panel-social-links a:hover img {
            transform: scale(1.1);
        }
        
        .side-panel-close {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            background: none;
            border: none;
            color: transparent;
            font-size: 2rem;
            cursor: pointer;
            padding: 0;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s ease;
            border: 1px solid rgba(0, 247, 255, 0.2);
            z-index: 1002;
        }
        
        .side-panel-close:hover {
            background: rgba(0, 247, 255, 0.15);
            border-color: rgba(0, 247, 255, 0.5);
            transform: scale(1.1);
            box-shadow: 0 0 20px rgba(0, 247, 255, 0.3);
        }
        
        /* Mobile About & Contact Button - Middle Top */
        .mobile-contact-button {
            position: fixed;
            top: 2rem;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000;
            display: none;
            background: rgba(0, 247, 255, 0.1);
            border: 1px solid rgba(0, 247, 255, 0.4);
            color: #00f7ff;
            padding: 0.75rem 1.5rem;
            border-radius: 25px;
            text-decoration: none;
            font-family: 'Agdasima', sans-serif;
            font-size: 1rem;
            letter-spacing: 1px;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }
        
        .mobile-contact-button:hover {
            background: rgba(0, 247, 255, 0.2);
            border-color: rgba(0, 247, 255, 0.6);
            box-shadow: 0 0 20px rgba(0, 247, 255, 0.3);
            transform: translateX(-50%) translateY(-2px);
        }
        
        /* Overlay for side panel */
        .side-panel-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .side-panel-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        /* Mobile Layout Updates */
        @media (max-width: 768px) {
            .hamburger-menu {
                display: flex;
            }
            
            .mobile-contact-button {
                display: block;
            }
            
            /* Hide desktop elements on mobile */
            .top-nav,
            .top-right {
                display: none;
            }
            
            /* Reduce logo size on mobile */
            .logo-image {
                width: 60px;
            }
            
            /* Reduce ENTER text size on mobile */
            #text-h4 a {
                font-size: 60px !important;
                letter-spacing: 30px !important;
            }
            
            #text-h4 a:hover {
                font-size: 65px !important;
                letter-spacing: 32px !important;
            }
            
            /* Mobile side panel adjustments */
            .side-panel {
                width: 100%;
                max-width: 100%;
                padding: 1.5rem;
            }
            
            .side-panel-header h3 {
                font-size: 1.6rem;
                letter-spacing: 2px;
            }
            
            .side-panel-header p {
                font-size: 1rem;
            }
            
            .side-panel-nav a {
                padding: 1.2rem 1.8rem;
                font-size: 1.1rem;
                letter-spacing: 2px;
                transform: skewX(-12deg);
            }
            
            .side-panel-nav a span {
                transform: skewX(12deg);
            }
            
            .side-panel-social-links {
                gap: 1.2rem;
            }
            
            .side-panel-social-links a {
                width: 60px;
                height: 60px;
            }
            
            .side-panel-social-links img {
                width: 30px;
                height: 30px;
                object-fit: contain;
            }
        }