/* 
 * CaveXplore - Custom CSS Styles
 * Modern and majestic styling for cave exploration landing page
 */

/* ===== GENERAL STYLES ===== */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #2d3436;
}

.section-divider {
    display: none;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #636e72;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
    background-color: rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 0.7rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: #fff;
}

/* Brand logo image size/alignment */
.navbar-brand img {
    height: 36px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #28a745, #20c997);
    bottom: -3px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

/* Login/Sign Up button hover underline effect */
.nav-link.btn.btn-outline-light:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #28a745, #20c997);
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link.btn.btn-outline-light:hover:after {
    width: 80%;
}

/* Remove background hover effect for login/sign up button */
.nav-link.btn.btn-outline-light:hover {
    background-color: transparent !important;
    color: #fff !important;
    border-color: #fff !important;
    transform: none;
    box-shadow: none;
}

/* ===== HERO SECTION ===== */
.hero-section {
    height: 100vh;
    min-height: 700px;
    background: url('../images/hero-bg.jpg?v=1') no-repeat center center;
    background-size: cover;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
}

.hero-section h1 {
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease-out;
}

.hero-section .lead {
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: both;
}

/* Safety Equipment Styles */
.safety-equipment {
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: both;
}

.safety-equipment h3 {
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.equipment-item {
    padding: 1.5rem 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.equipment-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.equipment-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.equipment-image {
    width: 60px;
    height: 60px;
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);
    transition: all 0.3s ease;
}

.equipment-item:hover .equipment-image {
    filter: brightness(0) saturate(100%) invert(64%) sepia(98%) saturate(1217%) hue-rotate(127deg) brightness(103%) contrast(101%);
    transform: scale(1.1);
}

.equipment-item h5 {
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.equipment-item p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for safety equipment */
@media (max-width: 768px) {
    .equipment-item {
        padding: 1rem 0.5rem;
        margin-bottom: 1rem;
    }
    
    .equipment-icon {
        font-size: 2.5rem;
    }
    
    .equipment-item h5 {
        font-size: 1rem;
    }
    
    .equipment-item p {
        font-size: 0.8rem;
    }
    
    .safety-equipment h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.btn-primary {
    background: linear-gradient(90deg, #28a745, #20c997);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(90deg, #28a745, #20c997);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    padding: 0.8rem 2rem;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ===== ABOUT SECTION ===== */
.about-img-container {
    position: relative;
    z-index: 1;
}



.feature-item {
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

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

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #28a745;
    background: linear-gradient(90deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== EXPEDITIONS SECTION ===== */
.expedition-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.expedition-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.expedition-card img {
    height: 220px;
    object-fit: cover;
}

.expedition-details {
    display: flex;
    justify-content: space-between;
    color: #636e72;
}

.expedition-details span {
    display: flex;
    align-items: center;
}

.expedition-details i {
    margin-right: 5px;
    color: #28a745;
}

.expedition-price {
    font-weight: 500;
}

.expedition-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
}

/* ===== GALLERY SECTION ===== */
.gallery-item {
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.gallery-item img {
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonial-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.testimonial-rating {
    font-size: 1.1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f4;
}

.testimonial-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid #28a745;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #fff;
    font-size: 1.2rem;
}

.author-info {
    flex-grow: 1;
}

.author-name {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #2d3436;
}

/* Testimonial Form Styles */
.testimonial-form-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #e9ecef;
}

.testimonial-form-card {
    background: #fff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f3f4;
}

.testimonial-form-card h4 {
    color: #2d3436;
    font-weight: 700;
    margin-bottom: 2rem;
}

.testimonial-form-card .form-label {
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 0.5rem;
}

.testimonial-form-card .form-control,
.testimonial-form-card .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.testimonial-form-card .form-control:focus,
.testimonial-form-card .form-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.testimonial-form-card textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.testimonial-form-card .btn-primary {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.testimonial-form-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* Responsive Design for Testimonials */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-form-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-image,
    .testimonial-avatar {
        width: 40px;
        height: 40px;
        margin-right: 0.75rem;
    }
    
    .testimonial-avatar {
        font-size: 1rem;
    }
}

/* Animation for testimonials on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.1s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(4) {
    animation-delay: 0.3s;
}

.testimonial-card:nth-child(5) {
    animation-delay: 0.4s;
}

.testimonial-card:nth-child(6) {
    animation-delay: 0.5s;
}

/* ===== CONTACT SECTION ===== */
.contact-form-container {
    background-color: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    font-size: 1.5rem;
    color: #28a745;
    margin-right: 1rem;
    background: linear-gradient(90deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #2d3436;
    color: #fff;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #dfe6e9;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #28a745;
    padding-left: 5px;
}

.social-links {
    display: flex;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(90deg, #28a745, #20c997);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-bottom-links {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    padding-left: 0;
    margin-bottom: 0;
}

.footer-bottom-links li {
    margin-left: 1.5rem;
}

.footer-bottom-links a {
    color: #dfe6e9;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #28a745;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 600px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-img-container:before {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 500px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
    }
    
    .hero-buttons .btn {
        margin-bottom: 1rem;
    }
}

/* ===== NOTIFICATION STYLES ===== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    animation: slideInRight 0.3s ease-out;
}

.notification-alert {
    background: #28a745;
    color: white;
    padding: 12px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    animation: fadeIn 0.3s ease-out;
}

.notification-alert.alert-success {
    background: #28a745;
}

.notification-alert.alert-error {
    background: #dc3545;
}

.notification-alert.alert-warning {
    background: #ffc107;
    color: #212529;
}

.notification-alert.alert-info {
    background: #17a2b8;
}

.notification-icon {
    font-size: 16px;
    color: white;
}

.notification-message {
    flex: 1;
}

/* Notification animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification-hide {
    animation: fadeOutRight 0.3s ease-out forwards;
}

/* Auto-hide animation */
.notification-container {
    animation: slideInRight 0.3s ease-out, fadeOutRight 0.3s ease-out 4.7s forwards;
}

/* Responsive design */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification-alert {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ===== CUSTOM BUTTON OVERRIDES ===== */
.btn-outline-primary {
    border: 2px solid #28a745;
    color: #28a745;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* ===== ALERT OVERRIDES ===== */
.alert-info {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #155724;
}