/* General Body Styles */
@font-face {
    font-family: 'StoryScript';
    src: url(../fonts/Story_Script/StoryScript-Regular.ttf);
}

@font-face {
    font-family: 'Caveat';
    src: url(../fonts/Caveat/Caveat-VariableFont_wght.ttf);
}

* {
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f0e3;
    color: #3e2723;
    line-height: 1.6;
}

/* Hero Header Section */
.hero {
    position: relative;
}

.hero-carousel {
    width: 100%;
    height: 80vh;
    /* or 100vh if you want fullscreen */
    position: relative;
    overflow: hidden;
    background-color: #f8f0e3;
    border: none;
    outline: none;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #000000;
    z-index: 2;
    background-color: #ffffff82;
    padding: 5px 40px;
    border-radius: 30px;
}


.hero-title {
    font-family: 'Roboto Slab', serif;
    font-size: 4em;
    color: #000000;
    margin: 0;
    transform: scale(1);
    opacity: 1;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

.hero-subtitle {
    font-size: 1.5em;
    font-weight: 300;
    color: #000000;
    transform: scale(1);
    opacity: 1;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }
}

/* Logo Styling */
.nav-logo a {
    font-family: 'Roboto Slab', serif;
    font-size: 1.8em;
    font-weight: 700;
    color: #FFD7C5;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.nav-logo a:hover {
    transform: scale(1.05);
}

/* --- Navigation Menu --- */
nav {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    z-index: 20;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    margin: 0;
    align-items: center;
    font-family: 'Roboto', sans-serif;
}

nav ul li {
    margin: 0;
    text-align: center;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 1em;
    padding: 8px 12px;
    transition: color 0.3s ease, background 0.3s ease;
    border-radius: 6px;
}

nav ul li a:hover {
    color: #FFD7C5;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Menu Toggle Button (mobile) */
.menu-toggle {
    display: none;
    font-size: 2em;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}



.section.visible {
    opacity: 1;
    transform: scale(1);
}

.section:nth-child(1) {
    transition-delay: 0.1s;
}

.section:nth-child(2) {
    transition-delay: 0.2s;
}

.section:nth-child(3) {
    transition-delay: 0.3s;
}

/* --- Intro Section & Content Animations --- */
.section, .intro-section, .cards-container, .form-section {
    opacity: 0;
    transform: scale(0.8);
    /* Remove transition for scroll-based animation */
    /* transition: opacity 0.3s ease-out, transform 0.3s ease-out; */
}


.intro-section {
    display: flex;
    align-items: center;
    padding: 95px 10%;
    background-color: #FFD7C5;
    margin-top: 30px;
}

.intro-section-left {
    flex: 1;
    padding-right: 40px;
}

.intro-section-left .subheading {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.2em;
    color: #AB0000;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.intro-section-left .heading {
    font-family: 'Roboto Slab', serif;
    font-size: 2.8em;
    font-weight: 700;
    color: #540000;
    line-height: 1.2;
    margin: 0;
}

.intro-section-right {
    flex: 1;
    font-size: 1.1em;
    color: #3e2723;
}

.intro-section-right p {
    margin-bottom: 20px;
}

.intro-section-right strong {
    color: #5d4037;
}

/* Card Section */
.card-section {
    padding: 0px 10%;
    background-color: #f8f0e3;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px;
    padding: 0px;
}

.card-section .cards-container {
    opacity: 1 !important;
    transform: scale(1) !important;
}


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

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

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-description {
    font-size: 1rem;
    margin-bottom: 15px;
}

.card-readmore {
    background-color: #4275ff;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.card-readmore:hover {
    background-color: #2852c5;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr;
        /* 1 card per row on small screens */
    }
}


/* Main Content Section */
.container {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
}

.section {
    background-color: #fff;
    padding: 40px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    /* Animation initial state */
    opacity: 0.5;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Form Section */
.form-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 10%;
    background-color: #f8f0e3;
}

.form-left {
    flex: 1;
    padding-right: 40px;
    text-align: right;
}

.form-right {
    flex: 1;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 400px;
}

.form-right .form-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5em;
    color: #5d4037;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
}

.form-group button {
    width: 100%;
    padding: 12px;
    background-image: linear-gradient(180deg, rgba(84, 0, 0, 0.8) 0%, rgba(171, 0, 0, 0.5) 100%);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.form-group button:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background-image: linear-gradient(180deg, rgba(84, 0, 0, 0.8) 0%, rgba(171, 0, 0, 0.5) 100%);
    color: #fff;
    /* margin-bottom: 96px; */
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-bottom: 35vh;
}

/* Sticky Bottom Form */
.sticky-form {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0px 0px 10px 2px #c16b65;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    z-index: 100;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 20px;
}

.sticky-form.active {
    transform: translateY(0);
}

.sticky-form p {
    font-family: 'Caveat';
    font-size: 2em;
    margin: 0;
    flex: 1 1 auto;
    min-width: 200px;
}

.sticky-form button {
    padding: 12px 30px;
    background-image: linear-gradient(180deg, rgba(255, 215, 197, 0.8) 0%, rgba(171, 0, 0, 0.8) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sticky-form button:hover {
    transform: scale(1.05);
}

/* --- Responsive Nav & Sections --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.85);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        display: none;
        padding: 20px 0;
        margin: 0;
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
    }

    nav ul li a {
        font-size: 1.4em;
        /* smaller font on mobile */
        padding: 6px 10px;
        /* optional, make it fit better */
    }

    nav ul.open {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }

    .intro-section, .form-section {
        flex-direction: column;
        padding: 40px 20px;
        border-radius: 20px;
    }

    .intro-section-left .heading {

        font-size: 2.4em;

    }

    .intro-section-left, .form-left {
        padding-right: 0;
        text-align: center;
        margin-bottom: 20px;
    }

    .form-right {
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .container {
        width: 100%;
        padding: 20px 0;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }

    nav ul {
        display: flex !important;
        flex-direction: row;
        background-color: transparent;
        position: static;
        height: auto;
        max-height: none;
    }

    nav li {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    nav ul li a {
        font-size: 0.85em;
    }
}

.hero-carousel {
    width: 100%;
    height: 80vh;
    position: relative;
    overflow: hidden;
    background-color: #f8f0e3;
    border: none;
    outline: none;
}

.carousel-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    background-color: blanchedalmond;
}

/* Slide Track */
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

/* Each slide should take full width & height of container */
.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Image & Video should fill slide */
.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* cover ensures it fills without distortion */
    display: block;
}


/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dots button.active {
    background-color: #FFD7C5;
}

.carousel-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    background-color: blanchedalmond;
    border: none;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    z-index: 10;
    pointer-events: none;
    /* so clicks pass through */
}

.carousel-overlay-text h1 {
    font-size: 2.5rem;
    margin: 0;
}

.carousel-overlay-text p {
    font-size: 1.2rem;
    margin: 5px 0 0 0;
}

.hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-track img,
.carousel-track video {
    flex: 0 0 100%;
    /* each slide takes full width */
    object-fit: cover;
}

.carousel-track video {
    width: 100%;
    height: auto;
}

#chatNowBtn {
    position: absolute;
    /* overlay on carousel */
    bottom: 50px;
    /* above the dots */
    left: 50%;
    /* center horizontally */
    transform: translateX(-50%);
    padding: 12px 25px;
    background-color: #000000;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    /* above carousel items */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

#chatNowBtn:hover {
    background-color: #252525;
}

/* Astrologer Carousel Independent Styles */
/* Astrologer Carousel Section */

.astrologer-section {
    position: relative;
    width: 100%;
    max-width: 1350px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 20px;
}

.astrologer-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.astro-track-container {
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

.astro-track {
    display: flex;
    align-items: center;
    position: relative;
}

.astro-card {
    width: 180px;
    min-width: 180px;
    margin: 0 10px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Style for the active (center) card */
.astro-card.active {
    transform: scale(1.1);
    /* Scale up the active card */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

.astro-card img {
    width: 100%;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.astro-card h3 {
    margin: 10px 0 5px;
}

.astro-card p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #555;
}

.astro-card .comment {
    font-style: italic;
    font-size: 0.8em;
    margin-top: 10px;
}

/* Carousel Navigation Buttons */
.astro-prev,
.astro-next {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    margin: 0 10px;
    transition: color 0.2s ease;
}

.astro-prev {
    left: 20px;
}

.astro-next {
    right: 20px;
}

.astro-prev:hover,
.astro-next:hover {
    color: #007bff;
}

/* Indicators below the carousel */
/* Update your astro-indicators styling */
.astro-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.astro-indicators button {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #ccc;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.3;
    /* Default opacity for all dots */
}

/* New class for visible dots */
.astro-indicators button.visible {
    opacity: 1;
    /* Make visible dots fully opaque */
    background-color: #ccc;
    /* Ensure they have a consistent color */
}

.astro-indicators button.active {
    background-color: #4275ff;
    /* Color for the active dot */
    transform: scale(1.2);
    /* Slightly enlarge the active dot */
    opacity: 1;
    /* Make sure the active dot is visible */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .astrologer-wrapper {
        flex-direction: column;
    }

    .astro-prev, .astro-next {
        position: static;
        transform: none;
    }
}

/* Style for OTP input boxes */
.otp-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 10px;
    /* Provides space between the boxes */
}

.otp-input {
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 1.2rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.otp-input:focus {
    outline: none;
    border-color: #4275ff;
    box-shadow: 0 0 0 3px rgba(66, 117, 255, 0.2);
}

/* Optional: To remove the increment/decrement arrows on number inputs */
input[type=number] {
    -moz-appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Ensure the purpose dropdown matches the input field style */
#purpose-select {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background-color: #f7f7f7;
    font-size: 1rem;
    color: #444;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23666" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position-x: calc(100% - 15px);
    background-position-y: center;
    cursor: pointer;
}

#purpose-select:focus {
    outline: none;
    border-color: #4275ff;
    box-shadow: 0 0 0 3px rgba(66, 117, 255, 0.2);
}

/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 50;
    /* Sit on top of everything else */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.7);
    /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 15px;
    position: relative;
    max-width: 90%;
    margin: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

/* Show modal with animation */
.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* The Close Button */
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Styles for the card inside the modal */
.modal .astro-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: none;
    /* No shadow inside the modal */
    transform: none;
    transition: none;
}

.modal .astro-card img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 10px;
}

img#stickyImage {
    width: 100px;
}