/* --- VARIABLES & RESET --- */
:root {
    --primary-color: #0f172a; /* Dark Slate Blue */
    --secondary-color: #f97316; /* Sunset Orange */
    --accent-color: #14b8a6; /* Teal */
    --bg-color: #f8fafc;
    --text-color: #334155;
    --white: #ffffff;
    --font-main: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- NAVIGATION --- */
.navbar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links li a {
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--secondary-color);
}

/* --- MOBILE TOGGLE --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background: var(--white);
    margin: 4px 0;
    transition: 0.3s;
}

/* Hamburger to X Animation */
.menu-toggle.toggle .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.toggle .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.toggle .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}


/* --- HERO SECTION --- */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('https://source.unsplash.com/1600x900/?travel,adventure');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    animation: fadeIn 1.5s ease-in;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Button */
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s, background 0.3s;
}

.btn:hover {
    background-color: #ea580c;
    transform: translateY(-3px);
}

/* --- SECTIONS GENERAL --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- DESTINATIONS GRID --- */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card-image {
    height: 200px;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.location {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.card-footer {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* --- STORIES / BLOG --- */
.blog-post {
    display: flex;
    background: var(--white);
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.blog-image {
    flex: 1;
    min-height: 300px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    flex: 1.5;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-content h3 {
    font-size: 1.8rem;
    margin: 10px 0;
    color: var(--primary-color);
}

.date {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.location-tag {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.itinerary-list {
    list-style: disc;
    margin: 15px 0 15px 20px;
    color: #475569;
}

.read-more {
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
}
/*card in story page*/

/* ================= Blog Post Card ================= */
.blog-post {
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 30px;
    background-color: #fff;
    overflow: hidden;
    transition: background-color 0.3s, color 0.3s;
}

.blog-post .blog-image img {
    width: 100%;
    display: block;
    border-bottom: 1px solid #ddd;
    border-radius: 10px 10px 0 0;
}

.blog-content {
    padding: 15px 20px;
}

/* ================= Card Section (Trip Summary / Travel Tips / Day-wise) ================= */
.card-section {
    margin-bottom: 20px;
}

.card-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    margin-bottom: 12px;
    color: #007bff;
}

/* ================= Full Content ================= */
.full-content {
    display: none;
    margin-top: 15px;
    border-top: 1px solid #ccc;
    padding-top: 15px;
}

/* ================= Timeline ================= */
.timeline {
    position: relative;
    padding-left: 30px;
    margin: 15px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #007bff;
    transition: height 0.6s ease;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

/* Timeline Icon */
.timeline-icon {
    position: absolute;
    left: -6px;
    background-color: #007bff;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    z-index: 1;
}

/* Timeline Content */
.timeline-content {
    padding-left: 30px;
}

.timeline-content h5 {
    margin: 0;
    font-size: 1em;
    color: #222;
}

.timeline-content p {
    margin: 3px 0 0 0;
    font-size: 0.9em;
    color: #555;
}

/* ================= Toggle Button ================= */
.read-more-btn {
    margin-top: 10px;
    background:white;
    color: var(--accent-color);
    font-weight: 700;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.read-more-btn:hover {
    background: #0056b3;
}

/* ================= Dark Mode ================= */
body.dark-mode .blog-post {
    background-color: #222;
    color: #eee;
}

body.dark-mode .card-section h4 {
    color: #1e90ff;
}

body.dark-mode .timeline::before {
    background-color: #1e90ff;
}

body.dark-mode .timeline-icon {
    background-color: #1e90ff;
}

body.dark-mode .timeline-content p {
    color: #ccc;
}

/* ================= Optional Animation ================= */
/* Animate timeline line on show */
.timeline.expand::before {
    animation: expandLine 0.8s forwards;
}

@keyframes expandLine {
    0% { height: 0; }
    100% { height: 100%; }
}

/* --- PAGE HEADER --- */
.page-header {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('https://source.unsplash.com/1600x900/?travel,world');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* --- GALLERY STYLES --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.gallery-overlay p {
    color: var(--white);
    font-weight: 600;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    animation: zoom 0.6s;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.2rem;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

/* --- ABOUT PAGE STYLES --- */
.about-section {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.stats-grid {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
    background: var(--white);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    min-width: 100px;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--secondary-color);
}

.gear-section {
    margin-top: 30px;
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
}

.gear-list li {
    margin: 10px 0;
    font-size: 1.1rem;
}

.gear-list i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* --- PLANNING PAGE STYLES --- */
.planning-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.planning-card h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.checklist-category h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.checklist-category label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tip-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.trip-countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.countdown-item {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    min-width: 80px;
    text-align: center;
}

.countdown-item h3 {
    font-size: 2rem;
    color: var(--secondary-color);
}

.next-trip-text {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 20px;
}

/* --- FOOTER --- */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    margin: 0 10px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {

     .menu-toggle {
        display: flex;
        z-index: 1100;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: left 0.4s ease;
    }

     .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .blog-post {
        flex-direction: column;
    }

    .blog-image {
        height: 200px;
        min-height: auto;
    }

    .blog-content {
        padding: 20px;
    }

    .about-section {
        flex-direction: column;
    }

    .trip-countdown {
        flex-wrap: wrap;
    }
}

/* =========================================
   FULL DARK MODE - My Travel Website
========================================= */

/* ---------- BODY ---------- */
body.dark-mode {
    background-color: #0f172a; /* dark background */
    color: #e2e8f0;            /* main readable text */
    transition: background 0.3s, color 0.3s;
    
}


/* ---------- NAVBAR ---------- */
body.dark-mode .navbar {
    background-color: #020617; /* dark navbar */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
body.dark-mode .nav-links a {
    color: #e2e8f0;
}
body.dark-mode .nav-links a:hover,
body.dark-mode .nav-links a.active {
    color: #f97316;
}

/* ---------- MOBILE MENU ---------- */
body.dark-mode .menu-toggle .bar {
    background-color: #e2e8f0;
}
body.dark-mode .nav-links {
    background-color: #020617;
}

/* ---------- HERO ---------- */
body.dark-mode .hero,
body.dark-mode .page-header {
    color: #ffffff;
}

/* ---------- SECTIONS & CONTAINER ---------- */
body.dark-mode section,
body.dark-mode .container {
    background-color: #0f172a;
    color: #e2e8f0;
}

body.dark-mode .planning-card h2 {
    color: var(--accent-color)
}

/* ---------- CARDS ---------- */
body.dark-mode .card,
body.dark-mode .blog-post,
body.dark-mode .planning-card,
body.dark-mode .tip-card,
body.dark-mode .stat-item,
body.dark-mode .gear-section {
    background-color: #1e293b;
    color: #e2e8f0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
body.dark-mode .card-content h3,
body.dark-mode .blog-content h3,
body.dark-mode .section-title {
    color: #ffffff;
}
body.dark-mode p,
body.dark-mode li,
body.dark-mode .location,
body.dark-mode .date,
body.dark-mode .itinerary-list {
    color: #cbd5e1;
}

/* ---------- BUTTONS ---------- */
body.dark-mode .btn {
    background-color: #f97316;
    color: #ffffff;
}
body.dark-mode .btn:hover {
    background-color: #ea580c;
}

/* ---------- FOOTER ---------- */
body.dark-mode footer {
    background-color: #020617;
    color: #cbd5e1;
}
body.dark-mode .social-icons a {
    color: #cbd5e1;
}
body.dark-mode .social-icons a:hover {
    color: #f97316;
}

/* ---------- GALLERY / OVERLAY ---------- */
body.dark-mode .gallery-overlay {
    background: rgba(0,0,0,0.7);
}
body.dark-mode .gallery-overlay p {
    color: #ffffff;
}

/* ---------- LIGHTBOX ---------- */
body.dark-mode .lightbox {
    background-color: rgba(0,0,0,0.95);
}
body.dark-mode #caption {
    color: #e2e8f0;
}
body.dark-mode .close-lightbox {
    color: #ffffff;
}

body.planning-card h2 {
    margin-bottom: 20px;
    color: white;
}

/* ---------- HERO PARALLAX TEXT ---------- */
body.dark-mode .hero h1,
body.dark-mode .hero p {
    color: #ffffff;
}

/* ---------- STATS / GEARS ---------- */
body.dark-mode .stat-item h3,
body.dark-mode .gear-list i {
    color: #f97316;
}

/* ---------- MOBILE RESPONSIVE FIXES ---------- */
@media (max-width: 768px) {
    body.dark-mode .nav-links {
        background-color: #020617;
    }
    body.dark-mode .menu-toggle .bar {
        background-color: #e2e8f0;
    }
}

/* ---------- DARK MODE TRANSITION ---------- */
body.dark-mode * {
    transition: background 0.3s ease, color 0.3s ease;
}