@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Nunito+Sans:wght@400;700&display=swap');


:root {
 
    --primary-color: #006B3F;   
    --secondary-color: #FCD116; 
    --accent-color: #CE1126;    
    --star-color: #000000;     

    
    --dark-grey: #333333;
    --medium-grey: #555555;
    --light-grey: #f8f9facf; 
    --white-color: #ffffff;

  
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Nunito Sans', sans-serif;
    --base-font-size: 16px;
    --line-height-base: 1.7;

   
    --spacing-unit: 1rem;
    --border-radius-sm: 5px;  
    --border-radius-md: 10px;

   
    --shadow-light: 0 3px 6px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 5px 12px rgba(0, 0, 0, 0.12);
    --shadow-deep: 0 8px 15px rgba(0,0,0,0.15);

 
    --transition-speed: 0.3s;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--base-font-size);
}

body {
    font-family: var(--body-font);
    line-height: var(--line-height-base);
    color: var(--dark-grey);
    background-color: var(--white-color);
    overflow-x: hidden;
    animation: fadeInAnimation ease var(--transition-speed);
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
    0% { opacity: 0; }
    100% { opacity: 1; }
}


h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-unit);
    line-height: 1.3;
}

h1 { font-size: calc(1.8rem + 1.5vw); font-weight: 700; } 
h2 { font-size: calc(1.5rem + 1vw); }
h3 { font-size: calc(1.1rem + 0.5vw); }

p {
    margin-bottom: var(--spacing-unit);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color);
}

img{
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-sm); 
}

ul{
    list-style: none;
}


.container {
    max-width: 1140px;
    margin: auto;
    padding: 0 calc(var(--spacing-unit) * 1.5);
}

.bg-light {
    background-color: var(--light-grey);
}

.text-center{
    text-align: center;
}


.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white-color);
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-medium); 
    height: 75px; 
    transition: background-color var(--transition-speed) ease; 
}

.navbar .logo a{
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--heading-font);
    transition: color var(--transition-speed) ease;
}

.navbar .logo a:hover{
    color: var(--dark-grey);
}

.navbar .nav-links{
    display: flex;
}

.navbar .nav-links li{
    margin-left: calc(var(--spacing-unit) * 1.8); 
}

.navbar .nav-links a{
    color: var(--medium-grey);
    font-weight: 500;
    padding: 8px 0; 
    position: relative;
    font-family: var(--heading-font);
    letter-spacing: 0.8px; 
    font-size: 1.05rem;
    transition: color var(--transition-speed) ease;
}


.navbar .nav-links a::before{
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
    transform: scaleX(0); 
    transform-origin: right; 
    transition: transform var(--transition-speed) ease-in-out;
}


.navbar .nav-links a.active::before{ 
    transform: scaleX(1);
    transform-origin: left; 
}

.navbar .nav-links a:hover{
    color: var(--dark-grey);
}


.burger {
    display: none;
    cursor: pointer;
    padding: 5px; 
}

.burger div {
    width: 30px;
    height: 3px;
    background-color: var(--dark-grey);
    margin: 6px 0; 
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); 
}
/* Hero Section (index.html) */
.hero {
    background: url('images/accra-hero.jpg') center/cover no-repeat; /* Replace with your hero image */
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px; /* Adjust as needed */
    position: relative;
    overflow: hidden; /* Clip the animated background */
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for better text readability */
}

.hero-content {
    position: relative;
    z-index: 1; /* Ensure text is above the overlay */
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out; /* Initial fade-in animation */
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease-out 0.2s forwards; /* Delayed fade-in */
    opacity: 0; /* Start with opacity 0 */
}

.ctabutton {
    display: inline-block;
    background-color: #008080;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease-in-out;
    animation: pulse 2s infinite alternate; /* Subtle pulsing animation */
}

.ctabutton:hover {
    background-color: #006666;
    transform: scale(1.05);
}

/* Destinations Section (index.html) */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Smooth hover effects */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    padding: 15px;
    margin: 0;
    font-size: 1.5em;
    color: #333;
    text-align: center;
}

.card p {
    padding: 0 15px 15px;
    margin: 0;
    color: #666;
    text-align: center;
}

.card-button {
    display: block;
    background-color: #008080;
    color: #fff;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    border-radius: 0 0 8px 8px;
    font-size: 1em;
}

.card-button:hover {
    background-color: #006666;
}

/* Culture Section (index.html) */
.gallery-placeholder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-placeholder img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.gallery-placeholder img:hover {
    transform: scale(1.03);
}

/* Destination Page Styles */
.destination-page .hero-destination {
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.destination-page .hero-image {
    position: relative;
    width: 100%;
    height: 400px; /* Adjust as needed */
    overflow: hidden;
}

.destination-page .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-out; /* Subtle zoom on hover (optional) */
}

.destination-page .hero-image:hover img {
    transform: scale(1.05);
}

.destination-page .hero-content-destination {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 10px;
}

.destination-page .hero-content-destination h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.destination-page .hero-content-destination .subheading {
    font-size: 1.2em;
    color: #eee;
}

.destination-page .destination-info {
    text-align: left;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.destination-page .destination-info h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #008080;
    text-align: center;
}

.destination-page .destination-info h3 {
    font-size: 1.5em;
    margin-top: 25px;
    color: #333;
}

.destination-page .destination-info ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.destination-page .destination-info li {
    margin-bottom: 10px;
}

.destination-page .destination-info .image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.destination-page .destination-info .image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.destination-page .destination-info .image-gallery img:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 3
    0px 0;
    font-size: 0.9em;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.footer-content p {
    margin-bottom: 10px;
}

.social-links a {
    color: #eee;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #008080;
}

@media (max-width: 992px) {
   html { font-size: 15.5px; }
   h1 { font-size: calc(1.7rem + 1.3vw); }
   h2 { font-size: calc(1.4rem + 0.9vw); }
   .hero-content h1 { font-size: calc(2.2rem + 1.8vw); }
   .navbar .nav-links li { margin-left: calc(var(--spacing-unit) * 1.5); }
}


@media (max-width: 768px) {
   html { font-size: 15px; }

   .navbar { padding: calc(var(--spacing-unit)*0.8) calc(var(--spacing-unit) * 1.5); height: 70px; }


   .nav-links {
       position: fixed; 
       right: -80%; 
       top: 0; 
       background-color: rgba(51, 51, 51, 0.98); 
       display: flex;
       flex-direction: column;
       width: 80%; 
       max-width: 320px;
       height: 100vh; 
       transform: translateX(0); 
       transition: right 0.5s cubic-bezier(0.77, 0, 0.18, 1); 
       padding: calc(var(--spacing-unit)*4) 0 0 0; 
       box-shadow: -5px 0 15px rgba(0,0,0,0.2);
       z-index: 1100; 
   }

   .nav-links.nav-active {
       right: 0; 
   }

   .nav-links li {
       margin: 0;
       width: 100%;
       opacity: 0;
       transform: translateX(20px); 
   }
   
   .nav-links.nav-active li {
       opacity: 1;
       transform: translateX(0);
       transition: opacity 0.4s ease forwards, transform 0.4s ease forwards;
   }
   .nav-links.nav-active li:nth-child(1) { transition-delay: 0.2s; }
   .nav-links.nav-active li:nth-child(2) { transition-delay: 0.25s; }
   .nav-links.nav-active li:nth-child(3) { transition-delay: 0.3s; }
   .nav-links.nav-active li:nth-child(4) { transition-delay: 0.35s; }
   .nav-links.nav-active li:nth-child(5) { transition-delay: 0.4s; }


   .nav-links a {
       display: block;
       padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
       color: var(--white-color); 
       text-align: left;
       border-bottom: 1px solid rgba(255, 255, 255, 0.1);
       font-size: 1.1rem;
   }
   .nav-links a::before { display: none; }
   .nav-links a:hover {
       background-color: rgba(255, 255, 255, 0.1);
       color: var(--secondary-color); 
   }

   .burger {
       display: block; 
       z-index: 1200; 
       position: relative; 
   }
 
   .burger.toggle div { background-color: var(--white-color); } /* Assumes JS adds 'toggle' class */
   .burger.toggle .line1 { transform: rotate(-45deg) translate(-7px, 7px); }
   .burger.toggle .line2 { opacity: 0; transform: scale(0); }
   .burger.toggle .line3 { transform: rotate(45deg) translate(-7px, -7px); }

    .hero {
        padding: 80px 20px;
        height: auto;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .card-container {
        grid-template-columns: 1fr;
    }

    .destination-page .hero-content-destination h1 {
        font-size: 2.5em;
    }
}
