/* ==========================================================================
   Ceylon Nature Trails - Custom CSS
   Theme: Nature Inspired, Luxury Tourism, Glassmorphism
   Colors: Green, Blue, White
   ========================================================================== */

:root {
    --primary-color: #52A5E7;     /* Sky Blue from NIMESHA */
    --primary-light: #7CBFF2;     /* Light Sky Blue */
    --secondary-color: #0E365C;   /* Dark Navy Blue from BUDGET TOURS */
    --accent-color: #0B2640;      /* Deep Navy Blue */
    --accent-light: #A5D3F7;      /* Soft Ice Blue */
    --light-bg: #F4F8FB;          /* Soft Ice Blue Off-White */
    --white: #FFFFFF;
    --dark-text: #1C2D3D;
    --muted-text: #6A7E91;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
}
body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--light-bg);
    position: relative;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    color: var(--secondary-color);
}

.text-primary { color: var(--primary-color) !important; }
.text-primary-light { color: var(--primary-light) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.btn-primary { 
    background-color: var(--primary-color); 
    border-color: var(--primary-color); 
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
}
.btn-primary::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: 2;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}
.btn-primary:hover::before {
    left: 100%;
}
.btn-primary:hover::after {
    width: 100%;
}
.btn-primary:hover {
    color: var(--white) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(82, 165, 231, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
}
.btn-outline-primary::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}
.btn-outline-primary:hover::after {
    width: 100%;
}
.btn-outline-primary:hover {
    background-color: transparent !important;
    color: var(--white) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(82, 165, 231, 0.2);
}

/* Navbar */
.custom-navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    transition: all 0.3s ease;
}
.custom-navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.navbar-logo {
    height: 100px;
    max-height: 100px;
    transition: all 0.3s ease;
}
.custom-navbar.scrolled .navbar-logo {
    height: 60px;
    max-height: 60px;
}
.custom-navbar .nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}
.custom-navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.custom-navbar .nav-link:hover::after,
.custom-navbar .nav-link.active::after {
    width: 100%;
}
.custom-navbar .nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.hero-slider {
    height: 100vh;
    width: 100%;
}
.hero-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slider .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(27, 67, 50, 0.4), rgba(27, 67, 50, 0.7));
}
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}
.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 1px;
}
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    z-index: 10;
    animation: bounce 2s infinite;
}

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

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(82, 165, 231, 0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}
.glass-card:hover::before {
    opacity: 1;
}
.glass-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(82, 165, 231, 0.12);
    border-color: rgba(82, 165, 231, 0.4);
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.4s ease;
}
.glass-card:hover .feature-icon {
    transform: scale(1.2) rotate(8deg);
    color: var(--primary-light);
}
.glass-card h4, .glass-card p {
    position: relative;
    z-index: 1;
}

/* Package Cards */
.package-card {
    border: 1px solid rgba(82, 165, 231, 0.08);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    background: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.package-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(82, 165, 231, 0.15);
    border-color: rgba(82, 165, 231, 0.3);
}
.package-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}
.package-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.package-card:hover .package-img-wrapper img {
    transform: scale(1.1);
}
.package-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.package-duration {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.9);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Destination Cards */
.destination-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}
.destination-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(14, 54, 92, 0.2);
}
.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.destination-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(14, 54, 92, 0.85) 0%, rgba(14, 54, 92, 0.2) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    transition: all 0.5s ease;
}
.destination-card:hover .destination-overlay {
    background: linear-gradient(to top, rgba(14, 54, 92, 0.95) 0%, rgba(82, 165, 231, 0.4) 100%);
    backdrop-filter: blur(2px);
}
.destination-card:hover img {
    transform: scale(1.12);
}
.destination-title {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.destination-card:hover .destination-title {
    transform: translateY(-5px);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
}
.section-title .divider {
    height: 3px;
    width: 60px;
    background: var(--primary-color);
    margin: 0 auto 20px;
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.section-title:hover .divider {
    width: 120px;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 70px 0 20px;
}
.footer h4 {
    color: var(--white);
    margin-bottom: 25px;
}
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}
.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}
.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* WhatsApp Button Hover */
.btn-success {
    background-color: #25D366;
    border: none;
    transition: all 0.3s ease;
}
.btn-success:hover {
    background-color: #128C7E !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4) !important;
}

/* Utility */
.pt-100 { padding-top: 100px; }
.pb-100 { padding-bottom: 100px; }
.mt-100 { margin-top: 100px; }

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .section-title h2 { font-size: 2rem; }
}

/* Animations & Dynamic Backgrounds */
body {
    background: linear-gradient(135deg, #F4F8FB 0%, #EAF3FA 50%, #F4F8FB 100%);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Ken Burns active background slide zoom */
.hero-slider .swiper-slide-active {
    animation: kenburns 8s ease-out forwards;
}

@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: scale(0.8);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.back-to-top:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(14, 54, 92, 0.3);
}
.back-to-top i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}
.back-to-top:hover i {
    animation: bounceUp 1s infinite alternate;
}

@keyframes bounceUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}
