/* COLORS */
:root {
    --primary-color: #D9382B;
    --secondary-color: #f5f5f5;
    --accent-color: #d9736c;
    --black: #272542;
    --white: #FEFEFF;
    --gray: gray;
    --bg-color: #f6f4f0;
    --yellow: #FCFF72;
}

main {
    margin-top: 50px;
}

/* TITLE SECTION */
.welcomeSect {
    position: relative;
    width: calc(100% - 200px);
    padding: 100px 100px 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: -25px;
    background-image: url(img/me/draw.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.welcomeSect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    /* white with transparency */
    z-index: 1;
}

/* Make sure your content stays above the overlay */
.welcomeSect>* {
    position: relative;
    z-index: 2;
}

.welcomeSect .title {
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    font-weight: 900;
    margin: 0;
}

.welcomeSect div {
    padding: 5px 0;
}

.welcomeSect .subtitle,
.aboutSect .subtitle,
.callToActionSect .subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 24px;
    font-style: normal;
}

@media (max-width: 768px) {
    .welcomeSect {
        width: calc(100% - 40px);
        padding: 20px 20px 80px;
        margin-top: 0px;
    }

    .welcomeSect .title {
        font-size: 50px;
    }

    .welcomeSect .subtitle,
    .aboutSect .subtitle,
    .callToActionSect .subtitle {
        font-size: 18px;
    }
}



/* Start hidden */
.sampleProduct, .aboutSect, .treatmentsSect{
    opacity: 0;
    transform: translateY(40px);
    /* move slightly down */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Fade in when visible */
.sampleProduct.fade-in, .aboutSect.fade-in, .treatmentsSect.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* SAMPLE WORKS SECTION */
.sampleProductSect {
    display: flex;
    gap: 50px;
    justify-content: space-evenly;
    width: calc(100% - 200px);
    margin-top: -430px;
    position: relative;
    z-index: 2;
    padding: 0 100px;
    align-items: flex-end; /* align all cards to the bottom */
}

.sampleProduct {
    position: relative;
    width: 40%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.sampleProduct img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

/* Portrait / Tall Style */
.sampleProduct.tallImg {
    height: 600px;     /* taller portrait card */
    width: 400px;
    margin-top: 0;     /* no negative margin now */
}

.sampleProduct:hover img {
    transform: scale(1.05);
}

.overlayText {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sampleProduct:hover .overlayText {
    opacity: 1;
}

/* ABOUT ME SECTION */

.aboutSect {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 100px;
}

/* .subtitle font is same with at welcome */
.aboutSect .subtitle {
    margin: 0px;
}

.aboutSect .title,
.treatmentsSect .title, .USFDASect .title,
.callToActionSect .title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 50px;
    margin: 30px;
}

.aboutSect .text, 
.treatmentsSect .text, .USFDASect .text {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 30px;
    margin: 0px;
}

.aboutSect .btn {
    margin: 50px 0px;
    width: max-content;
}

.aboutSect img {
    height: 400px;
    /* width: 80%; */
    border-radius: 10px;
}

/* TREATMENTS SECTION */
.treatmentsSect {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 100px;
    width: calc(100% - 200px);

    background-image: url(img/naturalAestheticBg.png);
    background-size: cover;   /* makes it cover the whole div */
    background-position: center; /* centers it */
    background-repeat: no-repeat;

    /* transparency effect */
    background-color: rgba(255, 255, 255, 0.8); /* optional overlay */
    background-blend-mode: overlay; /* blends image with transparency */
}

.treatments {
  display: grid;
  grid-template-columns: 1fr; /* single column by default */
  gap: 8px;
  padding: 0;
}
.text {
  padding: 6px 0;
}

/* Tablet and up: 2 columns */
@media (min-width: 600px) {
  .treatments {
    grid-template-columns: 1fr 1fr;
  }
}

/* Large screens: 3 columns */
@media (min-width: 1024px) {
  .treatments {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* .title font is same in aboutSect */
/* .text font is same in aboutSect */

/* USFDASect */
/* USFDASect */
.USFDASect {
    text-align: center;
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    max-width: 80%;
    margin: 80px auto;
    padding: 50px;
}

/* Title */
.USFDASect .title {
    color: var(--primary-color);
    font-size: 55px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.USFDASect .title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Text */
.USFDASect .text {
    font-size: 22px;
    line-height: 1.8;
    max-width: 80%;
    margin: 0 auto;
}


/* callToActionSect */

.callToActionSect {
    position: relative;
    color: var(--white);
    background-image: url('img/treatments.png');
    background-size: cover;
    background-position: center;
    padding: 80px 100px;
    z-index: 0;
    overflow: hidden;
}

.callToActionSect::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(217, 56, 43, 0.6);
    /* semi-transparent red */
    z-index: -1;
}

/* .title font is same as about Me Sect*/
.callToActionSect .title {
    color: var(--white);
    margin: 0;
    line-height: 80px;
}

/* .subtitle font is same as welcome Sect*/
.callToActionSect .subtitle {
    color: var(--white);
}

.callToActionSect button {
    background-color: var(--yellow);
    color: var(--black);
    margin: 30px 0px;
    transition: background-color 0.3s ease;
    border: none;
}

.callToActionSect button:hover {
    background-color: var(--white);
}