/* Home Page Specific Styles */

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2d3748;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Global animations and transitions */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hero section with full-screen background image */
.hero {
    /* Layered gradient over background image for readability */
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.6)),
        url("https://images.pexels.com/photos/7131321/pexels-photo-7131321.jpeg?auto=compress&cs=tinysrgb&w=1600")
        center/cover no-repeat fixed;
    color: white;
    padding: 6rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 70px); /* full viewport minus sticky header */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content {
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.1vw, 1.2rem);
    margin-bottom: 0.75rem;
    opacity: 0.96;
    line-height: 1.7;
}

/* Hide old hero image block now that the section uses a full background */
.hero-image {
    display: none;
}

/* Button styles */
.btn-primary {
    background-color: white;
    color: #667eea;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    outline: none;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid white;
    cursor: pointer;
    font-size: 1rem;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: white;
    color: #667eea;
    transform: translateY(-2px);
    outline: none;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-primary.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Breathing exercise section */
.breathing-section {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    text-align: center;
}

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

.breathing-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 4rem;
    color: white;
}

.breathing-circle-container {
    position: relative;
}

.breathing-circle {
    width: min(300px, 80vw);
    height: min(300px, 80vw);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.breathing-circle.active {
    animation: breathe 8s infinite ease-in-out;
}

.breathing-circle p {
    color: white;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 500;
    margin: 0;
}

.breathing-instruction {
    margin-top: 2rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.9);
}

.breathing-control {
    margin-top: 2rem;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* Stacked module sections (Sleep, Stress, Mental, Space, Breathe, Focus, Release, Listen) */
.module-section {
    padding: 4.5rem 1.5rem;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.module-section:nth-of-type(even) {
    background-color: #f7fafc;
}

.module-container {
    max-width: 800px;
    margin: 0 auto;
}

.module-section h2 {
    font-size: clamp(1.6rem, 3.3vw, 2.1rem);
    margin-bottom: 1.25rem;
    color: #1a202c;
}

.module-section p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.module-section p:last-of-type {
    margin-bottom: 1.75rem;
}

.module-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.module-actions .btn-primary {
    padding-inline: 1.75rem;
}

.module-sleep {
    border-top: 1px solid #e2e8f0;
}

/* Soft gradient accent for modules */
.module-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(102, 126, 234, 0.12), transparent 55%);
    pointer-events: none;
    opacity: 0.9;
}

.module-container {
    position: relative;
    z-index: 1;
}

/* Slightly different accents per key module for subtle flair */
.module-sleep::before {
    background: radial-gradient(circle at top left, rgba(99, 179, 237, 0.16), transparent 60%);
}

.module-stress::before {
    background: radial-gradient(circle at top left, rgba(244, 114, 182, 0.14), transparent 60%);
}

.module-mental::before {
    background: radial-gradient(circle at top left, rgba(129, 230, 217, 0.16), transparent 60%);
}

.module-space::before {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 60%);
}

.module-breathe::before {
    background: radial-gradient(circle at top left, rgba(72, 187, 120, 0.16), transparent 60%);
}

.module-focus::before {
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.16), transparent 60%);
}

.module-release::before {
    background: radial-gradient(circle at top left, rgba(244, 114, 182, 0.12), transparent 60%);
}

.module-listen::before {
    background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.16), transparent 60%);
}

/* Listen list layout */
.listen-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Testimonials section */
.testimonials-section {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

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

.testimonials-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 4rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-card p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-rating .star {
    color: #FFD700;
    font-size: 1.2rem;
    margin-right: 0.25rem;
}

.testimonial-author {
    margin-top: 1.5rem;
}

.testimonial-card .author {
    font-weight: 600;
    opacity: 0.95;
    font-size: 1rem;
}

.testimonial-card .author-role {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* CTA section */
.cta-section {
    padding: 8rem 2rem;
    background-color: #f8f9fa;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://neeko-copilot.bytedance.net/api/text2image?prompt=peaceful%20ocean%20waves%20at%20sunset%20calm%20serene&image_size=landscape_16_9');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    z-index: 0;
}

.cta-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: #2d3748;
}

.cta-section > .cta-container > p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 3rem;
    color: #718096;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #e53e3e;
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: #38a169;
}

.cta-form .btn-primary {
    width: 100%;
    margin-bottom: 1rem;
}

.form-note {
    font-size: 0.875rem;
    color: #718096;
    margin: 0;
    text-align: center;
}

/* FAQ section */
.faqs-section {
    padding: 8rem 2rem;
    background-color: white;
}

.faqs-container {
    max-width: 900px;
    margin: 0 auto;
}

.faqs-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 4rem;
    color: #2d3748;
}

.faqs-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    border-radius: 12px;
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: inherit;
    transition: background-color 0.3s ease;
}

.faq-question:hover,
.faq-question:focus {
    background-color: rgba(102, 126, 234, 0.05);
    outline: none;
}

.faq-question h3 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    margin: 0;
    color: #2d3748;
    font-weight: 600;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: #667eea;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item[aria-expanded="true"] .faq-answer,
.faq-answer:not([hidden]) {
    padding: 0 2rem 1.5rem 2rem;
    max-height: 500px;
}

.faq-answer p {
    color: #718096;
    line-height: 1.7;
    margin: 0;
}

/* Footer */
footer {
    background-color: #2d3748;
    color: white;
    padding: 4rem 2rem 2rem;
}

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

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-section ul li a:hover,
.footer-section ul li a:focus {
    color: white;
    padding-left: 4px;
    outline: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.footer-social a:hover,
.footer-social a:focus {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    outline: none;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #2d3748;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-container {
        gap: 3rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-links[aria-hidden="false"] {
        transform: translateX(0);
    }
    
    .nav-links li {
        width: 100%;
        margin: 0;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        width: 100%;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero h1 {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .breathing-circle {
        width: min(250px, 70vw);
        height: min(250px, 70vw);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonial-card {
        text-align: center;
    }
    
    .cta-form {
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .breathing-section,
    .features-section,
    .testimonials-section,
    .cta-section,
    .faqs-section {
        padding: 6rem 1rem;
    }
    
    .breathing-circle {
        width: min(200px, 60vw);
        height: min(200px, 60vw);
    }
    
    .breathing-circle p {
        font-size: 1.2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .cta-form {
        padding: 1.5rem;
    }
    
    footer {
        padding: 3rem 1rem 2rem;
    }
    
    .faq-question {
        padding: 1.25rem 1.5rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem;
    }
    
    .faq-item[aria-expanded="true"] .faq-answer,
    .faq-answer:not([hidden]) {
        padding: 0 1.5rem 1.25rem 1.5rem;
    }
}

/* Print styles */
@media print {
    .hero,
    .breathing-section,
    .testimonials-section,
    .cta-section,
    footer {
        background: white !important;
        color: #2d3748 !important;
    }
    
    .nav-links,
    .mobile-menu-toggle,
    .footer-social {
        display: none;
    }
}
