/* --- CSS Variables --- */
:root {
    --primary-color: #1A3B4F; /* Deep Teal/Navy */
    --secondary-color: #C5D8DF; /* Light Blue-Gray */
    --accent-gold: #F9A825; /* Warm Gold */
    --accent-blue: #8CC0D4; /* Softer Blue */
    --text-dark: #333333;
    --text-light: #f9f9f9;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
    --spacing-sm: 0.8rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --section-padding: 6rem 0;
    --header-height: 80px;
}

/* --- Base Styles & Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--primary-color); /* Prevent bottom white strip */
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    color: var(--primary-color);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
p { font-size: 1.1rem; margin-bottom: 1rem;}

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.section-title {
    margin-bottom: var(--spacing-lg);
    font-size: 3rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-gold), var(--primary-color));
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-top: -var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}


/* --- Header --- */
.header {
    background-color: var(--bg-white);
    padding: var(--spacing-md) 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    background: linear-gradient(to right, var(--primary-color) 30%, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.nav-list {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-list a {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-dark);
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 1;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    background: url('images/image_13.jpg') no-repeat center center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 59, 79, 0.35) 0%, rgba(77, 126, 142, 0.25) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: var(--spacing-md);
}

/* Glassmorphism wrapper for hero title/subtitle */
.hero-glass {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: calc(var(--spacing-md) * 1.2) calc(var(--spacing-md) * 1.6);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    animation: fadeInDown 1s ease-out forwards;
}

.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 1; /* Start hidden for animation */
}

/* --- Grid Layouts --- */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.posts-grid, .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

/* --- About Section --- */
.about-image {
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.5s ease-out, box-shadow 0.5s ease-out;
}
.about-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-image img {
    border-radius: 10px;
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-out;
}
.about-image:hover img {
    transform: scale(1.05);
}


.about-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}
.about-content h2 {
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Card Styles (Featured Posts, Destinations, Categories) --- */
.post-card, .destination-card, .category-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease-out;
    display: flex;
    flex-direction: column;
}

.post-card:hover, .destination-card:hover, .category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.post-card img, .destination-card img, .category-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease-out;
}

.post-card:hover img, .destination-card:hover img, .category-card:hover img {
    transform: scale(1.08);
}

.post-info, .category-info {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-info h3, .category-info h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.post-info p, .category-info p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: var(--spacing-md);
}

.read-more {
    display: inline-block;
    color: var(--accent-gold);
    font-weight: 500;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 2px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    letter-spacing: 0.5px;
}

.destination-card {
    position: relative;
    height: 350px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.destination-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: var(--text-light);
    border-radius: 0 0 12px 12px;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.destination-card:hover .destination-overlay {
    transform: translateY(-10px);
    opacity: 1;
}

.destination-overlay h3 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.destination-overlay p {
    margin: 5px 0 0;
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}


/* --- Call to Action (Static) --- */
.cta-static {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-blue));
    color: var(--text-light);
    border-radius: 15px;
    margin: 0 auto;
    padding: var(--section-padding) 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: var(--section-padding);
}

.cta-static .section-title {
    color: var(--text-light);
    font-size: 3rem;
}
.cta-static .section-title::after {
    background: linear-gradient(to right, var(--text-light), var(--accent-gold));
}

.cta-static p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Traveler's Toolkit styles */
.toolkit {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 980px;
    margin: 0 auto;
}

.toolkit p {
    margin: 0 auto var(--spacing-md) auto;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: calc(var(--spacing-md) * 1.1);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: left;
}

.toolkit p strong {
    color: var(--accent-gold);
}

.email-placeholder {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.email-placeholder:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    cursor: default; /* Indicate it's not interactive */
}

.email-placeholder .email-icon {
    margin-right: var(--spacing-sm);
    font-size: 1.4rem;
}


/* --- Footer --- */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: var(--section-padding) 0 var(--spacing-md);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer h3 {
    color: var(--accent-gold);
    margin-bottom: var(--spacing-md);
    font-size: 1.6rem;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.social-icons {
    display: flex;
    gap: var(--spacing-md);
}

.social-icons a {
    color: var(--accent-blue);
    font-size: 1.8rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-gold);
    transform: translateY(-3px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Animations --- */
@keyframes fadeInDown {
    from {
        opacity: 1;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 1;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 1;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-item {
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Staggered animation for grid items */
.posts-grid .reveal-item:nth-child(1),
.destination-grid .reveal-item:nth-child(1),
.category-grid .reveal-item:nth-child(1) { transition-delay: 0s; }
.posts-grid .reveal-item:nth-child(2),
.destination-grid .reveal-item:nth-child(2),
.category-grid .reveal-item:nth-child(2) { transition-delay: 0.1s; }
.posts-grid .reveal-item:nth-child(3),
.destination-grid .reveal-item:nth-child(3),
.category-grid .reveal-item:nth-child(3) { transition-delay: 0.2s; }
.posts-grid .reveal-item:nth-child(4),
.destination-grid .reveal-item:nth-child(4),
.category-grid .reveal-item:nth-child(4) { transition-delay: 0.3s; }
.posts-grid .reveal-item:nth-child(5),
.destination-grid .reveal-item:nth-child(5),
.category-grid .reveal-item:nth-child(5) { transition-delay: 0.4s; }


.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .nav-list {
        gap: var(--spacing-md);
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.4rem;
    }
    .section-title {
        font-size: 2.8rem;
    }
    .grid-2-cols {
        grid-template-columns: 1fr;
    }
    .about-image {
        order: -1; /* Image above content on small screens */
    }
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .header .container {
        padding: 0 var(--spacing-sm);
    }
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 999;
    }
    .nav-list {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }
    .nav-list a {
        color: var(--text-light);
        font-size: 1.8rem;
        padding: 10px 0;
    }
    .nav-list a::after {
        background-color: var(--accent-gold);
    }
    .nav.active {
        transform: translateX(0);
    }
    .hamburger-menu {
        display: flex;
    }

    body.nav-open {
        overflow: hidden; /* Prevent scrolling when nav is open */
    }

    .hero {
        height: 70vh;
        min-height: 400px;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .section-padding {
        padding: 4rem 0;
    }
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }
    .about-content {
        text-align: center;
    }
    .about-image {
        margin-bottom: var(--spacing-lg);
    }
    .posts-grid, .destination-grid, .category-grid {
        grid-template-columns: 1fr;
    }
    .cta-static .section-title {
        font-size: 2.2rem;
    }
    .cta-static p {
        font-size: 1rem;
    }
    .email-placeholder {
        padding: 10px 20px;
        font-size: 1rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-social {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    p { font-size: 1rem; }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .post-card, .destination-card, .category-card {
        height: auto; /* Allow cards to adjust height */
    }
    .post-card img, .destination-card img, .category-card img {
        height: 200px; /* Adjust image height for smaller screens */
    }
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
