:root {
    --deep-blue: #1a365d;
    --warm-gold: #c9a227;
    --soft-teal: #4a9c94;
    --light-gray: #f8f9fa;
    --off-white: #ffffff;
}

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

body {
    font-family: Georgia, serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light-gray);
}

/* Navigation */
.navbar {
    position: fixed;
    width: 100%;
    padding: 1.5rem 2rem;
    background: var(--off-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

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

.logo {
    font-family: 'Playfair Display', serif;
    color: var(--deep-blue);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--deep-blue);
    transition: color 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 160px 2rem 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
    align-items: center;
    position: relative; /* Add this */
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--deep-blue);
    position: relative;
    z-index: 1;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #555;
}

.hero-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lottie-animation {
    width: 100%;
    height: 400px;
    max-width: 600px;
}

/* Buttons */
.cta-button {
    font-family: 'Dancing Script', cursive;
    font-size: 1.25rem;
    padding: 1rem 2rem;
    background-color: var(--deep-blue);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--warm-gold);
}

/* Features Section with Hover Animations */
.features {
    padding: 80px 2rem;
    background: var(--off-white);
}

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

.feature-card {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--soft-teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--deep-blue);
    margin-bottom: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--soft-teal);
}

.feature-card p {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.feature-card:hover p {
    transform: translateY(2px);
}

/* About Page Styles */
.about-section {
    padding: 160px 2rem 80px;
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Playfair Display', serif;
    color: var(--deep-blue);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-content {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.about-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--deep-blue);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

.about-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--soft-teal);
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.value-card {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
}

/* How It Works Page Styles */
.how-it-works {
    padding: 160px 2rem 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-container {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.step-title {
    font-family: 'Playfair Display', serif;
    color: var(--deep-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.example-prompts {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.example-prompts ul {
    margin-left: 1rem;  /* Creates space from the left margin */
    padding-left: .25rem; /* Adds padding for the bullet points */
}

.example-prompts li {
    padding-left: 0.25rem; /* Adds space between bullet point and text */
    margin-bottom: 0.25rem; /* Adds vertical spacing between list items */
}

.step-container ul {
    margin-left: 1rem;  /* Creates space from the left margin */
    padding-left: .25rem; /* Adds padding for the bullet points */
}

.step-container li {
    padding-left: 0.25rem; /* Adds space between bullet point and text */
    margin-bottom: 0.25rem; /* Adds vertical spacing between list items */
}

/* Email Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    background: var(--off-white);
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--deep-blue);
    background: none;
    border: none;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: var(--warm-gold);
}

.popup-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--deep-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.popup-content p {
    margin-bottom: 1.5rem;
    color: #555;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-form input {
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.email-form input:focus {
    border-color: var(--soft-teal);
    outline: none;
}

.submit-button {
    background-color: var(--deep-blue);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: var(--warm-gold);
}

/* Contact Page Styles */
.contact-section {
    padding: 160px 2rem 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h1 {
    font-family: 'Playfair Display', serif;
    color: var(--deep-blue);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-header p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.team-members {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.member-card {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.member-card h3 {
    color: var(--deep-blue);
    margin-bottom: 0.5rem;
}

.member-card a {
    color: var(--soft-teal);
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.member-card a:hover {
    color: var(--warm-gold);
}

.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--soft-teal);
}

.contact-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.social-section,
.why-contact {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.social-links {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.social-icon {
    font-size: 1.8rem;
    color: var(--deep-blue);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-gray);
}

.social-icon:hover {
    color: var(--warm-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.why-contact ul {
    list-style-type: none;
    margin: 1.5rem 0;
}

.why-contact li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.why-contact li::before {
    content: "•";
    color: var(--soft-teal);
    position: absolute;
    left: 0;
}

.closing-message {
    color: #555;
    font-style: italic;
    margin-top: 2rem;
}

/* Success Message Styles */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--soft-teal);
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 8px;
    font-size: 1.2rem;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-message.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--deep-blue);
    margin: 2px 0;
    transition: all 0.3s ease;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    background-color: var(--off-white);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 999;
}

.sidebar.active {
    right: 0;
}

.sidebar-content {
    padding: 100px 20px 20px; /* Increased top padding from 80px to 100px */
    display: flex;
    flex-direction: column;
    gap: 30px; /* Increased gap from 20px to 30px for more spacing between links */
}

.sidebar-content a {
    color: var(--deep-blue);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 15px; /* Increased padding from 10px to 15px */
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.sidebar-content a:hover {
    background-color: var(--light-gray);
}

/* Hamburger Animation Classes */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 120px 1rem 60px;
    }

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

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

    .hero-content {
        z-index: 2; /* Ensure content stays on top */
    }

    .hero-content h1 {
        font-size: 2.5rem;
        text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8); /* Optional: add text shadow for better readability */
    }

    .hero-content p {
        text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8); /* Optional: add text shadow for better readability */
    }

    #lottie-animation {
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

    .hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        opacity: 0.3; /* Add some transparency */
    }

    .about-section {
        padding: 120px 1rem 60px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .how-it-works {
        padding: 120px 1rem 60px;
    }

    .popup-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }

    .popup-content h2 {
        font-size: 1.5rem;
    }

    .popup-content p {
        font-size: 0.9rem;
    }

    .email-form input,
    .submit-button {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .popup-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.2rem;
    }

    .contact-section {
        padding: 120px 1rem 60px;
    }

    .contact-header h1 {
        font-size: 2rem;
    }

    .contact-grid,
    .contact-footer {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }
}

/* Add touch-friendly improvements for mobile */
@media (hover: none) {
    .popup-close {
        padding: 0.8rem;  /* Larger touch target */
    }

    .submit-button {
        min-height: 44px; /* Minimum touch target size */
    }

    .email-form input {
        min-height: 44px; /* Minimum touch target size */
    }
}

/* Chat Page Styles */
.chat-section {
    padding: 160px 2rem 80px;
    max-width: 800px;
    margin: 0 auto;
}

.chat-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.chat-header {
    background: var(--deep-blue);
    color: white;
    padding: 2rem;
    text-align: center;
}

.chat-header h1 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 2rem;
}

.user-message, .bot-message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    max-width: 80%;
}

.user-message {
    background: var(--light-gray);
    margin-left: auto;
    font-family: Georgia, serif;
}

.bot-message {
    background: var(--soft-teal);
    color: white;
    font-family: 'Playfair Display', serif;
}

.chat-input {
    padding: 2rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
}

.chat-input textarea {
    flex: 1;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    min-height: 60px;
    font-family: Georgia, serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
}

.chat-input button {
    background: var(--deep-blue);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chat-input button:hover {
    background: var(--warm-gold);
}

/* Chat Page Styles */
@media (max-width: 768px) {
    .chat-section {
        padding: 120px 1rem 60px;
    }

    .chat-container {
        height: calc(100vh - 140px);
        display: flex;
        flex-direction: column;
    }

    .chat-header {
        padding: 1rem;
    }

    .chat-header h1 {
        font-size: 1.5rem;
    }

    .chat-header p {
        font-size: 0.9rem;
    }

    .chat-messages {
        flex: 1;
        height: auto;
        padding: 1rem;
    }

    .user-message, .bot-message {
        max-width: 90%;
        padding: 0.8rem;
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .chat-input {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .chat-input textarea {
        width: 100%;
        min-height: 44px; /* Better touch target */
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .chat-input button {
        width: 100%;
        min-height: 44px; /* Better touch target */
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Additional touch-friendly improvements */
@media (hover: none) {
    .chat-input button {
        -webkit-tap-highlight-color: transparent;
    }

    .chat-input textarea {
        -webkit-appearance: none;
        border-radius: 8px;
    }
}

/* Memori Page Styles */
.memori-section {
    padding: 160px 2rem 80px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

.memori-header {
    text-align: center;
    margin-bottom: 3rem;
}

.memori-header h1 {
    font-family: 'Playfair Display', serif;
    color: var(--deep-blue);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.memori-header p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.memori-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 650px;
}

.memori-frame {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    max-width: 800px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .memori-section {
        padding: 120px 1rem 60px;
    }

    .memori-header h1 {
        font-size: 2rem;
    }

    .memori-header p {
        font-size: 1rem;
    }

    .memori-container {
        padding: 1rem;
    }

    .memori-frame {
        height: 500px;
    }
}