/* Home Page Specific Styles */

/* Hero Section */
.hero-home {
    position: relative;
    background: linear-gradient(160deg, #0d1f33 0%, #1a3a5c 30%, #1a6e7a 60%, #2196a6 85%, #2bb5c4 100%);
    color: white;
    padding: 4rem 0 7rem;
    text-align: center;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    max-width: 100%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Animated wave background */
.hero-home::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23ffffff' fill-opacity='0.15' d='M0,40 C360,100 720,0 1080,60 C1260,90 1380,50 1440,40 L1440,120 L0,120Z'/%3E%3C/svg%3E") repeat-x;
    background-size: 1440px 120px;
    animation: waveMove 8s linear infinite;
}

.hero-home::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23ffffff' d='M0,30 C240,70 480,10 720,40 C960,70 1200,20 1440,50 L1440,80 L0,80Z'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
    z-index: 1;
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(160deg, rgba(13,31,51,0.7) 0%, rgba(26,58,92,0.55) 40%, rgba(26,110,122,0.4) 70%, rgba(33,150,166,0.3) 100%);
    z-index: 0;
}

/* Floating decorative elements */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    text-align: center;
}

.hero-home h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-decoration: none;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.25);
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.btn-outline {
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.6);
    color: white;
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: white;
    color: #1a3a5c;
    border-color: white;
}

.btn-reserve {
    background: var(--orange, #e8652b);
    border: 2px solid var(--orange, #e8652b);
    color: white;
}

.btn-reserve:hover {
    background: #d4561f;
    border-color: #d4561f;
    color: white;
}

/* Stats Section - overlapping hero */
.stats-section {
    background: transparent;
    padding: 0;
    margin-top: -4rem;
    position: relative;
    z-index: 3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 12px;
    transition: transform 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Sections spacing */
.regions-section,
.featured-tours-section {
    padding: 4rem 0;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Region Grid */
.regions-section {
    background: var(--bg-light, #f8f9fa);
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.region-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.region-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.region-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.region-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.region-card:hover .region-image img {
    transform: scale(1.1);
}

.region-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.region-badge {
    background: white;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.region-content {
    padding: 1.5rem;
}

.region-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.region-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.region-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Features Section */
.features-section {
    background: var(--bg-light);
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
}

/* Buttons */
.btn-secondary {
    background: var(--navy);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-home {
        padding: 3rem 0 6rem;
        min-height: auto;
    }
    
    .hero-content {
        margin: 0 1rem;
        padding: 1.5rem 1.25rem;
        max-width: calc(100% - 2rem);
        overflow: hidden;
    }
    
    .hero-home h1 {
        font-size: 1.25rem;
        white-space: normal;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 260px;
        text-align: center;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 1rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .regions-section,
    .featured-tours-section {
        padding: 3rem 0;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 0 3rem;
    background: #f8fafc;
    overflow: hidden;
}

.testimonials-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.testimonials-viewport {
    overflow: hidden;
    width: 100%;
}

.testimonials-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
    flex-shrink: 0;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--navy));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--navy);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.testimonial-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--navy);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    transition: all 0.2s;
}

.testimonial-btn:hover {
    background: var(--primary);
    color: white;
}

.testimonial-prev { left: 0.25rem; }
.testimonial-next { right: 0.25rem; }

@media (max-width: 768px) {
    .testimonials-section {
        padding: 3rem 0 2rem;
    }
    
    .testimonials-slider-wrapper {
        padding: 0 2.5rem;
    }
    
    .testimonial-card {
        min-width: 100%;
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .testimonial-btn {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    .testimonial-prev { left: 0.15rem; }
    .testimonial-next { right: 0.15rem; }
}
