/*===== SLIDER ======== */
.top-slider-div {
    background: url('../img/header/header-bg.jpg') no-repeat center center/cover;
    width: 100%;
    height: 70vh;
    padding: 50px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    /* z-index: 1; */
}

/* Glassmorphic inner div */
.top-slider-div .inner-div {
    /* background: rgba(252, 245, 237, 0.3); */
    background: rgba(199, 176, 150, 0.3);
    /* background: rgba(87, 54, 17, 0.164); */
    width: 100%;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 47px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.top-slider-div .inner-div h1 {
    color: #512702;
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 500;
    letter-spacing: 1px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}
/* Services container */
.services-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    width: 90%;
    margin: 0 auto;
    gap: 0.5rem;
}

.service {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    max-width: 120px;
    padding: 1rem 0.5rem;
    border-radius: 8px;
}

.service.active {
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
}

.service-label {
    color: white;
    font-weight: 300;
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    text-align: center;
    transition: all 0.3s;
    margin-top: 0;
}

.service.active .service-label {
    margin-top: 10px;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.6vw, 1.6rem);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-align: center;
    width: 180px;
}

.service-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service.active .service-image {
    width: 250px;
    height: 200px;
    border-radius: 10px;
    transform: none;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow:  7px 7px 14px #2416019c,
             -7px -7px 14px #ffda7557;
    margin-top: 0;
}

/* Service preview container */
.service-preview {
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.service.active-preview {
    opacity: 1;
}

.service-preview-image {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* Corners */
.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 5px;
    z-index: 2;
}

.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

/* Mobile styles */
@media (max-width: 768px) {
    .inner-div {
        height: auto;
        padding: 20px;
    }

    .service-preview {
        position: relative;
        height: 220px;
        margin-bottom: 25px;
    }

    .service-preview-image {
        width: 180px;
        height: 180px;
    }

    .services-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
        padding: 0 10px;
        justify-items: center;
        align-items: center;
    }

    .service {
        flex-direction: column;
        padding: 10px;
        margin: 0;
        max-width: none;
    }

    .service-image {
        width: 60px;
        height: 60px;
        margin-bottom: 8px;
    }

    .service.active .service-image {
        border: 3px solid white;
        transform: scale(1.1);
        width: 70px;
        height: 70px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    .service-label {
        font-size: 1rem;
        margin: 0;
        transition: all 0.3s;
    }

    .service.active .service-label {
        font-weight: 800;
        font-size: 1.1rem;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        width: auto;
        color: #fff;
    }
}

/*===== SLIDER ======== */

/*===== TYPING EFFECT ======== */
.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/*===== TYPING EFFECT ======== */


/*===== SLIDER ======== */
.top-slider-div {
    background: url('../img/header/header-bg.jpg') no-repeat center center/cover;
    width: 100%;
    height: 70vh;
    padding: 50px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    /* z-index: 1; */
}

/* Glassmorphic inner div */
.top-slider-div .inner-div {
    /* background: rgba(252, 245, 237, 0.3); */
    background: rgba(199, 176, 150, 0.3);
    /* background: rgba(87, 54, 17, 0.164); */
    width: 100%;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 47px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.top-slider-div .inner-div h1 {
    color: #512702;
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 500;
    letter-spacing: 1px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}
/* Services container */
.services-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    width: 90%;
    margin: 0 auto;
    gap: 0.5rem;
}

.service {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    max-width: 120px;
    padding: 1rem 0.5rem;
    border-radius: 8px;
}

.service.active {
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
}

.service-label {
    color: white;
    font-weight: 300;
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    text-align: center;
    transition: all 0.3s;
    margin-top: 0;
}

.service.active .service-label {
    margin-top: 10px;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.6vw, 1.6rem);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-align: center;
    width: 180px;
}

.service-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service.active .service-image {
    width: 250px;
    height: 200px;
    border-radius: 10px;
    transform: none;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow:  7px 7px 14px #2416019c,
             -7px -7px 14px #ffda7557;
    margin-top: 0;
}

/* Service preview container */
.service-preview {
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.service.active-preview {
    opacity: 1;
}

.service-preview-image {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* Corners */
.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 5px;
    z-index: 2;
}

.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

/* Mobile styles */
@media (max-width: 768px) {
    .inner-div {
        height: auto;
        padding: 20px;
    }

    .service-preview {
        position: relative;
        height: 220px;
        margin-bottom: 25px;
    }

    .service-preview-image {
        width: 180px;
        height: 180px;
    }

    .services-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
        padding: 0 10px;
        justify-items: center;
        align-items: center;
    }

    .service {
        flex-direction: column;
        padding: 10px;
        margin: 0;
        max-width: none;
    }

    .service-image {
        width: 60px;
        height: 60px;
        margin-bottom: 8px;
    }

    .service.active .service-image {
        border: 3px solid white;
        transform: scale(1.1);
        width: 70px;
        height: 70px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    .service-label {
        font-size: 1rem;
        margin: 0;
        transition: all 0.3s;
    }

    .service.active .service-label {
        font-weight: 800;
        font-size: 1.1rem;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        width: auto;
        color: #fff;
    }
}

/*===== SLIDER ======== */

/*===== TYPING EFFECT ======== */
.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/*===== TYPING EFFECT ======== */


