/* Combined Styles with Animations and Collapsible Menu */
:root {
    --main-bg-color: #f8f5f2;
    --accent-color: #a63a24;
    --button-color: #d9794b;
    --text-color: #3e3e3e;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Roboto', sans-serif;
    --border-radius: 12px;
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles */
body {
    font-family: var(--body-font);
    background-color: var(--main-bg-color);
    color: var(--text-color);
}

/* Header */
header {
    background: url('../images/header-woodgrain.jpg') center/cover;
    padding: 40px;
    text-align: center;
    color: white;
    animation: fadeIn 1.5s ease-in;
}

header h1 {
    font-family: var(--heading-font);
    font-size: 3rem;
    margin: 0;
}

header a {
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

header a:hover {
    color: var(--button-color);
}

/* Navigation */
nav {
    background-color: #444;
    padding: 10px 0;
    animation: slideDown 1s ease-out;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    justify-content: space-around;
    flex-grow: 1;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    transition: max-height 0.3s ease;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 10px;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    background-color: var(--button-color);
    border-radius: 5px;
}

.nav-toggle {
    display: none;
    background-color: var(--button-color);
    border: none;
    color: white;
    padding: 10px;
    font-size: 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.nav-toggle:hover {
    background-color: var(--accent-color);
}

/* Mobile Menu Visibility */
.nav-links.open {
    max-height: 500px;
}

/* Hero Section Desktopo*/
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../images/hero-family-photo.jpg') center/cover;
    background-position: center 20%;
    height: 400px;
    color: white;
    padding: 20px;
    animation: zoomIn 1.2s ease-in-out;
}

.hero h2 {
    font-size: 2.5rem;
    font-family: var(--heading-font);
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.5rem;
    margin: 10px 0 20px 0;
}

.hero button {
    background-color: var(--button-color);
    border: none;
    color: white;
    padding: 12px 25px;
    font-size: 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.hero button:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

/* Banner Section */
.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background-color: #d9cfc2;
    margin: 20px 0;
    text-align: center;
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: var(--text-color);
    animation: fadeIn 1.5s ease-in;
}

/* About Section */
.about {
    padding: 40px 20px;
    text-align: center;
    background: #fff;
}

.about h3 {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    animation: fadeIn 1.2s ease-in-out;
}

.about p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    animation: fadeIn 1.2s ease-in-out;
}

/* Link Row */
.link-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: #f4ede4;
}

.link-row a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    background: #fff;
    border: 2px solid var(--accent-color);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    position: relative;
    transition: all 0.3s;
    animation: fadeInUp 1.5s ease;
}

.link-row a:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.link-row a::after {
    content: attr(data-hover);
    position: absolute;
    left: 50%;
    top: -40px;
    transform: translateX(-50%);
    background: var(--button-color);
    color: white;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
}

.link-row a:hover::after {
    opacity: 1;
}

/* Footer */
footer {
    background: #2c2928;
    color: white;
    text-align: center;
    padding: 20px;
    animation: fadeIn 1.5s ease-in;
}

footer p {
    font-size: 1rem;
    margin: 0;
}

/* Countdown Section */
.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
    animation: fadeIn 1.5s ease-in;
}

.circle-timer {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 60%, transparent 61%),
    conic-gradient(
       #800000 0deg,
       #9932CC var(--progress-angle, 0deg),
       #ddd var(--progress-angle, 0deg)
    );
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rotateIn 1s ease-in-out;
}

.circle-timer span {
    position: absolute;
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
}

.circle-timer::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: #ffffff;
    z-index: 1;
}

.circle-timer span {
    z-index: 2;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@media (min-width: 769px) {
    .nav-links {
        max-height: none; /* Ensure it expands fully on desktop */
        display: flex; /* Flex layout for horizontal alignment */
        flex-direction: row; /* Align links in a row */
        justify-content: space-around; /* Space links evenly */
    }

    .nav-toggle {
        display: none; /* Hide the hamburger menu button on desktop */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        transition: max-height 0.3s ease;
    }

    .nav-links.open {
        max-height: 500px;
    }
}

/* Banner Section */
.banner {
    text-align: center;
    background-color: #d9cfc2;
    padding: 20px;
    font-size: 1.2rem;
}

/* About Section */
.about {
    padding: 20px;
    text-align: center;
    background: #fff;
}

.about h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.about p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Link Row */
.link-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: #f4ede4;
}

.link-row a {
    flex: 1 1 calc(50% - 20px); /* Adjust for two columns on smaller screens */
    max-width: 200px;
    text-align: center;
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    text-decoration: none;
    color: #333;
    position: relative;
    transition: all 0.3s ease;
}

.link-row a:hover {
    background: var(--button-color);
    color: white;
    transform: translateY(-3px);
}

.link-row a::after {
    content: attr(data-hover);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #d9794b;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.link-row a:hover::after {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 40px 20px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero button {
        font-size: 0.9rem;
    }

    .banner {
        font-size: 1rem;
        padding: 15px;
    }

    .about h3 {
        font-size: 1.4rem;
    }

    .about p {
        font-size: 0.9rem;
    }

    .link-row a {
        flex: 1 1 100%; /* Stack links vertically */
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero button {
        font-size: 0.8rem;
        padding: 10px 15px;
    }

    .banner {
        font-size: 0.9rem;
    }

    .about h3 {
        font-size: 1.2rem;
    }

    .about p {
        font-size: 0.8rem;
    }
}

.calendar {
  background: #faf8f3;
  padding: 40px 20px;
  text-align: center;
  border-top: 2px solid #c9b37d;
}
.calendar h3 {
  color: #7a5c2b;
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}
.camping-table {
  margin: 20px auto;
  border-collapse: collapse;
  width: 80%;
  max-width: 700px;
}
.camping-table th, .camping-table td {
  border: 1px solid #d6c5a3;
  padding: 10px 15px;
}
.camping-table th {
  background-color: #efe7d3;
  color: #5a4522;
}
.camping-table tr:nth-child(even) {
  background-color: #f9f5ef;
}


.journey {
    padding: 60px 20px;
    background: #f5f5f5;
    text-align: center;
}

.journey h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: auto;
}

.journey-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.journey-card:hover {
    transform: translateY(-5px);
}

.journey-card h3 {
    margin-bottom: 10px;
}

.journey-footer {
    margin-top: 40px;
    font-style: italic;
}
