/* Demo link custom styling */
.demo-link {
    color: #FF653F !important;
    text-decoration: none !important;
    position: relative;
}

.demo-link:hover {
    text-decoration: none !important;
}

.demo-link:before,
.demo-link:after {
    text-decoration: none !important;
}

/* Ensure demo link letter containers maintain the custom color */
.demo-link .letter-swap-container {
    color: #FF653F !important;
}

.demo-link .letter,
.demo-link .letter-secondary {
    color: #FF653F !important;
}

/* Arkade specific styles */

.body {
    background-color: #ffffff;
}

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

::-moz-selection {
    background-color: rgba(255, 101, 63, 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: #FF653F   ;
    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 {
    position: absolute;
    font-family: 'Basteleur', serif;
    font-size: 80px;
    color: #fdfdfd;
    text-align: center;
    margin: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-image {
    width: 36%;
    height: auto;
    position: absolute;
    bottom: -25%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.lottie-container {
    bottom: -30%;
    position: relative;
    width: 100%;
    display: flex;
    z-index: 1;
    justify-content: center;
    align-items: center;
}

dotlottie-player {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1200px) {
    dotlottie-player {
        width: 100% !important;
        height: auto !important;
    }
}

.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%;
    height: auto;
}

.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;
}

/* Prototypes video styles */
.prototypes-video {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
    box-sizing: border-box;
}

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

/* Lottie container styles */
/* Duplicate .lottie-container with background and padding removed for hero-section fix */

.lottie-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 800px;
}

.lottie-item {
    width: 100%;
    height: 200px;
    background-color: #1a1a1a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lottie Grid Section (Gestures) - Full viewport height and centered grid */
.lottie-grid-section {
  width: 100%;
  height: 100vh;
  min-height: 500px;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}
.lottie-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px 0;
  width: 100%;
  height: 50vh;
  max-width: 800px;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
  padding: 0;
}
.lottie-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 0;
  height: 100%;
}
.lottie-grid-item dotlottie-player {
  width: 320px;
  height: 180px;
  margin-bottom: 1rem;
}
.lottie-label {
  color: #fff;
  font-family: 'Brockmann', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 0;
  letter-spacing: 0.01em;
  font-weight: 400;
}
@media (max-width: 900px) {
  .lottie-grid-section {
    min-height: 350px;
    height: 80vh;
  }
  .lottie-grid-2x2 {
    height: 70vh;
  }
  .lottie-grid-item dotlottie-player {
    width: 120px;
    height: 120px;
  }
  .lottie-label {
    font-size: 15px;
  }
}
@media (max-width: 600px) {
  .lottie-grid-section {
    height: auto;
    min-height: 0;
    padding: 0;
  }
  .lottie-grid-2x2 {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 32px 0;
    width: 100%;
    height: auto;
    padding: 2rem 0 4rem 0;
  }
  .lottie-grid-item dotlottie-player {
    width: 64px;
    height: 64px;
  }
  .lottie-label {
    font-size: 14px;
  }
}

/* Parallax Footer Styles */
.parallax-footer {
    height: 70vh;
    width: 100vw;
    background-color: #2D81F7;
    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: -25%;
    right: -25%;
    width: 65%;
    height: 65%;
    object-fit: contain;
    background-image: url('../polls/home-cover.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    z-index: 1;
    transform: rotate(-15deg);
}

/* Responsive Design */
@media (max-width: 767px) {
    .parallax-footer {
        height: 60vh;
    }

    .next-title {
        font-size: 32px;
    }

    .up-next {
        transform: translateY(-32px);
    }

    .next-grid-pattern {
        margin-top: 16px;
    }

    .section {
        padding: 15vh 8vw;
        gap: 60px;
        flex-direction: column;
    }

    .lottie-container {
        bottom: -40%;
        position: relative;
        width: 100%;
        display: flex;
        z-index: 1;
        justify-content: center;
        align-items: center;
    }

    .section-title {
        font-size: 24px;
        width: 100%;
        max-width: none;
    }

    .section-title-box {
        font-size: 24px;
        width: 100%;
        max-width: none;
    }

    .section-description {
        width: 100%;
        gap: 32px;
    }

    .section-text {
        font-size: 14px;
    }

    .meta-row {
        gap: 4vw;
    }

    .meta-info {
        gap: 24px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-image {
        width: 60%;
    }

    .meta-label, .meta-value {
        font-size: 14px;
    }

    .up-next p {
        font-size: 14px;
    }

    .footer-content {
        gap: 24px;
        padding: 0 16px;
    }

    .lottie-grid {
        gap: 20px;
    }

    .lottie-item {
        height: 150px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .section {
        padding: 18vh 10vw;
        gap: 120px;
    }

    .section-title {
        font-size: 28px;
        width: 25%;
    }

    .lottie-container {
        bottom: -42%;
        position: relative;
        width: 100%;
        display: flex;
        z-index: 1;
        justify-content: center;
        align-items: center;
    }

    .section-description {
        width: 35vw;
    }

    .hero-title {
        font-size: 64px;
    }

    .hero-image {
        width: 45%;
    }

    .section-text {
        font-size: 15px;
    }

    .section-title-box{
        font-size: 28px;
    }

    .footer-content {
        gap: 32px;
    }

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

    .up-next {
        transform: translateY(-48px);
    }

    .next-grid-pattern {
        margin-top: 16px;
    }
} 

/* 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: -15%;
        right: -15%;
        width: 70%;
        height: 70%;
    }
    
    .lottie-container {
        bottom: -38%;
        width: 100%;
        display: flex;
        z-index: 1;
        justify-content: center;
        align-items: center;
    }
    
    /* 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;
    }
    
    .meta-row {
        flex-direction: column;
        gap: 16px;
    }

    .meta-column.empty {
        display: none;
    }

    .meta-info {
        gap: 16px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-image {
        width: 90%;
        bottom: -15%;
    }
    
    .meta-label, .meta-value {
        font-size: 0.925rem;
    }
    
    .up-next p {
        font-size: 0.925rem;
    }
    
    .footer-content {
        margin-left: 0vw;
        padding: 0 8vw;
    }

    @keyframes slideInFromTop {
        0% {
            opacity: 0;
            transform: translateY(-150%) translateX(-50%);
        }
        100% {
            opacity: 1;
            transform: translateY(-50%) translateX(-50%);
        }
    }
    
    @keyframes slideInFromBottom {
        0% {
            opacity: 0;
            transform: translateY(150%) translateX(-50%);
        }
        100% {
            opacity: 1;
            transform: translateY(50%) translateX(-50%);
        }
    }
}

/* 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;
    }

    .lottie-container {
        bottom: -38%;
        width: 80%;
        display: flex;
        z-index: 1;
        justify-content: center;
        align-items: center;
    }

    .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: -18%;
        right: -18%;
        width: 60%;
        height: 60%;
    }

    @keyframes slideInFromTop {
        0% {
            opacity: 0;
            transform: translateY(-150%) translateX(-50%);
        }
        100% {
            opacity: 1;
            transform: translateY(-50%) translateX(-50%);
        }
    }
    
    @keyframes slideInFromBottom {
        0% {
            opacity: 0;
            transform: translateY(150%) translateX(-50%);
        }
        100% {
            opacity: 1;
            transform: translateY(50%) translateX(-50%);
        }
    }
} 