/* Custom CSS for Grassy App Landing Page */

/* Custom Fonts */
@font-face {
    font-family: 'Azalea';
    src: url('../fonts/Azalea.ttf') format('truetype');
    font-display: swap;
}

/* August Masters Green Color Palette */
:root {
    --august-green: #1a5d1a;
    --august-green-light: #2d7d2d;
    --august-green-dark: #0f3a0f;
    --august-green-subtle: #f8fdf8;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* August Green Text Color */
.text-august-green {
    color: var(--august-green) !important;
}

/* August Green Background */
.bg-august-green {
    background-color: var(--august-green) !important;
}

/* Custom Button Styles */
.btn-august-green {
    background-color: var(--august-green);
    border-color: var(--august-green);
    color: white;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-august-green:hover {
    background-color: var(--august-green-light);
    border-color: var(--august-green-light);
    color: white;
    transform: translateY(-1px);
}

.btn-outline-august-green {
    background-color: transparent;
    border-color: var(--august-green);
    color: var(--august-green);
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-august-green:hover {
    background-color: var(--august-green);
    border-color: var(--august-green);
    color: white;
    transform: translateY(-1px);
}

/* Navbar Styles */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-collapse {
    background-color: rgba(26, 93, 26, 0.95);
    backdrop-filter: blur(10px);
    margin-top: 10px;
    border-radius: 8px;
    padding: 15px;
}

.navbar {
    background-color: transparent !important;
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(26, 93, 26, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-weight: 500;
    color: white !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

/* Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

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

.app-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.app-icon i {
    background: linear-gradient(135deg, var(--august-green), var(--august-green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 6px rgba(26, 93, 26, 0.1));
}

.hero-section h1 {
    font-family: 'Azalea', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: white;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 6rem;
    }
    
    .hero-section {
        padding: 0;
    }
    
    .app-icon {
        font-size: 3rem;
    }
}

/* Ensure video loads properly on all devices */
@media (prefers-reduced-motion: reduce) {
    .video-background video {
        animation-play-state: paused;
    }
}

/* Social Media Links */
.social-links {
    color: white;
    font-size: 1.1rem;
    font-weight: 300;
}

.social-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 300;
}

.social-link:hover {
    color: var(--august-green-light);
    text-decoration: underline;
}

.social-separator {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 8px;
}

/* Download Button */
.download-btn {
    background: none;
    border: none;
    padding: 0;
    transition: transform 0.3s ease;
}

.download-btn:hover {
    transform: scale(1.05);
    background: none;
    border: none;
}

.download-badge {
    height: 60px;
    width: auto;
}

/* Feature Items */
.feature-item {
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    display: block;
}

/* Info Section */
.info-section {
    background-color: var(--august-green-subtle);
}

/* Legal Content Styles */
.legal-content {
    line-height: 1.8;
}

.legal-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    color: var(--august-green);
    margin-bottom: 1rem;
}

.legal-section ul {
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

/* Footer Styles */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.footer-links a {
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--august-green) !important;
}

/* Responsive Design */
@media (max-width: 576px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .download-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        margin-bottom: 1rem;
    }
    
    .features-preview .col-md-4 {
        margin-bottom: 2rem;
    }
}

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

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

.hero-section > * {
    animation: fadeInUp 0.8s ease-out;
}

/* iOS-style Elements */
.btn-lg {
    border-radius: 12px;
    font-weight: 600;
}

.card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus {
    box-shadow: 0 0 0 3px rgba(26, 93, 26, 0.25);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .text-august-green {
        color: var(--august-green-dark) !important;
    }
    
    .btn-august-green {
        background-color: var(--august-green-dark);
        border-color: var(--august-green-dark);
    }
}

/* Contact Page Styles */
.contact-content {
    line-height: 1.7;
}

.contact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    background: white;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(26, 93, 26, 0.15);
}

.faq-item {
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
