/* -------------------------------
   INDEX.CSS - Homepage Styles
   (Specific to index.html)
---------------------------------*/

body {
    /* Fallback solid color if image fails to load */
    background-color: #f5f5f5;
    /* This creates the fixed background effect */
    background-image: url("/assets/images/background.svg");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Cream color overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffe5aee6;
    /* Cream color with 60% opacity */
    z-index: -1;
    /* Places it between the background and content */
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* 1. Hero Section */
.hero-section {
    position: relative;
    background: var(--primary-color-dark);
    padding: var(--section-padding) 0;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.hero-content {
    margin: 0 auto;
    width: var(--container-width);
    max-width: var(--max-width);
    padding: 0 1rem;
}

.hero-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.hero-search-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hero-cta {
    margin-top: 1rem;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("/assets/images/hero-background.avif") center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.search-input-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    font-size: 16px;
    outline: none;
    border-radius: 10px 10px 0 0;
    z-index: 1;
}

.search-btn {
    padding: 15px;
    background: var(--button-gradient);
    color: var(--white);
    border: none;
    border-radius: 0px 0px 10px 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    opacity: 0.9;
}

.register-pet-link {
    color: var(--accent-color);
}

/* 2. Registration Section  */
.registration-options {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 28px 5vw;
    /* margin: 32px 0; */
}

.option-card {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 8px 18px;
    border: 2px solid var(--primary-color-dark);
    background-color: #fff;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    transition: all 0.3s;
}

.option-card.active {
    background: var(--primary-color-dark);
    color: white;
}

.option-card.active h3 {
    color: #fff;
}

.option-card h3,
.option-card p {
    text-align: center;
}

.option-card h3 {
    color: var(--primary-color-dark);
}

/* Action Container */
.action-container {
    max-width: 600px;
    justify-self: center;
    margin: 0 auto;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-out;
}

.action-container.active {
    height: var(--current-height);
    margin: 20px 5vw;
}

.action-content {
    display: none;
    /* Initially hidden */
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease-out 0.15s;
}

.action-content.active {
    opacity: 1;
    transform: translateY(0);
}

.action-card {
    padding: 25px;
    border-radius: 10px;
    background: white;
    text-align: center;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.action-card h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.action-card p {
    color: #555;
}

.action-card-description {
    margin-bottom: 20px;
}

.action-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.action-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.small-note {
    font-size: 0.8rem;
    color: #777;
    margin-top: 12px;
    font-style: italic;
}

/* 2. How It Works Section */
.steps-section {
    padding-top: 32px;
    padding: 32 0 0 0;
    margin: 0 5vw;
    text-align: center;
}

.steps-section h2 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: var(--container-width);
    max-width: var(--max-width);
    margin: 0 auto;
}

.step-item {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 2px 8px var(--shadow-color-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-icon {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-text {
    flex: 1;
    font-size: 1rem;
    text-align: left;
}

/* 3. Why Choose Us Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    text-align: center;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 50px;
    background: var(--button-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* ==============================================
   5. ABOUT SECTION - MOBILE FIRST
   ============================================== */

.about-content {
    display: flex;
    flex-direction: column;
}

.about-image {
    /* height: 300px; */
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    order: -1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-text {
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.about-text h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
}

.about-text h2:after {
    content: "";
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--button-gradient);
    bottom: -8px;
    left: 0;
    border-radius: 2px;
}

.about-text p {
    padding-top: 6px;
}

#registerAboutSectionButton {
    /* Base Styles */
    display: inline-block;
    padding: 14px 32px;
    background: var(--button-gradient);
    color: var(--light-white);
    font-weight: 500;
    font-size: 1.05rem;
    text-align: center;
    text-decoration: none;
    border-radius: 50px; /* Pill shape */
    border: none;
    cursor: pointer;
    margin-top: 26px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    /* Text styling */
    letter-spacing: 0.5px;
    text-transform: none;

    /* Gradient Animation Prep */
    background-size: 200% auto;
}

#registerAboutSectionButton:hover {
    /* Interactive States */
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
    opacity: 0.92; /* Subtle transparency */

    /* Gradient Animation */
    background-position: right center;
}

#registerAboutSectionButton:active {
    transform: translateY(0) scale(0.98);
    opacity: 0.95;
}

/* Optional: Gradient Animation (if --button-gradient supports it) */
#registerAboutSectionButton {
    background-image: linear-gradient(
        to right,
        var(--gradient-start) 0%,
        var(--gradient-mid) 51%,
        var(--gradient-end) 100%
    );
}

/* Micro-interaction for elegance */
#registerAboutSectionButton::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#registerAboutSectionButton:hover::after {
    opacity: 1;
}

/* ==============================================
   5. DONATION SECTION - MOBILE FIRST
   ============================================== */

.donation-section {
    padding: var(--section-padding);
    background-color: #ffffff;
}

.donation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.donation-image {
    width: 180px;
    height: auto;
    margin-bottom: 1rem;
}

.donation-text {
    text-align: center;
}

.donation-text p {
    font-family: "SourGummy";
    font-weight: 300;
}

.donation-section h3 {
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.donation-section p {
    color: #555;
    max-width: 600px;
    margin: 0 auto 1.8rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.donation-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.donation-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.donation-btn:active {
    background-color: var(--primary-color-dark);
}

/* ==============================================
   5. HOW IT WORKS SECTION - MOBILE FIRST
   ============================================== */
.section {
    padding: 50px 0;
}

.how-it-works {
    padding-bottom: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: "";
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--button-gradient);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    font-size: 18px;
    color: var(--primary-color-dark);
    max-width: 700px;
    margin: 25px auto 0;
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 40px 30px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: var(--button-gradient);
    color: var(--white);
    border-radius: 50%;
    font-size: 26px;
    font-weight: 700;
    align-content: center;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(253, 141, 50, 0.3);
}

.step h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card-icon {
    width: 50px; /* Slightly smaller on mobile */
    height: 50px;
    margin: 0 auto 16px; /* Center the icon */
}

.card-title {
    font-weight: 700;
    font-size: 1.1rem; /* Use rem for better scaling */
    color: #2e2e2e;
    margin-bottom: 12px;
    font-family: "Nunito", sans-serif;
}

.card-text {
    color: #666;
    font-size: 0.875rem; /* 14px equivalent in rem */
    line-height: 1.5;
}

/* 7. Media Queries for Larger Screens */
@media (min-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        max-width: 600px;
        margin: 0 auto 2rem;
    }

    .input-field {
        max-width: 350px;
        margin-right: 0.5rem;
    }

    .search-input-form {
        flex-direction: row;
    }

    .search-input {
        border-radius: 25px 0px 0px 25px;
    }

    .search-btn {
        padding: 0 30px;
        border-radius: 0px 25px 25px 0px;
        padding: 15px 36px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .option-card {
        padding: 16px 32px;
    }

    .steps-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .step-item {
        flex: 0 0 48%;
    }

    .step-item {
        width: inherit;
        margin: auto;
    }

    .donation-content {
        flex-direction: row;
        justify-content: space-evenly;
        text-align: left;
    }

    .donation-image {
        order: 2;
        width: 260px;
        margin-bottom: 0;
    }

    .donation-text {
        text-align: left;
        padding-right: 3rem;
    }

    .donation-section h3 {
        font-size: 1.8rem;
    }

    .donation-section p {
        margin-left: 0;
        margin-right: 0;
        font-size: 1.1rem;
    }

    .about-text {
        padding: 35px;
    }

    .registration-options {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (min-width: 768px) {
    /* About Section Desktop Layout */
    .about-content {
        flex-direction: row;
    }

    .about-image {
        height: auto;
        max-height: 500px;
        border-radius: 0 20px 20px 0;
        order: 2;
    }

    .about-text {
        padding: 40px;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
        border-radius: 20px 0 0 20px;
        order: 1;
    }

    .about-text h2 {
        font-size: 36px;
    }

    .about-text h2:after {
        width: 60px;
        height: 4px;
        bottom: -10px;
    }

    .about-text {
        position: relative;
    }

    #registerAboutSectionButton {
        position: absolute;
        right: 6%;
        bottom: 8%;
    }

    .about-text p {
        font-size: 18px;
        padding-bottom: 82px;
    }

    /* Registration Options Desktop */
    .registration-options {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
    }

    #registerAboutSectionButton {
        float: right;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 4rem 0;
    }

    .option-card h3 {
        font-size: 22px;
        margin: 2px;
    }

    .about-section {
        padding: 64px 0;
    }

    .steps-section {
        padding-top: 64px;
    }

    .about-text p {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 30px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .registration-options {
        grid-template-columns: 1fr;
    }
}
