/* CSS Variables */
:root {
    --primary-pink: rgb(255, 133, 162);
    --secondary-pink: #A2F2E8;
    --light-pink: #fff0f3;
    --accent-blue: #4cc9f0;
    --accent-purple: #FFF44F;
    --dark-text:#6B4226;
    --light-text:#6B4226;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles - UPDATED FOR MOBILE */
html {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-pink);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Critical fix for all images and media */
img, video, iframe, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* Container - FIXED */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    overflow: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-pink), var(--accent-purple));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loader {
    text-align: center;
    color: white;
}

.loader-sprinkle {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    display: inline-block;
    margin: 0 10px;
    animation: bounce 1s infinite;
    animation-delay: calc(var(--i) * 0.2s);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.loader p {
    margin-top: 30px;
    font-size: 1.2rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Animated Sprinkles */
#sprinkles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Header Styles - FIXED */
header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 15px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    left: 0;
    right: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 100%;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(255, 133, 162, 0.3));
    transition: transform 0.3s ease;
}

.logo-tagline {
    font-size: 0.9rem;
    color: var(--light-text);
    font-weight: 500;
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% { 
        transform: translateY(-3px) rotate(2deg); 
    }
    75% { 
        transform: translateY(3px) rotate(-2deg); 
    }
}

.logo-image:hover {
    animation: logoSpin 1s ease;
}

@keyframes logoSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.logo-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-pink), #ff6b95);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-tagline {
    font-size: 0.8rem;
    color: var(--dark-text);
    margin-top: -5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--primary-pink);
    background: transparent;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-pink);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.cta-button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, var(--primary-pink));
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.9rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 133, 162, 0.4);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-pink);
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section - COMPLETELY FIXED */
.hero {
    padding: 7rem 15px 3rem;
    display: block;
    align-items: center;
    min-height: auto;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-highlight {
    color: var(--primary-pink);
    position: relative;
    display: inline-block;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary-pink);
    opacity: 0.3;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 2rem 0;
    justify-content: center;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    font-size: 0.9rem;
}

.feature-icon {
    color: var(--primary-pink);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.secondary-btn {
    background: var(--primary-pink);
    color: white;
    border: 2px solid var(--primary-pink);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.secondary-btn:hover {
    color: white;
}

/* Hero Image Slider - FIXED */
.hero-slider-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
}

.hero-slider {
    width: 100%;
    height: 300px;
}

.hero-slide {
    width: 100%;
    height: 100%;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider-nav {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.hero-slider-dot.active {
    background: var(--primary-pink);
    transform: scale(1.2);
}

.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.hero-slider-arrow:hover {
    background: var(--primary-pink);
    color: white;
}

.hero-slider-prev {
    left: 10px;
}

.hero-slider-next {
    right: 10px;
}

/* Section Common Styles - FIXED */
section {
    padding: 3rem 15px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    padding: 0 10px;
}

.section-title span {
    color: var(--primary-pink);
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    margin-bottom: 2rem;
    padding: 0 10px;
}

/* Gallery - FIXED */
.gallery-slider {
    position: relative;
    padding: 1rem 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.swiper-slide {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.8rem;
    transform: translateY(100%);
    transition: var(--transition);
    font-size: 0.9rem;
}

.swiper-slide:hover .slide-caption {
    transform: translateY(0);
}

/* Testimonials - FIXED */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
}

.testimonial-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    width: 100%;
}

.testimonial-rating {
    color: #ffd700;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Modal - FIXED */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    max-width: 100%;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input, textarea, select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
    font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-pink);
}

.submit-btn {
    width: 100%;
    justify-content: center;
}

/* Video Modal - FIXED */
.video-modal .modal-content {
    max-width: 100%;
    max-height: 90%;
    padding: 0;
    background: #000;
    position: relative;
    width: 100%;
}

/* Video Modal Specific Close Button */
.video-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: var(--primary-pink);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1002;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.video-close-btn:hover {
    background: #ff4d7a;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px 15px 0 0;
}

.video-description {
    padding: 1.5rem;
    color: white;
    background: #000;
    border-radius: 0 0 15px 15px;
}

.video-description h3 {
    color: var(--primary-pink);
    margin-bottom: 1rem;
}

/* Footer - FIXED */
footer {
    background-color: #6B4226;
    color: white;
    padding: 3rem 15px 2rem;
    width: 100%;
    max-width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: var(--primary-pink);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-pink);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-pink);
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    border-radius: 25px 0 0 25px;
    border: none;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
}

.newsletter-form button {
    background: var(--primary-pink);
    color: white;
    border: none;
    padding: 0 1rem;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.newsletter-form button:hover {
    background: var(--secondary-pink);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 0.9rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    background: var(--primary-pink);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 1001;
    max-width: 90%;
    text-align: center;
}

.toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Prevent body scrolling when modal is active */
body.modal-open {
    overflow: hidden;
}

/* Responsive Design - UPDATED */
@media (min-width: 768px) {
    .container {
        max-width: 1200px;
        padding: 0 20px;
    }
    
    header {
        padding: 1rem 20px;
    }
    
    .hero {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 8rem 20px 4rem;
        min-height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    section {
        padding: 4rem 20px;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero {
        min-height: 100vh;
    }
    
    .swiper-slide img {
        height: 400px;
    }
    
    .hero-slider {
        height: 400px;
    }
}

/* Mobile-specific fixes */
@media (max-width: 767px) {
    .mobile-menu-btn {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    nav ul.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .secondary-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .hero-slider-prev {
        left: 5px;
    }

    .hero-slider-next {
        right: 5px;
    }
    
    .video-close-btn {
        top: 5px;
        right: 5px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-image {
        height: 45px;
    }
    
    /* Force single column on all sections */
    .hero {
        display: block !important;
    }
    
    /* Ensure all containers don't exceed viewport */
    .container, section, .hero-slider-container, 
    .gallery-slider, .testimonial-card {
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-slider {
        height: 250px;
    }
    
    .swiper-slide img {
        height: 200px;
    }
}

/* CRITICAL FIX - Prevent any horizontal overflow */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative !important;
}

/* Additional safety measures */
* {
    max-width: 100vw;
}

/* Fix for any element that might still overflow */
section, .container, .hero, .footer-content, .testimonials-grid {
    overflow: hidden;
}