body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: #0a0a0a; /* Deep charcoal gray-black */
    color: #F5F5F5;
    position: relative; /* Removed overflow: hidden for scrollability */
}

header {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #0a0a0a; /* Fallback */
    z-index: 1;
    overflow: hidden;
}

.glow {
    position: absolute;
    bottom: -200px; /* Offsets to hide edges, tighter corner hug */
    right: -200px;
    width: 500px; /* Larger for smoother fade coverage */
    height: 500px;
    background: radial-gradient(circle at center, rgba(255, 223, 0, var(--peak-opacity, 0.8)) 0%, rgba(212, 175, 55, 0.2) 60%, transparent 100%); /* Extended fade for no sharp cutoff */
    border-radius: 50%;
    filter: blur(30px); /* Diffuses any outline into seamless glow */
    z-index: -1;
    animation: pulse 3s ease-in-out infinite alternate;
    opacity: 1;
}

@keyframes pulse {
    0% {
        opacity: 0.2; /* Dimmer start for contrast */
        transform: scale(0.95);
    }
    100% {
        opacity: var(--peak-opacity, 0.8); /* Randomized bright peak */
        transform: scale(1.05);
    }
}

nav {
    position: absolute;
    top: 20px;
    width: 100%;
    z-index: 3;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav li {
    margin: 0 20px;
}

nav a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #FFD700;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #D4AF37;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    gap: 20px;
}

.hero .cube-container {
    position: relative;
    width: min(80vw, 400px); /* Increased max for better image visibility */
    height: min(80vw, 400px);
    perspective: 1000px;
}

.hero .cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease; /* Smooth rotation */
}

.hero .face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Added padding for image breathing room */
}

.hero .face img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 2px solid #FFD700; /* Gold border */
    filter: grayscale(80%);
}

.hero .front { transform: rotateY(0deg) translateZ(125px); } /* Reduced Z for larger feel */
.hero .right { transform: rotateY(90deg) translateZ(125px); }
.hero .back { transform: rotateY(180deg) translateZ(125px); }
.hero .left { transform: rotateY(-90deg) translateZ(125px); } /* Add if more images */

.hero .arrows {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero .arrows button {
    background: none;
    border: 1px solid #FFD700;
    color: #FFD700;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background 0.3s, color 0.3s;
}

.hero .arrows button:hover {
    background: #FFD700;
    color: #0a0a0a;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4em;
    color: #FFD700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5em;
    margin: 10px 0;
}

.hero button {
    background: none;
    border: 2px solid #FFD700;
    color: #FFD700;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.hero button:hover {
    background: #FFD700;
    color: #0a0a0a;
}

/* Optional: Waves styles if reviving the effect */
.waves {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
    z-index: 1;
    filter: grayscale(100%);
}

.wave {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 150px;
    background: rgba(0, 0, 0, 0.3);
    animation: waveAnim 10s linear infinite;
}

.wave::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 150px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 40%;
    animation: waveMove 5s linear infinite;
}

.wave1 { animation-duration: 15s; opacity: 0.6; }
.wave2 { animation-duration: 20s; opacity: 0.4; animation-delay: -5s; }
.wave3 { animation-duration: 25s; opacity: 0.2; animation-delay: -10s; }

@keyframes waveAnim {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes waveMove {
    0% { transform: translateX(0) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

main {
    padding: 50px;
    text-align: center;
    background: #0a0a0a; /* Matched to body */
    position: relative;
    z-index: 2;
}

h2 {
    color: #FFD700;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }
    .hero .cube-container { /* Updated from .carousel */
        width: min(80vw, 280px);
        height: min(80vw, 280px);
    }
}