/* styles.css - Additional styles for the Navegante landing page */

/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-secondary);
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] header {
    background: rgba(26, 26, 26, 0.9);
}

/* Language Selector Styles */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.language-label {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

#language-select, #language-select-footer {
    padding: 0.5rem;
    border: 2px solid var(--primary-yellow);
    border-radius: 4px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    min-width: 120px;
}

#language-select:hover, #language-select-footer:hover {
    border-color: var(--primary-yellow);
}

#language-select:focus, #language-select-footer:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 2px rgba(255, 232, 0, 0.2);
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .language-selector {
        margin: 1rem 0;
        justify-content: center;
        width: 100%;
    }
}

/* Hero Section Styles */
.hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    flex: 1;
    padding-right: 60px;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.app-buttons {
    margin-top: 30px;
}

.download-button {
    display: inline-block;
    transition: transform 0.3s ease;
}

.download-button:hover {
    transform: translateY(-5px);
}

.download-button img {
    height: 60px;
    width: auto;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Features Section Styles */
.features {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.feature-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 232, 0, 0.1);
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-yellow);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

/* Icon Animations */
.feature-icon-pulse i {
    animation: iconPulse 2s infinite;
    color: var(--primary-yellow);
}

.feature-icon-float i {
    animation: iconFloat 3s ease-in-out infinite;
    color: var(--primary-yellow);
}

.feature-icon-draw i {
    animation: iconDraw 3s ease-in-out infinite;
    color: var(--primary-yellow);
}

/* Feature Card Hover Effect */
.feature-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 232, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.feature-card:hover .feature-hover-effect {
    opacity: 1;
}

.feature-card h3 {
    position: relative;
    z-index: 2;
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    position: relative;
    z-index: 2;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Features Grid Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

/* Screenshot Section Styles */
.screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 50px 20px;
}

/* Screenshots Gallery */
.screenshots-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.screenshot-gallery figure {
    background: var(--bg-primary);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: fadeInUp 0.6s ease backwards;
}

.screenshot-gallery figure:hover {
    transform: translateY(-5px);
}

.screenshot-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.screenshot-gallery figcaption {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.4;
}

/* Carousel Styles */
#screenshotCarousel {
    max-width: 400px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--shadow-md);
}

#screenshotCarousel .carousel-inner {
    border-radius: var(--border-radius);
    overflow: hidden;
}

#screenshotCarousel .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Main container adjustments */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section headings */
section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

section p {
    text-align: center;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .features {
        padding: 4rem 0;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }

    .screenshot-gallery {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    section h2 {
        font-size: 2rem;
    }

    .privacy-content section,
    .terms-content section {
        padding: 1.5rem;
    }
}

/* Support Section Styles */
.support {
    background: var(--bg-primary);
    padding: 50px 20px;
    text-align: center;
}

/* Support Section Enhancement */
.support-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.support-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: var(--primary-yellow);
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(-100px, 100px);
}

.support-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: var(--text-primary);
}

.support-card h3 {
    color: var(--text-primary);
}

.support-card p {
    color: var(--text-secondary);
}

/* FAQ Styles */
.faq-section {
    padding-top: 120px;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-primary);
}

.faq-section h1 {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.faq-item {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-yellow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.faq-item h2 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.faq-item a {
    color: var(--success-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.faq-item a:hover {
    color: var(--primary-yellow);
}

/* Page-specific styles */

/* Hero Background */
.animated-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: var(--primary-yellow);
    opacity: 0.05;
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation: rotateShape 20s linear infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation: rotateShape 15s linear infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation: rotateShape 25s linear infinite;
}

/* Phone Mockup */
.phone-mockup {
    perspective: 1000px;
    transform-style: preserve-3d;
    width: 300px;
    height: 600px;
    margin: 0 auto;
}

.phone-frame {
    width: 100%;
    height: 100%;
    border-radius: 40px;
    background: #333;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 0 0 6px #333;
    transform: rotateY(-20deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.phone-frame:hover {
    transform: rotateY(-15deg) rotateX(3deg);
}

/* Screenshots Carousel */
.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 10px;
    bottom: 20px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: var(--primary-yellow);
}

/* Form Response Message */
.response-message {
    padding: 15px;
    margin-top: 20px;
    border-radius: var(--border-radius);
    display: none;
}

.response-message.success {
    background-color: var(--success-green);
    color: white;
}

.response-message.error {
    background-color: var(--error-red);
    color: white;
}

/* Privacy & Terms Pages */
.privacy-content section,
.terms-content section {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-yellow);
}

.privacy-content h1,
.privacy-content h2,
.privacy-content h3,
.terms-content h1,
.terms-content h2,
.terms-content h3 {
    color: var(--text-primary);
}

.privacy-content p,
.privacy-content ul,
.privacy-content li,
.terms-content p,
.terms-content ul,
.terms-content li {
    color: var(--text-secondary);
}

/* Custom Animations */
@keyframes rotateShape {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes iconFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes iconDraw {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    .animated-shapes, .shape {
        animation: none;
    }
    
    .animate-fade-in,
    .animate-slide-up,
    .animate-slide-up-delay {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .feature-icon-pulse i,
    .feature-icon-float i,
    .feature-icon-draw i {
        animation: none;
    }
}

/* Mobile Responsiveness for FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding-top: 100px;
        padding: 100px 1rem 2rem;
    }

    .faq-section h1 {
        font-size: 2rem;
    }

    .faq-item {
        padding: 1.5rem;
    }
}

/* Animation Enhancement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.support-card,
.screenshot-gallery figure {
    animation: fadeInUp 0.6s ease backwards;
}

.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.4s; }
.feature-card:nth-child(4) { animation-delay: 0.6s; }

/* Dark theme adjustments */
[data-theme="dark"] .feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .feature-hover-effect {
    background: radial-gradient(circle at center, rgba(255, 232, 0, 0.15) 0%, transparent 70%);
}

/* Footer Styles */
footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-align: center;
    padding: 20px 0;
}

footer a {
    color: var(--text-primary);
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-yellow);
}

/* Form Labels - Proper Contrast */
#contactForm label,
.contact-form label,
.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

/* Input and Textarea Styles */
#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--text-secondary);
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#contactForm input[type="text"]:focus,
#contactForm input[type="email"]:focus,
#contactForm textarea:focus,
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 5px rgba(255, 232, 0, 0.3);
    outline: none;
}

/* Terms Page Card Styling */
.terms-content .card {
    background: var(--bg-primary);
    border: 1px solid rgba(255, 232, 0, 0.2);
    border-left: 4px solid var(--primary-yellow);
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.terms-content .card-body {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 1.5rem;
}

.terms-content .card-body h2 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.terms-content .card-body p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.terms-content .card-body ul {
    color: var(--text-secondary);
}

.terms-content .card-body ul li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}