/* ========================================
   TRAVEL AGENCY 2026 - Modern CSS
   Vibrant, conversion-optimized design
   ======================================== */

/* CSS Variables */
:root {
    /* Colors - Vibrant travel palette */
    --primary: #ff6b6b;
    --primary-dark: #ee5a52;
    --secondary: #4ecdc4;
    --accent: #ffe66d;
    --dark: #2d3436;
    --gray: #636e72;
    --light-gray: #dfe6e9;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-cta: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-card: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-sunset: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    /* Typography */
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-base: 16px;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.2);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Image optimization */
img[loading="lazy"] {
    content-visibility: auto;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

img[decoding="async"] {
    content-visibility: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.brand-logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--dark);
    transition: var(--transition);
    position: relative;
}

.nav-menu a:not(.btn):hover {
    color: var(--primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-hero);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    font-size: 15px;
}

.btn-primary {
    background: var(--gradient-cta);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
    display: block;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-bg img,
.hero-bg video,
.hero-bg picture,
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-bg picture {
    position: absolute;
    inset: 0;
}

.hero-fallback-img {
    z-index: 0;
}

.hero-video,
.hero-image {
    animation: none;
    z-index: 1;
}

.hero-bg img {
    animation: zoomIn 20s ease-in-out infinite alternate;
}

@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--white);
    text-align: center;
    font-size: 14px;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    font-size: 24px;
    margin-top: 5px;
}

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

/* Animations */
.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

/* ========================================
   SECTIONS
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 20px;
}

/* ========================================
   DESTINATIONS SECTION
   ======================================== */
.destinations-section {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.destination-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

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

.destination-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.destination-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-card:hover .destination-image img {
    transform: scale(1.15);
}

.destination-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.destination-card:hover .destination-overlay {
    opacity: 1;
}

.destination-info {
    padding: 25px;
}

.destination-info h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--dark);
}

.destination-country {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.destination-desc {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.lead {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.info-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.info-card p {
    opacity: 0.9;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.contact-form {
    color: var(--dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.alert {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.alert-success h3 {
    margin-bottom: 8px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ========================================
   BLOG SECTIONS
   ======================================== */
.blog-preview-section {
    padding: var(--section-padding);
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.blog-image {
    display: block;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-content {
    padding: 25px;
}

.blog-date {
    display: inline-block;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-content h3 a {
    color: var(--dark);
    transition: var(--transition);
}

.blog-content h3 a:hover {
    color: var(--primary);
}

.blog-excerpt {
    color: var(--gray);
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.read-more:hover {
    gap: 5px;
}

/* Blog List Page */
.blog-header {
    padding: 80px 0 60px;
    background: var(--gradient-hero);
    color: var(--white);
    text-align: center;
}

.blog-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.blog-header-desc {
    font-size: 20px;
    opacity: 0.95;
}

.blog-list-section {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.blog-list-grid {
    display: grid;
    gap: 40px;
}

.blog-list-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.blog-list-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-list-image {
    height: 100%;
    min-height: 250px;
    overflow: hidden;
}

.blog-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-list-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.blog-list-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.read-more-btn {
    color: var(--primary);
    font-weight: 600;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
}

/* Blog Post Page */
.blog-post {
    background: var(--white);
}

.post-hero {
    height: 500px;
    overflow: hidden;
}

.post-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-container {
    max-width: 900px;
}

.post-header {
    padding: 60px 0 40px;
    text-align: center;
}

.post-date {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-header h1 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.2;
    margin-bottom: 20px;
}

.post-content {
    padding: 40px 0;
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
}

.post-content h2 {
    font-size: 32px;
    margin: 40px 0 20px;
    color: var(--dark);
}

.post-content h3 {
    font-size: 24px;
    margin: 30px 0 15px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-share {
    padding: 40px 0;
    border-top: 2px solid var(--light-gray);
    border-bottom: 2px solid var(--light-gray);
}

.post-share h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--white);
    transition: var(--transition);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.related-posts {
    padding: 60px 0;
}

.related-posts h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

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

.related-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.related-image {
    height: 180px;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
    display: block;
}

.related-content h3 a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.related-content h3 a:hover {
    color: var(--primary);
}

.related-content p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-cta {
    padding: 40px 0 80px;
}

.post-cta-content {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
}

.post-cta-content h3 {
    font-size: 36px;
    margin-bottom: 15px;
}

.post-cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
    padding: var(--section-padding);
    background: var(--white);
}

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

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 16px;
    background: var(--bg-light);
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray);
    font-size: 15px;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: var(--section-padding);
    background: var(--gradient-sunset);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #1a1a2e;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-col p {
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-col a:hover {
    opacity: 1;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 20px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-list-card {
        grid-template-columns: 1fr;
    }
    
    .blog-list-image {
        min-height: 250px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .destinations-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 50px 0;
    }
    
    .hero {
        height: 80vh;
        min-height: 500px;
    }
    
    .btn-large {
        padding: 14px 32px;
        font-size: 16px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .post-hero {
        height: 300px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.no-posts .btn {
    margin-top: 20px;
}
