/* Reset and general styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f8f9fa;
}

/* Navigation bar styles */
.topnov {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.topnov a.active {
    color: #333;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
}

.topnov button {
    background-color: rgb(242,200,80);
    color: black;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.topnov button:hover {
    background-color: rgb(208,163,78);
}

/* Services section styles */
.services {
    padding: 5rem 0;
}

.heading {
    text-align: center;
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.heading:after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: #007bff;
    margin: 10px auto;
}

.box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.box {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.box:hover {
    transform: translateY(-5px);
}

.box h3 {
    padding: 1rem;
    text-align: center;
    font-size: 1.2rem;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
}

/* Image Zoom Effect */
.package-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.package-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: zoom-in;
}

.package-image:hover {
    transform: scale(1.05);
}

/* Enhanced Popup Modal */
.image-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-image {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.image-popup.active .popup-image {
    transform: scale(1);
}

.close-popup {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-popup:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.price {
    font-size: 1.5rem;
    text-align: center;
    padding: 1rem;
    font-weight: bold;
}

.book-now {
    display: block;
    width: 80%;
    margin: 1rem auto;
    padding: 0.8rem;
    background-color: rgb(242,200,80);
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.book-now:hover {
    background-color: rgb(208,163,78);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    position: relative;
    background-color: white;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-flex-container {
    display: flex;
    gap: 30px;
}

.package-image-container {
    flex: 1;
    padding: 20px;
    text-align: center;
}

.package-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto 15px auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#selectedPackageTitle {
    margin-top: 15px;
    font-size: 1.5em;
    text-align: center;
}

.booking-form-container {
    flex: 1;
    padding: 20px;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

.close-btn:hover {
    color: #000;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.submit-btn {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

.submit-btn:hover {
    background-color: #45a049;
}

/* Footer Styles */
footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 4rem 0 2rem 0;
    position: relative;
}

.footer-container { 
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.col {
    padding: 1rem;
    text-align: left;
}

.col h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.col h3 i {
    color: #3498db;
    font-size: 1.4rem;
}

.col p {
    color: #999;
    margin: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.col p:hover {
    color: #ffffff;
}

.email-id {
    margin: 1rem 0;
}

.email-id a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-id a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.col h4 {
    color: #999;
    font-size: 1.1rem;
    margin: 1rem 0;
}

.social-icon {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icon a:hover {
    background-color: #3498db;
    transform: translateY(-3px);
}

.social-icon i {
    font-size: 1.2rem;
}

/* Animation for modal */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .box-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        padding: 0 1rem;
    }
    
    .heading {
        font-size: 2rem;
    }
    
    .topnov {
        padding: 1rem;
    }
    
    .modal-flex-container {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px auto;
    }

    .package-image-container,
    .booking-form-container {
        padding: 10px;
    }
}

.error-message {
    background-color: #ffebee;
    color: #d32f2f;
    padding: 15px;
    text-align: center;
    margin: 10px 0;
    border-radius: 4px;
    border-left: 4px solid #d32f2f;
}