/* 
 * template-about-srilanka.css - PREMIUM TOURISM DESIGN
 * Sri Lankan Highlights Section - Centralized Color System
 * Version: 3.0 - Local Video with Controls | Gold & Blue Theme
 * Uses main.css CSS Variables for All Colors
 */

/* ==================== VIDEO HERO SECTION ==================== */
.srilanka-hero-video-container {
    position: relative;
    width: 100vw;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--silver-800) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.srilanka-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.srilanka-background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.8);
}

/* ==================== VIDEO CONTROLS ==================== */
.srilanka-video-controls {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 4;
    display: flex;
    gap: 12px;
    animation: srilankaFadeInUp 1s ease-out 1.3s both;
}

.srilanka-control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.srilanka-control-btn:hover {
    background: rgba(251, 191, 36, 0.9);
    border-color: var(--primary-gold);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.srilanka-control-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.srilanka-control-btn i {
    pointer-events: none;
}

/* Prevent any parent link behavior */
.srilanka-video-controls a {
    pointer-events: none;
    text-decoration: none;
}

.srilanka-video-controls button {
    pointer-events: auto;
}

/* ==================== VIDEO OVERLAY ==================== */
.srilanka-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(30, 58, 138, 0.5) 0%,
        rgba(30, 58, 138, 0.3) 30%,
        rgba(251, 191, 36, 0.15) 70%,
        rgba(16, 185, 129, 0.15) 100%
    );
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.srilanka-video-content {
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.srilanka-subtitle {
    color: var(--primary-gold);
    font-weight: 600;
    letter-spacing: 4px;
    font-size: 13px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    animation: srilankaFadeInUp 1s ease-out 0.5s both;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.srilanka-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    animation: srilankaFadeInUp 1s ease-out 0.7s both;
    color: var(--white);
    letter-spacing: -1px;
}

.srilanka-text-gradient {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.srilanka-hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    line-height: 1.7;
    animation: srilankaFadeInUp 1s ease-out 0.9s both;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
}

.srilanka-btn-explore {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-blue));
    color: var(--white);
    padding: 16px 36px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.35);
    animation: srilankaFadeInUp 1s ease-out 1.1s both;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: 'Inter', sans-serif;
}

.srilanka-btn-explore:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.5);
    color: var(--white);
    text-decoration: none;
    background: linear-gradient(135deg, var(--gold-500), var(--blue-600));
}

.srilanka-btn-explore i {
    transition: transform 0.3s ease;
}

.srilanka-btn-explore:hover i {
    transform: translateX(5px);
}

/* ==================== HIGHLIGHTS SECTION ==================== */
.srilanka-highlights-section {
    background: var(--white);
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.srilanka-section-header {
    margin-bottom: 60px;
}

.srilanka-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.srilanka-section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 0;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

/* ==================== HIGHLIGHT CARDS - GLASSMORPHISM ==================== */
.srilanka-highlight-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 28px 24px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    background-image: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), 
                      linear-gradient(135deg, var(--blue-200), var(--gold-200));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.srilanka-highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.srilanka-highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.15);
}

.srilanka-highlight-card:hover::before {
    transform: scaleX(1);
}

.srilanka-highlight-card:hover .srilanka-card-tag {
    background: var(--primary-gold);
    color: var(--white);
    transform: scale(1.05);
}

.srilanka-card-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.srilanka-card-tag {
    display: inline-block;
    background: var(--blue-100);
    color: var(--primary-blue);
    font-size: 11px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    width: fit-content;
    font-family: 'Inter', sans-serif;
}

.srilanka-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.srilanka-card-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 0;
    font-weight: 400;
    flex: 1;
    font-family: 'Inter', sans-serif;
}

/* ==================== QUICK FACTS SECTION ==================== */
.srilanka-quick-facts-section {
    margin-top: 80px;
    padding: 60px 50px;
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--gold-50) 100%);
    border-radius: 24px;
    border: 1px solid var(--blue-100);
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.08);
}

.srilanka-fact-item {
    padding: 20px 10px;
    text-align: center;
    position: relative;
}

.srilanka-fact-number {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    line-height: 1;
    display: block;
    letter-spacing: -1px;
}

.srilanka-fact-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

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

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

@keyframes srilankaPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.srilanka-hero-video-container {
    opacity: 0;
    animation: srilankaFadeIn 1.5s ease-in-out 0.3s forwards;
}

@keyframes srilankaFadeIn {
    to {
        opacity: 1;
    }
}

/* Stagger animations for cards */
.srilanka-highlight-card {
    opacity: 0;
    transform: translateY(30px);
    animation: srilankaSlideUp 0.6s ease-out forwards;
}

.srilanka-highlight-card:nth-child(1) { animation-delay: 0.1s; }
.srilanka-highlight-card:nth-child(2) { animation-delay: 0.2s; }
.srilanka-highlight-card:nth-child(3) { animation-delay: 0.3s; }
.srilanka-highlight-card:nth-child(4) { animation-delay: 0.4s; }

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 992px) {
    .srilanka-hero-video-container {
        height: 70vh;
        min-height: 500px;
    }
    
    .srilanka-video-controls {
        bottom: 30px;
        right: 30px;
        gap: 10px;
    }
    
    .srilanka-control-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .srilanka-highlights-section {
        padding: 80px 0;
    }
    
    .srilanka-highlight-card {
        margin-bottom: 24px;
        min-height: 240px;
    }
    
    .srilanka-quick-facts-section {
        padding: 50px 40px;
        margin-top: 60px;
    }
    
    .srilanka-fact-number {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .srilanka-hero-video-container {
        height: 60vh;
        min-height: 450px;
    }
    
    .srilanka-video-controls {
        bottom: 20px;
        right: 20px;
        gap: 8px;
    }
    
    .srilanka-control-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .srilanka-video-content {
        padding: 1.5rem;
    }
    
    .srilanka-highlight-card {
        padding: 24px 20px;
        min-height: 220px;
    }
    
    .srilanka-card-title {
        font-size: 22px;
    }
    
    .srilanka-section-header {
        margin-bottom: 40px;
    }
    
    .srilanka-quick-facts-section {
        margin-top: 50px;
        padding: 40px 30px;
    }
    
    .srilanka-fact-number {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .srilanka-highlights-section {
        padding: 60px 0;
    }
    
    .srilanka-video-controls {
        bottom: 15px;
        right: 15px;
        gap: 6px;
    }
    
    .srilanka-control-btn {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
    
    .srilanka-highlight-card {
        padding: 20px 18px;
        min-height: 200px;
        border-radius: 16px;
    }
    
    .srilanka-card-title {
        font-size: 20px;
    }
    
    .srilanka-card-text {
        font-size: 14px;
    }
    
    .srilanka-quick-facts-section {
        padding: 30px 20px;
        margin-top: 40px;
    }
    
    .srilanka-fact-number {
        font-size: 32px;
    }
    
    .srilanka-subtitle {
        font-size: 11px;
        letter-spacing: 2px;
    }
    
    .srilanka-btn-explore {
        padding: 14px 28px;
        font-size: 14px;
    }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
    .srilanka-highlight-card,
    .srilanka-btn-explore,
    .srilanka-control-btn,
    .srilanka-hero-video-container {
        animation: none;
        transition: none;
    }
}

/* ==================== PERFORMANCE OPTIMIZATIONS ==================== */
.srilanka-highlight-card {
    will-change: transform, box-shadow;
}

.srilanka-fact-number {
    will-change: contents;
}

.srilanka-control-btn {
    will-change: transform, background-color;
}

/* ==================== FOCUS STATES FOR ACCESSIBILITY ==================== */
.srilanka-highlight-card:focus-visible {
    outline: 3px solid var(--primary-gold);
    outline-offset: 4px;
}

.srilanka-btn-explore:focus-visible {
    outline: 3px solid var(--primary-gold);
    outline-offset: 4px;
}

.srilanka-control-btn:focus-visible {
    outline: 3px solid var(--primary-gold);
    outline-offset: 4px;
}

/* ==================== UTILITY CLASSES ==================== */
.srilanka-container {
    position: relative;
    z-index: 1;
}

/*
 * ==================== PREMIUM DESIGN SUMMARY ====================
 * 
 * ✅ LOCAL VIDEO: Uses images/sri-lanka-tourism-travel-film.mp4
 * ✅ VIDEO CONTROLS: Play/Pause & Mute/Unmute buttons
 * ✅ CENTRALIZED COLORS: All colors from main.css CSS variables
 * ✅ GLASSMORPHISM: Premium card effects with backdrop blur
 * ✅ GRADIENT BORDERS: Blue to gold animated borders
 * ✅ RESPONSIVE: Optimized for all screen sizes
 * ✅ ACCESSIBLE: ARIA labels and focus states
 * ✅ PERFORMANT: GPU-accelerated animations
 * ✅ PREMIUM AESTHETICS: Luxury tourism website design
 * 
 * Color Palette: Navy Blue (#1e3a8a) + Sunset Gold (#fbbf24)
 * Typography: Playfair Display (serif) + Inter (sans-serif)
 */