/* Bootstrap and Modern Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Bootstrap Customization */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    white-space: normal !important;
}

.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffc107 !important;
}

.nav-link.active {
    color: #ffc107;
    font-weight: 600;
}
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2563eb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.survey-section {
    background-color: #fff;
    padding: 3rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.survey-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-label input {
    cursor: pointer;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.btn {
    width: 100%;
    background-color: #2563eb;
    color: #fff;
    padding: 0.875rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px) translateZ(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: #2563eb;
    color: #fff;
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: #ef4444;
    color: #fff;
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.hero-section {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     */
    background-image: url('static/favicon-16x16.png');
    background-size: auto; 
    background-position: center;
    background-repeat: repeat;
    color: #fff;
    padding: 5rem 0;
    text-align: center;
    min-height: 400px;
    /* perspective: 1200px; */
       /* FIX 3: Force visibility and contrast */
       min-height: 400px;
       display: flex;
       align-items: center;
       color: white; 
       text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Helps text readability */
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotateZ(0deg);
    }
    50% {
        transform: translateY(-20px) rotateZ(0.5deg);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background-color: #fff;
    color: #667eea;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
}

.cta-button:hover {
    transform: translateY(-3px) translateZ(10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.cta-button:active {
    transform: translateY(-1px) translateZ(5px);
}

.description-section {
    padding: 4rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    perspective: 1200px;
}

.feature-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateY(0deg);
    cursor: pointer;
}

.feature-card:hover {
    transform: rotateX(5deg) rotateY(-5deg) translateZ(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.feature-text {
    color: #6b7280;
}

.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
}

.content-section {
    padding: 4rem 0;
    background-color: #fff;
}

.content-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.values-section {
    padding: 4rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    perspective: 1200px;
}
.bg-lemon {
    background-color: #e3ff00 !important;
  }

.value-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform-style: preserve-3d;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.value-card:hover {
    transform: rotateY(8deg) rotateX(-3deg) translateZ(30px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.value-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2563eb;
}

.value-text {
    color: #6b7280;
}

.timeline {
    max-width: 700px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
    min-width: 80px;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.timeline-text {
    color: #6b7280;
}

.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-form-container,
.map-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform-style: preserve-3d;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.contact-form-container:hover,
.map-container:hover {
    transform: rotateX(-2deg) rotateY(3deg) translateZ(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.map-placeholder {
    margin-top: 1.5rem;
    background-color: #f3f4f6;
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
}

.map-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.map-text {
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.contact-info-item {
    color: #4b5563;
    margin-bottom: 0.75rem;
}

/* .footer {
    background-color: #1f2937;
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
} */
.footer {
    position: fixed; /* Positions the footer relative to the browser window */
    bottom: 0;       /* Aligns the footer to the bottom edge of the viewport */
    left: 0;         /* Aligns the footer to the left edge of the viewport */
    width: 100%;     /* Ensures the footer spans the full width of the screen */
    background-color:#10b981;/*#333;  Optional: adds a background color */
    color: white;           /* Optional: sets text color */
    text-align: center;     /* Optional: centers the text */
    padding: 10px 0;        /* Optional: adds some vertical padding */
}

.footer-text {
    opacity: 0.8;
}

.popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #10b981;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.popup.show {
    opacity: 1;
    transform: translateX(0);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) translateZ(0);
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.archive-section {
    padding: 4rem 0;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    perspective: 1200px;
}

.gallery-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform-style: preserve-3d;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: rotateY(5deg) rotateX(-2deg) translateZ(25px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.gallery-media {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-info {
    padding: 1.5rem;
}

.gallery-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.gallery-date {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.gallery-description {
    font-size: 0.95rem;
    color: #4b5563;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.login-btn, .register-btn, .logout-btn {
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.login-btn, .register-btn {
    background-color: #2563eb;
    color: #fff;
}

.login-btn:hover, .register-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.logout-btn {
    background-color: #ef4444;
    color: #fff;
}

.logout-btn:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.user-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #374151;
    font-weight: 500;
}
.modal-backdrop {
    z-index: 9998 !important;
}

.modal-overlay {
    display: flex;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
     z-index: 9999 !important;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.close {
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-bottom: 1rem;
}

.close:hover {
    color: #1f2937;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal input {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.modal input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal button {
    padding: 0.75rem;
    background-color: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.modal button:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.modal p {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #6b7280;
}

.modal a {
    color: #2563eb;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

.modal a:hover {
    text-decoration: underline;
}

.members-section {
    padding: 4rem 0;
}

.members-table-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.members-table {
    width: 100%;
    border-collapse: collapse;
}

.members-table thead {
    background-color: #f3f4f6;
}

.members-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 2px solid #e5e7eb;
}

.members-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
}

.members-table tbody tr {
    transition: background-color 0.3s ease;
}

.members-table tbody tr:hover {
    background-color: #f9fafb;
}

.members-table tbody tr:last-child td {
    border-bottom: none;
}

.member-count {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    text-align: center;
}

.no-access-message {
    background-color: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: #991b1b;
}

.no-access-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.admin-controls {
    background-color: #ede9fe;
    border: 2px solid #a78bfa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.admin-controls h3 {
    color: #6d28d9;
    margin-bottom: 1rem;
}

.admin-btn {
    background-color: #a78bfa;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.admin-btn:hover {
    background-color: #9333ea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(147, 51, 234, 0.3);
}

.delete-btn {
    background-color: #ef4444;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background-color: #dc2626;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .page-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .timeline-item {
        flex-direction: column;
        gap: 0.5rem;
    }
}
