:root {
    --bg-dark: #000000;
    --bg-glow: #1a221f; /* subtle greenish/purplish glow seen in the photo gradient */
    --text-primary: #ffffff;
    --font-serif: 'Cinzel', serif;
    --font-sans: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    overflow-x: hidden;
    position: relative; /* Setup context for absolute positioning */
}

/* Background Canvas */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; /* Keep it behind everything */
    pointer-events: none; /* Let clicks pass through if needed, though we will track mouse globally */
}

.container {
    position: relative;
    z-index: 1; /* Keep above canvas */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 85vh; /* Responsive height */
    width: 100%;
    max-width: 600px; /* Restrict width for mobile-first feel */
    gap: 3rem;
}

/* Header Styles */
header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeDown 1.2s ease-out forwards;
    opacity: 0;
}

.title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 10vw, 4.5rem); /* Scales smoothly */
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 2px;
}

.subtitle {
    font-size: clamp(1rem, 4.5vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.5;
}

/* Main Content Styles */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    flex: 1;
    justify-content: center;
    animation: fadeIn 1.5s ease-out 0.5s forwards;
    opacity: 0;
}

.logo-wrapper {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    position: relative;
    padding: 1rem;
}


.logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05); /* Interactive micro-animation */
}

.message-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 1.5px;
}

.website-link {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.website-link:hover {
    opacity: 1;
}

/* Footer Styles */
footer {
    animation: fadeUp 1.2s ease-out 1s forwards;
    opacity: 0;
    margin-top: auto;
}

.footer-text {
    font-size: clamp(0.9rem, 3.5vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 2px;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    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); }
}

/* Extra small devices */
@media (max-width: 360px) {
    .container { gap: 2rem; }
    header { gap: 1rem; }
    main { gap: 1.5rem; }
    .logo-wrapper { max-width: 250px; }
}

/* Desktop layout redesign */
@media (min-width: 1024px) {
    body {
        align-items: center; /* keep centered vertically */
        padding: 4rem;
    }

    .container {
        flex-direction: row;
        max-width: 1400px;
        align-items: stretch;
        gap: 6rem;
    }

    /* Left side text */
    header {
        flex: 1;
        justify-content: center; /* Center horizontally */
        text-align: left; /* Align text to the left */
        border-right: 1px solid rgba(255, 255, 255, 0.1); 
        padding-right: 4rem;
        /* Desktop specific animations */
        animation: slideInLeft 1.2s ease-out forwards;
    }

    .title {
        font-size: clamp(3rem, 5vw, 6rem); 
    }

    .subtitle {
        font-size: clamp(1.2rem, 2vw, 2rem);
    }
    
    /* Right side content (logo + message) */
    main {
        flex: 1.2;
        padding-left: 2rem;
        animation: slideInRight 1.5s ease-out 0.2s forwards;
    }

    .logo-wrapper {
        max-width: 500px; /* Larger logo on desktop */
    }

    .message-section {
        margin-top: 1rem;
    }

    .highlight {
        font-size: clamp(1.5rem, 2vw, 2.2rem);
    }

    .website-link {
        font-size: clamp(1.3rem, 1.8vw, 2rem);
    }

    /* Position the footer nicely at the absolute bottom or spanning across */
    footer {
        position: absolute;
        bottom: 2rem;
        left: 0;
        width: 100%;
        text-align: center;
        animation: fadeUp 1.2s ease-out 1s forwards;
    }
}
