/* ==========================================================================
   REPETITIVE OBJECT STYLES
   ========================================================================== */


.section-content {
    text-align: left;
    z-index: 2;
    position: absolute;
    top: auto;
    left: 5%;
    max-width: 580px;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: rgba(15, 16, 15, 0.7);
}

.section-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-style: italic;
}

.section-content p {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-content ul li {
    margin-left: 0.8rem;
    font-size: 0.9rem;
}

.cta-button {
    padding: 1.2rem;
    color: var(--off-white);
    background-color: var(--deep-tech-blue);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.4rem;
}

.cta-button:hover {
    background-color: var(--warm-ochre);
    color: var(--deep-charcoal-grey);
    scale: 1.1;
    transition: all 0.3s ease;
}
/* ==========================================================================
   DOMAINS PAGE STYLES
   ========================================================================== */

/* Hero Section */
#domains-hero {
    background-image: url('../images/domain-hero.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-title {
    background-color: rgba(15, 16, 15, 0.7);
    padding: 1.5rem;
    border-radius: 10px;
    max-width: 580px;
    position: absolute;
    bottom: 9rem;
    left: 5%;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.page-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.9rem;
}

.page-title p {
    font-size: 1.2rem;
    line-height: 1.2;
    padding-bottom: 0.5rem;
}

/* Section 1 */
#domains-section-1 {
    background-color: var(--deep-charcoal-grey);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 5%;
    width: 100%;
    height: 70vh;
}

.intro-text {
    padding: 2rem;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

#domains-section-1 .intro-text.animate {
    opacity: 1;
    transform: translateX(0);
}

.intro-text h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.intro-text p {
    font-size: 1.2rem;
    line-height: 1.2;
    margin-bottom: 0.7rem;
    max-width: 800px;
}

.domain-cards {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    width: 100%;
}

.domain-card {
    flex: 1;
    padding: 1.2rem;
    color: var(--off-white);
    background-color: var(--deep-tech-blue);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: auto;
    width: auto;
    height: auto;
    cursor: default;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.domain-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0;
}

.domain-card p {
    font-size: 1rem;
    line-height: 1.2;
}

/* Stagger the card animations */
#domains-section-1 .domain-card:nth-child(1).animate {
    transition-delay: 0s;
}

#domains-section-1 .domain-card:nth-child(2).animate {
    transition-delay: 0.1s;
}

#domains-section-1 .domain-card:nth-child(3).animate {
    transition-delay: 0.2s;
}

#domains-section-1 .domain-card:nth-child(4).animate {
    transition-delay: 0.3s;
}

#domains-section-1 .domain-card:nth-child(5).animate {
    transition-delay: 0.4s;
}

#domains-section-1 .domain-card.animate {
    opacity: 1;
    transform: scale(1);
}

/* FULLSCREEN SECTIONS */

#domains-section-3,
#domains-section-4,
#domains-section-5,
#domains-section-6,
#domains-section-7,
#domains-section-8 {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.section-background-3,
.section-background-4,
.section-background-5,
.section-background-6,
.section-background-7,
.section-background-8 {
    width: 80%;
    height: 80vh;
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: center; /* Center vertically */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Sections 3, 5, 7 - content on the left */
.section-background-3,
.section-background-5,
.section-background-7 {
    justify-content: flex-start;
    padding-left: 3rem;
    padding-right: 0;
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.section-background-3.animate,
.section-background-5.animate,
.section-background-7.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Sections 4, 6, 8 - content on the right */
.section-background-4,
.section-background-6,
.section-background-8 {
    justify-content: flex-end;
    padding-right: 3rem;
    padding-left: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.section-background-4.animate,
.section-background-6.animate,
.section-background-8.animate {
    opacity: 1;
    transform: translateX(0);
}

.section-background-3 { background-image: url('../images/pharma-domain.jpeg');}
.section-background-4 { background-image: url('../images/health-domain.jpeg');}
.section-background-5 { background-image: url('../images/retail-domain.jpeg')}
.section-background-6 { background-image: url('../images/factory-domain.jpeg');}
.section-background-7 { background-image: url('../images/logistics-domain.jpeg');}
.section-background-8 { background-image: url('../images/financial-domain.jpeg');}

.section-content {
    text-align: left;
    z-index: 2;
    position: relative; /* Change from absolute */
    max-width: 580px;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: rgba(15, 16, 15, 0.7);
    left: auto; /* Remove previous left positioning */
    top: auto; /* Remove previous top positioning */
}

.section-content ul li {
    margin-left: 1rem;
}

/* Section 10 */
#domains-section-10 {
    height: 40vh;
    width: 100%;
    align-items: center;
    text-align: center;
}

.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: row;
    gap: 4.5rem;
}


/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .page-title {
        max-width: 500px;
        bottom: 7rem;
    }

    .page-title h1 {
        font-size: 2rem;
    }

    .page-title p {
        font-size: 1rem;
    }

    /* Section 1 */
    #domains-section-1 {
        height: auto;
        min-height: 70vh;
        padding: 3rem 3%;
    }

    .intro-text h2 {
        font-size: 1.8rem;
    }

    .intro-text p {
        font-size: 1rem;
    }

    .domain-cards {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .domain-card {
        flex: 1 1 calc(50% - 1.5rem);
        min-width: 200px;
    }

    .domain-card h3 {
        font-size: 1.1rem;
    }

    .domain-card p {
        font-size: 0.9rem;
    }

    /* Fullscreen sections */
    .section-background-3,
    .section-background-4,
    .section-background-5,
    .section-background-6,
    .section-background-7,
    .section-background-8 {
        width: 90%;
        height: 70vh;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .section-content {
        max-width: 450px;
    }

    .section-content h2 {
        font-size: 2rem;
    }

    .section-content h3 {
        font-size: 1.1rem;
    }

    .section-content p {
        font-size: 0.9rem;
    }

    /* Section 10 */
    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        gap: 2rem;
    }

    .cta-button {
        font-size: 1.2rem;
        padding: 1rem;
    }
}

/* Smartphones (320px - 767px) */
@media (max-width: 767px) {

    #domains-hero {
        background-image: url(../images/domains-bgr-por.jpg);
    }

    .section-background-3 { background-image: url('../images/pharma-domain-por.jpg');}
    .section-background-4 { background-image: url('../images/health-domain-por.jpg');}
    .section-background-5 { background-image: url('../images/retail-domain-por.jpg')}
    .section-background-6 { background-image: url('../images/factory-domain-por.jpg');}
    .section-background-7 { background-image: url('../images/logistics-domain-por.jpg');}
    .section-background-8 { background-image: url('../images/financial-domain-por.jpg');}

    .page-title {
        max-width: 90%;
        bottom: 5rem;
        left: 5%;
        padding: 1rem;
    }

    .page-title h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .page-title p {
        font-size: 0.9rem;
        padding-bottom: 0.3rem;
    }

    /* Section 1 */
    #domains-section-1 {
        height: auto;
        min-height: auto;
        padding: 2rem 5%;
    }

    .intro-text {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .intro-text h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .intro-text p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .domain-cards {
        flex-direction: column;
        gap: 1rem;
    }

    .domain-card {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    .domain-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .domain-card p {
        font-size: 0.85rem;
    }

    /* Fullscreen sections */
    #domains-section-3,
    #domains-section-4,
    #domains-section-5,
    #domains-section-6,
    #domains-section-7,
    #domains-section-8 {
        padding: 1rem;
        min-height: 80vh;
    }

    .section-background-3,
    .section-background-4,
    .section-background-5,
    .section-background-6,
    .section-background-7,
    .section-background-8 {
        width: 95%;
        height: auto;
        min-height: 60vh;
        padding: 1.5rem;
        justify-content: center !important;
    }

    /* Override alternating positioning on mobile - center all */
    .section-background-3,
    .section-background-5,
    .section-background-7 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .section-background-4,
    .section-background-6,
    .section-background-8 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .section-content {
        max-width: 100%;
        padding: 1rem;
        position: static;
    }

    .section-content h2 {
        font-size: 1.5rem;
    }

    .section-content h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .section-content p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .section-content ul li {
        font-size: 0.8rem;
        margin-left: 0.5rem;
    }

    /* Section 10 */
    #domains-section-10 {
        height: auto;
        min-height: 40vh;
        padding: 2rem 1rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        padding: 0 1rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 1rem;
        width: 100%;
    }
}

/* Small smartphones (320px - 480px) */
@media (max-width: 480px) {

    #domains-hero {
        background-image: url(../images/domains-bgr-por.jpg);
    }

    .section-background-3 { background-image: url('../images/pharma-domain-por.jpg');}
    .section-background-4 { background-image: url('../images/health-domain-por.jpg');}
    .section-background-5 { background-image: url('../images/retail-domain-por.jpg')}
    .section-background-6 { background-image: url('../images/factory-domain-por.jpg');}
    .section-background-7 { background-image: url('../images/logistics-domain-por.jpg');}
    .section-background-8 { background-image: url('../images/financial-domain-por.jpg');}

    .page-title h1 {
        font-size: 1.2rem;
    }

    .intro-text h2 {
        font-size: 1.3rem;
    }

    .domain-cards {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .domain-card {
        width: 90%;
    }

    .section-background-3,
    .section-background-4,
    .section-background-5,
    .section-background-6,
    .section-background-7,
    .section-background-8  {
        width: 85%;
        height: 85vh;
    }

    .section-content {
        margin-top: 10rem;
    }

    .section-content h2 {
        font-size: 1.3rem;
    }

    .section-content h3 {
        font-size: 0.7rem;
    }

    .section-content p {
        font-size: 0.65rem;
    }

    .section-content ul li {
        margin-left: 0.85rem;
        font-size: 0.65rem;
    }

    .cta-section h2 {
        font-size: 1.3rem;
    }
}
