/* ==========================================================================
   1. Base Styles and Typography
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f7f7f7;
    position: relative;
    overflow-x: hidden;
}

/* Global Image Reset - Prevents giant images on phone */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. Animated Background (Waves)
   ========================================================================== */
#animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: linear-gradient(135deg, #fcefee 0%, #ffe9e9 100%);
}

.wave-box {
    position: absolute;
    width: 200vw;
    height: 200vh;
    border-radius: 40%;
    background: rgba(255, 105, 97, 0.1);
    animation: wave 25s infinite linear;
    transform-origin: 50% 50%;
    top: -100vh;
    left: -50vw;
}

.wave-box:nth-child(2) { background: rgba(255, 160, 150, 0.08); animation: wave 20s infinite linear reverse; top: -90vh; left: -40vw; border-radius: 45%; }
.wave-box:nth-child(3) { background: rgba(236, 72, 153, 0.05); animation: wave 30s infinite linear; top: -80vh; left: 0vw; border-radius: 50%; }
.wave-box:nth-child(4) { background: rgba(255, 105, 97, 0.07); animation: wave 18s infinite linear reverse; top: -110vh; left: -10vw; border-radius: 35%; }

@keyframes wave {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

/* ==========================================================================
   3. Header and Logo (Premium Animated Fix)
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    padding: 15px 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    opacity: 0;
    animation: fadeInSlide 1s 0.1s forwards ease-out;
    position: relative;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.heart-icon-wrapper {
    position: relative;
    padding: 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6961, #ec4899);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.5);
    transform: scale(0) rotate(-10deg);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; 
    height: 40px; 
    flex-shrink: 0;
    animation: popIn 0.5s 0.3s forwards cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% { transform: scale(0) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.heart-svg #heart-path {
    fill: white;
    stroke: white;
    stroke-width: 1px;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawHeart 1.5s 0.8s forwards ease-in-out;
}

@keyframes drawHeart { to { stroke-dashoffset: 0; } }

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #333;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;
}

.tagline {
    font-family: 'Roboto', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: #ec4899;
    display: block;
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
}

/* ==========================================================================
   4. Header Controls (Language Button & Toggle)
   ========================================================================== */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-button {
    text-decoration: none !important;
    background: #fdf2f2;
    color: #ff6961 !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #ff6961;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-button:hover {
    background: #ff6961;
    color: white !important;
}

#menu-toggle {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 5px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

header nav a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    transition: color 0.3s;
}

header nav a:hover { color: #ff6961; }

@media (max-width: 992px) {
    header nav { display: none; } 
    #menu-toggle { display: block; }

    #main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        display: none;
        flex-direction: column;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    #main-nav.active { display: flex; }

    header nav ul { flex-direction: column; gap: 0; }
    header nav ul li { border-bottom: 1px solid #eee; }
    header nav a { padding: 15px 5%; display: block; }
}

/* ==========================================================================
   5. Main Content and Cards
   ========================================================================== */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    border-top: 5px solid #ff6961;
    transition: transform 0.3s;
    overflow: hidden;
}

.card:hover { transform: translateY(-5px); }

.card-header {
    background: #ffffff;
    padding: 20px 30px;
    border-bottom: 2px solid #fcefee;
    width: 100%;
    box-sizing: border-box;
}

.card-header h2 { margin: 0; font-size: 1.4rem; color: #333; }
.card-body { padding: 30px; display: flex; flex-direction: column; gap: 30px; }

/* ==========================================================================
   6. Responsive Image Fix
   ========================================================================== */
.image-wrapper {
    width: 100%;
    height: 250px; /* Adjusted height for mobile impact */
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.card-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .card-body { flex-direction: row; align-items: flex-start; gap: 25px; }
    .card:nth-of-type(even) .card-body { flex-direction: row-reverse; }
    .image-wrapper { width: 280px; height: 180px; }
    .text-content { flex: 1; font-size: 0.95rem; line-height: 1.6; }
}

/* ==========================================================================
   7. Testimonials, FAQ & Contact Form (Mobile Alignment Fixed)
   ========================================================================== */
.testimonial-item {
    background-color: #fffbfb;
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #ff6961;
    margin-bottom: 20px;
}

.testimonial-author { font-weight: 800; color: #333; text-align: right; display: block; }

/* FAQ FIX: Edge-to-edge alignment on mobile */
.faq-item {
    border-bottom: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 0;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between; /* This pushes icon to the right */
    align-items: center;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

.faq-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: #ff6961;
    flex-shrink: 0;
}

.faq-question.active .faq-icon { transform: rotate(180deg); }

.faq-answer { 
    display: none; 
    padding: 0 0 20px 0; 
    color: #666; 
    line-height: 1.6; 
    width: 100%;
    box-sizing: border-box;
}

/* Form Alignment Fix */
.contact-form { display: flex; flex-direction: column; gap: 15px; width: 100%; }
.form-group input, .form-group textarea {
    width: 100%; 
    padding: 15px; 
    border: 2px solid #eee; 
    border-radius: 10px; 
    box-sizing: border-box; /* Crucial for phone screens */
}

.submit-button {
    background: linear-gradient(135deg, #ff6961, #ec4899);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}
