@font-face {
    font-family: 'FF Comma Trial';
    src: url('/fonts/FFCommaTrial-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: black;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0 15% 0 15%;
    position: relative;
    background: 
        /* Horizontal lines */
        linear-gradient(to bottom, 
            transparent 95%, 
            rgba(65, 91, 156, 1) 100%
        ) 0 80px / 100% 5em,
        /* vertical line */
        linear-gradient(to right, 
        transparent 10%, 
        #bf0000 10%, 
        #bf0000 10.1%, 
        transparent 10.1%
        ),
        /* Paper color */
        #fffef6;
    padding-left: 4%;
    line-height: 2em;
    z-index: 1;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(to right, 
            rgba(0,0,0,0.03) 0%, 
            transparent 100%
        ),
        linear-gradient(to bottom, 
            rgba(0,0,0,0.03) 0%, 
            transparent 10%
        );
    pointer-events: none;
    z-index: -1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    body {
        padding-left: 3%;
        background-size: 100% 1.8em;
    }
    
    .btn {
        line-height: 1.5em;
    }
}

/* Header Styles */
header {
    padding: 20px;
    color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-family: 'FF Comma Trial', 'Comic Sans MS', 'Courier New', monospace;
    font-size: 5rem;
    transform: translateY(20px);
}

header h1 span {
    font-size: 0.5em;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Sunshiney", serif;
    font-size: 2.5rem;
    transform: translateY(38px);
}

.icons {
    display: flex;
    gap: 50px;
    justify-content: center; /* Add this to center icons */
}

.social-icon {
    width: 50px;  /* Adjust size as needed */
    height: 50px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);  /* Add hover effect */
    opacity: 0.8;
}

.icon {
    display: inline-block;
    padding: 5px;
}

.icon:hover {
    color: black;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: none;
    border: none;
    color: black;
    font-size: 4rem;
    padding: 30px 25px;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    font-family: 'FF Comma Trial', 'Comic Sans MS', 'Courier New', monospace;
    line-height: 1em;
    
}

.btn:hover {
    transform: translateX(10px);
}

.button-icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

.aside-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Footer Styles */
footer {
    padding: 20px 15px;
    display: flex;
    justify-content: center;
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: black;
    font-family: "Sunshiney", serif;
    font-size: 1.5rem; /* Smaller font size */
    padding: 0px 15px; /* Reduced padding */
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    overflow-x: auto;
}

.footer-icon {
    width: 16px; /* Fixed small size */
    height: 16px;
    flex-shrink: 0;
    object-fit: contain;
}

/* Desktop Layout (>768px) */
@media (min-width: 981px) {
    main {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .buttons {
        margin-left: 0;
        padding-left: 0;
        align-items: flex-start;
        transform: translateY(-25px);
    }

    aside {
        margin-right: 0;
        padding-right: 0;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .aside-image {
        max-width: 400px; /* Adjust this value for desired max size */
        width: 100%;
        height: auto; /* Maintain aspect ratio */
        object-fit: contain; /* Prevent distortion */
        margin: 0 auto; /* Center the image */
    }

}

/* Mobile Layout (≤768px) */
@media (max-width: 980px) {
    main {
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        gap: 40px;
    }

    .buttons {
        width: 100%;
        align-items: center;
        transform: translateY(15px);
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center; /* Center icon + text */
        padding: 15px 20px;
        min-width: 150px;
        font-size: 2.8rem;
    }

    aside {
        width: 100%;
        display: flex;
        justify-content: center; /* Horizontal centering */
        padding: 0 20px; /* Optional: Add side padding */
    }

    .aside-image {
        max-width: 50%; 
        height: auto;
        display: block;
        margin: 0 auto; /* Center within container */
    }

    header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    nav {
        align-items: center;
    }

    nav p {
        margin: 0 0 10px 0;
    }

    .footer-btn {
        flex-direction: row; /* Keep horizontal layout */
        font-size: 1rem;
        padding: 0px 5px;
        gap: 5px;
    }

    .footer-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 370px) {
    .footer-btn {
        flex-direction: row; /* Keep horizontal layout */
        font-size: 1rem;
        width: 100%;
        gap: 5px;
    }

    .footer-icon {
        width: 15px;
        height: 15px;
    }

    header h1 {
        font-family: 'FF Comma Trial', sans-serif;
        font-size: 3.5rem;
    }
    
    header h1 span {
        font-size: 0.5em;
    }

    body {
        margin: 0;
        font-family: Arial, sans-serif;
        color: black;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        margin: 0 15% 0 15%;
        position: relative;
        background: 
            /* Horizontal lines */
            linear-gradient(to bottom, 
                transparent 95%, 
                rgba(65, 91, 156, 1) 100%
            ) 0 80px / 100% 5em,
            /* NEW vertical line */
            linear-gradient(to right, 
            transparent 10%, 
            #bf0000 10%, 
            #bf0000 10.1%, 
            transparent 10.1%
            ),
            /* Paper color */
            #fffef6;
        padding-left: 4%;
        line-height: 2em;
        z-index: 1;
    }
}



/* TEXT EFFECTS */

header h1 {
    animation: neonPulse 2s infinite alternate;
    transition: all 0.3s ease;
}

@keyframes neonPulse {
    from {
        text-shadow: 0 0 5px
                     0 0 10px
                     0 0 15px
                     0 0 20px 
    }
    to {
        text-shadow: 0 0 10px
                     0 0 20px
                     0 0 30px
                     0 0 40px
    }
}

header h1:hover {
    transform: rotateZ(-2deg) scale(1.1);
    animation: none;
}

.aside-image {
    position: relative;
    animation: glitch 5s infinite;
    transition: all 0.3s ease;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.social-icon:hover {
    animation: none;
    filter: brightness(1.1) contrast(1.1);
    transform: scale(1.05);
}

.social-icon {
    position: relative;
    animation: glitch 5s infinite;
    transition: all 0.3s ease;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
    100% { transform: translate(0); }
}

.btn:hover {
    animation: none;
    filter: brightness(1.1) contrast(1.1);
    transform: scale(1.05);
}

.btn {
    position: relative;
    animation: glitch 5s infinite;
    transition: all 0.3s ease;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
    100% { transform: translate(0); }
}

@media (max-width: 388px) {
    .footer-btn {
        font-size: 0.9rem; /* Slightly smaller font */
        padding: 0 8px; /* Reduce padding */
        gap: 4px; /* Reduce space between elements */
    }
    
    .footer-icon {
        width: 14px;
        height: 14px;
    }
}
