body {
    background-color: #111;
    overflow-x: hidden;
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section > div {
    margin-bottom: var(--spacing-5xl);
}

.section > div:last-child {
    margin-bottom: 0;
}

.content {
    padding: var(--spacing-xl);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.content h1 {
    margin-bottom: var(--spacing-md);
}

.content h2 {
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.8);
}

.content p {
    padding-top: var(--spacing-lg);
    font-size: 1.3rem;
    opacity: 0;
    -webkit-transform: translateY(10px);
    -ms-transform: translateY(10px);
    transform: translateY(10px);
    line-height: 1.6;
    margin-bottom: 0;
}

@media(max-width: 1300px) {
    .content p {
        font-size: 1rem;
    }
}

@media(max-width: 1000px) {
    .content p {
        font-size: 0.8rem;
    }
}

.content p[data-scroll="in"] {
    opacity: 1;
    -webkit-transform: translateY(0px);
    -ms-transform: translateY(0px);
    transform: translateY(0px);
    -webkit-transition: opacity 0.3s ease-out 0.5s, -webkit-transform 0.4s ease-out 0.55s;
    transition: opacity 0.3s ease-out 0.5s, -webkit-transform 0.4s ease-out 0.55s;
    -o-transition: opacity 0.3s ease-out 0.5s, transform 0.4s ease-out 0.55s;
    transition: opacity 0.3s ease-out 0.5s, transform 0.4s ease-out 0.55s;
    transition: opacity 0.3s ease-out 0.5s, transform 0.4s ease-out 0.55s, -webkit-transform 0.4s ease-out 0.55s;
}

.c h1 {
    letter-spacing: 3px;
    text-transform: uppercase;
}

.c h2 {
    letter-spacing: 1px;
}

.content h1 {
    opacity: 0;
    -webkit-transform: translateY(30px);
    -ms-transform: translateY(30px);
    transform: translateY(30px);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.content h1[data-scroll="in"] {
    opacity: 1;
    -webkit-transform: translateY(0px);
    -ms-transform: translateY(0px);
    transform: translateY(0px);
    -webkit-transition: opacity 0.3s ease-out 0.25s, -webkit-transform 0.4s ease-out 0.3s;
    transition: opacity 0.3s ease-out 0.25s, -webkit-transform 0.4s ease-out 0.3s;
    -o-transition: opacity 0.3s ease-out 0.25s, transform 0.4s ease-out 0.3s;
    transition: opacity 0.3s ease-out 0.25s, transform 0.4s ease-out 0.3s;
    transition: opacity 0.3s ease-out 0.25s, transform 0.4s ease-out 0.3s, -webkit-transform 0.4s ease-out 0.3s;
}

.content h2 {
    letter-spacing: 1px;
    opacity: 0;
    -webkit-transform: translateY(20px);
    -ms-transform: translateY(20px);
    transform: translateY(20px);
}

.content h2[data-scroll="in"] {
    opacity: 1;
    -webkit-transform: translateY(0px);
    -ms-transform: translateY(0px);
    transform: translateY(0px);
    -webkit-transition: opacity 0.3s ease-out 0.45s, -webkit-transform 0.4s ease-out 0.5s;
    transition: opacity 0.3s ease-out 0.45s, -webkit-transform 0.4s ease-out 0.5s;
    -o-transition: opacity 0.3s ease-out 0.45s, transform 0.4s ease-out 0.5s;
    transition: opacity 0.3s ease-out 0.45s, transform 0.4s ease-out 0.5s;
    transition: opacity 0.3s ease-out 0.45s, transform 0.4s ease-out 0.5s, -webkit-transform 0.4s ease-out 0.5s;
}

.regular-right {
    background-size: 100% auto;
    background-repeat: no-repeat;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    height: 100%;
}

.regular-right .content,
.c {
    position: absolute;
    width: 40% !important;
    color: white;
    text-align: center;
    margin: var(--spacing-2xl);
}

.regular-left {
    background-size: 100% auto;
    background-repeat: no-repeat;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    height: 100%;
    margin-bottom: var(--spacing-3xl);
}

.regular-left .content {
    position: absolute;
    width: 40% !important;
    color: white;
    text-align: center;
    margin: var(--spacing-2xl);
}

.micro-left {
    width: 100%;
    background-size: 100% auto;
    background-repeat: no-repeat;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    margin-bottom: var(--spacing-3xl);
}

.micro-left .content {
    position: absolute;
    width: 40% !important;
    color: white;
    text-align: center;
    margin: var(--spacing-2xl);
}

.micro-right {
    width: 100%;
    background-size: 100% auto;
    background-repeat: no-repeat;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    margin-bottom: var(--spacing-3xl);
}

.micro-right .content {
    position: absolute;
    width: 40% !important;
    color: white;
    text-align: center;
    margin: var(--spacing-2xl);
}

@media(max-width: 1000px) {
    .regular-right .content {
        width: 30% !important;
    }

    .regular-left .content {
        width: 30% !important;
    }

    .micro-left .content {
        width: 30% !important;
    }

    .micro-right .content {
        width: 30% !important;
    }
}

.on-load {
    opacity: 1;
    -webkit-transform: translateY(0px);
    -ms-transform: translateY(0px);
    transform: translateY(0px);
    -webkit-transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s, -webkit-transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s, -webkit-transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
    -o-transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s, -webkit-transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
}

@media (max-width: 1000px) {
    .section h1 {
        font-size: 30px;
    }

    .section h2 {
        font-size: 25px;
    }

    .section p {
        display: none;
    }
}

/* =========================================
   MOBILE LAYOUT FIX (Max-width: 768px)
   Stacks image and content to be full-width
   ========================================= */
@media (max-width: 768px) {

    .t21,
    .t20,
    .t19,
    .t18 {
        grid-template-columns: 1fr;
    }

    /* 1. Reset the project container to a simple block */
    .micro-right,
    .micro-left,
    .regular-right,
    .regular-left {
        display: block; /* Stacks children vertically */
        position: relative;
        width: 100%;
        min-height: auto; /* Height is now determined by content */
        margin-bottom: var(--spacing-2xl); /* Spacing between projects */
        border-radius: 12px; /* Adds rounded corners to the whole block */
        overflow: hidden; /* Keeps children inside the rounded corners */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* Shadow for the whole card */
    }

    /* 2. Make the image container full-width and remove positioning */
    .micro-right .img,
    .micro-left .img,
    .regular-right .img,
    .regular-left .img {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        width: 100%; /* Full width */
        z-index: 1;
        margin: 0;
    }

    /* 3. Style the image itself */
    .micro-right img,
    .micro-left img,
    .regular-right img,
    .regular-left img {
        width: 100%;
        height: auto;
        border-radius: 0; /* Let the container handle border-radius */
        display: block; /* Removes potential bottom space */
    }

    /* 4. Style the content box to be full-width and sit below the image */
    .micro-right .content,
    .micro-left .content,
    .regular-right .content,
    .regular-left .content {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important; /* Full width */
        margin: 0 !important;
        padding: var(--spacing-md) !important;
        z-index: 2;
        background: #1a1a1a !important; /* Solid, slightly lighter background */
        backdrop-filter: none; /* Remove blur for solid background */
        border-radius: 0; /* Let the container handle border-radius */
        border-top: 1px solid rgba(255, 255, 255, 0.1); /* Separator line */
        text-align: center;
    }

    /* 5. Adjust heading sizes for mobile */
    .micro-right h1,
    .micro-left h1,
    .regular-right h1,
    .regular-left h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
        margin-bottom: var(--spacing-xs);
    }

    .micro-right h2,
    .micro-left h2,
    .regular-right h2,
    .regular-left h2 {
        font-size: 1rem;
        letter-spacing: 0.5px;
        margin-bottom: 0;
        color: rgba(255, 255, 255, 0.7);
    }

    /* 6. Keep paragraphs hidden on mobile as per original design */
    .micro-right p,
    .micro-left p,
    .regular-right p,
    .regular-left p {
        display: none;
    }
}

@media (max-width: 1000px) {
    .content p {
        font-size: 0.8rem;
    }

    .micro-right p,
    .micro-left p,
    .regular-right p,
    .regular-left p {
        display: none;
    }
}

@media (max-width: 1300px) {
    .content p {
        font-size: 1rem;
    }

    .micro-right p,
    .micro-left p,
    .regular-right p,
    .regular-left p {
        display: none;
    }
}

/* Removed - now covered by main 768px block above */

/* Removed - now covered by main 768px block above */

/* Removed - conflicting mobile queries now consolidated into main 768px block above */