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

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Equal height sections */
.header-section,
.banner-section,
.footer-section {
    flex: 1;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Header Section */
.header-section {
    background: #010101;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.header-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 1/1;
    max-width: 400px;
    max-height: 400px;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: transform 0.3s ease; /* For removing animation */
}

.header-image.animate-zoom-fade {
    animation: zoomFade 1.2s ease-out forwards;
}

/* Banner Section */
.banner-section {
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.iframe-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-iframe {
    width: 100%;
    height: 300vh; /* Make iframe tall to ensure it's scrollable inside its container */
    border: none;
    background: #000;
    display: block;
}

/* Remove old banner content */
.banner-content,
.banner-overlay,
.banner-text,
.banner-title,
.banner-description,
.banner-cta {
    display: none;
}

/* Remove floating elements */
.floating-elements,
.floating-shape {
    display: none;
}

/* Remove gradient animation */
.banner-section::before {
    display: none;
}

/* Footer Section */
.footer-section {
    background: #010101;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    height: 100%;
}

.footer-column {
    opacity: 0;
    animation: slideInUp 0.8s ease-out calc(2s + var(--column-delay)) forwards;
}

.footer-column:nth-child(1) { --column-delay: 0.1s; }
.footer-column:nth-child(2) { --column-delay: 0.2s; }
.footer-column:nth-child(3) { --column-delay: 0.3s; }
.footer-column:nth-child(4) { --column-delay: 0.4s; }

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #cd7f32; /* bronze */
    position: relative;
    z-index: 2;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 120px; /* 4x longer than 30px */
    height: 2px;
    background: linear-gradient(to right, #333 20%, #cd7f32 50%, #333 80%);
    background-size: 250% 100%;
    animation: sheen 6s linear infinite;
    overflow: hidden;
}

.footer-column ul {
    list-style: none;
    position: relative;
    z-index: 2;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: #f5f5dc; /* beige */
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-column a:hover {
    color: #cd7f32; /* bronze */
    transform: translateX(5px);
}

/* Add animated brass lines */
.brass-lines-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.brass-line {
    position: absolute;
    background: linear-gradient(90deg, #cd7f32, #b8860b, #cd7f32);
    opacity: 0.3;
    border-radius: 4px;
    animation-duration: var(--duration);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.brass-line.horizontal {
    height: 150px;
    width: var(--length);
    left: -100px;
    top: var(--position);
    animation-name: moveHorizontal;
}

.brass-line.vertical {
    width: 150px;
    height: var(--length);
    top: -100px;
    left: var(--position);
    animation-name: moveVertical;
}

@keyframes moveHorizontal {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(100vw + 200px));
    }
}

@keyframes moveHorizontalReverse {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100vw - 200px));
    }
}

@keyframes moveVertical {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(calc(-100vh - 200px));
    }
}

@keyframes moveVerticalReverse {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(calc(-100vh - 200px));
    }
}

/* Sheen animation for footer dividers */
@keyframes sheen {
    0% {
        background-position: 150% 0;
    }
    100% {
        background-position: -150% 0;
    }
}

/* Cursor Trail Effect */
#cursor-trail-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.trail-particle {
    position: absolute;
    border-radius: 2px;
    animation: fadeOutAndDrift 0.5s linear forwards;
    will-change: transform, opacity; /* Force hardware acceleration */
    backface-visibility: hidden; /* Improve performance */
}

@keyframes fadeOutAndDrift {
    from {
        opacity: 0.9;
        transform: translate(0, 0) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(calc(var(--drift-x) * 25px), calc(var(--drift-y) * 25px)) scale(0.5);
    }
}

/* Header image click animation */
@keyframes zoomFade {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    40% {
        transform: scale(5);
        opacity: 0;
    }
    80% {
        transform: scale(1);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #333 #000;
}

/* Top Left Controls Container */
.top-left-controls {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Updates and Collabs Buttons */
#updates-btn, #collabs-btn {
    padding: 10px 20px;
    background: #010101;
    color: #cd7f32;
    border: 2px solid #cd7f32;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.3);
    width: 100%;
}

#updates-btn:hover, #collabs-btn:hover {
    background: #cd7f32;
    color: #010101;
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.7);
    transform: translateY(-2px);
}

/* Modal Styles */
#updates-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#updates-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: #010101;
    border: 2px solid #cd7f32;
    border-radius: 8px;
    padding: 2.5rem;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    color: #f5f5dc;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease;
}

#updates-modal.is-open .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #cd7f32;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.modal-close-btn:hover {
    color: #f5f5dc;
    transform: rotate(90deg);
}

.modal-title {
    text-align: center;
    color: #cd7f32;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.update-column h3 {
    color: #cd7f32;
    border-bottom: 1px solid #444;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    background: #010101;
    z-index: 1;
}

.update-column {
    max-height: 40vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Themed scrollbar for columns */
.update-column::-webkit-scrollbar {
    width: 8px;
}

.update-column::-webkit-scrollbar-track {
    background: #101010;
    border-radius: 4px;
}

.update-column::-webkit-scrollbar-thumb {
    background: #cd7f32;
    border-radius: 4px;
    border: 2px solid #101010;
}

.update-column::-webkit-scrollbar-thumb:hover {
    background: #e6a861;
}

/* Firefox scrollbar styling for columns */
.update-column {
    scrollbar-width: thin;
    scrollbar-color: #cd7f32 #101010;
}

.update-item {
    background: #101010;
    padding: 1rem;
    border-left: 3px solid #cd7f32;
    margin-bottom: 1.5rem;
    border-radius: 0 4px 4px 0;
}

.update-text {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: #ccc;
}

.update-timestamp {
    font-size: 0.7rem;
    color: #888;
    font-style: italic;
}

.modal-footer {
    border-top: 1px solid #444;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 150px;
}

.footer-link {
    display: block;
    color: #f5f5dc;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-link:hover {
    color: #cd7f32;
    transform: translateX(5px);
}

.footer-link span {
    font-weight: bold;
    color: #cd7f32;
    margin-right: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-title {
        font-size: 2.5rem;
    }
    
    .header-subtitle {
        font-size: 1.2rem;
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-description {
        font-size: 1.1rem;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .floating-shape {
        display: none;
    }

    /* Allow footer to expand taller on mobile */
    .footer-section {
        min-height: auto;
        flex: none;
        padding: 3rem 2rem;
    }
    
    .container {
        height: auto;
        min-height: 100vh;
    }

    .banner-section {
        height: 400px;
        flex: none;
    }

    .iframe-container {
        overflow: hidden;
    }

    .banner-iframe {
        height: 300vh;
    }

    /* Modal Mobile */
    .top-left-controls {
        top: 10px;
        left: 10px;
        gap: 8px;
    }

    #updates-btn, #collabs-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 2rem 1.5rem;
        max-height: 85vh;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .update-column {
        max-height: 25vh; /* Adjust height for mobile */
        padding-right: 5px;
    }

    .update-column:first-child {
        margin-bottom: 2rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .update-column h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 2rem;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-content {
        padding: 1rem;
    }
    
    .footer-section {
        padding: 2rem 1rem;
    }
}