/* SurvSync Public Homepage Styles */

:root {
    --survsync-primary: #7A6BC4;
    --survsync-secondary: #67C4B4;
    --survsync-dark: #5D4F9F;
    --survsync-light: #F8F7FC;
    --survsync-text: #333333;
    --survsync-text-light: #6c757d;
    --survsync-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --survsync-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #9a8dd8 0%, #5d4f9f 50%, #7a6bc4 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
    padding: 160px 0 140px;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(103, 196, 180, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(154, 141, 216, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

.beta-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    box-shadow: 0 4px 15px rgba(238, 90, 111, 0.4);
    animation: glow 2s ease-in-out infinite alternate;
}

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

@keyframes glow {
    from { box-shadow: 0 4px 15px rgba(238, 90, 111, 0.4); }
    to { box-shadow: 0 4px 25px rgba(238, 90, 111, 0.8); }
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 30px rgba(218, 165, 32, 0.4), 0 0 20px rgba(122, 107, 196, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 12px 40px rgba(218, 165, 32, 0.6), 0 0 30px rgba(122, 107, 196, 0.5);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-image-wrapper {
    position: relative;
    animation: floatImage 6s ease-in-out infinite;
    width: 100%;
    margin: 0 auto;
    transform: scale(1.15);
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Hero Info Text */
.hero-info-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Early Access Announcement */
.early-access-announcement {
    background: #ffffff;
    border: 2px solid var(--survsync-primary);
    padding: 18px 22px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(122, 107, 196, 0.3), 0 0 15px rgba(103, 196, 180, 0.2);
}

.early-access-text {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #2c2c2c;
    font-weight: 600;
}

.early-access-star {
    color: #DAA520;
    font-size: 1.2rem;
    animation: spin 3s linear infinite;
}

.early-access-title {
    font-size: 1.1rem;
    color: var(--survsync-primary);
}

.early-access-description {
    color: #555;
}

.early-access-link {
    color: var(--survsync-primary);
    text-decoration: underline;
    font-weight: 600;
}

.early-access-apply {
    color: var(--survsync-primary);
    text-decoration: underline;
    font-weight: 700;
    margin-left: 8px;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.hero-carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 500%;
}

.hero-carousel-item {
    width: 20%;
    flex-shrink: 0;
    position: relative;
    line-height: 0;
    font-size: 0;
}

.hero-carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.hero-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-carousel-nav.prev {
    left: 15px;
}

.hero-carousel-nav.next {
    right: 15px;
}

.hero-carousel-nav i {
    color: var(--survsync-primary);
    font-size: 1.2rem;
}

.hero-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-carousel-dot.active {
    background: white;
    width: 35px;
    border-radius: 6px;
}

.hero-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.carousel-caption {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 0 20px;
}

.gallery-link-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Feature Cards */
.feature-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--survsync-shadow-lg);
}

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

.feature-new-badge {
    font-size: 0.7rem;
    z-index: 10;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(103, 196, 180, 0.9) 0%, rgba(154, 141, 216, 0.9) 100%);
    padding: 80px 0;
    color: white;
}

/* Testimonials */
.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: var(--survsync-shadow-md);
    position: relative;
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--survsync-primary);
    position: absolute;
    top: -35px;
    left: 30px;
}

.quote-icon {
    font-size: 3rem;
    opacity: 0.2;
    position: absolute;
    right: 30px;
    top: 20px;
    color: var(--survsync-primary);
}

/* Footer */
footer {
    background-color: #121212;
    color: #e0e0e0;
    padding: 70px 0 20px;
}

.footer-links h5 {
    color: var(--survsync-light);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

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

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--survsync-light);
}

.social-icons {
    font-size: 1.5rem;
}

.social-icons a {
    color: #a0a0a0;
    margin-right: 15px;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: var(--survsync-light);
}

/* Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 40px;
    transition: height 0.3s ease;
}

.home-nav .nav-link {
    color: var(--survsync-text);
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.2s;
}

.home-nav .nav-link:hover {
    color: var(--survsync-primary);
}

.home-nav .nav-link.active {
    color: var(--survsync-primary);
}

/* Buttons */
.btn-get-started {
    background: var(--survsync-primary);
    color: white;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.btn-get-started:hover {
    background: var(--survsync-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 79, 159, 0.4);
    color: white;
}

.btn-hero-primary {
    background: white;
    color: var(--survsync-primary);
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    background: var(--survsync-light);
    color: var(--survsync-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    transform: translateY(-3px);
}

/* Sections */
.feature-section,
.testimonial,
.how-it-works {
    padding-top: 80px;
}

.how-it-works,
.testimonial {
    background-color: #f9f9ff;
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    color: var(--survsync-primary);
    font-weight: 700;
}

.section-title p {
    color: var(--survsync-text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* How It Works */
.step-icon {
    width: 80px;
    height: 80px;
    background: var(--survsync-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(93, 79, 159, 0.3);
}

.step-line {
    position: relative;
    width: 100%;
    height: 3px;
    background: var(--survsync-light);
    opacity: 0.5;
    margin-top: 40px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(-50%);
    }
    50% {
        transform: translateY(-10px) translateX(-50%);
    }
    100% {
        transform: translateY(0) translateX(-50%);
    }
}

/* Pricing */
.pricing-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.pricing-card.popular {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2;
    border-color: var(--survsync-primary);
}

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

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: 10px;
    transform: translateY(-50%);
    background-color: #ff9800;
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 30px;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pricing-alert {
    border-radius: 10px 10px 0 0;
    border: none;
    font-size: 0.85rem;
    padding: 8px;
}

.pricing-popular-card {
    border: 2px solid var(--survsync-secondary);
    background: linear-gradient(135deg, rgba(103, 196, 180, 0.05), rgba(122, 107, 196, 0.05));
}

.pricing-popular-header {
    background: linear-gradient(135deg, var(--survsync-secondary), var(--survsync-primary));
    color: white;
}

.pricing-popular-header-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.pricing-popular-intro {
    color: var(--survsync-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.pricing-limited-badge {
    background-color: #ff5722;
}

.pricing-feature-list {
    font-size: 0.85rem;
    line-height: 1.4;
}

.pricing-info-alert {
    font-size: 0.8rem;
}

.pricing-apply-btn {
    background: linear-gradient(135deg, var(--survsync-secondary), var(--survsync-primary));
    color: white;
    border: none;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-list li:last-child {
    border-bottom: none;
}

.price {
    font-size: 1.1rem;
}

.pricing-card .btn {
    padding: 10px 30px;
    border-radius: 50px;
}

/* Contact Section */
.contact-method {
    text-align: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--survsync-primary), var(--survsync-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 1.5rem;
}

#contact-us .card {
    border: none;
    border-radius: 12px;
}

#contact-us .form-control,
#contact-us .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-us .form-control:focus,
#contact-us .form-select:focus {
    border-color: var(--survsync-primary);
    box-shadow: 0 0 0 0.2rem rgba(122, 107, 196, 0.25);
}

#contact-us .form-label {
    font-weight: 600;
    color: var(--survsync-primary);
    margin-bottom: 5px;
}

#contact-us .btn-primary {
    background: var(--survsync-primary);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#contact-us .btn-primary:hover {
    background: var(--survsync-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(122, 107, 196, 0.4);
}

.contact-form-message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.contact-form-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-form-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Newsletter Section */
.newsletter-section {
    padding: 20px 15px;
    background: rgba(122, 107, 196, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(122, 107, 196, 0.1);
    transition: all 0.3s ease;
}

.newsletter-section:hover {
    background: rgba(122, 107, 196, 0.08);
    border-color: rgba(122, 107, 196, 0.2);
}

.newsletter-icon {
    color: var(--survsync-secondary);
}

.newsletter-form .form-control {
    border: 1px solid #dee2e6;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.9rem;
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.newsletter-form .form-control:focus {
    border-color: var(--survsync-secondary);
    box-shadow: 0 0 0 0.1rem rgba(103, 196, 180, 0.25);
}

.newsletter-form .btn {
    border-radius: 0 6px 6px 0;
    background: var(--survsync-secondary);
    border-color: var(--survsync-secondary);
}

.newsletter-form .btn:hover {
    background: var(--survsync-primary) !important;
    border-color: var(--survsync-primary) !important;
    transform: translateY(-1px);
}

.newsletter-form .input-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.newsletter-disclaimer {
    font-size: 0.75rem;
}

/* Footer */
footer {
    background-color: #121212;
    color: #e0e0e0;
    padding: 70px 0 20px;
}

.footer-logo {
    height: 40px;
}

.footer-hr {
    border-color: #333;
}

.app-store-badge {
    height: 40px;
    border-radius: 8px;
}

/* Contact Section */
#contact-us {
    background-color: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section {
        padding: 80px 0;
    }

    .feature-section,
    .how-it-works,
    .cta-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        font-size: 1rem;
        padding: 12px 30px;
    }

    .step-line {
        display: none;
    }

    .step-card {
        margin-bottom: 40px;
    }

    /* Remove scaling on popular card — causes overflow on tablets */
    .pricing-card.popular {
        transform: none;
    }

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

    #contact-us .contact-method {
        margin-bottom: 30px;
    }

    #contact-us .card-body {
        padding: 20px;
    }

    .newsletter-section {
        text-align: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0 40px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        font-size: 0.95rem;
        padding: 10px 24px;
        width: 100%;
        justify-content: center;
    }

    /* Stop hero image floating animation on small phones (reduces jank) */
    .hero-image-wrapper {
        animation: none;
        transform: none;
    }

    /* Reduce section vertical spacing */
    .feature-section,
    .how-it-works,
    .cta-section,
    .testimonial {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 30px;
    }

    /* Smaller step icons */
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    /* Tighter testimonial cards */
    .testimonial-card {
        padding: 20px;
        margin-top: 40px;
    }

    /* Footer: reduce vertical padding on phones */
    footer {
        padding: 40px 0 15px;
    }

    /* Early access box: tighter */
    .early-access-announcement {
        padding: 14px 16px;
    }

    .early-access-text {
        font-size: 0.95rem;
    }

    /* Hero badge: smaller */
    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
}
