/* Custom Properties */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --accent-color: #FF9800;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --danger-color: #F44336;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.brand-icon {
    color: var(--accent-color);
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem !important;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

.cta-btn-nav {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: var(--border-radius);
    color: white !important;
    font-weight: 600;
    padding: 0.5rem 1.5rem !important;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.cta-btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.4);
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

.flash-messages .alert {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: none;
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 100px 0 50px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    margin-top: 2rem;
}

.cta-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.4);
    color: white;
}

.cta-btn i {
    animation: flicker 2s infinite;
}

/* Phone Mockup */
.hero-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.phone-mockup {
    width: 280px;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    padding: 20px;
    overflow: hidden;
}

.app-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-light);
}

.app-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
}

.app-header i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.chore-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.chore-item:hover {
    transform: translateX(5px);
}

.chore-item i {
    font-size: 1.2rem;
}

.chore-item span:first-of-type {
    flex: 1;
    font-weight: 500;
}

.streak, .due, .social {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    background: white;
    color: var(--text-dark);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@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);
    }
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.video-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(50px);
}

.video-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

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

.video-container {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: #000;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--transition);
}

.video-placeholder:hover::before {
    opacity: 1;
}

.play-icon {
    font-size: 3rem;
    color: white;
    z-index: 2;
    transition: var(--transition);
}

.video-placeholder:hover .play-icon {
    transform: scale(1.1);
}

.video-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    opacity: 0;
    transition: var(--transition);
}

.video-container:hover .video-overlay,
.video-placeholder .video-overlay {
    opacity: 1;
}

.video-title {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.video-caption {
    padding: 1.5rem;
}

.video-caption h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.video-caption p {
    color: var(--text-light);
    margin: 0;
}

.video-card.featured {
    max-width: 600px;
    margin: 0 auto;
}

.video-card.loading .video-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    z-index: 3;
}

.video-card.error .video-container::after {
    content: '⚠️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--danger-color);
    z-index: 3;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Comparison Section */
.comparison-section {
    padding: 100px 0;
    background: white;
}

.comparison-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(50px);
    border: 3px solid transparent;
}

.comparison-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.comparison-card.before {
    border-color: var(--danger-color);
}

.comparison-card.after {
    border-color: var(--success-color);
    background: linear-gradient(135deg, #e8f5e8, #f0fff0);
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.comparison-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.comparison-header i {
    font-size: 2rem;
}

.before .comparison-header i {
    color: var(--danger-color);
}

.after .comparison-header i {
    color: var(--success-color);
}

.comparison-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.comparison-item:hover {
    transform: translateX(5px);
}

.comparison-item i {
    font-size: 1.2rem;
}

.comparison-item span {
    font-weight: 500;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(50px);
}

.testimonial-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

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

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.author-info h5 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.waitlist-form {
    max-width: 500px;
    margin: 0 auto;
}

.waitlist-form .input-group {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.waitlist-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 0;
}

.waitlist-form .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.waitlist-form .btn {
    background: var(--accent-color);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 0;
    transition: var(--transition);
}

.waitlist-form .btn:hover {
    background: #e68900;
    transform: translateY(-2px);
}

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

.footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .phone-mockup {
        width: 240px;
        height: 420px;
    }
    
    .video-card {
        margin-bottom: 2rem;
    }
    
    .comparison-card {
        margin-bottom: 2rem;
    }
    
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 360px;
    }
    
    .waitlist-form .input-group {
        flex-direction: column;
    }
    
    .waitlist-form .form-control,
    .waitlist-form .btn {
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }
    
    .popup-content {
        padding: 2rem 1.5rem;
    }
    
    .popup-content h3 {
        font-size: 1.5rem;
    }
    
    .popup-content p {
        font-size: 1rem;
    }
    
    .popup-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature-item {
        flex-direction: row;
        justify-content: center;
    }
    
    .feature-item i {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Success Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-popup {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
}

.popup-overlay.show .success-popup {
    transform: scale(1) translateY(0);
}

.popup-content {
    padding: 3rem 2rem;
    text-align: center;
}

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

.popup-icon i {
    font-size: 4rem;
    color: var(--success-color);
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.popup-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.popup-features {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.feature-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.popup-close-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
    margin-top: 1rem;
}

.popup-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(76, 175, 80, 0.4);
}

.popup-close-btn i {
    animation: flicker 2s infinite;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.in-view {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.in-view {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.in-view {
    opacity: 1;
    transform: translateX(0);
}
