/* ========================================
   FAAPSCAN - HEALTH & WELLNESS APP
   COLOR SCHEME: GREEN GRADIENTS & GLOSSY EFFECTS
   ======================================== */

:root {
    --primary-green: #2ecc71;
    --primary-dark-green: #27ae60;
    --secondary-green: #1abc9c;
    --accent-green: #16a085;
    --light-green: #d5f4e6;
    --white: #ffffff;
    --dark: #0f2027;
    --light: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --danger: #e74c3c;
    --warning: #f39c12;
    --success: #27ae60;
}

* {
    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-dark);
    overflow-x: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

html {
    scroll-behavior: smooth;
}

/* ========================================
   NAVIGATION BAR
   ======================================== */

.navbar {
    background: linear-gradient(135deg, var(--primary-dark-green) 0%, var(--secondary-green) 100%);
    box-shadow: 0 8px 32px rgba(46, 204, 113, 0.2);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white) !important;
    letter-spacing: 1px;
}

.navbar-brand img {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.navbar-brand:hover img {
    transform: scale(1.08);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link:hover {
    color: var(--white) !important;
}

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

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    animation: slideInLeft 0.8s ease;
}

.hero-section h1 {
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.3rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-download {
    background: var(--white);
    color: var(--primary-green);
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    background: #f0f0f0;
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    z-index: 1;
    animation: slideInRight 0.8s ease;
    max-width: 350px;
    margin: 0 auto;
}

.hero-image img {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
    max-height: 500px;
    object-fit: contain;
}

.hero-image:hover img {
    transform: scale(1.03);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features-section {
    background: var(--white);
    padding: 80px 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark-green);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(26, 188, 156, 0.1) 100%);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(46, 204, 113, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(46, 204, 113, 0.2);
    border-color: var(--primary-green);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15) 0%, rgba(26, 188, 156, 0.15) 100%);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.3);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    animation: pulse 0.6s ease;
}

.feature-card h5 {
    color: var(--primary-dark-green);
    font-weight: 700;
    margin-bottom: 1rem;
}

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

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */

.how-it-works {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f3ef 100%);
    padding: 80px 20px;
}

.step-box {
    text-align: center;
    padding: 40px 20px;
    animation: fadeInUp 0.6s ease;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
}

.step-image {
    margin: 20px 0;
    max-height: 250px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.step-box:hover .step-image img {
    transform: scale(1.05);
}

.step-box h5 {
    color: var(--primary-dark-green);
    font-weight: 700;
    margin: 20px 0 10px;
    font-size: 1.3rem;
}

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

/* ========================================
   BENEFITS SECTION
   ======================================== */

.benefits-section {
    background: var(--white);
    padding: 80px 20px;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05) 0%, rgba(26, 188, 156, 0.05) 100%);
    border-radius: 15px;
    border-left: 4px solid var(--primary-green);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.15);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(26, 188, 156, 0.1) 100%);
}

.benefit-icon {
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-green);
}

.benefit-item h5 {
    color: var(--primary-dark-green);
    font-weight: 700;
    margin-bottom: 5px;
}

.benefit-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    padding: 80px 20px;
}

.stat-box {
    padding: 30px;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.stat-box:nth-child(1) { animation-delay: 0.1s; }
.stat-box:nth-child(2) { animation-delay: 0.2s; }
.stat-box:nth-child(3) { animation-delay: 0.3s; }
.stat-box:nth-child(4) { animation-delay: 0.4s; }

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-box p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-dark-green) 0%, var(--accent-green) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-section .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-section .btn-light {
    color: var(--primary-green);
    font-weight: 700;
    border-radius: 50px;
    padding: 12px 30px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    background: #f0f0f0;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    background: var(--white);
    padding: 80px 20px;
}

.contact-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05) 0%, rgba(26, 188, 156, 0.05) 100%);
    border-radius: 15px;
    border-left: 4px solid var(--primary-green);
}

.contact-info h5 {
    color: var(--primary-dark-green);
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-info a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-dark-green);
}

.form-control {
    background: rgba(46, 204, 113, 0.05);
    border: 2px solid rgba(46, 204, 113, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.form-control:focus {
    background: var(--white);
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.25);
}

.form-label {
    color: var(--primary-dark-green);
    font-weight: 600;
    margin-bottom: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border: none;
    border-radius: 50px;
    font-weight: 700;
    padding: 12px 40px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(46, 204, 113, 0.4);
    background: linear-gradient(135deg, var(--primary-dark-green), var(--accent-green));
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: linear-gradient(135deg, var(--dark) 0%, #1a3a3a 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 50px 20px 20px;
}

.footer h5 {
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-green);
}

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

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
    }

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

    .hero-section .lead {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .feature-card {
        margin-bottom: 1rem;
    }

    .d-flex.gap-3 {
        flex-direction: column;
    }

    .d-flex.gap-3 .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: auto;
        padding: 30px 15px;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section .lead {
        font-size: 0.95rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .step-image {
        max-height: 150px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }
}

/* ========================================
   APP SHOWCASE CAROUSEL
   ======================================== */

.app-showcase {
    background: var(--white);
    padding: 80px 20px;
}

.app-screenshot {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(46, 204, 113, 0.25);
    max-height: 500px;
    max-width: 320px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

#appCarousel {
    border-radius: 20px;
    overflow: hidden;
}

#appCarousel .carousel-inner {
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05) 0%, rgba(26, 188, 156, 0.05) 100%);
    padding: 20px;
}

#appCarousel .carousel-indicators {
    bottom: -50px;
}

#appCarousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-green);
    opacity: 0.5;
    margin: 0 8px;
    transition: all 0.3s ease;
}

#appCarousel .carousel-indicators [data-bs-target].active {
    opacity: 1;
    width: 30px;
    border-radius: 6px;
}

#appCarousel .carousel-control-prev,
#appCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

#appCarousel .carousel-control-prev:hover,
#appCarousel .carousel-control-next:hover {
    opacity: 1;
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.3);
}

/* ========================================
   UTILITY CLASS OVERRIDES
   ======================================== */

.text-primary {
    color: var(--primary-dark-green) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green)) !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-dark-green);
}

a {
    color: var(--primary-green);
}

a:hover {
    color: var(--primary-dark-green);
}

.page-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f3ef 100%) !important;
}

.page-header h1 {
    color: var(--primary-dark-green) !important;
}
