/**
 * Next Stop Cappadocia - Main Stylesheet
 * Elegant design with enhanced pastel colors - improved saturation and contrast
 */

:root {
    /* Enhanced Pastel Color Palette - More Saturated */
    --primary-color: #3d4856;
    --secondary-color: #8b9db0;
    --accent-color: #5a9fd4;
    --accent-hover: #3b82c4;
    --gradient-start: #a8c5e0;
    --gradient-end: #d4b8a8;
    --success-color: #68d391;
    --error-color: #f56565;
    --warning-color: #f6ad55;
    
    /* Enhanced Backgrounds - Slightly More Contrast */
    --bg-primary: #fefefe;
    --bg-secondary: #f1f5f9;
    --bg-light: #e8edf3;
    --bg-card: #ffffff;
    
    /* Enhanced Text Colors - Better Contrast */
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    
    /* Enhanced Borders - More Visible */
    --border-color: #cbd5e0;
    --border-light: #e2e8f0;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Elegant Typography */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Navigation */
.navbar {
    background-color: rgba(0, 0, 0, 0.50);
    backdrop-filter: saturate(180%) blur(20px);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.80);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff !important;
    padding: 12px 0;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: opacity 0.5s;
    display: flex;

    opacity: 0.7;
    align-items: center;
}

.navbar-brand:hover {
    transition: opacity 0.5s;
    opacity: 1;
}

.navbar-brand img {
    transition: opacity 1s;
    object-fit: contain;
    opacity: 0.20;
}

.navbar-brand:hover img {
    transition: opacity 1s; 
    opacity: 1;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem;
    padding: 12px 16px;
    transition: color 0.3s;
    font-weight: 400;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 8px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    margin-top: 0;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Cards */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-light);
    background-color: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08) !important;
    border-color: var(--accent-color);
}

/* Clickable Cards */
.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12) !important;
    border-color: var(--accent-color);
}

.clickable-card:hover .text-primary {
    color: var(--accent-hover) !important;
}

.card-img-top {
    object-fit: cover;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

/* Buttons */
.btn {
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
    padding: 10px 24px;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border: none;
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-color) 100%);
    color: #fff;
}

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

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.btn-light {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-light:hover {
    background-color: #fff;
    color: var(--text-primary);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.9);
    color: #fff;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    transition: all 0.3s;
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(90, 159, 212, 0.2);
    background-color: #fff;
}

/* Badges */
.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}

.bg-primary {
    background-color: var(--accent-color) !important;
}

.bg-success {
    background-color: var(--success-color) !important;
    color: var(--text-primary);
}

.bg-danger {
    background-color: var(--error-color) !important;
}

.bg-warning {
    background-color: var(--warning-color) !important;
    color: var(--text-primary);
}

.bg-info {
    background-color: var(--accent-color) !important;
}

/* Sections */
section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.bg-secondary {
    background-color: var(--bg-secondary) !important;
}

/* Typography */
.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.lead {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.7;
}

.text-muted {
    color: var(--text-secondary) !important;
}

.text-primary {
    color: var(--accent-color) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

/* Footer */
footer {
    background-color: #1a202c !important;
    color: #fff !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h5 {
    color: #fff !important;
    font-weight: 600;
}

footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #fff !important;
    opacity: 1 !important;
}

footer p,
footer li {
    color: rgba(255, 255, 255, 0.8) !important;
}


/* Alerts */
.alert {
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background-color: var(--bg-card);
}

.alert-success {
    background-color: rgba(104, 211, 145, 0.25);
    border-color: var(--success-color);
    color: var(--text-primary);
}

.alert-danger {
    background-color: rgba(245, 101, 101, 0.25);
    border-color: var(--error-color);
    color: var(--text-primary);
}

.alert-warning {
    background-color: rgba(246, 173, 85, 0.25);
    border-color: var(--warning-color);
    color: var(--text-primary);
}

.alert-info {
    background-color: rgba(90, 159, 212, 0.25);
    border-color: var(--accent-color);
    color: var(--text-primary);
}

/* Feature Icons */
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Timeline */
.timeline .card {
    margin-bottom: 1.5rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .display-2 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 60px 0;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 90px; /* Positioned above the back-to-top button (50px button + 20px spacing) */
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    text-decoration: none;
    color: #fff;
}

.whatsapp-float i {
    line-height: 1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 85px; /* Positioned above the back-to-top button on mobile */
        right: 15px;
    }
}

