/* Performance Optimized CSS for Rafting-Packages.php */
/* Moved from inline styles to reduce HTML size and improve FCP */

/* Modern CSS Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --danger-gradient: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    --success-color: #28a745;
    --shadow-light: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-dark: 0 20px 40px rgba(0,0,0,0.15);
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in.delay-1 { animation-delay: 0.2s; }
.fade-in.delay-2 { animation-delay: 0.4s; }
.fade-in.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Package Cards with Enhanced Animations */
.package-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
    background: white;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.package-card:hover::before {
    left: 100%;
}

.package-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-dark);
}

.package-header {
    background: var(--primary-gradient);
    color: white;
    padding: 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.package-header::after {
    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: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.package-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    flex: 1;
    position: relative;
    z-index: 2;
}

.package-price {
    background: rgba(255,255,255,0.95);
    color: #333;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.package-body {
    padding: 25px;
    position: relative;
    color: #2c3e50 !important;
}

.package-card h3, .package-card h5, .package-card p, .package-card strong {
    color: #2c3e50 !important;
}

.package-card .feature-list li {
    color: #34495e !important;
}

.package-card .feature-list li:before {
    color: #28a745 !important;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    transition: var(--transition);
}

.feature-list li:hover {
    padding-left: 10px;
    color: #667eea;
}

.feature-list li:before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    margin-right: 10px;
    transition: var(--transition);
}

.feature-list li:hover:before {
    transform: scale(1.2);
}

.btn-book-now {
    background: var(--primary-gradient);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    width: 100%;
    position: relative;
    overflow: hidden;
    color: white;
}

.btn-book-now::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: left 0.5s;
}

.btn-book-now:hover::before {
    left: 100%;
}

.btn-book-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.highlight-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid #667eea;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    color: #2c3e50;
}

.highlight-box p {
    color: #2c3e50 !important;
}

.highlight-box ul li {
    color: #34495e;
}

.faq-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 15px 20px;
    margin: 0;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid #dee2e6;
    color: #1565c0;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
    color: #0d47a1;
}

.faq-answer {
    padding: 20px;
    background: white;
    color: #333;
}

.faq-answer p {
    color: #333 !important;
}

.rating-stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.testimonial-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    color: #333;
}

.testimonial-card p {
    color: #333 !important;
}

.testimonial-card cite {
    color: #0056b3 !important; /* Darker blue for better contrast */
    font-weight: 600;
}

.safety-icon {
    width: 50px;
    height: 50px;
    background: #28a745;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    .package-card {
        margin: 15px;
    }

    .package-header {
        padding: 15px;
    }

    .package-price {
        position: static;
        margin-top: 10px;
        width: fit-content;
    }
}

/* Footer Styles */
#footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 50px;
}

#footer .container .col-md-3 {
    display: inline-block;
    vertical-align: top;
    width: 23%;
    margin-right: 2%;
    padding: 0 10px;
    box-sizing: border-box;
}

#footer .container .col-md-3:last-child {
    margin-right: 0;
}

#footer h4 {
    color: #ecf0f1;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

#footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: #3498db;
}

#footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer ul li {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

#footer .btn-template-main {
    background-color: #3498db;
    border-color: #3498db;
    color: #fff;
    font-size: 0.9rem;
    padding: 8px 16px;
}

#footer .btn-template-main:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    color: #fff;
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
    #footer .container .col-md-3 {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
        padding: 0 10px;
    }
}

#copyright {
    background-color: #34495e;
    color: #bdc3c7;
    padding: 20px 0;
    text-align: center;
}

#copyright a {
    color: #3498db;
}

/* Heading Styles */
h1 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

h2 {
    color: #34495e;
    font-weight: 600;
    font-size: 2rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h3 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
}

h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

h4 {
    color: #34495e;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Get It Section Styling */
#get-it {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 0;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

#get-it::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="90" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

#get-it .container {
    position: relative;
    z-index: 2;
}

#get-it h3 {
    color: white;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 30px;
    text-align: center;
}

#get-it .col-md-8 {
    text-align: center;
    margin-bottom: 30px;
}

#get-it .col-md-4 {
    text-align: center;
}

#get-it .btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#get-it .btn-danger::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: left 0.5s;
}

#get-it .btn-danger:hover::before {
    left: 100%;
}

#get-it .btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
}

/* Responsive adjustments for get-it section */
@media (max-width: 768px) {
    #get-it {
        padding: 40px 0;
    }

    #get-it h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    #get-it .btn-danger {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Price styling */
.price-original {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9em;
    opacity: 0.7;
}

/* Additional text color fixes with improved contrast */
.text-primary { color: #0056b3 !important; } /* Darker blue for better contrast */
.text-success { color: #155724 !important; } /* Darker green for better contrast */
.text-warning { color: #856404 !important; }
.text-danger { color: #721c24 !important; }
.text-muted { color: #383d41 !important; }
.text-white { color: #ffffff !important; }
.text-dark { color: #212529 !important; } /* Darker text for testimonials */

/* Breadcrumb link contrast fix */
.breadcrumb-item a {
    color: #0056b3 !important; /* Darker blue for better contrast on light background */
}

/* Hero Section Styling */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Hero Section H1 Styling */
.hero-section h1 {
    color: #ffc107 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-stats {
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffc107;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    margin-top: 5px;
}

/* Activity Cards Enhancement */
.activity-card:hover {
    transform: translateY(-5px);
}

.activity-card-img {
    border-radius: 15px 15px 0 0;
    transition: transform 0.3s ease;
}

.activity-card:hover .activity-card-img {
    transform: scale(1.05);
}

/* Enhanced animations for visual appeal */
.hero-section h1 {
    animation: slideInFromLeft 1s ease-out;
}

.hero-section p {
    animation: slideInFromRight 1s ease-out 0.3s both;
}

.hero-stats {
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image gallery styling for rafting packages */
.package-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Enhanced package cards with background images */
.package-card {
    background-size: cover;
    background-position: center;
    position: relative;
}

.package-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    z-index: 1;
}

.package-card > * {
    position: relative;
    z-index: 2;
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 70vh;
        text-align: center;
        padding: 100px 0 80px 0;
        display: flex;
        align-items: center;
    }

    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .hero-section .lead {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .hero-section .btn {
        font-size: 1rem;
        padding: 12px 25px;
        margin-top: 15px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .hero-section {
        padding: 80px 0 60px 0;
        min-height: 60vh;
    }

    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-stats {
        gap: 10px;
        margin-bottom: 20px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .hero-section .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}
