/* Custom Bootstrap overrides and additional styles */
:root {
    --bs-primary: #667eea;
    --bs-primary-rgb: 102, 126, 234;
    --bs-secondary: #764ba2;
    --bs-secondary-rgb: 118, 75, 162;
    --bs-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    color: #333;
    background: var(--bs-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background gradients */
.bg-gradient-primary {
    background: var(--bs-gradient) !important;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
}

/* Hero Section Enhancements */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

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

.hero-content .app-icon img {
    transition: all 0.3s ease;
    animation: floatAnimation 3s ease-in-out infinite;
}

.hero-content .app-icon img:hover {
    transform: scale(1.05) rotate(2deg);
}

.hero-image img {
    transition: all 0.3s ease;
    animation: floatAnimation 4s ease-in-out infinite;
}

.hero-image img:hover {
    transform: scale(1.02) rotate(1deg);
}

/* Features Section Enhancements */
.feature-card {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2) !important;
}

.feature-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Screenshots Section Enhancements */
.screenshots-carousel {
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.6) rgba(0, 0, 0, 0.1);
}

.screenshots-carousel::-webkit-scrollbar {
    height: 8px;
}

.screenshots-carousel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.screenshots-carousel::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.6);
    border-radius: 4px;
}

.screenshots-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.8);
}

.screenshot-item {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-10px) scale(1.05);
    filter: brightness(1.1);
}

/* Contact Form Enhancements */
.contact .form-control,
.contact .form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #333;
}

.contact .form-control:focus,
.contact .form-select:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    color: #333;
}

.contact .form-control::placeholder {
    color: rgba(51, 51, 51, 0.6);
}

.contact .form-check-input:checked {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Footer Enhancements */
.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 0;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    #app-name {
        font-size: 2.5rem;
    }
    
    .hero-image img {
        max-width: 280px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

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

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

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Animate.css compatibility */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__delay-1s {
    animation-delay: 1s;
}

.animate__delay-2s {
    animation-delay: 2s;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .features-grid {
        animation: fadeInUp 0.8s ease-out 0.6s both;
    }
    
    .screenshots-carousel {
        animation: fadeInUp 0.8s ease-out 0.8s both;
    }
    
    .footer {
        animation: fadeInUp 0.8s ease-out 1s both;
    }
}

/* Glass morphism effects */
.feature-item {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Improved focus states for accessibility */
.download-btn:focus,
.feature-item:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 4px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    #app-name {
        font-size: 2rem;
    }
    
    .features h2,
    .screenshots h2 {
        font-size: 2rem;
    }
    
    .screenshot-item {
        width: 200px;
    }
}
