/* 
Theme: Feminine + Bold + Elegant
Colors: Soft Pink, Black, Gold, White
Fonts: Playfair Display (Headings), Cairo (Body)
*/

:root {
    --primary-pink: #fadae1;
    --dark-pink: #eebecb;
    --accent-gold: #d4af37;
    --text-dark: #1a1a1a;
    --text-muted: #4a4a4a;
    --bg-light: #fefefe;
    --bg-white: #ffffff;
    --transition: all 0.3s ease-in-out;
}

html { scroll-behavior: smooth; }

body {
    margin: 0; padding: 0;
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    background-color: var(--primary-pink);
    background-image: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(250, 218, 225, 0.2) 100%);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Cairo', serif;
    font-weight: 700;
}

.container {
    width: 90%; max-width: 1200px; margin: 0 auto;
}

.section { padding: 40px 0 80px; }
.text-center { text-align: center; }
.justify-center { display: flex; justify-content: center; gap: 15px; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-container {
    display: flex; justify-content: space-between; align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px; font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: 2px;
}

.logo span { color: var(--accent-gold); }

.nav-links {
    list-style: none; display: flex; gap: 30px; margin: 0; padding: 0;
}

.nav-links a {
    text-decoration: none; color: var(--text-dark);
    font-weight: 600; font-size: 16px;
    position: relative; transition: var(--transition);
}

.nav-links a::after {
    content: ''; position: absolute;
    bottom: -5px; right: 0; width: 0; height: 2px;
    background: var(--accent-gold); transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Titles */
.section-title {
    font-size: 40px; color: var(--text-dark); margin-bottom: 15px;
}

.title-divider {
    width: 60px; height: 3px; background: var(--accent-gold);
    margin: 0 auto 40px;
}

/* Story Gallery Layout (Circle + Bubble Shape) */
.stories-wrapper {
    display: flex;
    flex-direction: column;
    gap: 120px;
    margin-top: 60px;
    padding-bottom: 50px;
}

.story-card {
    display: flex;
    align-items: center;
    gap: 50px;
    transition: var(--transition);
}

.story-card.row-reverse {
    flex-direction: row-reverse;
}

/* The Circle Image */
.story-image {
    flex: 0 0 400px;
    height: 400px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 12px solid #fff;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    z-index: 2;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    display: block;
}

.story-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(212, 175, 55, 0.2);
}

.story-image:hover img {
    transform: scale(1.1);
}

.story-image .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
    border-radius: 50%;
}

.story-image:hover .overlay {
    opacity: 1;
}

.overlay i {
    color: #fff; font-size: 40px;
    transform: scale(0.5); transition: 0.5s;
}

.story-image:hover .overlay i {
    transform: scale(1);
}

/* The Text Bubble Shape */
.story-content {
    flex: 1;
    background: #fff;
    padding: 60px 50px;
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}

.story-content h2 {
    font-size: 32px;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.story-content h2::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 50px; height: 3px;
    background: var(--accent-gold);
}

.story-text {
    font-size: 18px;
    line-height: 2;
    color: var(--text-muted);
}

/* Bubble Pointers */
.story-content::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -25px; /* RTL default: image is on the right, so pointer goes right */
    transform: translateY(-50%);
    border-width: 30px 0 30px 30px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
    filter: drop-shadow(5px 0px 5px rgba(0,0,0,0.02));
}

.story-card.row-reverse .story-content::after {
    right: auto;
    left: -25px;
    border-width: 30px 30px 30px 0;
    border-color: transparent #fff transparent transparent;
    filter: drop-shadow(-5px 0px 5px rgba(0,0,0,0.02));
}

/* Lightbox */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 2000;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: var(--transition);
}

.lightbox.active { opacity: 1; visibility: visible; }

.lightbox-content {
    max-width: 90%; max-height: 80vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.5); border-radius: 5px;
}

.close-lightbox {
    position: absolute; top: 20px; right: 30px;
    color: #fff; font-size: 40px; cursor: pointer; transition: 0.3s;
}

.close-lightbox:hover { color: var(--accent-gold); }

#lightbox-caption {
    color: #fff; font-size: 20px; margin-top: 20px; font-weight: 600;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: #fff; padding: 60px 0 20px; margin-top: 50px;
}

.footer h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px; margin: 0;
}

.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 45px; height: 45px; background: rgba(255,255,255,0.05); color: #fff;
    border-radius: 50%; margin-left: 10px; font-size: 20px;
    text-decoration: none; border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-gold); transform: translateY(-5px); border-color: var(--accent-gold);
}

/* Animations */
.fade-in {
    opacity: 0; transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.visible { opacity: 1; transform: translate(0); }

/* Mobile Reponsive */
@media (max-width: 991px) {
    .stories-wrapper { gap: 80px; }
    
    .story-card, .story-card.row-reverse {
        flex-direction: column; /* Stack image above text */
        gap: 30px;
    }
    
    .story-image {
        flex: 0 0 300px; /* Smaller circle on mobile */
        height: 300px;
        width: 300px;    /* Force width */
        margin: 0 auto;  /* Center horizontally */
    }
    
    .story-content {
        padding: 40px 30px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .story-content h2::after {
        left: 50%; right: auto;
        transform: translateX(-50%); /* Center the underline */
    }
    
    /* Change the bubble pointer to point UP instead of Side */
    .story-content::after, 
    .story-card.row-reverse .story-content::after {
        top: -20px;
        right: 50%;
        left: auto;
        transform: translateX(50%);
        border-width: 0 25px 25px 25px;
        border-color: transparent transparent #fff transparent;
        filter: none;
    }
}

@media (max-width: 480px) {
    .story-image {
        flex: 0 0 250px;
        height: 250px;
        width: 250px;
        border-width: 8px;
    }
    
    .story-content {
        padding: 30px 20px;
    }
    
    .story-content h2 { font-size: 26px; }
    .story-text { font-size: 16px; }
    .section { padding: 80px 0 40px; }
}
