:root {
    --primary-color: #0066CC; /* Vibrant Blue */
    --secondary-color: #003366; /* Deep Navy */
    --accent-color: #66B2FF; /* Sky Blue */
    --light-color: #E6F0FA; /* Soft Blue-Gray */
    --dark-color: #001A33; /* Midnight Blue */
    --text-color: #001A33; /* Midnight Blue */
    --text-light: #E6F0FA; /* Soft Blue-Gray */
    --shadow-sm: 0 4px 8px rgba(0, 51, 102, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 51, 102, 0.05);
    --shadow-lg: 0 8px 16px rgba(0, 51, 102, 0.2);
    --background: var(--light-color);
    --text: var(--text-color);
}

[data-theme="dark"] {
    --background: #1a2a44;
    --text: #e6f0fa;
    --primary-color: #4d99e6;
    --secondary-color: #2a5298;
    --light-color: #2a3b5a;
    --text-color: #e6f0fa;
    --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

* {
  box-sizing: border-box;
  max-width: 100%;
}

body {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Wave Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(40, 167, 69, 0.05), rgba(255, 255, 255, 0.1));
    animation: waveBackground 15s linear infinite;
    z-index: -1;
    opacity: 0.3;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.navbar {
    padding: 0px 0;
    background-color: var(--secondary-color);
    position: sticky;
    top: 0;
    height: 80px;
    width: 100%;
    z-index: 1000;
    color: black;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease-in-out;
}

.navbar.scrolled {
    height: 70px;
    background-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
}

.navbar .logo {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-left: -20px;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.navbar .logo i {
    margin-right: 8px;
    color: var(--light-color);
    font-size: 2rem;
}

.navbar .logo:hover {
    color: var(--accent-color);
}

.navbar .nav-link {
    color: var(--light-color);
    font-weight: 500;
    text-decoration: none;
    padding: 12px 22px; /* Increased vertical and horizontal padding */
    margin: 0 4px;      /* Add horizontal spacing between links */
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.navbar .nav-link.active {
    color: var(--accent-color);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
}

.navbar .d-flex {
    margin: 0 auto;
    align-items: center;
    flex-grow: 0;
}

.navbar .form-control {
    width: 300px;
    padding: 10px 15px;
    font-size: 1rem;
    border: 1px solid var(--light-color);
    border-right: none;
    border-radius: 5px 0 0 5px;
    height: 45px;
    background: var(--light-color);
    color: var(--text-color);
    transition: all 0.3s;
}

.navbar .form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(102, 178, 255, 0.2);
}

.navbar .form-control::placeholder {
    color: var(--text-color);
    opacity: 0.6;
}

/* Updated Search Icon Styles */
.navbar .btn-outline-light {
    width: 45px;
    height: 45px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: none;
    background: var(--accent-color);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar .btn-outline-light::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease;
}

.navbar .btn-outline-light:active::after {
    transform: scale(1);
}

.navbar .btn-outline-light:hover {
    background: #4d99e6;
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(102, 178, 255, 0.5);
}

.navbar .btn-outline-light:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 230px; /* Adjusted to align with search bar */
    transform: none;
    background: var(--secondary-color);
    border-radius: 5px;
    box-shadow: var(--shadow-md);
    list-style: none;
    padding: 10px 0;
    margin: 2px 0 0 0;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1051;
    min-width: 180px;
}

/* Responsive: ensure suggestions width matches search bar on mobile */
@media (max-width: 992px) {
    .search-suggestions {
        left: 0;
        width: 100%;
        min-width: 140px;
        max-width: none;
    }
}

.search-suggestions li {
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-suggestions li:hover {
    background: white;
    color: black;
}

.search-suggestions.d-none {
    display: none;
}

.search-suggestions li.selected {
    background: white;
    color: black;
}

.search-suggestions li.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.spinner {
    margin-right: 5px;
    font-size: 0.8rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

header {
    background: url('https://images.pexels.com/photos/414102/pexels-photo-414102.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2') center/cover no-repeat fixed;
    height: 100vh;
    color: var(--text-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 26, 51, 0.3);
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    padding: 0 20px;
    animation: slideIn 1.5s ease-out;
}

header h1 {
    font-size: 4rem;
    margin: 0;
    font-weight: 750;
    text-shadow: 2px 2px 5px rgba(0, 26, 51, 0.5);
    margin-bottom: 20px;
}

header p {
    font-size: 1.7rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 26, 51, 0.5);
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.cta-button:hover {
    background: #004D99;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section {
    background: var(--light-color);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

h2 {
    color: var(--secondary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    text-align: center;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
}

/* Profile Card Styles */
.profile-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 500px;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.profile-card-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.profile-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    display: flex;
    align-items: flex-end;
    padding: 15px;
}

.profile-card-overlay::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: inherit;
    filter: blur(8px);
    z-index: 0;
}

.profile-card-content {
    width: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1;
    padding: 10px;
}

.profile-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.profile-card-text {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.profile-btn {
    align-self: flex-end;
    padding: 8px 16px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.profile-btn:hover {
    background: #e0e0e0;
    color: #000;
    transform: translateY(-2px);
}

/* General Button Styles */
.btn:not(.profile-btn) {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 600;
    border: 2px solid transparent;
}

.btn:not(.profile-btn):hover {
    background: #004D99;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn:not(.profile-btn):focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.tip-card {
    background: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-card i {
    color: var(--accent-color);
}

.tip-card h5 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Travel Stories Card Style */
.story-card {
    display: flex;
    background: var(--light-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 20px auto;
    max-width: 900px;
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.story-image {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.story-card:hover .story-image img {
    transform: scale(1.1);
}

.story-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-title {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.story-content .blockquote {
    font-size: 1.1rem;
    color: var(--text-color);
    border-left: 5px solid var(--accent-color);
    padding-left: 20px;
    margin-bottom: 20px;
}

.story-content .btn {
    align-self: flex-start;
}

.carousel-indicators {
    bottom: -40px;
}

.carousel-indicators button {
    background-color: var(--secondary-color);
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.carousel-indicators .active {
    background-color: var(--accent-color);
}

/* Quiz Enhancements */
.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
}

.progress-bar {
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

/* Quiz step dots */
.quiz-dots {
    margin-bottom: 8px;
    text-align: center;
}
.quiz-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 4px;
    border-radius: 50%;
    background: #e0e0e0;
    vertical-align: middle;
    transition: background 0.3s;
}
.quiz-dot.active {
    background: #0066CC;
    box-shadow: 0 0 6px #66B2FF;
}

/* Quiz checkmark animation */
.quiz-checkmark.animate-check {
    animation: popCheck 0.4s;
}
@keyframes popCheck {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Quiz shake animation */
.shake-quiz {
    animation: shakeQuiz 0.6s;
}
@keyframes shakeQuiz {
    0% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-8px); }
    80% { transform: translateX(8px); }
    100% { transform: translateX(0); }
}

/* Quiz confetti effect */
.quiz-confetti {
    pointer-events: none;
    user-select: none;
    text-align: center;
    font-size: 2.5rem;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1.2s;
}

footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 50px 0 20px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column h3 {
    color: var(--text-light);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #A3C6FF;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-light);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(102, 178, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(102, 178, 255, 0.1);
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: #004D99;
    transform: translateY(-5px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

a:focus, button:focus, input:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Theme Toggle Button */
#theme-toggle {
    background: transparent;
    border: 1px solid var(--text-light);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
}

#theme-toggle:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

#theme-toggle i {
    font-size: 1rem;
}

/* New Styles for Added Sections */
#traveler-stories .carousel-item {
    padding: 20px;
}

#traveler-stories .img-fluid {
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

#traveler-stories .blockquote {
    font-size: 1.2rem;
    color: var(--text-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 20px;
}

#traveler-stories .blockquote-footer {
    color: var(--secondary-color);
    font-size: 1rem;
}

#video-showcase .video-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

#video-showcase .video-container iframe {
    width: 100%;
    height: 100%;
}

#quiz-teaser .cta-button {
    font-size: 1.2rem;
    padding: 12px 30px;
}

#social-feed .social-post {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s;
}

#social-feed .social-post:hover {
    transform: scale(1.05);
}

#social-feed .social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 26, 51, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

#social-feed .social-post:hover .social-overlay {
    opacity: 1;
}

#social-feed .social-overlay i {
    font-size: 2rem;
    color: var(--text-light);
}

#social-feed .social-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 26, 51, 0.6);
    color: var(--text-light);
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

#social-feed .social-post:hover .social-caption {
    opacity: 1;
}

#social-feed .social-caption p {
    margin: 0;
    font-size: 0.9rem;
}

#social-feed .social-caption span {
    font-size: 0.8rem;
    display: block;
    margin-top: 5px;
}

#social-feed .social-caption i {
    color: var(--accent-color);
    margin-right: 5px;
}

.cta-banner {
    background: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 40px 20px;
    border-radius: 10px;
}

.cta-banner h2 {
    color: var(--text-light);
    border-bottom: 3px solid var(--text-light);
}

.cta-banner h2:after {
    background: var(--text-light);
}

.cta-banner .newsletter-form input {
    border-radius: 5px;
    border: 1px solid var(--text-light);
    padding: 10px;
}

.cta-banner .newsletter-form input:focus {
    border-color: var(--text-light);
    box-shadow: 0 0 0 2px rgba(102, 178, 255, 0.2);
}

.cta-banner .newsletter-form .btn {
    padding: 10px 20px;
}

.modal-content {
    background: var(--light-color);
    color: var(--text-color);
    border-radius: 10px;
}

.modal-header {
    border-bottom: 1px solid var(--primary-color);
}

.modal-title {
    color: var(--secondary-color);
}

.modal-footer .btn {
    background: var(--primary-color);
    color: var(--text-light);
}

.modal-footer .btn:hover {
    background: #004D99;
}

#quizResult {
    background: var(--light-color);
    padding: 15px;
    border-radius: 5px;
    box-shadow: var(--shadow-sm);
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

@media (max-width: 992px) {
    header h1 {
        font-size: 1rem;
    }
    header p {
        font-size: 1.4rem;
    }
    .cta-button {
        padding: 10px 25px;
        font-size: 1.1rem;
    }

    .navbar.scrolled {
        height: 100px;
    }
    .navbar .form-control {
        width: 180px;
    }
    .search-suggestions {
        width: 50px;
    }
    .profile-card {
        height: 340px;
    }
    .profile-card-img {
        height: 100%;
    }
    .section {
        padding: 18px 8px;
    }
    .container {
        padding: 0 8px;
    }
    .row.g-4 {
        margin-left: 0;
        margin-right: 0;
    }
    .navbar-collapse {
        background: var(--secondary-color);
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        padding-bottom: 16px;
    }
    .navbar-nav {
        background: transparent;
        padding: 8px 0;
    }
    .navbar-nav .nav-item {
        margin-bottom: 6px;
    }
    .navbar-nav .nav-link {
        padding: 12px 20px;
        margin: 2px 0;
        border-radius: 8px;
    }
    .navbar .d-flex {
        margin: 10px 0 12px 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 3rem;
    }
    header p {
        font-size: 1.2rem;
    }
    .navbar {
        height: 100px;
        padding: 0px 0;
    }
    .navbar .logo {
        font-size: 5rem;
    }
    .navbar .nav-link {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    .navbar .form-control {
        width: 100%;
    }
    .search-suggestions {
        width: 100%;
        top: 15%;
        left: 30%;
    }
    .profile-card {
        height: 300px;
        min-height: 300px;
        max-height: 300px;
    }
    .profile-card-title {
        font-size: 1rem;
    }
    .profile-card-text {
        font-size: 0.8rem;
    }
    .section {
        padding: 10px 2px;
    }
    .container {
        padding: 0 2px;
    }
    .row.g-4 {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .logo{
        font-size: 4rem;
    }
    header h1 {
        font-size: 2rem;
    }
    header p {
        font-size: 1rem;
    }
    .cta-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    .navbar .form-control {
        width: 400px;
    }
    .search-suggestions {
        width: 200px;
    }

    .form-control{
        max-width: 300px;
    }
    .profile-card {
        height: 200px;
        min-height: 200px;
    }
    .profile-card-img {
        height: 100%;
    }
    .section {
        padding: 6px 1px;
    }
    .container {
        padding: 0 1px;
    }
    .row.g-4 {
        flex-direction: column;
        gap: 12px;
    }
    #video-showcase .video-container iframe {
        width: 90vw;
        min-width: 0;
        max-width: 100vw;
        height: 240px !important;
    }
    #video-showcase .video-container {
        width: 350px;
        padding: 0;
        margin: 0 -8px;
    }

    .tip-card{
        width: 90px;
        padding: auto;
    }

    .form-control{
        width: 350px;
    }
    
    #traveler-stories .carousel-item {
        padding: 4px !important;
    }
    #traveler-stories .story-card {
        flex-direction: column;
        padding: 6px 2px;
        margin: 8px 0;
    }
    #traveler-stories .story-content {
        padding: 10px 4px;
    }
    #traveler-stories .img-fluid {
        max-height: 140px;
        border-radius: 8px;
    }
    #traveler-stories .blockquote {
        font-size: 0.95rem;
        padding-left: 10px;
    }
    .navbar .logo {
        /* Remove any margin and align left naturally */
        margin-bottom: -50px;
        margin-left: 0;
        font-size: 1.2rem;
        padding-left: 2px;
    }
    .navbar .logo i {
        font-size: 3rem;
        margin-left: 6px;
    }
    .navbar {
        position: static !important;
    }
    .navbar-toggler {
        z-index: 1100;
    }
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        background: var(--secondary-color);
        z-index: 2000;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        padding-bottom: 16px;
        padding-top: 8px;
        min-height: 60px;
    }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes pulseBackground {
    0% { background: var(--primary-color); }
    50% { background: #004D99; }
    100% { background: var(--primary-color); }
}

@keyframes changeImage {
    0% { background-image: url("https://images.pexels.com/photos/414102/pexels-photo-414102.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2"); opacity: 1; }
    16% { opacity: 1; }
    20% { background-image: url("./TrendsPage/trendsimage2.avif"); opacity: 1; }
    36% { opacity: 1; }
    40% { background-image: url("./TrendsPage/trendsimage4.jpeg"); opacity: 1; }
    56% { opacity: 1; }
    60% { background-image: url("https://images.pexels.com/photos/547119/pexels-photo-547119.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2"); opacity: 1; }
    76% { opacity: 1; }
    80% { background-image: url("https://images.pexels.com/photos/1266831/pexels-photo-1266831.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2"); opacity: 1; }
    96% { opacity: 1; }
    100% { background-image: url("https://images.pexels.com/photos/414102/pexels-photo-414102.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2"); opacity: 1; }
}

.animated-bg {
    animation: changeImage 50s infinite;
}

@keyframes flyAirplane {
    0%, 100% { transform: translate(-50%, -50%) rotate(45deg) scale(1) translateY(0); }
    50% { transform: translate(-50%, -50%) rotate(50deg) scale(1.1) translateY(-20px); }
}

@keyframes trailFade {
    0%, 100% { opacity: 0.9; width: 60px; filter: blur(2px); }
    50% { opacity: 0.5; width: 40px; filter: blur(4px); }
}

@keyframes floatCloud {
    0%, 100% { transform: translateX(0) scale(1); opacity: 0.9; }
    50% { transform: translateX(-20px) scale(1.1); opacity: 0.6; }
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    50% { text-shadow: 0 0 15px rgba(255, 255, 255, 0.8); }
}

@keyframes loadProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes fadeInText {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes waveBackground {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1000px); }
}

/* Responsive improvements for cards and layout */
@media (max-width: 992px) {
    .profile-card {
        height: 340px;
        min-height: 340px;
    }
    .profile-card-img {
        height: 100%;
    }
    .section {
        padding: 18px 8px;
    }
    .container {
        padding: 0 8px;
    }
    .row.g-4 {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 768px) {

    .navbar .logo{
        margin-left: 10px;
        font-size: 2rem;
    }
    .profile-card {
        height: 260px;
        min-height: 260px;
    }
    .profile-card-title {
        font-size: 1rem;
    }
    .profile-card-text {
        font-size: 0.8rem;
    }
    .section {
        padding: 10px 2px;
    }
    .container {
        padding: 0 2px;
    }
    .row.g-4 {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .profile-card {
        height: 200px;
        min-height: 200px;
    }
    .profile-card-img {
        height: 100%;
    }
    .section {
        padding: 6px 1px;
    }
    .container {
        padding: 0 1px;
    }
    .row.g-4 {
        flex-direction: column;
        gap: 12px;
    }
    #video-showcase .video-container iframe {
        width: 100vw !important;
        min-width: 0;
        max-width: 100vw;
        height: 220px !important;
        border-radius: 8px;
        margin-left: -8px;
    }
    #video-showcase .video-container {
        padding: 0;
        margin: 0 -8px;
        border-radius: 8px;
        width: 500px;
    }

    .form-control{
        width: 520px;
    }

    .tip-card{
        width: 500px;
    }

    .map-container{
        height: 500px;
    }
    #traveler-stories .carousel-item {
        padding: 4px !important;
    }
    #traveler-stories .story-card {
        flex-direction: column;
        padding: 6px 2px;
        margin: 8px 0;
    }
    #traveler-stories .story-content {
        padding: 10px 4px;
    }
    #traveler-stories .img-fluid {
        max-height: 140px;
        border-radius: 8px;
    }
    #traveler-stories .blockquote {
        font-size: 0.95rem;
        padding-left: 10px;
    }
    .navbar .logo {
        /* Remove any margin and align left naturally */
        margin-bottom: -10px;
        margin-left: 0;
        font-size: 1.5rem;
        padding-left: 2px;
    }

    
    .navbar .logo i {
        font-size: 1.3rem;
        margin-right: 6px;
    }
    .navbar {
        position: relative !important;
        z-index: 2010;
    }
    .navbar-toggler {
        z-index: 2020;
    }
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--secondary-color);
        z-index: 2000;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        padding-bottom: 16px;
        padding-top: 8px;
        min-height: 60px;
        /* Ensure it appears directly below the navbar and above the header */
    }
    .navbar-collapse.show {
        margin-top: 0;
        padding-top: 0;
        display: block !important;
    }
    /* Remove duplicate/old .navbar and .navbar-collapse rules below if present */
}

/* Visual feedback for form submissions */
.form-feedback {
    margin-top: 10px;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 6px;
    display: none;
}
.form-feedback.success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
    display: block;
}
.form-feedback.error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    display: block;
}

/* Visual enhancements for cards and buttons */
.profile-card,
.tip-card {
    transition: box-shadow 0.3s, transform 0.3s;
}
.profile-card:hover,
.tip-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    transform: translateY(-6px) scale(1.02);
}
.profile-btn,
.btn {
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.profile-btn:active,
.btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Consistent card heights in grid */
.row.g-4 > [class^="col-"] > .profile-card {
    height: 100%;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

/* Plan Your Trip Enhancements */
#itinerary-planner .tip-card {
    min-height: 110px;
    box-shadow: none;
    border: 1px solid #d6e0ea;
    background: #f6f8fa;
}
#itinerary-planner .tip-card i {
    margin-bottom: 4px;
}
#itinerary-planner .tip-card {
    color: #22304a;
}
#itinerary-planner .tip-card[style*="background:#e6f7ff"] {
    background: #eaf2fb !important;
}
#itinerary-planner .tip-card[style*="background:#fffbe6"] {
    background: #f9f7ef !important;
}
#itinerary-planner .tip-card[style*="background:#f9f0ff"] {
    background: #f3f1fa !important;
}
#itinerary-planner .tip-card[style*="background:#eafff5"] {
    background: #e7f6f2 !important;
}
#itinerary-planner .tip-card[style*="background:#fff0f6"] {
    background: #f8f2f6 !important;
}

/* Smart Suggestion */
#smartSuggestion {
    font-size: 1.08rem;
    background: #eaf2fb;
    border-left: 5px solid #3b5b8c;
    color: #22304a;
    cursor: pointer;
    transition: background 0.2s;
}
#smartSuggestion:hover {
    background: #dde6f1;
}

/* Travel Checklist */
#travelChecklist label {
    margin-left: 8px;
    cursor: pointer;
}
#travelChecklist input[type="checkbox"]:checked + label {
    text-decoration: line-through;
    color: #1e7e34;
}
#travelChecklist {
    font-size: 1rem;
}
#checklistProgress {
    font-weight: 500;
    color: #3b5b8c;
}

/* Trip Countdown Widget */
#tripCountdownCard {
    border-left: 5px solid #3b5b8c;
    background: #f3f6fa;
}
#tripCountdownText {
    font-size: 1.1rem;
    color: #22304a;
}

/* Travel Quote */
#travelQuote {
    font-size: 1.08rem;
    background: #f7f8fa;
    border-left: 5px solid #b6bfc9;
    color: #495057;
    cursor: pointer;
    transition: background 0.2s;
}
#travelQuote:hover {
    background: #e9ecef;
}

/* Recently Planned Trips */
#recentTripsCard {
    margin-top: 18px;
    border-left: 5px solid #b6bfc9;
    background: #f6f8fa;
}
#recentTripsList .list-group-item {
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f6f8fa;
    color: #22304a;
    border: none;
}
#recentTripsList .badge {
    font-size: 0.85em;
    vertical-align: middle;
    background: #3b5b8c;
    color: #fff;
}