/* Global Styles */
:root {
    --primary-color: #BDE0FE;    /* Light Blue */
    --secondary-color: #A2D2FF;  /* Sky Blue */
    --accent-color: #CDB4DB;     /* Purple */
    --highlight-color: #FFC8DD;  /* Pink */
    --surface-color: #FFFFFF;    /* White */
    --text-color: #333333;       /* Dark Gray */
    --background-color: var(--primary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Navigation */
.navbar {
    background-color: var(--surface-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    order: 0;
    margin-right: 1.5rem;
}

.logo a {
    display: block;
    cursor: pointer;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    max-width: 300px;
}

.nav-links {
    display: flex;
    align-items: center;
    order: 1;
    margin-right: auto;
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link.active {
    color: var(--accent-color);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

.nav-link.btn-login {
    background-color: var(--accent-color);
    color: var(--surface-color);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-right: 0.3rem;
}

.nav-link.btn-login:hover {
    background-color: var(--highlight-color);
    color: var(--text-color);
    transform: translateY(-2px);
}

.nav-link.btn-create-story {
    background-color: var(--accent-color);
    color: var(--surface-color);
    padding: 0.35rem 0.8rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 0.9rem;
}

.nav-link.btn-create-story:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-link.btn-create-story i {
    font-size: 0.8rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    order: 2;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease;
    margin: 0.5rem;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--surface-color);
}

.btn-secondary {
    background-color: var(--highlight-color);
    color: var(--text-color);
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--highlight-color);
}

.features h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-box {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* How it Works Section */
.how-it-works {
    padding: 4rem 2rem;
    background-color: var(--secondary-color);
    text-align: center;
    color: var(--text-color);
}

.how-it-works h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.step {
    background: var(--surface-color);
    padding: 2rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.step:hover {
    transform: translateY(-10px);
}

.step-number {
    width: 45px;
    height: 45px;
    background-color: var(--accent-color);
    color: var(--surface-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.step h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.step p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
}

/* CTA Section */
.cta {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--highlight-color) 0%, var(--accent-color) 100%);
    color: var(--text-color);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 2rem 1rem 0.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-section h4 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.8rem;
}

.social-links a {
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
        position: relative;
        justify-content: flex-end;
    }
    
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        z-index: 1;
    }
    
    .logo img {
        height: 45px;
        max-width: 180px;
        display: block;
    }
    
    .mobile-menu-btn {
        display: block;
        margin: 0;
        font-size: 1.3rem;
        order: 0;
        z-index: 2;
        position: relative;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--surface-color);
        padding: 1.2rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        margin-left: 0;
        align-items: flex-start;
    }

    .nav-items {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .nav-links.mobile-menu-open {
        display: flex !important; /* Use !important to override any inline styles */
    }

    .nav-link.btn-login {
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
        margin-right: 0;
        padding: 0.5rem 1rem;
    }

    .nav-link.btn-create-story {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
        justify-content: center;
        width: 100%;
    }

    .nav-link.active::after {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .features-grid,
    .steps-container {
        grid-template-columns: 1fr;
    }

    .btn {
        display: block;
        margin: 1rem auto;
        max-width: 300px;
    }

    .steps-container {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }

    .step {
        padding: 1.8rem 1.2rem;
    }

    .footer {
        padding: 1.5rem 1rem 0.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .footer-section a {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        font-size: 1.2rem;
    }

    .footer-bottom {
        margin-top: 1.5rem;
        font-size: 0.85rem;
    }
}

.story-step-example {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--surface-color);
    max-width: 100%;
    overflow: hidden;
}

.story-step-example h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--text-color);
}

.story-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.story-carousel-container {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.story-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-slide.active {
    opacity: 1;
    z-index: 1;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.story-step-example-img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.story-step-example-img:hover {
    transform: scale(1.02);
}

.carousel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.carousel-dots .dot {
    height: 15px;
    width: 15px;
    margin: 0 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-dots .dot.active {
    background-color: var(--accent-color);
    transform: scale(1.3);
}

.carousel-dots .dot:hover {
    background-color: var(--highlight-color);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .story-step-example {
        padding: 3rem 1rem;
    }
    
    .story-carousel-container {
        height: auto;
    }
    
    .image-wrapper {
        padding: 10px;
    }
    
    .story-step-example-img {
        max-height: 400px;
    }
    
    .carousel-dots .dot {
        width: 12px;
        height: 12px;
        margin: 0 6px;
    }
}

@media (max-width: 480px) {
    .story-step-example {
        padding: 2rem 0.5rem;
    }
    
    .story-carousel {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .image-wrapper {
        padding: 5px;
    }
    
    .story-step-example-img {
        max-height: 300px;
        border-radius: 8px;
    }
    
    .story-step-example-img:hover {
        transform: none;
    }
    
    .carousel-dots .dot {
        width: 12px;
        height: 12px;
        margin: 0 6px;
    }
    
    .logo img {
        height: 40px;
        max-width: 150px;
    }
    
    .nav-container {
        padding: 0.8rem 1rem;
    }
    
    .mobile-menu-btn {
        font-size: 1.2rem;
    }
}

/* About Us Page */
.about-us-container {
    max-width: 900px;
    margin: 7rem auto 2rem;
    background: var(--surface-color);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(173, 127, 168, 0.10);
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
}
.about-header h1 {
    color: var(--accent-color);
    font-size: 2.3rem;
    margin-bottom: 0.7rem;
}
.about-mission {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 2.2rem;
}
.about-team h2 {
    color: var(--highlight-color);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}
.team-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.team-member {
    background: var(--secondary-color);
    border-radius: 18px;
    padding: 1.2rem 1rem;
    box-shadow: 0 2px 8px rgba(173, 127, 168, 0.10);
    width: 170px;
    text-align: center;
}
.team-member img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 0.7rem;
    background: var(--highlight-color);
    object-fit: cover;
}
.team-member h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}
.team-member p {
    color: var(--text-color);
    font-size: 0.98rem;
}

/* Contact Us Page */
.contact-container {
    max-width: 500px;
    margin: 7rem auto 2rem;
    background: var(--surface-color);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(173, 127, 168, 0.10);
    padding: 2.5rem 1.5rem 2rem;
}
.contact-header h1 {
    color: var(--accent-color);
    font-size: 2.1rem;
    margin-bottom: 0.7rem;
    text-align: center;
}
.contact-intro {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
}
.contact-form .form-group {
    margin-bottom: 1.3rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--accent-color);
    font-weight: 600;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid var(--highlight-color);
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    transition: border 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}
.contact-form button {
    width: 100%;
    margin-top: 0.5rem;
}

/* FAQ Page */
.faq-container {
    max-width: 700px;
    margin: 7rem auto 2rem;
    background: var(--surface-color);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(173, 127, 168, 0.10);
    padding: 2.5rem 1.5rem 2rem;
}
.faq-header h1 {
    color: var(--accent-color);
    font-size: 2.1rem;
    margin-bottom: 0.7rem;
    text-align: center;
}
.faq-intro {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}
.faq-item {
    background: var(--secondary-color);
    border-radius: 15px;
    padding: 1.2rem 1rem;
    box-shadow: 0 2px 8px rgba(173, 127, 168, 0.08);
}
.faq-item h2 {
    color: var(--surface-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.faq-item p {
    color: var(--text-color);
    font-size: 1rem;
}

/* Terms Page */
.terms-container {
    max-width: 700px;
    margin: 7rem auto 2rem;
    background: var(--surface-color);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(173, 127, 168, 0.10);
    padding: 2.5rem 1.5rem 2rem;
}
.terms-header h1 {
    color: var(--accent-color);
    font-size: 2.1rem;
    margin-bottom: 0.7rem;
    text-align: center;
}
.terms-intro {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
}
.terms-list ul {
    list-style: disc inside;
    color: var(--highlight-color);
    font-size: 1.05rem;
    padding-right: 1.2rem;
    margin: 0 auto;
    max-width: 90%;
}
.terms-list li {
    color: var(--text-color);
    margin-bottom: 0.7rem;
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    box-shadow: 0 1px 4px rgba(173, 127, 168, 0.07);
}

/* Privacy Policy Page */
.privacy-container {
    max-width: 700px;
    margin: 7rem auto 2rem;
    background: var(--surface-color);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(173, 127, 168, 0.10);
    padding: 2.5rem 1.5rem 2rem;
    margin-top: 0;
    margin-bottom: 2.5rem;
}
.privacy-header h1 {
    color: var(--accent-color);
    font-size: 2.1rem;
    margin-bottom: 0.7rem;
    text-align: center;
}
.privacy-intro {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
}
.privacy-list ul {
    list-style: disc inside;
    color: var(--highlight-color);
    font-size: 1.05rem;
    padding-right: 1.2rem;
    margin: 0 auto;
    max-width: 90%;
}
.privacy-list li {
    color: var(--text-color);
    margin-bottom: 0.7rem;
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    box-shadow: 0 1px 4px rgba(173, 127, 168, 0.07);
}

@media (max-width: 768px) {
    .about-us-container,
    .contact-container,
    .faq-container,
    .terms-container,
    .privacy-container {
        padding: 1.2rem 0.3rem 1.2rem;
        margin: 5.5rem 0.2rem 1.2rem;
        border-radius: 18px;
    }
    .team-grid {
        gap: 1.2rem;
    }
    .page-bg-secondary {
        min-height: unset;
        padding: 0;
        padding-top: 80px;
    }
    .privacy-container {
        margin-top: 0;
        margin-bottom: 1.2rem;
    }
}

.page-bg-secondary {
    background: var(--secondary-color);
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 110px;
}

/* User Profile Styles */
.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-color);
}

.btn-logout {
    background-color: var(--accent-color);
    color: var(--surface-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background-color: var(--highlight-color);
    color: var(--text-color);
    transform: translateY(-2px);
}

/* Mobile Responsiveness for User Profile */
@media (max-width: 768px) {
    .user-profile {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Reading Benefits Section */
.reading-benefits {
    padding: 60px 0;
    background-color: #f9f4ff;
    text-align: center;
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.benefits-content h2 {
    margin-bottom: 40px;
    color: #6a1b9a;
    font-size: 2.2rem;
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.benefit-item {
    display: flex;
    text-align: right;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    flex: 0 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #9c27b0;
    margin-left: 20px;
}

.benefit-text {
    flex: 1;
}

.benefit-text h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #6a1b9a;
    font-size: 1.4rem;
}

.benefit-text p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

/* Responsive Styling */
@media (min-width: 768px) {
    .benefits-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        height: 100%;
    }
    
    .benefit-icon {
        margin: 0 auto 15px;
    }
}

@media (max-width: 767px) {
    .benefit-item {
        flex-direction: row;
        align-items: center;
    }
    
    .benefit-icon {
        padding-top: 5px;
    }
    
    .benefits-content h2 {
        font-size: 1.8rem;
    }
    
    .benefit-text h3 {
        font-size: 1.2rem;
    }
}

/* Mid-Page CTA Section */
.mid-page-cta {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--highlight-color) 100%);
    position: relative;
    overflow: hidden;
}

.mid-cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mid-cta-content {
    color: var(--surface-color);
    z-index: 2;
    position: relative;
}

.mid-cta-content h2 {
    font-size: 2.3rem;
    margin-bottom: 1rem;
}

.mid-cta-content p {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.mid-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.mid-cta-buttons .btn {
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .mid-page-cta {
        padding: 2.5rem 1.5rem;
    }
    
    .mid-cta-content h2 {
        font-size: 1.8rem;
    }
    
    .mid-cta-content p {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .mid-cta-buttons .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
} 