/**
 * HMA Jabalpur Event & Workshop Management System
 * Main Stylesheet
 * Fully Responsive Design
 */

/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #20c997;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gradient-primary: linear-gradient(135deg, #0d6efd 0%, #20c997 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-danger: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    --gradient-info: linear-gradient(135deg, #0dcaf0 0%, #0d6efd 100%);
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Sidebar Styles */
.sidebar {
    min-height: calc(100vh - 56px);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
    color: #000 !important;
    padding: 12px 20px;
    margin: 4px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #dee2e6;
    opacity: 1;
    visibility: visible;
    font-weight: 600;
}

.sidebar .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.15);
    color: #0d6efd !important;
    border-color: #0d6efd;
}

.sidebar .nav-link.active {
    background: var(--gradient-primary);
    color: white !important;
    border-color: #0d6efd;
}

.sidebar .nav-link i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.sidebar-category {
    padding: 16px 20px 8px;
    margin-top: 8px;
}

.sidebar-category-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    text-transform: uppercase;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

/* Table Styles */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(32, 201, 151, 0.05) 100%);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 12px 16px;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.03) 0%, rgba(32, 201, 151, 0.03) 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.table td {
    padding: 12px 16px;
    vertical-align: middle;
}

.table code {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
    min-height: 52px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    min-height: 40px;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 14px 18px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.02) 0%, rgba(32, 201, 151, 0.02) 100%);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='16' height='16' fill='none' stroke='%23dc3545' stroke-width='2'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
}

.form-control.is-valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' fill='%23198754'%3e%3cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--danger-color);
}

.form-control.is-invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-tooltip,
.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-control:invalid ~ .invalid-tooltip {
    display: block;
}

.valid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--success-color);
}

.form-control.is-valid ~ .valid-feedback,
.was-validated .form-control:valid ~ .valid-feedback {
    display: block;
}

.form-text {
    font-size: 0.875em;
    color: #6c757d;
    margin-top: 0.25rem;
}

.input-group-text {
    border-radius: 12px 0 0 12px;
    border: 2px solid #e9ecef;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(32, 201, 151, 0.05) 100%);
    font-weight: 500;
}

.input-group .form-control {
    border-radius: 0 12px 12px 0;
}

.form-check-input {
    width: 1.3em;
    height: 1.3em;
    border: 2px solid #dee2e6;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Badge Styles */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-dismissible .btn-close {
    padding: 12px;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-radius: 15px 15px 0 0;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    border-radius: 0 0 15px 15px;
    border-top: 1px solid #dee2e6;
}

/* Navbar Styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
}

.navbar-brand i {
    margin-right: 8px;
}

/* Dropdown Styles */
.dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Pagination Styles */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 4px;
    border: 1px solid #dee2e6;
    color: var(--primary-color);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Input Group Styles */
.input-group-text {
    border-radius: 8px 0 0 8px;
    background-color: var(--light-color);
}

.input-group .form-control {
    border-radius: 0 8px 8px 0;
}

.input-group .form-control:first-child {
    border-radius: 8px 0 0 8px;
}

.input-group .form-control:last-child {
    border-radius: 0 8px 8px 0;
}

/* Image Styles */
.img-thumbnail {
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

/* Responsive Table */
@media (max-width: 768px) {
    .table-responsive {
        border-radius: 8px;
    }
    
    .table thead {
        display: none;
    }
    
    .table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 10px;
    }
    
    .table tbody td {
        display: block;
        text-align: right;
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .table tbody td:last-child {
        border-bottom: none;
    }
    
    .table tbody td:before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        text-align: left;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .btn-group .btn {
        width: 100%;
        border-radius: 8px;
    }
}

/* Mobile Navigation */
@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        top: 56px;
        left: -280px;
        width: 280px;
        z-index: 1000;
        transition: left 0.3s ease;
        background-color: white;
        box-shadow: 0 0 20px rgba(0,0,0,0.15);
    }
    
    .sidebar.show {
        left: 0;
    }
    
    main {
        margin-left: 0 !important;
    }
    
    .offcanvas-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        display: none;
    }
    
    .offcanvas-backdrop.show {
        display: block;
    }
}

@media (max-width: 768px) {
    .card.bg-primary, .card.bg-success, .card.bg-info, .card.bg-warning {
        margin-bottom: 16px;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .table-responsive {
        margin-bottom: 16px;
    }
}

/* Responsive Cards */
@media (max-width: 576px) {
    .card {
        margin-bottom: 15px;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        border-radius: 8px;
        margin-bottom: 5px;
    }
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Loading States */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text-sm {
    height: 0.75em;
    margin-bottom: 0.5em;
}

.skeleton-text-lg {
    height: 1.5em;
    margin-bottom: 0.5em;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-card {
    height: 150px;
    border-radius: 12px;
}

.skeleton-button {
    height: 44px;
    width: 120px;
    border-radius: 8px;
}

/* Page Loading Overlay */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
    gap: 1rem;
}

.page-loading.hidden {
    display: none;
}

.page-loading-spinner {
    width: 3rem;
    height: 3rem;
}

.page-loading-text {
    color: var(--primary-color);
    font-weight: 500;
}

/* Toast Styles */
.toast {
    border-radius: 10px;
    border: none;
}

.toast-header {
    border-radius: 10px 10px 0 0;
}

/* Statistics Cards */
.card.bg-primary, .card.bg-success, .card.bg-info, .card.bg-warning {
    color: white;
}

.card.bg-primary .card-body, 
.card.bg-success .card-body, 
.card.bg-info .card-body, 
.card.bg-warning .card-body {
    color: white;
}

.card.bg-primary .opacity-50,
.card.bg-success .opacity-50,
.card.bg-info .opacity-50,
.card.bg-warning .opacity-50 {
    opacity: 0.5;
}

/* QR Code Display */
.qr-code-display {
    max-width: 200px;
    margin: 0 auto;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    background-color: white;
}

/* ID Card Preview */
.id-card-preview {
    max-width: 400px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.id-card-front, .id-card-back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    min-height: 250px;
}

.id-card-back {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Profile Photo */
.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Event Banner */
.event-banner {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

/* Status Indicators */
.status-online {
    color: var(--success-color);
}

.status-offline {
    color: var(--secondary-color);
}

.status-busy {
    color: var(--danger-color);
}

/* Print Styles */
@media print {
    .sidebar,
    .navbar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    body {
        background-color: white;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Tooltip Styles */
.tooltip {
    font-size: 0.9rem;
}

/* Progress Bar */
.progress {
    height: 10px;
    border-radius: 5px;
}

/* File Upload */
.file-upload-wrapper {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-wrapper:hover {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

.file-upload-wrapper i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* =============================================
   GLOBAL NAV TABS STYLES (Admin + Participant)
   ============================================= */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    color: #212529 !important;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: none;
    margin-right: 3px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #0d6efd 0%, #20c997 100%);
    border-color: #0d6efd;
}

.nav-tabs .nav-link.active {
    color: #fff !important;
    background: linear-gradient(135deg, #0d6efd 0%, #20c997 100%);
    border-color: #0d6efd;
    font-weight: 700;
}

/* Nav Pills */
.nav-pills .nav-link {
    color: #212529;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.nav-pills .nav-link:hover {
    color: #fff;
    background: linear-gradient(135deg, #0d6efd 0%, #20c997 100%);
    border-color: #0d6efd;
}

.nav-pills .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #0d6efd 0%, #20c997 100%);
    border-color: #0d6efd;
    font-weight: 700;
}

/* =============================================
   GLOBAL CUSTOM BUTTON STYLES
   ============================================= */
.btn-primary-custom {
    background: linear-gradient(135deg, #0d6efd 0%, #20c997 100%);
    border: none;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    padding: 12px 24px;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #20c997 0%, #0d6efd 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
    color: #fff;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid #0d6efd;
    color: #0d6efd;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    padding: 10px 24px;
}

.btn-outline-custom:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #20c997 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

/* =============================================
   OFFCANVAS SIDEBAR (Mobile) - Same as Desktop
   ============================================= */
.offcanvas .sidebar-menu .nav-link {
    color: #000 !important;
    padding: 12px 20px;
    margin: 4px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #dee2e6;
    opacity: 1;
    visibility: visible;
    font-weight: 600;
}

.offcanvas .sidebar-menu .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.15);
    color: #0d6efd !important;
    border-color: #0d6efd;
}

.offcanvas .sidebar-menu .nav-link.active {
    background: linear-gradient(135deg, #0d6efd 0%, #20c997 100%);
    color: white !important;
    border-color: #0d6efd;
}

.offcanvas .sidebar-menu .nav-link i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.offcanvas .sidebar-category-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
}

/* =============================================
   RESPONSIVE ADMIN LAYOUT
   ============================================= */
@media (max-width: 991px) {
    .col-md-9.ms-sm-auto {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

@media (max-width: 768px) {
    .nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        padding: 10px 16px;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 8px;
    }

    .card-body {
        padding: 16px;
    }

    h1.h2 {
        font-size: 1.4rem;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }

    .nav-tabs .nav-link {
        white-space: nowrap;
    }

    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Dashboard Stats */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

/* Menu Selection */
.menu-item {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item:hover {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

.menu-item.selected {
    border-color: var(--success-color);
    background-color: rgba(25, 135, 84, 0.1);
}

.menu-item.selected::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* QR Scanner */
.qr-scanner-container {
    max-width: 400px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.qr-scanner-video {
    width: 100%;
    height: auto;
}

/* Attendance Badge */
.attendance-badge {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.attendance-badge.present {
    background-color: var(--success-color);
}

.attendance-badge.absent {
    background-color: var(--danger-color);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.testimonial-card .quote {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--dark-color);
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Social Links */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus, a:focus {
    outline: none;
}

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

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