.wave-container {
    display: inline-flex; 
    gap: 1px;
}

.wave-container span {
    display: inline-block;
    color: #ff3333;
    font-weight: bold;
    font-family: 'Audiowide', sans-serif; 
    text-shadow: 0 0 8px rgba(255, 51, 51, 0.4);
    

    animation: letterWave 5s ease-in-out infinite;
    animation-delay: calc(0.1s * var(--i));
}

@keyframes letterWave {
    0%, 100% {
        transform: translateY(0);
        text-shadow: 0 0 8px rgba(255, 51, 51, 0.4);
    }
    50% {
        transform: translateY(-12px); 
        color: #ff6666; 
        text-shadow: 0 0 15px rgba(255, 51, 51, 0.9);
    }
}


.container p {
    margin-bottom: 20px;
    line-height: 1.6;
    font-family: 'Quantico', sans-serif;
}
.container h2 {
    margin-bottom: 20px;
    line-height: 1.6;
    font-family: 'Quantico', sans-serif;
}
header {
    width: 100%;
    padding-top: 100px; 
    padding-bottom: 20px;
    display: flex;
    justify-content: center; 
    position: relative;
    z-index: 2;
}
.header-content {
    width: 60%; 
    display: flex;
    justify-content: flex-end; 
    align-items: center;
}
header h1 {
    font-family: 'Audiowide', sans-serif;
    font-size: 3.5rem;
    color: #ffffff;
    margin: 0;
    letter-spacing: 5px;
    text-transform: uppercase;
    position: relative; 
    
 
    text-shadow: 0 0 10px rgba(170, 51, 255, 0.8);
}
.word-delusion {
    color: #00ff99;
    text-shadow: 0 0 8px rgba(0, 255, 153, 0.5);
    font-weight: bold;
}

.word-imagination {
    color: #a3d8ff; /* Snow Blue / Light Cyan */
    text-shadow: 0 0 8px rgba(163, 216, 255, 0.5);
    font-weight: bold;
}

.word-creativity {
    color: #aa33ff; 
    text-shadow: 0 0 8px rgba(170, 51, 255, 0.5);
    font-weight: bold;
}


.tagline {
    font-family: 'Quantico', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7); 
    margin-top: 10px;
    letter-spacing: 1px;
    text-align: right;
}

header h1::after {
    content: "";
    position: absolute;
  
    z-index: -1; 
    

    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    

    width: 600px; 
    height: 120%; 
    

    background: linear-gradient(to left, 
        rgba(170, 51, 255, 0.6) 0%, 
        rgba(170, 51, 255, 0.2) 50%, 
        transparent 100%
    );
    
  
    filter: blur(20px);
    

    animation: beamGlow 4s ease-in-out infinite alternate;
}

@keyframes beamGlow {
    from { 
        opacity: 0.6; 
        width: 550px; 
    }
    to { 
        opacity: 0.9; 
        width: 650px; 
    }
}
@keyframes fadeInTitle {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}


.container p {
    font-family: 'Quantico', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
}
.container {
    position: relative;
    z-index: 1;
    width: 60%;
    margin: 0 auto; 
    padding: 30px;
    background: rgba(0, 0, 0, 0.8); 
    color: white;
    border-radius: 15px;
    border: 1px solid rgba(170, 51, 255, 0.2); 
    backdrop-filter: blur(10px);
    

    text-align: center; 
}





.main-layout {
    width: 60%;
    margin: 0 auto;
    display: flex;
    gap: 20px; 
    position: relative;
    z-index: 1;
}




.container {
    flex: 3; 
    padding: 30px;
    background: rgba(0, 0, 0, 0.8); 
    color: white;
    border-radius: 15px;
    border: 1px solid rgba(170, 51, 255, 0.2); 
    backdrop-filter: blur(10px);
    text-align: center;
}





.wide-container {
    width: 57%;
    margin: 40px auto 100px auto; 
    padding: 30px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(170, 51, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.wide-container h2 {
    font-family: 'Audiowide', sans-serif;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 0;
    text-shadow: 0 0 10px rgba(170, 51, 255, 0.6);
    border-bottom: 1px solid rgba(170, 51, 255, 0.3);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.project-grid {
    font-family: 'Quantico', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}


@media (max-width: 1200px) {
    /* 1. Center the Header Content */
    .header-content {
        width: 90%; /* Give it more room on small screens */
        justify-content: center; /* Move from right-aligned to centered */
    }

    .title-group {
        align-items: center; 
    }

    /* 2. Scale down the H1 */
    header h1 {
        font-size: 2rem; 
        letter-spacing: 2px;
        text-align: center;
    }


    .tagline {
        text-align: center;
        font-size: 0.9rem;
        margin-top: 5px;
    }


    header h1::after {
        width: 100%; 
        right: 0;
        filter: blur(15px);
        background: radial-gradient(
            circle, 
            rgba(170, 51, 255, 0.4) 0%, 
            transparent 70%
        ); 
    }


    .main-layout {
        width: 95%;
        flex-direction: column; 
        align-items: center;
    }

    .wide-container {
        width: 95%;
    }
}


.burger-menu {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    background: rgba(170, 51, 255, 0.8);
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(170, 51, 255, 0.5);
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: 0.4s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) {

    .main-layout {
        width: 100%;
        margin: 0 auto;
        flex-direction: column;
    }


    .container {
        width: 100%; 
        box-sizing: border-box; 
        padding: 20px;
    }

    .sidebar {
        width: 100%;
        order: 2; 
    }

    .sidebar-box {
        width: 100%;
        box-sizing: border-box;
    }

    /* 4. Make the Projects/Worlds section fill the screen too */
    .wide-container {
        width: 100%;
        margin: 20px auto;
        box-sizing: border-box;
    }
    .header-content {
        width: 95%;
    }
}
