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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    overflow: hidden;
}

/* Header and Logo */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

/* Logo styles */
.logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;  /* Increased z-index to show above menu */
}

.logo h1 {
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.logo h1.pixel-text {
    font-size: 1rem;
    color: #000000;
    transition: color 0.3s ease;
}

/* When menu is open, make logo white */
.main-menu.active + header .logo h1.pixel-text {
    color: #ffffff;
}

/* Menu Toggle Button */
.menu-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #890000;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #890000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
    position: relative;
}

/* Clean X animation when menu is active */
.menu-toggle.active {
    gap: 0;  /* Remove gap when forming X */
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
}

.menu-toggle:hover {
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 #890000;
}

.menu-toggle:active {
    transform: translate(-2px, -2px);
    box-shadow: 2px 2px 0 #890000;
}

/* Main Menu */
.main-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.main-menu.active {
    opacity: 1;
    visibility: visible;
}

.main-menu ul {
    list-style: none;
    position: absolute;
    left: 50px;
    bottom: 50px;
    margin: 0;
    padding: 0;
}

.main-menu ul li {
    margin: 20px 0;
}

.main-menu ul li a {
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding: 5px 0;
    text-transform: uppercase;
    color: #ffffff;
}

/* Underline effect */
.main-menu ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background-color: #ffffff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.main-menu ul li a:hover::after {
    transform: scaleX(1);
}

/* Pixel Text Styles */
.pixel-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: #000000;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

/* Loading Dots Animation */
.loading-dots::after {
    content: '';
    animation: loading 2s steps(4, end) infinite;
}

@keyframes loading {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

/* Projects Container */
.projects-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.project-column {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: flex 0.3s ease;
    height: 100vh;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transition: transform 0.3s ease;
}

.project-column:nth-child(1) {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('project1.jpg') center/cover;
}

.project-column:nth-child(2) {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('project2.jpg') center/cover;
}

.project-column:nth-child(3) {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('project3.jpg') center/cover;
}

.project-column:hover {
    flex: 1.1;
}

.project-column:hover .project-image {
    transform: scale(1.05); /* Much more subtle scale */
}

.project-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    transition: opacity 0.3s ease;
}

.project-column:hover::before {
    opacity: 0;
}

.project-content {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 80%;
    z-index: 2;
}

.project-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.button-container {
    position: relative;
    z-index: 3;
}

.project-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 12px 24px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    cursor: pointer;
}

/* Project 1 button colors */
.project-button-1 {
    background-color: #B5EFAE;
    color: #0B9000;
    border: 2px solid #0B9000;
}

.project-button-1:hover {
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 #0B9000;
}

.project-button-1:active {
    transform: translate(-2px, -2px);
    box-shadow: 2px 2px 0 #0B9000;
}

/* Project 2 button colors */
.project-button-2 {
    background-color: #DD7D9D;
    color: #4A7AAF;
    border: 2px solid #4A7AAF;
}

.project-button-2:hover {
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 #4A7AAF;
}

.project-button-2:active {
    transform: translate(-2px, -2px);
    box-shadow: 2px 2px 0 #4A7AAF;
}

/* Project 3 button - Coming Soon */
.project-button-3 {
    opacity: 0.6;
    cursor: default;
}

.project-button-3:hover {
    transform: none;
    box-shadow: none;
}

.project-button-3 {
    background-color: #202020;
    color: #890000;
    border: 2px solid #890000;
}

.project-button .button-text {
    margin-right: 8px;
}

.project-button .button-arrow {
    font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }

    .projects-container {
        flex-direction: column;
        height: auto;
    }
    
    .project-column {
        height: 100vh;
        flex: none;
        width: 100%;
    }
    
    .project-column:hover {
        flex: none;
    }
    
    .project-content {
        bottom: 20%;
    }
    
    .project-content h2 {
        font-size: 1.8rem;
    }

    /* Ensure images cover the full height on mobile */
    .project-image {
        height: 100vh;
    }
}
