/**
 * Modern Landing Page Styles for Login Page
 * Includes gradient animations, glassmorphism effects, and modern hover effects
 */

/* ===========================
   Hero Section
   =========================== */

.landing-page {
    margin: 0;
    padding: 0;
}

.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Base is dark so neon pops; main color comes from WebGL shader */
    background: linear-gradient(135deg, #12002a 0%, #19003a 45%, #001a33 100%);
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
    padding: 2rem;
}


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

.hero-content {
    text-align: center;
    color: white;
    z-index: 10;
    max-width: 900px;
    animation: fade-in-up 1s ease-out;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.hero-btn-primary {
    background: white;
    color: #667eea;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    color: #667eea;
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    color: white;
}

/* Floating decoration elements */
.hero-decoration {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

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

/* ===========================
   Sticky Header with Login
   =========================== */

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.landing-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #667eea;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
    color: #667eea;
}

.header-login-buttons {
    display: flex;
    gap: 1rem;
}

.header-login-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
}

.btn-login-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-login-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-login-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-login-secondary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

/* ===========================
   Features Section
   =========================== */

.features-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, #f8f9fa, white);
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-title {
    font-size: 3rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.features-subtitle {
    font-size: 1.3rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: fade-in 0.6s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }
.feature-card:nth-child(7) { animation-delay: 0.7s; }
.feature-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

/* Icon styling (Font Awesome) */
.icon-gradient {
    background: linear-gradient(135deg, #ff2bd6 0%, #764ba2 45%, #0fd3ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.feature-icon-fa {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
}

.feature-card:hover .feature-icon-wrap {
    transform: scale(1.08) rotate(4deg);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
}

.feature-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===========================
   More Features Section
   =========================== */

.more-features-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.more-features-content {
    max-width: 800px;
    margin: 0 auto;
}

.more-features-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.more-features-text {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.more-features-btn {
    padding: 1rem 3rem;
    background: white;
    color: #667eea;
    border-radius: 50px;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.more-features-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #667eea;
}

/* ===========================
   CTA Section
   =========================== */

.cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, white, #f8f9fa);
}

.cta-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 3rem;
}

.cta-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.cta-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.cta-card-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-card-icon-fa {
    font-size: 3.5rem;
    line-height: 1;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
}

.cta-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cta-card-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cta-card-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-card-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* ===========================
   Footer Section
   =========================== */

.landing-footer {
    padding: 4rem 2rem 2rem;
    background: #2c3e50;
    color: white;
    text-align: center;
}

.footer-trust {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.footer-trust-text {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.footer-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.footer-stat {
    text-align: center;
}

.footer-stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #667eea;
    display: block;
}

.footer-stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    color: #667eea;
}

/* ===========================
   Login Modals
   =========================== */

.modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 2rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-body {
    padding: 2rem;
}

.btn-close {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.btn-close:hover {
    opacity: 0.8;
}

/* Enhanced form controls in modals */
.modal-body .form-control,
.modal-body .form-select {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.modal-body .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-body .btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.modal-body .alert {
    border-radius: 10px;
    border: none;
}

/* ===========================
   Responsive Design
   =========================== */

/* Tablets */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .features-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-btn {
        padding: 0.9rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 300px;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .header-logo {
        font-size: 1.5rem;
    }
    
    .header-login-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-login-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .features-section {
        padding: 4rem 1rem;
    }
    
    .features-title {
        font-size: 2rem;
    }
    
    .features-subtitle {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .more-features-title {
        font-size: 2rem;
    }
    
    .more-features-text {
        font-size: 1.1rem;
    }
    
    .cta-section {
        padding: 4rem 1rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-options {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-card {
        padding: 2rem;
    }
    
    .footer-stats {
        gap: 2rem;
    }
    
    .footer-stat-number {
        font-size: 2.5rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .features-title {
        font-size: 1.8rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .header-login-buttons {
        gap: 0.3rem;
    }
    
    .header-login-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* ===========================
   Scroll Reveal Animation
   =========================== */

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Utility Classes
   =========================== */

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===========================
   Alerts Integration
   =========================== */

.landing-page .alert {
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: slide-down 0.5s ease-out;
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-page .alert-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.landing-page .alert-success {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
}

.landing-page .alert h2 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.landing-page .alert a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.landing-page .alert a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ===========================
   Print Styles
   =========================== */

@media print {
    .landing-header,
    .hero-section,
    .landing-footer {
        display: none;
    }
}

/* ===========================
   Accessibility
   =========================== */

/* Focus styles for keyboard navigation */
.hero-btn:focus,
.header-login-btn:focus,
.more-features-btn:focus,
.cta-card-btn:focus {
    outline: 3px solid #667eea;
    outline-offset: 3px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card {
        border: 2px solid #000;
    }
    
    .hero-btn {
        border: 2px solid currentColor;
    }
}

/* ===========================
   Touch Device Optimizations
   =========================== */

@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile */
    .header-login-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .hero-btn {
        min-height: 48px;
        padding: 1rem 2.5rem;
    }
    
    /* Remove hover effects on touch devices */
    .feature-card:hover {
        transform: none;
    }
    
    .hero-btn:hover {
        transform: none;
    }
    
    /* But add active states for feedback */
    .hero-btn:active {
        transform: scale(0.95);
    }
    
    .feature-card:active {
        transform: scale(0.98);
    }
}
