.about-main{
    margin-top: 4rem;
    height: fit-content;
}

.about-main{
    position: relative;
    background: var(--background-color);
    background-size: cover;
    height: 70vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 0;
}

.gallery-main{
    position: relative;
    background: var(--background-color);
    background-size: cover;
    height: 50vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 0;
}

.about-main::before, .gallery-main::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
    backdrop-filter: blur(8px);
    z-index: -1;
}

.about-main h1, .gallery-main h1, .contact-header h1{
    font-size: 2.5rem;
    text-align: center;
    color: white;
    padding: 1rem;
}

.about-main p, .gallery-main p, .contact-header p{
    text-align: center;
    font-size: 1.5rem;
    color: white;
    padding: 0 10rem;
    margin-bottom: 2rem;
}

.about-buttons, .gallery-buttons{
    background: #ffc326;
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.about-buttons a, .gallery-buttons a{
    text-decoration: none;
    color: #4b1e1e;
}

.about-c h2{
    color: #4b1e1e;
    text-align: center;
    padding: 2rem;
    font-size: 2rem;
}

.about-hero{
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 1rem;
}

.about-content, .about-image{
    width: 50%;
}

.about-content p{
    line-height: 1.2;
    text-align: justify;
}

.about-image img{
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.about-points {
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.about-points h3 {
    display: flex;
    width: auto;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    position: relative;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.about-points h3 strong {
    color: #27ae60;
    font-size: 1.4rem;
    margin-right: 15px;
    position: relative;
    z-index: 2;
}

.about-points h3:nth-child(1) strong { color: #e74c3c; }
.about-points h3:nth-child(2) strong { color: #f39c12; }
.about-points h3:nth-child(3) strong { color: #9b59b6; }
.about-points h3:nth-child(4) strong { color: #3498db; }
.about-points h3:nth-child(5) strong { color: #27ae60; }

.about-points h3:last-child {
    margin-bottom: 0;
}

.about-points h3 span {
    position: relative;
    z-index: 2;
}

/* Gallery page */
.gallery-section{
    width: 100%;
    padding: 2rem;
    background: #4b1e1e;
}

.gallery-container h2{
    color: white;
    text-align: center;
    padding-top: 1rem;
    font-size: 2.5rem;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInScale 0.6s ease-out;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.overlay p {
    font-size: 1rem;
    opacity: 0.9;
}

.zoom-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.gallery-item:hover .zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.gallery-modal-content {
    position: relative;
    margin: 5% auto;
    max-width: 90%;
    max-height: 80%;
    animation: zoomIn 0.3s ease;
}

.gallery-modal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.gallery-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: -70px;
}

.next {
    right: -70px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* contact page */
.contact-container {
    margin-top: 4rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    overflow: hidden;
    animation: slideIn 0.8s ease-out;
}

.contact-header {
    background: linear-gradient(135deg, #4b1e1e, #160404);
    color: white;
    text-align: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.contact-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.contact-info {
    padding: 50px;
    background: white;
}

.contact-form {
    padding: 50px;
    background: #f8fafc;
}

.section-title {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #4b1e1e;
    border-radius: 2px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid transparent;
}

.contact-item:hover {
    transform: translateX(3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-left-color: #4b1e1e;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #ffc326;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    color: #1e293b;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-details p {
    color: #64748b;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4b1e1e;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: #ffc326;
    color: #4b1e1e;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.contact-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ffc326;
    color: #4b1e1e;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.contact-social-links a.facebook:hover { background: #3b5998; }
.contact-social-links a.twitter:hover { background: #1da1f2; }
.contact-social-links a.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.contact-social-links a.linkedin:hover { background: #0077b5; }

.success-message {
    background: #10b981;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Services page */
.hero-section {
    position: relative;
    background: var(--background-color);
    background-size: cover;
    color: white;
    height: 60vh;
    padding: 4rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
    backdrop-filter: blur(8px);
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle{
    font-size: 1.2rem;
    margin: 1rem 0;
}

.services-section {
    padding: 2rem;
    /* background: #869ca77a; */
    position: relative;
}

.section-service-title {
    color: #4b1e1e;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.services-grid {
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-item {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.8);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: #4b1e1e;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.service-icon-1 {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: rgb(255, 255, 255);
}

.service-icon-1 i{
    color: #4b1e1e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--background-color);
}

.service-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
}

.service-features li {
    padding: 8px 0;
    text-align: justify;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.service-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30,60,114,0.3);
}

.emergency-number{
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    color: red;
}

.contact-text{
    padding: 0 30%;
    color: var(--background-color);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.contact-buttons{
    font-size: larger;
    background: #ffc326;
    color: #4b1e1e;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.contact-buttons a{
    text-decoration: none;
    color: #4b1e1e;
}

@media (max-width: 768px){
    .about-main h1, .gallery-main h1, .contact-header h1, .hero-title{
        font-size: 1.5rem;
    }

    .about-main p, .gallery-main p, .contact-header p, .hero-subtitle{
        font-size: 1rem;
        padding: 1rem;
    }

    .about-hero{
        display: flex;
        flex-direction: column-reverse;
        gap: 1rem;
        padding: 1rem;
    }

    .about-content, .about-image{
        width: 100%;
    }

    .about-c h2{
        font-size: 1.5rem;
        padding: 1rem;
    }

    .about-content p{
        font-size: 0.8rem;
    }

    .about-points h3{
        font-size: 1rem;
    }

    .container, .services-section{
        padding: 1rem;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .gallery-main{
        position: relative;
        background: var(--background-color);
        background-size: cover;
        height: 70vh;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 0;
    }

    .gallery-container h2, .section-title{
        font-size: 1.5rem;
    }

    .gallery-section{
        padding: 1rem;
    }

    .filter-tabs {
        padding-top: 10px;
        padding: 10px 0;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .gallery {
        grid-template-columns: repeat(2, minmax(20px, 1fr));
        gap: 1rem;
    }

    .nav-arrow {
        display: none;
    }

    .contact-header::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 50%;
        height: 50%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
        animation: rotate 20s linear infinite;
    }

    .contact-header{
        height: 30vh;
        padding: 1rem;
    }

    .content {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .contact-info,
    .contact-form, .service-item{
        padding: 1rem;
    }
    
    .contact-item {
        flex-direction: row;
        text-align: start;
        padding: 15px;
    }

    .hero-section{
        margin-top: 4rem;
        height: 40vh;
    }

    .services-section h2{
        font-size: 1.5rem;
        margin: 0;
        padding: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0;
    }

    .service-item-head{
        gap: 1rem;
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .service-title{
        font-size: 1rem;
        margin: 0;
    }

    .service-description {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .service-features li {
        font-size: 0.8rem;
    }

    .contact-text, .emergency-number{
        padding: 0 2px;
        font-size: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}