/* Main Styles for The Saint George Landing Page */

:root {
    --primary-color: #1a3c64; /* Updated to match logo color scheme */
    --secondary-color: #f8f9fa;
    --dark-color: #333;
    --darker-color: #222;
    --light-color: #fff;
    --gray-color: #6c757d;
    --accent-color: #e0a800; /* Gold accent color */
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Navigation */
.navbar {
    background-color: rgba(26, 60, 100, 0.9); /* Updated to match logo color scheme */
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background-color: rgba(26, 60, 100, 1) !important;
    padding: 10px 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--light-color);
}

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

.btn-primary:hover {
    background-color: #0a58ca;
    border-color: #0a53be;
}

.btn-tour {
    background-color: #ff6b00;
    border-color: #ff6b00;
    color: white;
    font-weight: 600;
    padding: 10px 25px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-tour:hover {
    background-color: #e05f00;
    border-color: #e05f00;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 107, 0, 0.4);
}

.btn-tour:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 107, 0, 0.3);
}

.btn-tour::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-tour:hover::before {
    left: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    height: 92vh; /* Reduced to allow peek at next section */
    display: flex;
    align-items: center;
    color: var(--light-color);
    position: relative;
    overflow: visible;
    margin-bottom: 8vh; /* Creates space for the peek effect */
    animation: heroBackgroundZoom 15s ease-in-out infinite alternate;
}

@keyframes heroBackgroundZoom {
    0% { background-size: 100% auto; }
    100% { background-size: 120% auto; }
}

.hero-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s ease-out;
}

.hero-text.show {
    opacity: 1;
    transform: translateY(0);
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Peek effect for next section */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -8vh;
    left: 0;
    width: 100%;
    height: 8vh;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;
    animation: peek-animation 3s ease-in-out infinite;
}

@keyframes peek-animation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(1vh);
    }
}

/* Scroll Down Animation */
.scroll-down-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounceUpDown 2s ease infinite;
}

@keyframes bounceUpDown {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-down {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 60px;
    cursor: pointer;
}

.arrow-down {
    position: absolute;
    top: 0;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    border-left: 3px solid var(--light-color);
    border-bottom: 3px solid var(--light-color);
    transform: rotate(-45deg);
    animation: arrow-down 2s infinite;
    opacity: 0;
}

.arrow-down:nth-child(1) {
    animation-delay: 0s;
}

.arrow-down:nth-child(2) {
    top: 16px;
    animation-delay: 0.5s;
}

@keyframes arrow-down {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(-45deg) translate(-20px, 20px);
    }
}

/* Features Section */
#features {
    position: relative;
    z-index: 2;
    background-color: var(--light-color);
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    margin-top: -8vh;
    padding-top: 8vh;
}

.features .card {
    border: none;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.features .card-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.features .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* About Section */
.section-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.btn-link:hover {
    color: #15325a;
    text-decoration: underline;
}

/* Amenities Section */
.amenities {
    padding: 80px 0;
}

.amenity-item {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: #f8f9fa;
    height: 100%;
    transition: transform 0.3s ease;
}

.amenity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Amenities Carousel */
#amenitiesCarousel {
    padding-bottom: 50px;
}

#amenitiesCarousel .carousel-indicators {
    bottom: 0;
}

#amenitiesCarousel .carousel-indicators button {
    background-color: #0d6efd;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

#amenitiesCarousel .carousel-control-prev,
#amenitiesCarousel .carousel-control-next {
    width: 5%;
    color: #0d6efd;
}

#amenitiesCarousel .carousel-control-prev-icon,
#amenitiesCarousel .carousel-control-next-icon {
    filter: invert(40%) sepia(50%) saturate(1000%) hue-rotate(190deg) brightness(90%) contrast(95%);
}

/* Facility Cards */
.facility-card {
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.facility-title {
    background: rgba(13, 110, 253, 0.8);
    color: white;
    padding: 8px;
    text-align: center;
    font-weight: 500;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.multi-item-carousel {
    padding: 0 30px;
}

.amenity-item i {
    color: var(--primary-color);
}

.amenity-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* Rooftop Section */
.rooftop {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/rooftop.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-color);
    padding: 100px 0;
}

/* Location Section */
.location {
    padding: 80px 0;
}

.location-benefit {
    text-align: center;
    padding: 20px;
    height: 100%;
    transition: all 0.3s ease;
}

.location-benefit i {
    color: var(--primary-color);
}

.location-benefit p {
    margin-bottom: 0;
}

.map-container {
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Events Section */
.events {
    padding: 80px 0;
}

.event-card {
    display: flex;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    overflow: hidden;
}

.event-date {
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
}

.event-date .month {
    font-size: 1.2rem;
    font-weight: 700;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 900;
}

.event-details {
    padding: 20px;
    flex: 1;
}

.coming-soon-message {
    padding: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Floating Images in Events Section */
.floating-images-container {
    height: 350px;
    width: 100%;
}

.floating-images-container .image-1 {
    width: 80%;
    z-index: 1;
}

.floating-images-container .image-2 {
    width: 50%;
    top: 40%;
    right: 0;
    z-index: 2;
    transform: rotate(5deg);
}

.floating-images-container .image-3 {
    width: 45%;
    top: 60%;
    left: 10%;
    z-index: 3;
    transform: rotate(-7deg);
}

.floating-images-container img {
    border: 5px solid white;
    transition: transform 0.3s ease;
}

.floating-images-container .shadow-sm {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.floating-images-container div:hover img {
    transform: scale(1.05);
    z-index: 10;
}

.event-details p {
    margin-bottom: 5px;
    color: var(--gray-color);
}

.event-details p:last-child {
    margin-bottom: 0;
    color: var(--dark-color);
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
}

.gallery img {
    transition: all 0.3s ease;
    height: 200px;
    object-fit: cover;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info i {
    width: 25px;
    text-align: center;
}

/* Tour Booking Form */
.booking-form {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 30px;
}

.booking-form .form-control {
    border-radius: 5px;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
}

.booking-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.booking-form label {
    font-weight: 500;
    margin-bottom: 5px;
}

/* Footer */
.footer {
    background-color: var(--darker-color);
    padding: 60px 0 30px;
}

.footer h5 {
    color: var(--light-color);
    margin-bottom: 20px;
}

.footer a {
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--light-color) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 0 20px;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about .section-title::after {
        left: 0;
        transform: none;
    }
}
