/* Kerala Wildlife Tourism - Premium CSS Framework */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Merriweather:wght@300;400;700&display=swap');

/* CSS Variables for Consistent Design */
:root {
    --primary-color: #2d5016;
    --secondary-color: #8b4513;
    --accent-color: #ff8c00;
    --earth-green: #228b22;
    --forest-dark: #1a3d0a;
    --warm-beige: #f5f5dc;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--warm-beige);
    overflow-x: hidden;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section-dark {
    background-color: var(--forest-dark);
    color: var(--white);
}

/* Loading Animation */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--earth-green));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.wildlife-loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero Section with Wildlife Gallery */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--earth-green));
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    filter: brightness(0.7);
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(45, 80, 22, 0.8) 0%,
        rgba(34, 139, 34, 0.6) 50%,
        rgba(26, 61, 10, 0.8) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Hero Navigation */
.hero-nav {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 15px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.cta-btn::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;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-phone {
    background-color: var(--accent-color);
    color: var(--white);
}

.cta-whatsapp {
    background-color: #25d366;
    color: var(--white);
}

.cta-email {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Typography */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--earth-green));
    border-radius: 2px;
}

.subsection-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
}

/* Wildlife Gallery Grid */
.wildlife-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.wildlife-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.wildlife-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.wildlife-card-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.wildlife-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(45, 80, 22, 0.3) 0%,
        rgba(34, 139, 34, 0.2) 50%,
        rgba(255, 140, 0, 0.3) 100%
    );
    opacity: 0;
    transition: var(--transition);
}

.wildlife-card:hover .wildlife-card-image::before {
    opacity: 1;
}

.wildlife-card-content {
    padding: 25px;
}

.wildlife-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

/* Attraction Cards */
.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.attraction-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 5px solid var(--accent-color);
}

.attraction-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--earth-green);
}

.attraction-icon {
    font-size: 2.5rem;
    color: var(--earth-green);
    margin-bottom: 20px;
}

.attraction-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.attraction-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Itinerary Section */
.itinerary-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.itinerary-card {
    background: linear-gradient(135deg, var(--white), var(--warm-beige));
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--shadow);
    border: 2px solid var(--earth-green);
}

.itinerary-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.itinerary-days {
    list-style: none;
}

.itinerary-day {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--white);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.day-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.day-activities {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--earth-green));
    color: var(--white);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: linear-gradient(135deg, var(--earth-green), var(--primary-color));
}

.faq-icon {
    font-size: 1.2rem;
    transition: var(--transition);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background: var(--white);
}

.faq-item.active .faq-answer {
    padding: 25px;
    max-height: 200px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.review-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
    border-top: 5px solid var(--accent-color);
}

.review-stars {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.review-author {
    font-weight: 600;
    color: var(--primary-color);
}

.review-location {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--forest-dark), var(--primary-color));
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p, .footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.8;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Sticky CTA Bar */
.sticky-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sticky-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.sticky-phone {
    background-color: var(--accent-color);
}

.sticky-whatsapp {
    background-color: #25d366;
}

.sticky-email {
    background-color: var(--primary-color);
}

.sticky-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 140, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .wildlife-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .attractions-grid {
        grid-template-columns: 1fr;
    }
    
    .itinerary-container {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .sticky-cta {
        bottom: 10px;
        right: 10px;
    }
    
    .sticky-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .wildlife-card-content,
    .attraction-card,
    .itinerary-card,
    .review-card {
        padding: 20px;
    }
    
    .faq-question {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .hero-nav,
    .sticky-cta,
    .cta-buttons {
        display: none;
    }
    
    .hero {
        height: auto;
        padding: 40px 0;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        padding: 20px 0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --text-dark: #000000;
        --text-light: #333333;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-slide {
        transition: none;
    }
    
    .animate-on-scroll {
        animation: none;
        opacity: 1;
        transform: none;
    }
}