/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Root Variables */
:root {
    --primary-green: #28a745;
    --secondary-green: #20c997;
    --light-green: #d4edda;
    --dark-green: #155724;
    --warning-yellow: #ffc107;
    --primary-blue: #007bff;
    --info-blue: #17a2b8;
    --danger-red: #dc3545;
    --purple: #6f42c1;
    --gradient-green: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    --gradient-blue: linear-gradient(135deg, #007bff 0%, #17a2b8 100%);
    --box-shadow-light: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-medium: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --border-radius: 0.75rem;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Navigation Styles */
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

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

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

/* Hero Section */
.hero-section {
    background: var(--gradient-green);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="30" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.text-success-light {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Phone Mockup */
.phone-mockup {
    max-width: 300px;
    margin: 0 auto;
}

.phone-frame {
    background: #1a1a1a;
    border-radius: 2rem;
    padding: 1rem;
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.3);
}

.phone-screen {
    aspect-ratio: 9/16;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.app-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

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

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

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
    border-color: var(--primary-green);
}

.feature-icon {
    width: 60px;
    height: 60px;
}

/* Step Cards */
.step-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    font-weight: bold;
}

.step-card {
    padding: 2rem 1rem;
}

/* Background Gradients */
.bg-gradient-success {
    background: var(--gradient-green) !important;
}

.bg-purple {
    background-color: var(--purple) !important;
}

/* Custom Button Styles */
.btn {
    border-radius: 2rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-medium);
}

.btn-lg {
    padding: 0.75rem 2rem;
}

/* Notify Me Form Styles */
.notify-form-container {
    max-width: 500px;
    margin: 0 auto;
}

.notify-signup-section {
    max-width: 600px;
    margin: 0 auto;
}

.notify-form-container .form-control,
.notify-signup-section .form-control {
    border-radius: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.notify-form-container .form-control::placeholder,
.notify-signup-section .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.notify-form-container .form-control:focus,
.notify-signup-section .form-control:focus {
    border-color: var(--warning-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    background: rgba(255, 255, 255, 0.2);
}

.notify-form-container .alert {
    backdrop-filter: blur(10px);
}

/* Notification Toast Improvements */
.alert.position-fixed {
    border-radius: 1rem;
    border: none;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.alert-success {
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.9);
    color: white;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.9);
    color: #212529;
}

/* Privacy Policy Styles */
.privacy-content .card {
    transition: all 0.3s ease;
}

.privacy-content .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-medium);
}

.privacy-content h2 {
    position: relative;
    padding-bottom: 0.5rem;
}

.privacy-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-green);
    border-radius: 2px;
}

/* Logo Styling */
.logo-white {
    filter: brightness(0) invert(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .phone-mockup {
        max-width: 250px;
    }
    
    .feature-card,
    .privacy-content .card {
        margin-bottom: 1rem;
    }
    
    .step-card {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .feature-icon,
    .step-number {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i {
        font-size: 1rem;
    }
    
    .step-number {
        font-size: 1.2rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--gradient-green) border-box;
}

/* Loading and Transition States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .animate-float,
    .hero-section::before {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .privacy-content .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-float,
    .animate-fade-in,
    .animate-fade-in-delay,
    .animate-fade-in-delay-2 {
        animation: none !important;
    }
}

/* Focus States for Better Accessibility */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .text-muted {
        color: #333 !important;
    }
    
    .bg-light {
        background-color: #f8f9fa !important;
    }
}
