/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    overscroll-behavior: none;
}

/* LANDING PAGE STYLES */
/* Scroll Container */
.scroll-container {
    height: 330vh;
    position: relative;
    background-color: #000;
}

/* Canvas Styles */
canvas {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
}

/* Text Overlay Styles */
.text-overlay {
    position: fixed;
    top: 55%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
    text-align: left;
}

.title {
    font-family: 'Tilt Prism', cursive;
    color: #3c40ec;
    font-size: 3.2rem;
    font-weight: 400;
    margin-bottom: 0.2rem;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    font-family: 'Nova Flat', sans-serif;
    color: #3c40ec;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-left: 0.2rem;
    text-align: center;
    width: 100%;
}

/* Subpages Links Style */
.subpages-container {
    position: fixed;
    right: 15%;
    top: 35%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: left;
}

.subpage-link {
    font-family: 'Tw Cen MT Condensed', 'Arial Narrow', sans-serif;
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.subpage-link:hover {
    color: #3c40ec;
}

/* Audio Control */
.audio-control {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10;
    background: transparent;
    border: 1px solid #3c40ec;
    color: #3c40ec;
    padding: 0.5rem 1rem;
    font-family: 'Nova Flat', sans-serif;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.audio-control:hover {
    background: #3c40ec;
    color: #fff;
}

/* WORK PAGE SPECIFIC STYLES */
.work-title-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.work-title-overlay .title {
    text-align: center;
}

.video-overlay {
    position: fixed;
    /* Restored to values before Step 225 */
    top: 32%;
    left: calc(50% + 17px);
    /* Moved 1px left from 18px */
    /* Step 221 value */
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 56vw;
    max-width: 560px;
    aspect-ratio: 16/9;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    background: #000;
}

.video-overlay iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Controls (Triangles) */
.video-controls {
    position: fixed;
    /* Previous: 80% + 50px. "Move both 2 pixels lower". */
    top: calc(80% + 52px);
    /* Center shift +1px (to move left button +2px while keeping right stationary) */
    left: calc(50% + 8.5px);
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    /* Previous: 9rem + 41px. "Move left button +2px right". Gap -2px. */
    gap: calc(9rem + 39px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    align-items: center;
}

.video-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 0;
    height: 0;
    font-size: 0;
    transition: opacity 0.3s;
    opacity: 0.8;
}

.video-btn:hover {
    background: transparent;
    opacity: 1;
    transform: scale(1.1);
}

.video-btn::after {
    content: none;
}

/* Left Triangle Arrow (White) */
#prev-video {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 25px solid white;
    /* White arrow */
    border-left: none;
    box-shadow: none;
    border-radius: 0;
}

/* Right Triangle Arrow (White) */
#next-video {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid white;
    /* White arrow */
    border-right: none;
    box-shadow: none;
    border-radius: 0;
}

/* Nav on left for Work page */
.work-nav-container {
    position: fixed;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 6;
    opacity: 0;
    transition: opacity 1s ease;
}

/* Specific adjustment for Commissions page Nav */
#commissions-nav {
    /* "move the navigation menu 100 pixels higher" */
    top: calc(50% - 100px);
}

.work-nav-container .subpage-link {
    color: #666;
}

.work-nav-container .subpage-link:hover {
    color: #3c40ec;
}

/* CONTACT PAGE STYLES */

/* Transparent Box */
.contact-box {
    position: fixed;
    /* Higher and to the left (Previous: top 40%, left 20%) */
    top: 40%;
    /* Move 40 pixels MORE to the right (Previous +190px -> +230px) */
    left: calc(20% + 230px);
    transform: translate(-50%, -50%);
    /* Double the length (Previous: 25%, max 300px) */
    width: 50%;
    max-width: 600px;
    height: auto;
    background: rgba(255, 255, 255, 0.05);
    /* slightly clearer */
    /* Blue thin border */
    border: 1px solid #3c40ec;
    padding: 2rem;
    z-index: 5;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.contact-title {
    font-family: 'Nova Flat', sans-serif;
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-message-input {
    width: 100%;
    height: 150px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: black;
    /* "The text that visitors write in that box is black" */
    font-family: 'Nova Flat', sans-serif;
    padding: 10px;
    font-size: 0.9rem;
    resize: none;
    outline: none;
}

.contact-message-input:focus {
    border-color: #3c40ec;
}

.contact-input-row {
    display: flex;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

.contact-input {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: black;
    /* "The text that visitors write in that box is black" */
    font-family: 'Nova Flat', sans-serif;
    padding: 10px;
    font-size: 0.9rem;
    outline: none;
}

.contact-input:focus {
    border-color: #3c40ec;
}

.contact-send-btn {
    margin-top: 1rem;
    padding: 10px 30px;
    background: transparent;
    border: 1px solid #3c40ec;
    color: #3c40ec;
    font-family: 'Nova Flat', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s, color 0.3s;
}

.contact-send-btn:hover {
    background: #3c40ec;
    color: white;
}

.contact-email {
    margin-top: 1.5rem;
    color: #3c40ec;
    /* "the e-mail is blue" */
    font-family: 'Nova Flat', sans-serif;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-email:hover {
    color: white;
}

/* Social Links */
.social-links {
    position: fixed;
    /* Move 100 pixels MORE to the left (Total +250px from right) */
    right: calc(15% + 250px);
    /* Move 100 pixels MORE to the low (Total +150px from center) */
    top: calc(50% + 150px);
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    /* Vertical row */
    gap: 1.5rem;
    z-index: 5;
    opacity: 0;
    transition: opacity 1s ease;
}

.social-link {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s, color 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    transform: scale(1.1);
    color: #3c40ec;
}

/* Smaller SVGs */
.social-icon {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

/* TEAM PAGE STYLES */
/* Stars */
.star-btn {
    width: 40px;
    /* A bit smaller */
    height: 40px;
    /* A bit smaller */
    background: white;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    border: none;
    cursor: pointer;
    position: fixed;
    z-index: 10;
    transition: transform 0.2s;
    opacity: 0.8;
}

.star-btn:hover {
    transform: scale(1.2);
    opacity: 1;
}

#star-dragos {
    top: 15%;
    left: 48%;
    /* Left-ish middle */
}

#star-andreea {
    top: calc(25% + 15px);
    /* 15 pixels higher than +30px */
    left: calc(52% + 30px);
    /* Keep right shift */
}

/* Team Info Box */
.team-info-box {
    position: fixed;
    top: 20%;
    right: 10%;
    width: 300px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    z-index: 6;
    opacity: 0;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(5px);
    color: white;
    font-family: 'Nova Flat', sans-serif;
    font-size: 1rem;
    pointer-events: none;
    /* Initially non-interactive if hidden */
    line-height: 1.4;
}

/* Team Page Nav (White text) */
.team-nav-active .subpage-link {
    color: white;
}

.team-nav-active .subpage-link:hover {
    color: #3c40ec;
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.6rem;
    }

    .text-overlay {
        left: 5%;
        width: 90%;
        text-align: center;
    }

    .subpages-container {
        right: 5%;
        top: 20%;
    }

    .video-overlay {
        width: 70vw;
    }

    .video-controls {
        top: 75%;
        gap: 3rem;
    }

    .contact-box {
        width: 80%;
        left: 50%;
        top: 40%;
    }

    .social-links {
        right: 5%;
    }

    .team-info-box {
        top: 60%;
        right: 5%;
        width: 90%;
    }
}

/* Work Info Box */
/* Work Info Box */
.work-info-box {
    position: fixed;
    /* "It's 50% lower" -> Positioned below video. */
    /* "move the box 30 pixels up" */
    top: calc(65% - 30px);
    /* "move the info box 10 pixels to the left" -> -15px - 10px = -25px */
    left: calc(50% - 25px);
    transform: translate(-50%, 0);
    /* Align top edge */

    /* "larger 30 pixels to the left" -> Width + 30px */
    width: calc(44.8vw + 30px);
    max-width: calc(448px + 30px);

    text-align: left;
    /* "The whole text is aligned on the left" */
    color: white;
    font-family: 'Nova Flat', sans-serif;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 5;

    /* Transparent with bounding line */
    background: transparent;
    border: 1px solid white;
    padding: 1.5rem 1.5rem calc(1.5rem - 5px) 1.5rem;
    backdrop-filter: none;
}

.work-info-title {
    font-size: 0.85rem;
    /* "slightly bigger" */
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.4;
}

.work-info-desc {
    font-size: 0.85rem;
    /* "slightly bigger" */
    color: white;
    /* "The whole text is white" */
    line-height: 1.5;
}

/* Commissions Box */
.commissions-box {
    position: fixed;
    top: 50%;
    left: calc(10% + 110px);
    /* 20px more right */
    /* Moved 50px right */
    /* Left side of the screen */
    transform: translateY(-50%);
    width: 35%;
    max-width: 500px;
    padding: 2rem;

    /* Transparent with white edge and blur */
    /* "light, almost white, but still blurred transparent" */
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid white;
    backdrop-filter: blur(10px);

    color: black;
    font-family: 'Nova Flat', sans-serif;
    line-height: 1.6;
    font-size: 0.95rem;

    opacity: 0;
    transition: opacity 1s ease;
    z-index: 5;
    pointer-events: none;
}

.commissions-text p {
    margin-bottom: 1.5rem;
}