/* Global Styles */
:root {
    --primary-color: #34C759;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --light-text: #6c757d;
    --white: #ffffff;
    --section-padding: 80px 0;
}

* {
    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(--white);
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

ul {
    list-style: none;
}

section {
    padding: var(--section-padding);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 15px;
}

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

.primary-btn:hover {
    background-color: #2db14e;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Header and Navigation */
header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 600;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    background-color: var(--white);
}

.hero-text {
    flex: 1;
    padding-right: 40px;
}

.hero-text h1 {
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

/* App Mockup Styles */
.app-mockup {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.phone-frame {
    position: relative;
    width: 280px;
    height: 560px;
    background-color: #111;
    border-radius: 36px;
    padding: 10px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.mockup-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-logo {
    font-weight: bold;
    font-size: 20px;
}

.mockup-icons {
    display: flex;
}

.mockup-icon {
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin-left: 10px;
}

.mockup-content {
    padding: 15px;
    height: calc(100% - 110px);
    overflow-y: auto;
}

.mockup-group {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.mockup-group-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.mockup-conversation {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.mockup-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.mockup-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 3px;
}

.mockup-text {
    font-size: 13px;
    color: #666;
}

.mockup-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #eee;
}

.mockup-nav-item {
    width: 40px;
    height: 4px;
    background-color: #ddd;
    border-radius: 2px;
    margin: 0 5px;
}

.mockup-nav-item.active {
    background-color: var(--primary-color);
}

/* Animation for elements */
.feature-card, .step, .platform {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-card.animate, .step.animate, .platform.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu styles */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 100;
        display: none;
    }
    
    .nav-links.show {
        display: flex !important;
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 15px 0;
    }
}

/* Features Section */
#features {
    background-color: var(--secondary-color);
}

.features-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.feature-card {
    flex-basis: calc(33.33% - 30px);
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* How It Works Section */
#how-it-works {
    background-color: var(--white);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.step {
    flex-basis: calc(25% - 30px);
    text-align: center;
    padding: 20px;
}

.step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 20px;
}

/* Platforms Section */
#platforms {
    background-color: var(--white);
    text-align: center;
}

.platforms-container {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.platform {
    flex-basis: calc(25% - 40px);
    margin: 0 20px 40px;
}

.platform-icon {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    background-color: #f8f9fa;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.platform-icon i {
    font-size: 40px;
    color: var(--primary-color);
}

.platform:hover .platform-icon {
    transform: scale(1.1);
}

.platform.disabled {
    opacity: 0.5;
}

.platform.disabled .platform-icon {
    background-color: #e9ecef;
}

.platform.disabled .platform-icon i {
    color: #6c757d;
}

.coming-soon {
    font-size: 0.8em;
    color: #6c757d;
    font-style: italic;
    margin-left: 5px;
}

/* FAQ Section */
#faq {
    background-color: var(--white);
    padding: var(--section-padding);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px;
    background-color: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.faq-toggle {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
    color: var(--light-text);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .faq-question h3 {
        font-size: 1.1rem;
    }
}

/* Download Section */
#download {
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--text-color);
}

#download h2, #download p {
    color: var(--text-color);
}

.download-buttons {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.download-btn {
    display: flex;
    align-items: center;
    margin: 0 15px;
    transition: transform 0.3s ease;
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
}

.download-btn:hover {
    transform: scale(1.05);
}

.download-btn i {
    font-size: 30px;
    margin-right: 10px;
}

.download-text {
    display: flex;
    flex-direction: column;
}

.small-text {
    font-size: 12px;
    opacity: 0.8;
}

.big-text {
    font-size: 18px;
    font-weight: 600;
}

.download-btn.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #666;
}

.download-btn.disabled:hover {
    transform: none;
}

/* Footer */
footer {
    background-color: #333;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-logo-img {
    height: 200px;
    width: auto;
}

.footer-links {
    display: flex;
}

.footer-column {
    margin-left: 60px;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
    border-top: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: var(--white);
    margin-left: 20px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* App Screenshots Carousel */
#app-screenshots {
    background-color: var(--secondary-color);
    padding: var(--section-padding);
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
    will-change: transform;
}

.carousel-slide {
    min-width: 200px;
    max-width: 200px;
    flex: 0 0 auto;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    cursor: pointer;
}

.carousel-prev,
.carousel-next {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.carousel-prev {
    margin-right: 20px;
}

.carousel-next {
    margin-left: 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: #2db14e;
}

@media (max-width: 768px) {
    .carousel-slide {
        min-width: 180px;
        max-width: 180px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        padding-bottom: 40px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .feature-card {
        flex-basis: 100%;
        margin-bottom: 30px;
    }

    .step {
        flex-basis: calc(50% - 30px);
        margin-bottom: 40px;
    }

    .platform {
        flex-basis: calc(50% - 40px);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    .step {
        flex-basis: 100%;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        margin-top: 30px;
        flex-wrap: wrap;
    }

    .footer-column {
        margin-left: 0;
        margin-right: 30px;
        margin-bottom: 30px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .social-links {
        margin-top: 20px;
    }

    .social-links a {
        margin: 0 10px;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    right: 25px;
    top: 15px;
    color: #333;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

/* Security Section */
#security {
    background-color: var(--secondary-color);
    padding: var(--section-padding);
}

.security-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 30px;
}

.security-card {
    flex: 1 1 calc(25% - 30px);
    min-width: 250px;
    background-color: var(--secondary-color);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.security-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.security-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.security-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.security-card p {
    color: var(--light-text);
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .security-card {
        flex: 1 1 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .security-card {
        flex: 1 1 100%;
    }
}

/* Digital Health Section */
#digital-health {
    background-color: var(--white);
    padding: var(--section-padding);
}

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

.health-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.health-text {
    flex: 1;
}

.health-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.health-text p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 30px;
    line-height: 1.6;
}

.health-benefits {
    list-style: none;
}

.health-benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.health-benefits i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.health-image {
    flex: 1;
    text-align: center;
}

.health-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .health-content {
        flex-direction: column;
        text-align: center;
    }

    .health-benefits li {
        justify-content: center;
    }

    .health-image {
        order: -1;
    }
}
