* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2563EB;
    --primary-red: #E63946;
    --dark-blue: #1E40AF;
    --white: #FFFFFF;
    --gray-light: #F8FAFC;
    --gray: #64748B;
    --dark: #1E293B;
    --gradient: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-links a:hover {
    color: var(--primary-red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient);
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    filter: blur(1px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(230, 57, 70, 0.6);
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--gray-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateX(10px);
}

.feature-icon {
    font-size: 1.8rem;
    width: 50px;
    text-align: center;
}

.about-image {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.about-img:hover {
    transform: scale(1.02);
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 50px;
}

/* Gallery Tabs */
.gallery-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.tab-button {
    background: var(--white);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 12px 24px;
    border-radius: 25px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.tab-button:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.tab-button.active {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.gallery-grid.hidden {
    display: none;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--gray-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-red);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Join Section */
.join {
    padding: 100px 0;
    background: var(--gradient);
    color: var(--white);
}

.join h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.join > p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 50px;
    opacity: 0.9;
}

.volunteer-form {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    color: var(--dark);
    background: var(--white);
    padding: 10px;
}

/* Image Upload Styles */
.image-upload-group {
    text-align: center;
    margin-bottom: 40px;
}

.image-upload-label {
    cursor: pointer;
    display: inline-block;
}

.image-input {
    display: none;
}

.image-upload-area {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border: 3px dashed rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.image-upload-area:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.image-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.upload-placeholder span {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.upload-placeholder small {
    font-size: 0.75rem;
    opacity: 0.7;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Form Sections */
.form-section {
    margin-bottom: 35px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section .section-title {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.form-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--primary-red);
    border-radius: 2px;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 30px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.checkbox-text {
    color: rgba(255, 255, 255, 0.9);
}

.terms-link {
    color: var(--white);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: var(--primary-red);
}

/* Enhanced Submit Button */
.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #D62828 100%);
    color: var(--white);
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
    margin-top: 30px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #D62828 0%, #B91C1C 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(230, 57, 70, 0.6);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.2rem;
}

/* Application Closed Message Styles */
.application-closed-message {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 2px solid #F59E0B;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
    animation: fadeInUp 0.6s ease-out;
}

.closed-message-content {
    max-width: 500px;
    margin: 0 auto;
}

.closed-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.8;
    animation: pulse 2s infinite;
}

.application-closed-message h3 {
    color: #92400E;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Cairo', sans-serif;
}

.application-closed-message p {
    color: #78350F;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-retry {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-retry:hover {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-retry .btn-icon {
    font-size: 1rem;
    animation: spin 1s linear infinite paused;
}

.btn-retry:hover .btn-icon {
    animation-play-state: running;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Hidden form when applications are closed */
.application-closed-message + #volunteer-form {
    display: none !important;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* Social Media Links */
.social-links {
    text-align: center;
}

.social-links h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 80px;
}

.social-link:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-icon {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.social-icon-svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.social-text {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.social-link.telegram:hover {
    background: linear-gradient(135deg, #0088cc, #0077b5);
}

.social-link.telegram:hover .social-icon-svg {
    filter: brightness(0) invert(1);
}

.social-link.tiktok:hover {
    background: linear-gradient(135deg, #ff0050, #000000);
}

.social-link.tiktok:hover .social-icon-svg {
    filter: brightness(0) invert(1);
}

.social-link.instagram:hover {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.social-link.instagram:hover .social-icon-svg {
    filter: brightness(0) invert(1);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content img {
    width: 100%;
    border-radius: 15px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    color: var(--primary-blue);
    margin: 0;
    font-size: 1.4rem;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: var(--primary-red);
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--dark);
}

/* Error Styling */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-message {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: fadeIn 0.3s ease;
}

.error-message::before {
    content: "⚠️";
    font-size: 0.8rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.btn-submit.loading {
    background: #999;
    cursor: not-allowed;
}

.btn-submit.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Animations */
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #51cf66;
    background: rgba(81, 207, 102, 0.1);
}

/* Enhanced Form Sections */
.form-section {
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Age calculation helper */
.age-display {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.age-display.show {
    opacity: 1;
}

/* File upload enhancements */
.image-upload-area.has-image {
    border-color: var(--primary-red);
    background: rgba(230, 57, 70, 0.1);
}

.image-upload-area.has-image:hover {
    background: rgba(230, 57, 70, 0.2);
}

/* Form progress indicator */
.form-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-bottom: 30px;
    overflow: hidden;
}

.form-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-blue));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Medical Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Cairo', sans-serif;
}

.chatbot-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.6);
}

.chatbot-icon {
    font-size: 1.8rem;
    color: white;
}

.chatbot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-blue);
    opacity: 0.7;
    animation: pulse-ring 2s infinite ease-out;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.chatbot-window.show {
    display: flex;
    transform: scale(1) translateY(0);
    opacity: 1;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chatbot-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.chatbot-info {
    flex: 1;
}

.chatbot-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.chatbot-status {
    font-size: 0.85rem;
    opacity: 0.9;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #F8FAFC;
}

.message {
    display: flex;
    gap: 10px;
    max-width: 85%;
    animation: messageSlide 0.3s ease-out;
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: var(--primary-blue);
    color: white;
}

.user-message .message-avatar {
    background: var(--gray);
    color: white;
}

.message-content {
    background: white;
    padding: 12px 15px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.user-message .message-content {
    background: var(--primary-blue);
    color: white;
}

.message-content p {
    margin: 0;
    line-height: 1.4;
    font-size: 0.95rem;
}

.message-content p + p {
    margin-top: 8px;
}

.message-time {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 5px;
    text-align: center;
}

.chatbot-input {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #E2E8F0;
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.input-container textarea {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #E2E8F0;
    border-radius: 20px;
    resize: none;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    line-height: 1.4;
    max-height: 100px;
    transition: all 0.2s ease;
}

.input-container textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.send-button {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.send-button:hover {
    background: var(--dark-blue);
    transform: scale(1.05);
}

.send-button:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
}

.send-icon {
    font-size: 1.1rem;
    transform: translateX(1px);
}

.chatbot-disclaimer {
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
    margin-top: 8px;
    line-height: 1.3;
}

/* Quick Buttons */
.quick-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.quick-button {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: right;
    font-family: 'Cairo', sans-serif;
}

.quick-button:hover {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.quick-buttons .message-content {
    background: #F0F9FF !important;
    border: 1px solid #BFDBFE;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
    background: var(--dark-blue);
}

.back-to-top-icon {
    position: relative;
    z-index: 2;
    color: white;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.back-to-top:hover .back-to-top-icon {
    transform: translateY(-2px);
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-svg {
    width: 100%;
    height: 100%;
}

.progress-ring-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2;
}

.progress-ring-circle {
    fill: none;
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 169.65; /* 2 * PI * 27 */
    stroke-dashoffset: 169.65;
    transition: stroke-dashoffset 0.1s ease;
}

/* Quick Navigation Panel */
.quick-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quick-nav.show {
    opacity: 1;
    visibility: visible;
}

.quick-nav-item {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.quick-nav-item::before {
    content: attr(data-section);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.quick-nav-item:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

.quick-nav-item.active {
    background: var(--primary-blue);
    transform: scale(1.3);
}

.quick-nav-item:hover {
    background: var(--primary-blue);
    transform: scale(1.2);
}

/* Responsive Design for Footer and Social Media */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navbar responsive */
    .navbar .container {
        padding: 10px 15px;
    }
    
    .nav-brand span {
        font-size: 0.9rem;
    }
    
    .logo {
        width: 35px;
        height: 35px;
    }
    
    /* Hero section responsive */
    .hero {
        min-height: 100vh;
        padding: 100px 0 50px;
    }
    
    .hero-content {
        text-align: center;
        padding: 20px 0;
    }
    
    .hero-logo {
        width: 80px;
        height: 80px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin: 20px 0 15px;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 20px;
        margin: 25px 0;
        justify-content: center;
    }
    
    .stat-card {
        padding: 20px 15px;
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* About section responsive */
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .features {
        justify-content: center;
        gap: 20px;
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    /* Gallery responsive */
    .gallery-tabs {
        justify-content: center;
        gap: 8px;
        margin-bottom: 30px;
    }
    
    .tab-button {
        padding: 8px 16px;
        font-size: 0.85rem;
        border-radius: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Services responsive */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    /* Form responsive */
    .volunteer-form {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .image-upload-area {
        max-width: 200px;
        margin: 0 auto;
    }
    
    /* Footer responsive */
    .footer {
        padding: 30px 0 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .social-icons {
        flex-direction: row;
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-link {
        flex-direction: column;
        justify-content: center;
        min-width: 70px;
        padding: 12px 10px;
    }
    
    .social-icon-svg {
        margin-bottom: 5px;
        margin-left: 0;
        width: 20px;
        height: 20px;
    }
    
    .social-text {
        font-size: 0.75rem;
    }
    
    /* Back to Top responsive */
    .back-to-top {
        bottom: 80px;
        left: 20px;
        width: 50px;
        height: 50px;
    }
    
    .back-to-top-icon {
        width: 20px;
        height: 20px;
    }
    
    .progress-ring-svg {
        width: 50px;
        height: 50px;
    }
    
    .progress-ring-circle-bg,
    .progress-ring-circle {
        cx: 25;
        cy: 25;
        r: 22;
        stroke-dasharray: 138.23;
    }
    
    .progress-ring-circle {
        stroke-dashoffset: 138.23;
    }
    
    /* Quick Navigation responsive */
    .quick-nav {
        right: 15px;
        gap: 8px;
        top: 40%;
    }
    
    .quick-nav-item {
        width: 8px;
        height: 8px;
    }
    
    .quick-nav-item::before {
        font-size: 0.7rem;
        padding: 4px 8px;
        right: 15px;
    }
    
    /* Chatbot responsive */
    .chatbot-toggle {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
    }
    
    .chatbot-icon {
        font-size: 1.5rem;
    }
    
    .chatbot-window {
        width: 100%;
        height: 100%;
        left: 0;
        bottom: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .chatbot-header {
        padding: 15px 20px;
        border-radius: 0;
    }
    
    .chatbot-info h4 {
        font-size: 1rem;
    }
    
    .chatbot-status {
        font-size: 0.8rem;
    }
    
    .chatbot-messages {
        padding: 15px;
        height: calc(100vh - 180px);
    }
    
    .message {
        margin-bottom: 15px;
    }
    
    .message-content {
        padding: 10px 12px;
        font-size: 0.9rem;
        max-width: 85%;
    }
    
    .chatbot-input {
        padding: 15px;
    }
    
    .input-container textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .send-button {
        width: 35px;
        height: 35px;
    }
    
    .chatbot-disclaimer {
        font-size: 0.75rem;
        padding: 8px;
    }
    
    .quick-buttons-container {
        gap: 8px;
    }
    
    .quick-button {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* Mobile-specific chatbot styles */
.mobile-chatbot {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    z-index: 9999 !important;
}

.mobile-chatbot .chatbot-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--primary-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-chatbot .chatbot-messages {
    height: calc(100vh - 140px) !important;
    padding-bottom: 20px;
}

.mobile-chatbot .chatbot-input {
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 2px solid #E2E8F0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Prevent body scroll when chatbot is open on mobile */
body.chatbot-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Mobile form improvements */
@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 15px;
    }
    
    .btn-primary {
        padding: 15px 30px;
        font-size: 1.1rem;
        width: auto;
        min-width: 200px;
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    }
    
    /* Section spacing improvements */
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    /* Mobile menu improvements */
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 15px 15px;
        overflow: hidden;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    .nav-links li a:hover {
        background: var(--gray-light);
        color: var(--primary-blue);
    }
    
    .nav-links li:last-child a {
        border-bottom: none;
    }
}

/* استجابة للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .gallery-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
        padding: 0 10px;
    }
    
    .tab-button {
        padding: 6px 12px;
        font-size: 0.8rem;
        border-radius: 15px;
        flex: 1;
        min-width: auto;
        text-align: center;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .gallery-overlay h3 {
        font-size: 1.1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.8rem;
    }
}
