/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c7a7b;
    --secondary-color: #38b2ac;
    --accent-color: #81e6d9;
    --dark-color: #1a202c;
    --light-color: #f7fafc;
    --text-color: #2d3748;
    --text-light: #718096;
    --success-color: #48bb78;
    --warning-color: #ed8936;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: url('../images/lake-view/lake-view-home-page.avif') center center/cover no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 50px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.text-shadow {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5)
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-images {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-image-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

.hero-image-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Section Styles */
section {
    padding: 50px 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Story Section */
.story {
    background: var(--light-color);
    position: relative;
    z-index: 1;
}

.story-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.story-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.story-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.story-image {
    position: relative;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.volunteers-section {
    text-align: center;
}

.volunteers-section h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.volunteers-section > p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
}

.volunteer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Mission Section */
.mission {
    background: white;
}

.mission-intro {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.mission-card {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mission-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mission-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mission-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.mission-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Work Section */
.work {
    background: var(--light-color);
}

.work-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 0;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    flex: 1;
    padding: 20px 40px;
    background: #e2e8f0;
    border: none;
    border-top: 4px solid transparent;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    margin-bottom: -1px;
}

.tab-btn:first-child {
    border-radius: 12px 0 0 0;
}

.tab-btn:last-child {
    border-radius: 0 12px 0 0;
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    border-top-color: var(--primary-color);
    z-index: 2;
}

.tab-btn:hover:not(.active) {
    background: #cbd5e0;
    color: var(--primary-color);
    border-top-color: var(--secondary-color);
}

.tab-content {
    display: none;
    background: white;
    padding: 3rem 2rem;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e2e8f0;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tab-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.work-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.work-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.work-card-content {
    padding: 1.5rem;
}

.work-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.work-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* New Category Gallery Styles */
.work-category {
    margin-bottom: 4rem;
    border-radius: 20px;
}

.category-header {
    margin-bottom: 2rem;
}

.category-header h4 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.category-header p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.6;
}

.category-gallery {
    /* Masonry layout will be applied via JavaScript */
}

.category-gallery .gallery-item {
    width: calc(33.333% - 15px);
    margin-bottom: 20px;
    break-inside: avoid;
}

.category-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.category-gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Events Calendar - Vertical Timeline Style */
.events-calendar {
    max-width: 800px;
    margin: 2rem auto 0;
    position: relative;
    padding-left: 50px;
}

.events-calendar::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--secondary-color);
}

.event-card {
    position: relative;
    margin-bottom: 3rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 1.5rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid white;
    box-shadow: 0 0 0 3px var(--secondary-color);
}

.event-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.event-card-featured {
    background: var(--primary-color);
    color: white;
}

.event-card-featured .event-details h4,
.event-card-featured .event-details p {
    color: white;
}

.event-card-featured .event-meta {
    color: rgba(255, 255, 255, 0.9);
}

.event-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(129, 230, 217, 0.15);
    border: 1px solid rgba(56, 178, 172, 0.2);
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.event-card-featured .event-date {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.event-date i.fa-calendar {
    font-size: 1.1rem;
    opacity: 0.8;
}

.event-month {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-day {
    font-size: 1.1rem;
    font-weight: 700;
}

.event-year {
    font-size: 0.9rem;
    font-weight: 600;
}

.event-details h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.event-card-featured .event-details h4 {
    color: white;
}

.event-details p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.event-card-featured .event-details p {
    color: rgba(255, 255, 255, 0.95);
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.event-card-featured .event-meta {
    color: rgba(255, 255, 255, 0.9);
}

.event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.event-meta i {
    font-size: 1rem;
    opacity: 0.8;
}

.event-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* About Section */
.about {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.join-card {
    background: var(--primary-color);
    padding: 2.5rem;
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.join-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.join-card > p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.join-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.join-option {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.join-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.join-option h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.join-option p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    background: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info > p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.contact-icon {
    font-size: 1.5rem;
    min-width: 40px;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--text-light);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: white;
    text-decoration: none;
    border-radius: 999px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    font-size: 1.1rem;
    padding: 0.85rem 1.2rem;
    font-weight: 600;
    max-width: 100%;
    box-sizing: border-box;
}

.social-link span,
.social-link i {
    min-width: 0;
}

.social-link span {
    overflow-wrap: anywhere;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.18);
}

.social-link span {
    overflow-wrap: anywhere;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.18);
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877f2, #0d65d9);
}

.social-link.instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-link.whatsapp {
    background: linear-gradient(135deg, #25d366, #1da851);
}

.fa-whatsapp:before {
    font-weight: bold;
    font-size: 1.5rem;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.phone-input-wrapper:focus-within {
    border-color: var(--primary-color);
}

.phone-prefix {
    background-color: #f7fafc;
    padding: 12px 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    border-right: 2px solid #e2e8f0;
    user-select: none;
}

.phone-input-wrapper input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.phone-input-wrapper input:focus {
    outline: none;
}

.form-group input:not(.phone-input-wrapper input),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}
.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #e53e3e;
}

.form-group input:valid:not(:placeholder-shown),
.form-group select:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: var(--success-color);
}

.error-message {
    display: block;
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    display: block;
    background-color: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.form-status.error {
    display: block;
    background-color: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}


/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p {
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
/* Masonry responsive styles */
@media (max-width: 992px) {
    .category-gallery .gallery-item {
        width: calc(50% - 15px);
    }
}

@media (max-width: 968px) {
    .category-gallery .gallery-item {
        width: 100%;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 3rem 0;
        overflow-y: auto;
        z-index: 999;
        gap: 0;
    }

    .nav-menu li {
        padding: 1.2rem 0;
        border-bottom: 1px solid rgba(44, 122, 123, 0.1);
    }

    .nav-menu li:first-child {
        border-top: 1px solid rgba(44, 122, 123, 0.1);
    }

    .nav-menu a {
        display: block;
        padding: 0.5rem 2rem;
        font-size: 1.1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-images {
        grid-template-columns: 1fr;
    }

    .story-content {
        grid-template-columns: 1fr;
    }

    .volunteer-stats {
        grid-template-columns: 1fr;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .work-grid {
        grid-template-columns: 1fr;


    .work-category {
        padding: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .category-header h4 {
        font-size: 1.5rem;
    }
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.modal-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.modal-content-wrapper {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: zoomIn 0.3s ease;
}

.modal-image {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.modal-caption {
    width: 100%;
    background: white;
    color: var(--text-color);
    padding: 20px 25px;
    border-radius: 0 0 10px 10px;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.7;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    white-space: pre-line;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: none;
    font-size: 2.5rem;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    border-radius: 5px;
    font-weight: 300;
}

.modal-nav:hover {
    background: white;
    color: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal-nav:disabled:hover {
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
}

.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10001;
}

.modal-caption:empty {
    display: none;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    section {
        padding: 60px 20px;
    }

    .events-calendar {
        padding-left: 30px;
    }

    .events-calendar::before {
        left: 10px;
    }

    .event-card::before {
        left: -28px;
        width: 16px;
        height: 16px;
    }

    .event-card {
        padding: 1.25rem;
    }

    .event-details h4 {
        font-size: 1.2rem;
    }

    .event-meta {
        flex-direction: column;
        gap: 0.6rem;
    }

    .contact-content,
    .contact-info,
    .contact-details,
    .contact-item > div,
    .contact-form,
    .form-group,
    .phone-input-wrapper {
        min-width: 0;
    }

    .contact-form {
        width: 100%;
        overflow-x: hidden;
    }
}
/* ============================================
   PROGRESSIVE LOADING & PRELOADER STYLES
   ============================================ */

/* Category Preloader */
.category-preloader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    margin: 20px 0;
}

.category-preloader.hidden {
    display: none;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(44, 122, 123, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.category-preloader p {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
    margin: 0;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Hide galleries until loaded */
.work-category[data-loaded="false"] .category-gallery {
    display: none;
}

.work-category[data-loaded="true"] .category-gallery {
    display: block;
}

/* Image loading states */
.category-gallery img {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.category-gallery img.loaded {
    opacity: 1;
    transform: scale(1);
}

/* Skeleton loading effect for gallery items */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(240, 240, 240, 0) 0%,
        rgba(240, 240, 240, 0.8) 50%,
        rgba(240, 240, 240, 0) 100%
    );
    animation: shimmer 2s infinite;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
}

.gallery-item.loading::before {
    opacity: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Loading progress indicator */
.loading-progress {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    animation: slideInUp 0.3s ease-out;
}

.loading-progress.active {
    display: flex;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.loading-progress-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(44, 122, 123, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-progress-text {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

/* Smooth fade-in for loaded categories */
.work-category {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Prevent layout shift during loading */
.category-gallery {
    min-height: 200px;
}

/* Success indicator removed as per user request */

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-preloader {
        min-height: 300px;
        padding: 40px 20px;
    }
    
    .preloader-spinner {
        width: 50px;
        height: 50px;
        border-width: 4px;
    }
    
    .loading-progress {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
    }
}


/* Made with Bob */