/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
header {
	background-color: rgba(0, 0, 0, 0.8); /* Slight transparency */
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: background-color 0.3s ease-in-out;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.8); /* Header changes on scroll */
}

header .container {
    display: flex;
    justify-content: space-between; /* Align logo left, menu right */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Padding to control spacing */
}


header .logo a {
    font-size: 22px;
    color: white;
    font-weight: 700;
    text-align: left;
}

header nav ul {
    display: flex;
    gap: 15px; /* Adds space between menu items */
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: flex-end; /* Align the menu to the right */
    flex-wrap: nowrap; /* Prevent wrapping */
}

header nav ul li {
    white-space: nowrap; /* Prevent text wrapping */
}

header nav ul li a {
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 10px;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #ff6347; /* Highlight color on hover */
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger-menu span {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 4px 0;
}

/* Hero Section */
#hero {
    background-image: url('bintan-tour-hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
}

#hero h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

#hero p {
    font-size: 18px;
    margin-bottom: 40px;
}

.btn-primary {
    background-color: #ff6347;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease-in-out;
}

.btn-primary:hover {
    background-color: #e5533d;
}

/* Service Section */
#services {
    padding: 50px 0;
    text-align: center;
    background-color: #fff;
}

.service-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.service-card {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    min-width: 250px;
    max-width: 300px;
    flex: 1;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 16px;
    color: #333;
}

footer {
    display: flex;
    justify-content: space-between; /* Space out the footer sections */
    align-items: flex-start; /* Align items to the top */
    padding: 40px 20px;
    background-color: #333; /* Ensure footer background is clear */
    color: white;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.footer-section {
    flex: 1;
    margin: 0 20px; /* Margin to space out the sections */
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-section p, 
.footer-section a {
    font-size: 14px;
    color: white;
    line-height: 1.6;
}

.footer-section a {
    text-decoration: none; /* Ensure links have no underline */
}

.footer-section a:hover {
    color: #ff6347; /* Hover color for links */
}

/* Social Media Icons */
.footer-section ul.social-media {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column; /* Stack the social icons vertically */
    gap: 5px;
}

.footer-section ul.social-media li {
    margin: 0;
}

.footer-section ul.social-media img {
    width: 24px;
    transition: transform 0.3s ease-in-out;
}

.footer-section ul.social-media img:hover {
    transform: scale(1.2);
}

/* Responsive Behavior */
@media (max-width: 768px) {
    footer {
        flex-direction: column;
    }

    .footer-section {
        margin-bottom: 20px;
    }

    .footer-section ul.social-media {
        flex-direction: row; /* Stack horizontally on smaller screens */
        justify-content: center;
        gap: 10px;
    }
}


/* Media Queries */
@media (max-width: 768px) {
    header nav ul {
        display: none;
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        padding: 10px 0;
    }

    header nav ul.open {
        display: flex;
    }

    .hamburger-menu {
        display: flex;
    }

    .footer-section {
        text-align: center;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 30px;
    }

    #hero p {
        font-size: 16px;
    }

    .service-cards {
        flex-direction: column;
    }

    .service-card {
        margin-bottom: 20px;
    }
}
