body, html {
    height: 100%;
    margin: 0;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
}
header {
    background-color: #2c3e50;
    color: white;
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    min-height: 70px;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.logo {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background: none; */
    /* border-radius: 0; */
    /* No background color, no border radius */
}
header h1 {
    margin: 0;
    font-size: 1.2rem;
}
nav {
    display: flex;
    gap: 0.5rem;
    position: static;
}
nav a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 0.3rem 0.5rem;
    border-radius: 3px;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}
nav a:hover {
    background-color: #34495e;
}
.container {
    flex-grow: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    background-color: #f0f0f0;
    overflow: hidden;
}
.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    /* animation removed for user interaction */
}
.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    color: #333;
}
.face:hover {
    background-color: rgba(255, 255, 255, 0.9);
}
.home   { transform: rotateY(0deg) translateZ(100px); background-color: rgba(255, 0, 0, 0.7); }
.portfolio { transform: rotateY(90deg) translateZ(100px); background-color: rgba(0, 255, 0, 0.7); }
.blog   { transform: rotateY(180deg) translateZ(100px); background-color: rgba(0, 0, 255, 0.7); }
.about  { transform: rotateY(-90deg) translateZ(100px); background-color: rgba(255, 255, 0, 0.7); }
.contact { transform: rotateX(90deg) translateZ(100px); background-color: rgba(255, 0, 255, 0.7); }
.projects { transform: rotateX(-90deg) translateZ(100px); background-color: rgba(0, 255, 255, 0.7); }
@keyframes rotate {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}
#molecular-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
footer {
    background-color: #34495e;
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.8rem;
}
footer p {
    margin: 0.2rem 0;
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}
.social-icons a {
    color: white;
    text-decoration: none;
}
/* Hamburger menu styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-left: 10px;
    justify-content: center;
    align-items: center;
}
.hamburger span {
    width: 8px;
    height: 8px;
    background: #ecf0f1;
    border-radius: 50%;
    display: block;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    position: static;
    background: none;
    width: auto;
    box-shadow: none;
    padding: 0;
    left: 0;
    top: auto;
    text-align: left;
    flex-direction: row;
}

@media (max-width: 768px) {
    header {
        position: relative;
        min-height: 48px;
        padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    }
    .logo {
        width: 44px;
        height: 44px;
    }
    header h1 {
        font-size: 1.1rem;
    }
    .hamburger {
        display: flex;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1100;
    }
        .nav-menu {
            display: none;
            position: fixed;
            left: 0;
            top: 60px;
            /* Adjusted top to 60px to move it a little higher */
            flex-direction: column;
            background: #23263a;
            width: 100%;
            text-align: center;
            transition: left 0.3s;
            box-shadow: 0 10px 27px rgba(30,42,58,0.18);
            z-index: 1000;
            padding: 1rem 0 2rem 0;
            gap: 0;
            align-items: stretch;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu a {
        padding: 1rem;
        display: block;
        border-radius: 0;
        font-size: 1.1rem;
        color: #f0f0f0;
    }
    nav {
        align-items: center;
    }
}
