/**** Global Styles ****/
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    overflow-y: auto; /* Ensure all pages are scrollable */
}

main {
    flex: 1;
}


/**** Navbar Styles ****/
.navbar {
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar-content {
    display: flex;
    justify-content: space-between; /* Logo left, links right */
    align-items: center;
    width: 100%;
    padding: 0 80px;
}

.navbar-brand {
    font-size: 50px !important;
    font-family: 'Roboto', sans-serif;
    color: #000000;
    text-decoration: none;
}
.navbar-brand img {
    height: 60px;
    border-radius: 45px;
}

.menu-links {
    display: flex;
    gap: 20px; /* Space between links */
}

.menu-links .nav-link {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    transition: background-color 0.3s ease;
  }

.contact-link {
    border-radius: 45px;
    background-color: #3f3f3f !important;
    color: #ffffff !important;
}


/**** Section Styles ****/
.home-main-content, .services-main-content, .about-main-content, .contact-main-content {
    background-color: #ffffff;
    margin: 0;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #000000;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
}


/**** Home page****/
.home-landing {
    position: relative;
    width: 100%;
    height: 80vh; /* 90% of screen height, adjust if needed */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.home-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5; /* This makes the image faded */
    z-index: 1;
}

.home-motto {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff; /* Or white if background is dark */
    font-family: 'Roboto', sans-serif;
    padding-left: 120px;
    padding-right: 120px;
}

.home-motto h1 {
    font-size: 60px;
    margin-bottom: 20px;
}

.home-motto p {
    font-size: 24px;
    margin-bottom: 30px;
}

.home-about {
    text-align: left;
    color: #000000;
    font-family: 'Roboto', sans-serif;
    padding-left: 60px;
    padding-right: 60px;
    padding-top: 40px;
}

.home-about h1 {
    font-size: 60px;
    margin-bottom: 20px;
}

/* Carousel Styles */
.home-caro {
    display: flex; /* Make services and carousel side-by-side */
    justify-content: center;
    gap: 40px; /* Space between left (services) and right (carousel) */
    width: 100%;
    padding: 60px;
    background-color: #ffffff;
}

.home-caro .carousel-image-wrapper {
  position: relative;
}

.home-caro .carousel-image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 500px; /* keeps your current style */
}

/* Before & After Labels */
.home-caro .carousel-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 8px;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.home-caro .carousel-label.before {
  left: 20px;
}

.home-caro .carousel-label.after {
  right: 20px;
}

/* Responsive scaling */
@media (max-width: 768px) {
  .home-caro .carousel-label {
    font-size: 1.2rem;
    padding: 6px 12px;
  }
}

.home-caro .carousel-label {
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* When the carousel item is active, labels fade in */
.home-caro .carousel-item.active .carousel-label {
  opacity: 1;
}

.home-services {
    flex: 1;
    font-family: 'Roboto', sans-serif;
    padding-top: 0;
}

.home-services h1 {
    font-size: 60px;
    margin-bottom: 20px;
}

.home-services p {
    font-size: 18px;
    margin-bottom: 30px;
}

.home-services-button {
    background-color: #000000;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.services-button:hover {
    background-color: #8d8e8e;
    transform: scale(1.05);
}

.caro {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px; /* Lock maximum width of the carousel side */
}

.carousel {
    width: 100%;
    height: 400px; /* Set fixed height */
    max-width: 600px; /* Match parent */
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 500px;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps the image cropped properly */
}

/* Card Styles */
.image-card{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.image-card img, .plan-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
}

.card-header {
    text-align: center;
}

.card-body h5 {
    text-align: center;
}

.card-body ul{
    font-size: 14px;
}

.card-body p {
    text-align: center;
    font-size: 14px;
}

.image-card .btn {
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    width: 150px;
    cursor: pointer;
    font-size: 16px;
    align-self: center;
    margin-top: auto;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.card-carousel-wrapper-imagecard,  .card-carousel-wrapper-plancard{
    position: relative;
    width: 100%;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

.card-carousel-imagecard {
    position: relative;
    width: 100%;
    max-width: 960px;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-carousel-plancard {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}


.card-carousel-imagecard .card, .card-carousel-plancard .card {
    position: absolute;
    width: 320px;
    height: 100%;
    transition: transform 0.6s ease, opacity 0.6s ease, z-index 0.6s ease;
    opacity: 0.5;
    transform: scale(0.85);
    z-index: 1;
}

/* Centered card */
.card-carousel-imagecard .card.center {
    transform: scale(1.1);
    opacity: 1;
    z-index: 3;
}

/* Left of center */
.card-carousel-imagecard .card.left {
    transform: translateX(-220px) scale(0.9);
    z-index: 2;
    opacity: 0.8;
}

/* Right of center */
.card-carousel-imagecard .card.right {
    transform: translateX(220px) scale(0.9);
    z-index: 2;
    opacity: 0.8;
}

.card-carousel-plancard .card.center {
  opacity: 1;
  transform: scale(1.1);
  z-index: 3;
}

.card-carousel-plancard .card.left {
  opacity: 0.8;
  transform: translateX(-220px) scale(0.9);
  z-index: 2;
}

.card-carousel-plancard .card.right {
  opacity: 0.8;
  transform: translateX(220px) scale(0.9);
  z-index: 2;
}


/* Carousel buttons */
.carousel-controls-imagecard, .carousel-controls-plancard {
    position: absolute;
    width: 100%;
    top: 50%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 40px;
    z-index: 5;
}

.carousel-controls-imagecard button, .carousel-controls-plancard button {
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 28px;
    padding: 10px 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-controls-imagecard button:hover, .carousel-controls-plancard button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Testimonial Section */
.home-testimonials {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    font-family: 'Roboto', sans-serif;
}

.home-testimonials h1 {
    font-size: 50px;
    margin-bottom: 40px;
    color: #000;
}

.testimonial-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-card p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.testimonial-card h4 {
    font-size: 18px;
    color: #000;
    margin: 0;
}

/**** Services Page ****/
.services-description {
    display: flex;
    color: #000000; /* Or white if background is dark */
    font-family: 'Roboto', sans-serif;
}

.services-description-left {
    flex: 1;
}

.services-description-left h1 {
    padding-top: 200px;
    padding-bottom: 30px;
    padding-left: 80px;
    font-size: 60px;
}

.services-description-left p {
    padding-left: 80px;
    padding-right: 50px;
}

.services-description-right {
    flex: 1;
    padding-right: 80px;
    padding-top: 200px;
    padding-bottom: 30px;
}

.services-description-right img{
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
}


/**** About Page ****/
.about-first {
    display: flex;
    color: #000000; /* Or white if background is dark */
    font-family: 'Roboto', sans-serif;
}

.about-first-left {
    padding-left: 80px;
    padding-top: 160px;
    padding-bottom: 40px;
    flex: 1;
    display: flex;
}

.about-first-left img{
    height: 600px;
    object-fit: cover;
    border-radius: 50%;
    aspect-ratio: 1/1;
}

.about-first-right{
    flex: 1;
}

.about-first-right h1{
    padding-top: 160px;
    padding-bottom: 30px;
    padding-left: 80px;
    font-size: 60px;
}

.about-first-right h2{
    padding-top: 60px;
    padding-bottom: 30px;
    padding-left: 80px;
    font-size: 60px;
}

.about-first-right p{
    padding-left: 80px;
    padding-right: 80px;
    padding-bottom: 120px;
}
.about-first-right img{
    height: 400px;
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/**** Contact Us Page ****/
.contact-main-content {
    display: flex;
}

.contact-left {
    flex: 1;
}

.contact-details h1{
    padding-top: 160px;
    padding-bottom: 30px;
    padding-left: 50px;
    font-size: 60px;
}

.contact-details p{
    padding-left: 50px;
    padding-right: 50px;
}

.contact-form {
    padding-top: 80px;
    padding-left: 80px;
    padding-right: 100px;
    padding-bottom: 40px;
}

.contact-form label {
    padding-left: 5px;
    padding-bottom: 10px;
    padding-top: 15px;
}

.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 15px;
    background-color: #ffffff;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
    border-radius: 15px;
}

.contact-form button {
    background-color: #000000;
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    align-self: flex-end;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
    background-color: #8d8e8e;
    transform: scale(1.05);
}

.contact-right {
    padding-top: 200px;
    padding-right: 80px;
    flex: 1;
    text-align: right;
}
.contact-right img{
    height: 800px;
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* Footer Styles */
footer {
    background-color: #3f3f3f;
    color: #ffffff;
    padding: 40px 0 20px 0;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-left, .footer-middle, .footer-right {
    flex: 1;
    min-width: 250px;
}

.footer-brand {
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #787878; /* Light blue on hover */
}

.footer-middle h3, .footer-right h3 {
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 10px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-social a:hover {
    transform: scale(1.2);
}

.social-icon {
    width: 32px;
    height: 32px;
}

.footer-right p {
    font-size: 16px;
    margin: 5px 0;
}

.footer-copy {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}


/**** Mobile Responsive Redesign for Phones ****/
/* Hide hamburger by default */
.menu-toggle {
    display: none;
}

/* ----- PHONE MODE (<=768px) ----- */
@media (max-width: 768px) {

    /* === NAVBAR === */
    html, body {
        overflow-x: hidden;
    }

    .navbar-content {
        position: relative;
        padding: 0 20px;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 30px;
        color: black;
        background: none;
        border: none;
        position: absolute;
        right: 20px;
    }

    .menu-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        background-color: #fff;
        flex-direction: column;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        overflow: hidden;
        z-index: 10000;
        width: 150px;
        gap: 0px;
        align-items: center; /* center links */
    }

    .menu-links.show { 
        display: flex; 
    }

    .menu-links .nav-link {
        padding: 12px 12px;
        border-bottom: 1px solid #eee;
    }

    .nav-link contact-link {
        width: 100px;
        align-items: center !important;
    }

    /* === HERO SECTION === */
    .home-motto {
        padding: 0 20px;
    }
    .home-motto h1 { font-size: 32px; }
    .home-motto p { font-size: 16px; }

    .card-carousel-imagecard {
        height: 300px; /* Reduce overall height */
    }

    .card-carousel-imagecard .card {
        width: 220px;   /* narrower cards */
        height: 350px;  /* keep proportion */
    }

    .card-carousel-imagecard .card .card-body h5 {
        font-size: 16px;
    }
    .card-carousel-imagecard .card .card-body p {
        font-size: 13px;
    }

    .card-carousel-imagecard .card.left {
        transform: translateX(-120px) scale(0.85);
    }
    .card-carousel-imagecard .card.right {
        transform: translateX(120px) scale(0.85);
    }
    .card-carousel-imagecard .card.center {
        transform: scale(1);
    }

    /* === SECOND CAROUSEL BELOW SERVICES === */
    .home-caro {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }
    .carousel {
        width: 100%;
        height: auto;
        max-height: 400px;
    }
    .carousel img {
        object-fit: cover;
    }

    /* === ABOUT, SERVICES, CONTACT PAGES (IMAGE ON TOP) === */
    .about-first, .services-description, .contact-main-content {
        flex-direction: column;
        text-align: center;
    }

    .about-first-left, .services-description-right, .contact-right {
        order: -1;
        padding-top: 140px;
        padding-left: 0px;
        padding-right: 0px;
        padding-bottom: 0px;
        display: flex;
        justify-content: center;
    }

    .about-first-left img, .services-description-right img, .contact-right img {
        width: 60%;
        height: auto;
        border-radius: 30px;
    }

    .about-first-right h1, .services-description-left h1, .contact-details h1 {
        font-size: 32px;
        padding: 20px 0 10px 0;
    }
    .about-first-right p, .services-description-left p, .contact-details p {
        padding: 0 20px 20px 20px;
        font-size: 16px;
    }

    /* === CONTACT FORM === */
    .contact-form {
        padding: 20px;
    }

    /* === FOOTER SIMPLIFICATION === */
    .footer-content {
        flex-direction: row;
        justify-content: space-evenly;
        gap: 20px;
        padding: 20px;
    }
    .footer-left {
        display: none; /* Hide brand and menu links */
    }
    .footer-middle, .footer-right {
        flex: unset;
    }
    .footer-middle h3, .footer-right h3 { font-size: 18px; }
    .footer-right p { font-size: 14px; }
}