/* ==========================================
   WHAT WE DO SECTION
   ========================================== */

/* Script Font */
@font-face {
    font-family: 'Shorelines Script';
    src: url('../assets/Shorelines Script Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

.cedarville-cursive-regular {
  font-family: "Cedarville Cursive", cursive;
  font-weight: 400;
  font-style: normal;
}


/* Section */
.what-we-do-section {
    padding: 100px 2rem;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    height: calc(100vh - 60px);
    max-width: 1440px;
}

/* Title */
.section-title {
    text-align: left;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 80px;
    animation: fadeInUp 1s ease-out;
}

/* Circles container */
.circles-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 80px;
    width: 100%;
    overflow-x: auto;

    /* Hide scrollbar for all browsers */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.circles-container::-webkit-scrollbar {
    display: none;
}

/* Circle item */
.circle-item {
    position: relative;
    width: 400px;
    height: 400px;
    cursor: pointer;
    flex-shrink: 0;
    margin-right: 300px;
    /* Large initial gap */
    transition: margin-right 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Remove margin from last circle */
.circle-item:last-child {
    margin-right: 0;
}

/* Circle wrapper */
.circle-wrapper {
    position: relative;
    width: 25em;
    height: 25em;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid black;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Image */
.circle-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

/* Overlay for readability */
.circle-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 1.4s ease;
    z-index: 2;
}

/* Text wrapper */
.circle-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: transparent;
    z-index: 3;
    transition: transform 0.4s ease;
}

/* Text */
.circle-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    transition:
        font-family 0.3s ease,
        letter-spacing 0.3s ease,
        transform 0.3s ease,
        color 0.3s ease;
}

/* Hover effects */
.circle-item:hover .circle-image {
    opacity: 1;
}

.circle-item:hover .circle-overlay {
    opacity: 1;
}

.circle-item:hover .circle-text h3 {
    font-family: "Shorelines Script", cursive;
    letter-spacing: 1px;
    transform: scale(1.5);
    color: #fff;
}

/* Description */
.section-description {
    max-width: 75%;
}

.section-description p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    opacity: 0.9;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1200px) {
    .circle-item {
        width: 260px;
        height: 260px;
        margin-right: 150px;
    }

    .circle-wrapper {
        width: 18em;
        height: 18em;
    }
}

@media (max-width: 768px) {
    .what-we-do-section {
        padding: 60px 1.5rem;
        height: auto;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
        text-align: center;
    }

    /* Column layout for mobile */
    .circles-container {
        align-items: center;
        gap: 40px;
        overflow-x: visible;
        margin-bottom: 30px;
    }

    .circle-item {
        width: 280px;
        height: 280px;

    }

    .circle-wrapper {
        width: 280px;
        height: 280px;
    }

    /* Show images and overlay by default on mobile */
    .circle-image {
        opacity: 1 !important;
    }

    .circle-overlay {
        opacity: 1 !important;
    }

    /* Text always visible with script font on mobile */
    .circle-text h3 {
        /* font-family: "Shorelines Script", cursive; */
        font-family: "Cedarville Cursive", cursive;
        font-size: 1.8rem;
        letter-spacing: 1px;
        color: #fff;
        transform: scale(1.3);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    /* Disable hover effects on mobile */
    .circle-item:hover .circle-text h3 {
        transform: scale(1.2);
    }

    .section-description {
        max-width: 100%;
        margin-top: 0px;
        text-align: justify;
    }

    .section-description p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .circles-container {
        gap: 30px;
        flex-direction: column;
    }

    .circle-item {
        width: 100%;
        height: 240px;
        margin-right: 0 !important;
        /* Override JS animation */
        transition: none;
        /* Disable transition on mobile */
    }

    .circle-wrapper {
        width: 100%;
        height: 240px;
        border-radius: 150px;
    }

    .circle-text h3 {
        font-size: 1.5rem;
    }

    .section-description p {
        font-size: 1rem;
    }
}