/* Reset margin, padding and box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font styling */
body {
    font-family: 'Stack Sans Text', sans-serif;
}

/* HEADER */
.header {
    min-height: 100vh;
    width: 100%;
    background-image: 
        linear-gradient(rgba(255, 182, 193, 0.3), rgba(255, 182, 193, 0.3)), 
        url("images/background.png.png");
    background-position: center;
    background-size: cover;
    position: relative;
    color: white;
}

/* NAV */
nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}

nav img {
    width: 150px;
}

.nav-links {
    flex: 1;
    text-align: right;
    position: relative;
}

.nav-links ul {
    list-style: none;
}

.nav-links ul li {
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

/* Hover underline animation */
.nav-links ul li::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: #f44336;
    transition: width 0.5s ease;
}

.nav-links ul li:hover::after {
    width: 100%;
}

/* HERO TEXT */
.text-box {
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.text-box h1 {
    font-size: 62px;
}

.text-box p {
    margin: 10px 0 40px;
    font-size: 14px;
    color: #fff;
}

/* BUTTON */
.hero-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    cursor: pointer;
    transition: background 1s, border-color 1s;
}

.hero-btn:hover {
    border: 1px solid #f44336;
    background: #f44336;
}

/* Hide menu icons on desktop */
nav .fa-solid {
    display: none;
}

/* MOBILE MENU */
@media (max-width: 700px) {
    .text-box h1 {
        font-size: 20px;
    }

    .nav-links {
        position: absolute;
        background: #FFC0CB;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: right 0.5s;
        padding-top: 60px;
    }

    nav .fa-solid {
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }

    .nav-links ul li {
        display: block;
    }
}

/* BOUQUET TYPES SECTION */
.course {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}

.course h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
}

.course p {
    color: #000000;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}

.row {
    margin: 5%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.course-col {
    flex-basis: 31%;
    background: #fff3f3;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    transition: box-shadow 0.3s ease;
}

.course-col h3 {
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}

.course-col:hover {
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

/* Responsive for smaller screens */
@media(max-width: 700px) {
    .row {
        flex-direction: column;
    }

    .course-col {
        flex-basis: 100%;
    }
}

/* PROCESS SECTION */
.campus {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
    margin-bottom: 50px;
}

/* Container for each image and overlay */
.campus-col {
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Images fill the container */
.campus-col img {
    width: 100%;
    display: block;
}

/* Overlay Layer */
.layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(244, 67, 54, 0.6); /* semi-transparent red */
    color: white;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* text initially at bottom */
    font-size: 24px;
    font-weight: 600;
    padding-bottom: 20px;
    transform: translateY(100%);
    transition: transform 0.5s ease, padding-bottom 0.5s ease, align-items 0.5s ease;
}

/* Hover effect: slide overlay up & move text from bottom to center */
.campus-col:hover .layer {
    transform: translateY(0);
    align-items: center; /* center text vertically */
    padding-bottom: 0;
}

/* Flex container for campus-col elements */
.campus .row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Responsive */
@media(max-width: 700px) {
    .campus .row {
        flex-direction: column;
    }

    .campus-col {
        flex-basis: 100%;
    }
}

/* TESTIMONIALS */
.testimonials {
    width: 80%;
    margin: auto;
    padding-top: 100px;
    text-align: center;
}

.testimonial-col {
    flex-basis: 44%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    background: #fff3f3;
    padding: 25px;
    cursor: pointer;
    display: flex;
}

.testimonial-col img {
    height: 40px;
    margin-left: 5px;
    margin-right: 30px;
    border-radius: 50%;
}

.testimonial-col .fa {
    color: #f44336;
}

@media(max-width: 700px) {
    .testimonial-col img {
        margin-left: 0px;
        margin-right: 15px;
    }
}

.cta {
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgba(255, 182, 193, 0.3), rgba(255, 182, 193, 0.3)), url("images/contact.png.png");
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}

.cta h1 {
    color: #fff;
    margin-bottom: 40px;
    padding: 0;
}

@media(max-width: 700px) {
    .cta h1 {
        font-size: 24px;
    }
}

.footer {
    width: 100%;
    text-align: center;
    padding: 30px 0;
}

.footer h4 {
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600;
}

.icons .fa {
    color: #FFF3F3;
    margin: 0 13px;
    cursor: pointer;
    padding: 18px 0;
}


/* About us page */

.sub-header{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(255, 182, 193, 0.3), rgba(255, 182, 193, 0.3)),url(images/background.png.png);
    background-position: center;
    background-size: cover;
    text-align: center;
    color:aliceblue
}

.about-us{
    width: 80%;
    margin: auto;
    padding-top: 80px;
    padding-bottom: 50px;
}

.about-col{
    flex-basis: 48%;
    padding: 30px 2px;
}

.about-col img{
    width: 100%;
}

.about-col h1{
    padding-top: 0;
}

.about-col p{
    padding: 15px 0 25px;
}

.red-btn{
    border: 1px solid #f44336 ;
    background: transparent;
    color: #f44336;
}

.red-btn:hover{
    color: #fff;
}

.location{
    width: 80%;
    margin: auto;
    padding: 80px 0;
}

.location iframe{
    width: 100%;
}

.contact-me{
    width: 80%;
    margin: auto;
}

.contact-col{
    flex-basis: 48%;
    margin-bottom: 30px;
}

.contact-col div{
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.contact-col div .fa{
    font-size: 28px;
    color:#f44336;
    margin: 10px;
    margin-right: 30px;
}

.contact-col div p{
    padding: 0;
}

.contact-col div h5{
    font-size: 20px;
    margin-bottom: 5px;
    color: #555;
    font-weight: 400;
}

.contact-col input, .contact-col textarea{
    width: 100%;
    padding: 15px;
    margin-bottom: 17px;
    outline: none;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Flower Portfolio Section */

.flower-portfolio {
  text-align: center;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  color: #333;
  margin-top: 220px; /* flower section pushed down */
}

/* Wrapper for header to move it up */
.flower-header {
  position: relative;
  top: -100px;  /* moves heading and subheading up */
  margin-bottom: 10px;
}

.flower-header h2 {
  font-weight: 600;
  font-size: 2.5rem;
  margin-bottom: 5px;
}

.flower-header .subheading {
  font-size: 1.1rem;
  color: #666;
}

.flower {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 0 auto;
}

.petal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 140px;
  background: #f7c6d0; /* soft pink */
  border-radius: 60% / 70%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
  transform-origin: 50% 90%;
  transform: translate(-50%, -90%) rotate(var(--angle)) translateY(-100px);
  transition: background 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  z-index: 1;
}

.petal:hover {
  background: #d46b7c; /* darker pink on hover */
  transform: translate(-50%, -90%) rotate(var(--angle)) translateY(-100px) scale(1.1);
  z-index: 10;
}

.petal img {
  max-width: 70%;
  max-height: 70%;
  border-radius: 50%;
  pointer-events: none;
  user-select: none;
}

.center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  background: transparent;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  z-index: 15;
}

.center img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  user-select: none;
}

/* Modal Styles - Desktop: centered */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  justify-content: center;  /* center on desktop */
  align-items: center;      /* center vertically */
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

.modal.open {
  display: flex;
}

.modal img {
  max-width: 90vw;
  max-height: 80vh;
  margin: 0 auto;  /* center image */
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* Close button */
.close-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  z-index: 10000;
  user-select: none;
}

/* Responsive scaling for small screens */
@media (max-width: 480px) {
  .flower {
    width: 280px;
    height: 280px;
  }

  .petal {
    width: 90px;
    height: 110px;
    transform: translate(-50%, -90%) rotate(var(--angle)) translateY(-80px);
  }

  .petal:hover {
    transform: translate(-50%, -90%) rotate(var(--angle)) translateY(-80px) scale(1.1);
  }

  .center {
    width: 90px;
    height: 90px;
  }

  .flower-header {
    top: -60px;
  }

  /* Modal image adjustments for small screens */
  .modal {
    justify-content: flex-start;  /* shift modal content left on phone */
    padding-left: 20px;
  }

  .modal img {
    max-width: 95vw;
    max-height: 70vh;
    margin: 0; /* remove centering */
  }
}

/* Footer styles */
/* Make About Me text black */
.footer h4,
.footer p {
  color: black;
}




    .swiper-button-prev {
        left: 35%;
        width: 35px;
        height: 35px;
    }

    .swiper-button-next {
        right: 35%;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .examples h1 {
        font-size: 24px;
    }

    .swiper {
        max-width: 240px;
        height: 280px;
        padding-bottom: 40px;
    }

    .swiper-slide {
        width: 170px !important;
    }

    .examples .note {
        font-size: 12px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 30px;
        height: 30px;
    }
}

/* ================================
   EXAMPLES SECTION (with pastel pink bg)
================================ */

.examples {
    width: 90%;
    max-width: 400px;
    margin: 50px auto;
    text-align: center;

    background-color: #fff3f3; /* Soft pastel pink */
    padding: 30px 20px 40px;
    border-radius: 15px;
    box-sizing: border-box;
}

.examples h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

/* Note under swiper */
.examples .note {
    font-size: 14px;
    margin-top: 20px;
    color: #555;
    opacity: 0.8;
}

/* ================================
   SWIPER CONTAINER
================================ */

.swiper {
    width: 100%;
    height: 360px;
    margin: 0 auto 20px;
    padding-bottom: 10px;
}

/* SLIDES */
.swiper-slide {
    width: 260px !important;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: white;
}

/* IMAGE INSIDE SLIDE */
.swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ACTIVE SLIDE EFFECT */
.swiper-slide-active {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.swiper-slide-active img {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}

/* NEIGHBOR SLIDES SLIGHTLY DIMMED */
.swiper-slide-prev,
.swiper-slide-next {
    filter: brightness(0.85);
}

/* ================================
   CUSTOM NAVIGATION BUTTONS
================================ */

.custom-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.nav-btn {
    background-color: #ffc0d9; /* pastel pink */
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 192, 217, 0.6);
    transition: background-color 0.3s ease;
    user-select: none;
}

.nav-btn:hover {
    background-color: #ff9ecf;
}

/* ================================
   RESPONSIVE DESIGN (Mobile Friendly)
================================ */

@media (max-width: 768px) {
    .examples h1 {
        font-size: 28px;
    }

    .swiper {
        height: 300px;
    }

    .swiper-slide {
        width: 200px !important;
    }

    .nav-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .examples h1 {
        font-size: 24px;
    }

    .swiper {
        height: 260px;
    }

    .swiper-slide {
        width: 160px !important;
    }

    .examples .note {
        font-size: 12px;
    }

    .nav-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* Make social icons black */
.icons i {
  color: black !important;
}

/* Also check the footer text color */
.footer {
  color: black;
}

/* If needed, make links black too */
.footer a {
  color: black;
}


/* INTRO FLOWER ANIMATION */
#intro-container {
    position: fixed;
    inset: 0;
    background: #fff5f9;
    z-index: 999999;
    overflow: hidden;
    pointer-events: none; /* allows clicks to pass through */
}

#intro-container .flower {
    position: absolute;
    /* Size set dynamically by JS, so no fixed width/height here */
    background-image: url("images/flower.png");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0; /* start hidden */
    transform: scale(0.4);
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
    pointer-events: none; /* don't block clicks */
}

/* Flowers pop in (scale and fade in) */
@keyframes flowerAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Flowers pop out (scale up, rotate and fade out) */
@keyframes flowerPop {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(2.4) rotate(15deg);
    }
}
