/* Main Styles */

/* Variables */
:root {
    --primary-color: #404040;
    --secondary-color: #6c757d;
    --accent-color: #808080;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --danger-color: #505050;
    --success-color: #707070;
    --max-width: 1200px;
}

/* Base Styles */
body {
    background-color: #fff;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #606060;
}

.btn-secondary:hover {
    background-color: #f8f9fa;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 26px;
    height: 26px;
    margin-right: 8px;
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    transition: all 0.2s;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
    text-decoration: none;
}

nav ul li a.active {
    border-bottom: 2px solid var(--primary-color);
}

/* Hero Section */
.hero {
    background-color: #f5f7fb;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

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

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.hero-images {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup {
    width: 52%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.mockup.light-mode {
    margin-right: 10px;
    position: relative;
    z-index: 2;
}

.mockup.dark-mode {
    margin-left: 10px;
    position: relative;
    z-index: 1;
}

.mockup:hover {
    transform: scale(1.05);
    z-index: 3;
}

.app-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Features Section */
.features {
    text-align: center;
    background-color: white;
    padding: 6rem 0;
}

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

.features h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: left;
}

.features h3 span {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: normal;
    margin-left: 0.5rem;
}

/* Feature Carousel */
.feature-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    min-height: 400px;
}

.feature-slide {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    animation-fill-mode: forwards;
}

.feature-slide.active {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    opacity: 1;
    transform: translateX(0);
}

.feature-content {
    flex: 1;
    text-align: left;
    padding-right: 1rem;
}

.feature-content p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.carousel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    gap: 2rem;
}

.prev-btn, .next-btn {
    background-color: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
}

.prev-btn:hover, .next-btn:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

.carousel-dots {
    display: flex;
    gap: 0.8rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dot:hover {
    background-color: #bbb;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Old Feature Grid (keeping for reference) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature {
    padding: 2rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-icon img {
    width: 80px;
    height: 80px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    filter: contrast(0.95);
}

.feature-icon img:hover {
    transform: scale(1.05);
    background-color: #f0f2f5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    filter: contrast(1.05);
}

.feature h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Slideshow Section */
.slideshow-section {
    padding: 4rem 0;
    background-color: #f5f7fb;
}

.slideshow-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.slideshow-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.slideshow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.slideshow h3 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1rem;
}

.slideshow-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.slideshow-step {
    flex: 1;
    min-width: 250px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.slideshow-step img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

@media (max-width: 768px) {
    .slideshow-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .slideshow-step {
        max-width: 80%;
    }
    
    .feature-slide.active {
        flex-direction: column;
    }
    
    .feature-content {
        text-align: center;
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .feature-image {
        width: 100%;
    }
    
    .feature-image img {
        max-width: 80%;
    }
    
    /* Responsive adjustments for how-it-works section */
    .workflow-step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .explanation, .server-speech, .app-result {
        width: 100%;
        padding: 1rem 0;
    }
    
    .explanation h3 {
        text-align: center;
    }
    
    .explanation p {
        text-align: center;
    }
    
    .result-images {
        width: 100%;
        flex-wrap: wrap;  /* Allow wrapping on smaller screens */
        margin: 0 auto;
    }
    
    .result-image,
    .result-images .light-mode-img,
    .result-images .dark-mode-img {
        width: 100%;
        max-width: 230px;
    }
}

/* Feature Showcase - Right to Left Layout */
.feature-showcase {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    text-align: left;
    gap: 2rem;
}

.feature-showcase.reverse {
    flex-direction: row-reverse;
}

.feature-images {
    flex: 1;
    text-align: center;
}

.feature-images img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
}

.feature-images p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
}

.feature-content {
    flex: 2;
}

.feature-content p {
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .feature-showcase,
    .feature-showcase.reverse {
        flex-direction: column;
    }
    
    .features h3 {
        text-align: center;
    }
    
    .feature-content {
        text-align: center;
    }
}

/* CTA Section */
.cta {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 5rem 0;
    background-image: url('../images/shaded_background.png');
    background-size: cover;
    background-position: center;
}

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

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.cta .btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

/* About Page */
.page-header {
    background-color: #f5f7fb;
    text-align: center;
    padding: 3rem 0;
}

.page-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
}

.about-story, .about-mission {
    padding: 5rem 0;
}

.about-story .container, .about-mission .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-content, .about-image {
    flex: 1;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.about-content p {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.team {
    background-color: #f5f7fb;
    text-align: center;
    padding: 5rem 0;
}

.team h3 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-member h4 {
    margin-top: 1rem;
    font-size: 1.25rem;
}

.team-member p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Contact Page */
.contact-main .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info h3, .contact-form h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.contact-methods {
    margin: 2rem 0;
}

.contact-method {
    margin-bottom: 1.5rem;
}

.contact-method h4 {
    font-size: 1.25rem;
    color: var(--dark-color);
}

.social-links h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    background-color: #f5f7fb;
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
}

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

.map {
    padding: 3rem 0;
}

.map h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.map-placeholder {
    background-color: #f5f7fb;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    border-radius: 0.5rem;
}

.faq {
    background-color: #f5f7fb;
    padding: 4rem 0;
}

.faq h3 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.75rem;
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.faq-item p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
}

.footer-col ul li a:hover {
    color: white;
    text-decoration: none;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* How It Works Section */
.how-it-works {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* AI Quote Styling */
.ai-quote {
    background-color: #f5f7fb;
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.ai-quote p {
    font-style: italic;
    color: var(--secondary-color);
    margin: 0;
}

/* Light/Dark Mode Image Toggle */
.light-mode-img {
    display: block;
}

.dark-mode-img {
    display: block;
}

/* Remove the media query toggle to show both images all the time */

/* New Workflow Structure */
.workflow-wrapper {
    margin-bottom: 5rem;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.workflow-header {
    padding: 2rem;
    background-color: #fafafa;
    border-bottom: 1px solid #eee;
}

.workflow-header h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: var(--dark-color);
}

.workflow-header p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.workflow-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* app-result is now flex: 1.5 (defined above) */

.explanation h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.explanation p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.server-speech-container {
    max-width: 600px;
    margin: 0 auto;
}

.speech-bubble {
    position: relative;
    background-color: #f0f4f8;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    margin-bottom: 15px;
    font-size: 1rem;
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.speech-bubble:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 30px;
    border-width: 15px 15px 0;
    border-style: solid;
    border-color: #f0f4f8 transparent transparent;
}

.speech-icon-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-left: 10px;
}

.speech-icon {
    width: 36px;
    height: 36px;
    margin-right: 8px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.speech-bubble p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--secondary-color);
    margin: 0;
}

.app-screenshots {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0 auto;
}

.screenshot {
    width: 240px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.screenshot:hover {
    transform: scale(1.03);
}

/* Media query for extra large screens */
@media (min-width: 1200px) {
    .screenshot {
        width: 285px;
    }
    
    .workflow-wrapper {
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }
}

.result-image:hover {
    transform: scale(1.05);
    z-index: 1;
}

.caption {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    /* Improve container padding */
    .container {
        padding: 0 1rem;
    }
    
    /* Better hero section */
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-images {
        padding: 0 20px;
    }
    
    .mockup {
        width: 55%;
    }
    
    .app-buttons {
        justify-content: center;
        gap: 0.75rem;
    }
    
    /* Improve section spacing */
    section {
        padding: 3rem 0;
    }
    
    .how-it-works {
        padding: 3rem 0;
    }
    
    .about-story .container, .about-mission .container {
        flex-direction: column;
    }
    
    .about-mission .container {
        flex-direction: column-reverse;
    }
    
    .about-image {
        margin-bottom: 2rem;
    }
    
    .about-content {
        text-align: center;
    }
    
    .workflow-wrapper {
        margin-bottom: 3rem;
    }
    
    .workflow-header {
        padding: 1.5rem;
    }
    
    .workflow-content {
        padding: 1.5rem;
    }
    
    .server-speech-container {
        width: 100%;
    }
    
    .app-screenshots {
        gap: 15px;
    }
    
    .screenshot {
        width: 100%;
        max-width: 230px;
    }
}

@media (max-width: 576px) {
    /* Better mobile header */
    header .container {
        padding: 0.75rem 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: none;
    }
    
    nav ul li a.active {
        background-color: #f5f7fb;
        border-bottom: none;
    }
    
    /* Improved mobile hero */
    .hero {
        padding: 3rem 0;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-images {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .mockup {
        width: 70%;
        margin: 0;
    }
    
    .mockup.light-mode,
    .mockup.dark-mode {
        margin: 0;
    }
    
    /* Better button layout */
    .app-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    /* Fix font sizes */
    .cta h2 {
        font-size: 1.75rem;
    }
    
    .how-it-works h2 {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}