/* Enhanced Modern Responsive Design for Great Sanatan */

/* Modern CSS Grid and Flexbox Enhancements */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Modern Card Design */
.modern-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF9933, #D4AF37);
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Gradient Backgrounds */
.gradient-saffron {
    background: linear-gradient(135deg, #FF9933 0%, #FF7722 100%);
}

.gradient-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #F5E1A4 100%);
}

.gradient-spiritual {
    background: linear-gradient(135deg, #FF9933 0%, #D4AF37 50%, #FF7722 100%);
}

/* Modern Typography */
.text-gradient {
    background: linear-gradient(135deg, #FF9933, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Enhanced Buttons */
.btn-modern {
    background: linear-gradient(135deg, #FF9933, #FF7722);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 153, 51, 0.3);
}

/* Glass Morphism Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
}

/* Modern Loading Animations */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FF9933;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Slide In Animation */
.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Modern Form Styling */
.modern-form-group {
    position: relative;
    margin-bottom: 2rem;
}

.modern-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.modern-input:focus {
    outline: none;
    border-color: #FF9933;
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}

.modern-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
}

.modern-input:focus + .modern-label,
.modern-input:valid + .modern-label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: #FF9933;
    background: #fff;
    padding: 0 0.5rem;
}

/* Enhanced Navigation */
.modern-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-item {
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF9933, #D4AF37);
    transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

/* Modern Hero Section */
.hero-modern {
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.9), rgba(212, 175, 55, 0.9));
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF9933, #FF7722);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(255, 153, 51, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 153, 51, 0.4);
}

/* Progress Indicators */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF9933, #D4AF37);
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Modern Accordion */
.accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    padding: 1.5rem;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: #f0f0f0;
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 1.5rem;
    max-height: 500px;
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    .modern-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modern-card {
        padding: 1.5rem;
    }
    
    .btn-modern {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .fab {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 1rem;
        right: 1rem;
    }
    
    .hero-modern {
        min-height: 80vh;
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .modern-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .glass-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .modern-input {
        padding: 0.8rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .modern-card {
        background: #1a1a1a;
        color: #fff;
    }
    
    .modern-input {
        background: #2a2a2a;
        color: #fff;
        border-color: #404040;
    }
    
    .accordion-header {
        background: #2a2a2a;
        color: #fff;
    }
}

/* Print Styles */
@media print {
    .fab,
    .modern-nav,
    .loading-spinner {
        display: none !important;
    }
    
    .modern-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .modern-card {
        border: 2px solid #000;
    }
    
    .btn-modern {
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}