/*
Theme Name: Dark Portfolio Theme
Author: Vandal
Description: 100% Custom HTML/CSS Theme.
Version: 1.1
*/

/* --- Elementor Full Width Fix --- */
.elementor-page {
    display: block !important; /* Disables flexbox so Elementor can use its own grid */
}

.elementor-page .container {
    padding: 0 !important;
    margin-bottom: 0 !important; /* Removes extra space at the bottom */
}

/* Ensure the custom menu still has room if needed */
.elementor-page .elementor-section:last-child {
    padding-bottom: 100px !important; 
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Medula+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400&display=swap');

body {
    background-color: #12110F;
    font-family: 'Lato', sans-serif;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Changed from center to allow scrolling if needed */
    padding: 20px !important; /* The semicolon goes at the very end */
    cursor: none; 
    overflow-x: hidden; /* Prevent horizontal scroll from snake/titles */
}

/* --- Responsive Title Styling --- */
.main-headline {
    font-family: 'Medula One', cursive;
    /* Scales between 2.5rem and 5.5rem based on screen width */
    font-size: clamp(4rem, 10vw, 5.5rem); 
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 400;
    user-select: none;
    position: relative;
    display: block; /* Allows word wrapping */
    text-align: center;
    width: 100%;
    max-width: 85vw;
    margin: 0 auto;
    line-height: 0.9;
    min-height: 1.2em;
}

/* Character & Word Spans from JS */
.char {
    display: inline-block;
    opacity: 0;
    white-space: pre; 
    will-change: transform, opacity;
}

/* Animations for titles */
.char-in {
    animation: char-anim-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.char-out {
    animation: char-anim-out 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

@keyframes char-anim-in {
    0% { opacity: 0; transform: translateX(-15px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes char-anim-out {
    0% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(15px); }
}

/* --- Intro Paragraph --- */
.intro-paragraph {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    text-align: center;
    max-width: 35vw;
    margin: 0px auto 0;
    line-height: 1.6;
    color: #fff;
}

@media (max-width: 900px) {
    .intro-paragraph {
        max-width: 40vw;
    }
}

/* --- Sticky Bottom Menu --- */
.bottom-menu {
    position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px); /* Adds modern glass feel */
    width: 100%;
    padding: 0px 50px;
    border-radius: 30px 30px 0px 0px;
    border: 1px solid #222;
    z-index: 2000;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.5);
}

.menu-item {
    color: #fff;
    text-decoration: none;
    font-family: 'Medula One', cursive;
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    padding: 20px 10px;
    display: block;
}

.menu-item:hover {
    color: #aaa;
    transform: translateY(-2px);
}

.menu-divider {
    width: 1px;
    height: 30px;
    background-color: #333;
}

/* --- Containers --- */
.main-containers {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    margin: 10px 0px 100px 0px; /* Space for sticky menu */
}

.hero-box {
    position: relative;
    background: url(images/my-nuthatch-heros.png) #000 50% / cover no-repeat;
    height: clamp(350px, 60vh, 500px);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bottom-row {
    display: flex;
    gap: 20px;
    height: 450px;
}

.projects-box {
    position: relative;
    flex: 2;
    background-color: #1a1a1a;
    border-radius: 40px 160px 40px 40px;
    display: flex;
    align-items: flex-end;
    padding: 100px 40px 100px  40px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.projects-box:visited {
    color: inherit;
}

.projects-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Wavy Spotlight */
.projects-box::after {
    content: "";
    position: absolute;
    inset: -100px; 
    background: rgba(12,11,9,0.85);
    pointer-events: none;
    z-index: 1;
    mask: url(#liquid-mask);
    -webkit-mask: url(#liquid-mask);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.ai-box {
    flex: 1.2;
    background: url(images/raven-ai-section-bg.jpg) #000 50% / cover no-repeat;
    border-radius: 180px 180px 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.section-headline {
    font-family: 'Medula One', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
    text-transform: uppercase;
    z-index: 2;
}

.subhead {
    font-weight: 300;
    font-size: 1.1rem;
    margin: 10px 0 20px;
    color: #ccc;
    z-index: 2;
}

.action-btn {
    background: transparent;
    border: 1px solid #777;
    color: #fff;
    padding: 8px 25px;
    border-radius: 50px;
    font-family: 'Medula One', cursive;
    font-size: 1.2rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2;
    text-decoration: none;
}

.action-btn:hover {
    background: #fff;
    color: #000;
}

/* Floating Assets */
.site-logo {
    position: fixed;
    top: 30px;
    left: 30px;
    width: clamp(120px, 15vw, 180px);
    z-index: 1000;
}

.profile-image {
    position: absolute;
    top: 380px;
    left: -20px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    z-index: 10;
    animation: slow-rotate 20s linear infinite;
    border: 1px solid rgba(255,255,255,0.1);
}

@keyframes slow-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* --- Snake Cursor --- */
#snake {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999; /* Highest priority */
}

.snake-segment {
    position: fixed;
    pointer-events: none;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    will-change: left, top, transform; /* Performance optimization */
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    body {
        cursor: auto; /* Show cursor on mobile so they can see what they tap */
    }
    
    .hero-box {
        background-image: url(images/my-nuthatch-heros-mobile.png);
    }
    
    .bottom-row {
        flex-direction: column;
        height: auto;
    }

    .projects-box {
        height: 500px;
        border-radius: 40px;
    }

    .ai-box {
        height: 350px;
        border-radius: 40px;
    }

    .profile-image {
        top: -60px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 100px;
    }

    .bottom-menu {
        padding: 10px;
        width: 100%;
        border-radius: 0;
    }

    .menu-item {
        font-size: 1.2rem;
        letter-spacing: 0.05em;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .profile-image, .char-in, .char-out {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}