.third-fold {
    position: relative;
    min-height: 80vh;
    background-color: white;
    padding: 100px 20px 80px;
    color: #282828;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.6s ease;
    margin-top: 0;
}

.third-fold-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-family: 'VT323', monospace;
}

.third-fold h2 {
    margin-bottom: 20px;
    opacity: 0;
}

.third-fold.show h2 {
    animation: textReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Special style for the third-fold primary title to make it smaller */
.third-fold .primary-title {
    font-size: 42px;
}

.third-fold p {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 20px;
    margin-top: 15px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
}

.third-fold.show p {
    animation: textReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

/* Desktop layout with flexbox */
@media screen and (min-width: 992px) {
    .third-fold {
        min-height: auto;
        padding: 80px 20px;
    }
    
    .third-fold-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        gap: 20px;
        max-width: 1000px;
    }
    
    .third-fold-text {
        flex: 1;
        order: 1;
        padding-right: 20px;
        padding-left: 0;
    }
    
    .circular-container {
        flex: 1;
        order: 2;
        display: flex;
        justify-content: flex-start;
        padding-left: 0;
        max-width: 350px;
    }
    
    .third-fold .primary-title, 
    .third-fold p {
        margin-left: 0;
        text-align: left;
    }
    
    .final-message {
        text-align: left;
        margin-top: 30px;
        margin-bottom: 0;
    }
        
    .dot-grid {
        margin-left: 0;
    }
}

.circular-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dot-grid {
    display: grid;
    box-sizing: border-box;
    justify-content: center;
    width: 350px;
    height: 350px;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    padding: 20px;
    overflow: hidden;
    mask-image: radial-gradient(circle, black 60%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle, black 60%, transparent 75%);
}

/* Media queries for responsive dot grid */
@media screen and (max-width: 768px) {
    .dot-grid {
        width: 300px;
        height: 300px;
    }
    
    .final-message {
        font-size: 18px;
        max-width: 90%;
    }
}

@media screen and (max-width: 480px) {
    .dot-grid {
        width: 240px;
        height: 240px;
        padding: 10px;
    }
    
    .final-message {
        font-size: 16px;
    }
    
    .third-fold p {
        font-size: 16px;
        margin-bottom: 20px;
        margin-top: 10px;
        max-width: 90%;
        color: black;
    }
    
    .third-fold {
        min-height: auto;
        padding: 60px 15px;
    }
}

.grid-dot {
    width: 10px;
    height: 10px;
    margin: 0;
    animation: blinkGrid 2s infinite;
    animation-delay: var(--delay);
    transition: opacity 0.5s ease;
}

.grid-dot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes blinkGrid {
    0% { opacity: 1; }
    50% { opacity: 0.05; }
    100% { opacity: 1; }
}

.counter {
    font-family: 'VT323', monospace;
    display: inline-block;
    min-width: 3ch;
}

.counter.animate {
    animation: countUp 2s steps(100) forwards;
}

@keyframes countUp {
    from {
        content: "000";
    }
    to {
        content: "100";
    }
}

.third-fold.show {
    opacity: 1;
}

.hidden-text {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.final-message {
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    line-height: 1.4;
    margin-top: 30px;
    margin-bottom: 20px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    color: #282828;
    text-align: center;
    opacity: 0;
}

.third-fold.show .final-message {
    animation: textReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
} 