/* Lumonote specific styles */

.body {
    background-color: #ffffff;
}

::selection {
    background-color: rgba(41, 41, 41, 1); /* Light version of #fdfdfd */
    color: #fdfdfd; /* Same as the highlighted span text color */
}

::-moz-selection {
    background-color: rgba(57, 57, 175, 1);
    color: #fdfdfd;
}

.container {
    background-color: #fdfdfd;
    padding-bottom: 70vh; /* Add padding equal to footer height to reveal footer at end */
    height: auto;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.7s cubic-bezier(0.50, 0, 0.50, 1) 0.5s forwards;
    opacity: 0;
}

/* Hero Section */
.hero-section {
    background-color: #292929;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: height 0.5s ease;
    animation: shrinkHeight 0.5s ease 1.2s forwards;
    margin-top: 0;
}

@keyframes shrinkHeight {
    from { height: 100vh; }
    to { height: 95vh; }
}

/* Added media query for smaller screens */
@media (max-width: 767px) {
    @keyframes shrinkHeight {
        from { height: 100vh; }
        to { height: 85vh; }
    }
}

.hero-title {
    font-family: 'Basteleur', serif;
    font-size: 80px;
    color: #fdfdfd;
    text-align: center;
    margin: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-image {
    width: 100%;
    bottom: 0%;
    left: 0;
    position: absolute;
    height: auto;
    z-index: 1;
}

.section {
    background-color: #fbfbfb;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 20vh 12vw;
    gap: 180px;
}

.section-title {
    font-family: 'Basteleur', serif;
    font-size: 32px;
    margin: 0;
    color: black;
    width: 19%;
    max-width: 292px;
}

.section-title-box {
    font-family: 'Basteleur', serif;
    font-size: 32px;
    margin: 0;
    width: 75%;
    max-width: 292px;
    color: black;
}
.section-description {
    width: 30.8vw;
    gap: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-text {
    color: black;
    font-size: 16px;
    line-height: 160%;
    text-align: justify;
    letter-spacing: -2%;
}

.section-image {
    position: relative;
    display: flex;
    width: 100%;
}

/* Section media container with dark background */
.section-image-container {
    background-color: #292929;
    width: 100%;
    display: block;
}

/* Two iPhone frames side-by-side (stack on small screens) */
.section-media-pair {
    max-width: 1800px;
    margin: 0 auto;
    padding: 12vh 16vw;
    display: flex;
    gap: 200px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.phone {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 438 / 904; /* matches iPhone frame SVG viewBox */
}

.phone .frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}

/* Screen area positioned to fit corner-to-corner inside the frame */
.phone .screen {
    position: absolute;
    /* Size relative to frame: width 1.08x smaller, height 1.032x smaller */
    width: calc(100% / 1.08);
    height: calc(100% / 1.032);
    /* Center within frame */
    left: calc((100% - (100% / 1.08)) / 2);
    top: calc((100% - (100% / 1.032)) / 2 + 0.25%);
    overflow: hidden;
    border-radius: 32px; /* subtle rounding to match display corners */
    z-index: 1;
}

.phone .screen img,
.phone .screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.meta-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.meta-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 6vw;
}

.meta-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.meta-label {
    font-size: 16px;
    color: #999;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.5;
    text-align: left;
}

.meta-value {
    font-size: 16px;
    color: #000;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.5;
    text-align: left;
}

.meta-value a {
    text-decoration: none;
    color: inherit;
}

.knobvid {
    position: relative;
    width: 100%;
    /* max-width: 1028px; */
    margin: 0 auto;
    display: flex;
    box-sizing: border-box;
}

.knobvid video {
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

/* Parallax Footer Styles */
.parallax-footer {
    height: 70vh;
    width: 100vw;
    background-color: #FF653F;
    position: fixed;
    bottom: 0;
    /* left: 0; */
    z-index: -1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 12vw;
    padding: 0 12vw;
}

.up-next {
    position: absolute;
    top: 32%;
    left: 12vw;
    transform: translateY(-24px);
    will-change: transform;
    transition: transform 0.05s linear;
}

.up-next p {
    font-family: 'Brockmann', sans-serif;
    font-size: 16px;
    color: #fdfdfd;
    opacity: 0.4;
    margin: 0;
    letter-spacing: -0.02em;
    position: relative;
}

.up-next p::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fdfdfd;
    transition: width 0.3s ease;
}

.parallax-footer:hover .up-next p::after {
    width: 65%;
}

.next-project {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    transform: translateY(-24px);
    will-change: transform;
    transition: transform 0.05s linear;
}

.next-project a {
    text-decoration: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.next-title {
    font-family: 'Basteleur', serif;
    font-size: 80px;
    color: #fdfdfd;
    margin: 0;
    z-index: 2;
}

.next-grid-pattern {
  position: absolute;
  bottom: -12%;
  right: -15%;
  width: 70%;
  height: 70%;
  object-fit: contain;
  background-image: url('../arkade/home-cover.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  z-index: 1;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .parallax-footer {
        height: 70vh;
    }
    
    .next-title {
        font-size: 40px;
    }
    
    .up-next {
        left: 8vw;
        top: 35%;
    }
    
    .next-grid-pattern {
        bottom: -3%;
        right: -8%;
        width: 100%;
        height: 100%;
    }
    
    /* General responsive adjustments */
    .section {
        flex-direction: column;
        gap: 24px;
        padding: 10vh 8vw;
    }
    
    .section-title {
        width: 100%;
        font-size: 24px;
        max-width: 100%;
    }
    
    .section-title-box {
        width: 100%;
        font-size: 24px;
        max-width: 100%;
    }
    
    .section-description {
        width: 100%;
        gap: 24px;
    }
    
    .section-text {
        font-size: 0.925rem;
    }

    .section-media-pair {
        padding: 8vh 8vw;
        flex-direction: column;
        gap: 80px;
    }

    .phone {
        max-width: 420px;
        width: 100%;
    }
    
    .meta-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .meta-info {
        gap: 16px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-image {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        bottom: 0%;
    }
    
    .meta-label, .meta-value {
        font-size: 0.925rem;
    }
    
    .up-next p {
        font-size: 0.925rem;
    }
    
    .footer-content {
        margin-left: 0vw;
        padding: 0 8vw;
    }
}

/* Narrow phones: specific tweaks for mobile-cover image */
/* @media (max-width: 489px) {
    .hero-image {
        width: 100%;
        bottom: 0%;
    }
} */

/* Additional breakpoint for tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .section {
        gap: 80px;
        padding: 15vh 10vw;
    }
    
    .section-title {
        font-size: 28px;
        width: 30%;
    }
    
    .section-description {
        width: 60%;
    }
    
    .hero-title {
        font-size: 64px;
    }

    .hero-image {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      width: 100%;
      bottom: 0%;
    }
    
    .section-text {
        font-size: 1.1rem;
    }
    
    .section-title-box{
        width: 100%;
    }

    .footer-content {
        margin-left: 0vw;
        padding: 0 8vw;
    }

    .next-title {
        font-size: 64px;
    }
    
    .up-next {
        left: 8vw;
        top: 35%;
    }
    
    .next-grid-pattern {
        bottom: -5%;
        right: -5%;
        width: 70%;
        height: 70%;
    }
}

/* Password overlay */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: #000000;
    display: none; /* shown by JS when locked */
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.auth-card {
    width: 440px;
    max-width: calc(100vw - 48px);
    background: #000000;
    border: 1px solid rgba(64, 64, 64, 1);
    border-radius: 6px;
    padding: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.auth-title {
    font-family: 'Basteleur', serif;
    color: #fdfdfd;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -0.01em;
    margin: 0 0 12px 0;
    text-align: center;
    align-self: center; /* ensure centered within stretched container */
}

.auth-desc {
    margin: 0 0 28px 0;
    color: rgba(109, 112, 119, 1);
    font-size: 16px;
    text-align: center;
}

.auth-form { margin: 0 0 40px 0; }

.auth-input-wrap {
    position: relative;
    width: 100%;
    align-self: stretch; /* fill the card's content width */
    display: block;
    box-sizing: border-box;
}

.auth-input {
    width: 100%;
    height: 56px;
    background: #131313; /* soft light field from design */
    border: 0px solid transparent;
    border-radius: 2px;
    color: #fdfdfd;
    caret-color: #fdfdfd;
    padding: 0 56px 0 20px;
    outline: none;
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: rgba(109, 112, 119, 1);
    font-family: 'Brockmann', sans-serif;
}

.auth-submit {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 44px;
    width: 44px;
    border-radius: 999px;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.auth-submit-icon {
    width: 32px;
    height: 32px;
    background-image: url('assets/enter.svg');
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: center;
}

.auth-back {
  font-family: 'Brockmann', sans-serif;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    opacity: 1;
}

.auth-error {
    color: #ff4d4d;
    font-size: 14px;
    margin: 12px 0 0 0;
    text-align: left;
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.auth-error.show {
    opacity: 1;
}

.auth-input[aria-invalid="true"] { 
    border: 1px solid #ff4d4d;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
    20%, 40%, 60%, 80% { transform: translateX(6px); }
}

@media (max-width: 767px) {
    .auth-card {
        padding: 2rem;
        width: 75vw;
    }

    .auth-title {
        font-size: 40px;
    }

    .auth-submit {
        right: 6px;
        height: 40px;
        width: 40px;
    }

    .auth-input-wrap {
        width: 100%;
        max-width: none;
    }
}

