:root {
    --primary-gradient: linear-gradient(135deg, #007bff, #0056b3);
    --secondary-gradient: linear-gradient(135deg, #ffc107, #ff8c00);
    --accent-color: #ffc107;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.navbar {
    padding: 0.5rem 0;
    backdrop-filter: blur(10px);
    background: rgba(0, 123, 255, 0.9) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.hero-section {
    background: var(--primary-gradient);
    min-height: 85vh;
    display: flex;
    align-items: center;
    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="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

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

.feature-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.btn-modern {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary-modern {
    background: var(--secondary-gradient);
    color: white;
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
}

.btn-outline-modern {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.8);
    color: white;
}

.btn-outline-modern:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

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

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

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.cta-section {
    background: white;
}

.stats-counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Modal Styles - Glassmorphism Design */
.modal-backdrop {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.3), rgba(80, 200, 120, 0.3));
}

.modal-content {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1060;
    color: white;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.modal-title {
    font-size: 2rem;
    font-weight: 300;
    color: white;
    margin: 0;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

.modal-body {
    padding: 1rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control {
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 50px 15px 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    width: 100%;
}

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

.form-control:focus {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

.input-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.input-icon:hover {
    color: rgba(255, 255, 255, 0.9);
}

.btn-auth {
    border-radius: 50px;
    padding: 15px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 16px;
    width: 100%;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border: none;
    color: white;
    margin: 1rem 0;
}

.btn-auth:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

.modal-footer-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: 1rem;
}

.modal-toggle {
    color: #4ade80;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
}

.modal-toggle:hover {
    color: #22c55e;
}

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

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

.modal-backdrop {
    background: rgb(0, 0, 0) !important;
    backdrop-filter: blur(5px) !important;
}

.modal {
    background: transparent !important;
}

.modal.show {
    background: transparent !important;
}

/* Notification Popup Styles */
.notification-popup {
    min-width: 300px;
    max-width: 400px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    animation: slideInRight 0.4s ease-out;
}

.notification-popup.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-left: 4px solid #28a745;
    color: #155724;
}

.notification-popup.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.notification-popup i {
    margin-right: 8px;
    font-size: 1.1rem;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.notification-popup.fade-out {
    animation: slideOutRight 0.3s ease-in;
}