/* Malaysia's East Coast Treasures - Stylesheet */

/* Color Palette */
:root {
    --deep-teal: #005f73;
    --ocean-teal: #0a9396;
    --mint-green: #94d2bd;
    --sand-beige: #e9d8a6;
    --sunset-orange: #ee9b00;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, var(--deep-teal), var(--ocean-teal));
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

nav a:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

nav a.active {
    background-color: var(--sunset-orange);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Sections */
.hero {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Page Title */
h1 {
    color: var(--deep-teal);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2.5rem;
}

h2 {
    color: var(--ocean-teal);
    margin: 2rem 0 1rem;
    font-size: 2rem;
}

h3 {
    color: var(--deep-teal);
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
}

/* Slideshow */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 2rem auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.slide {
    display: none;
    width: 100%;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.slide.active {
    display: block;
    animation: fadeIn 1s;
}

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

.slideshow-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.slideshow-controls:hover {
    background-color: rgba(0,0,0,0.7);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.slideshow-dots {
    text-align: center;
    padding: 1rem;
    background-color: rgba(0,0,0,0.3);
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
    background-color: white;
}

/* Sections */
section {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.feature-card-content {
    padding: 1.5rem;
}

.feature-card h3 {
    color: var(--deep-teal);
    margin-bottom: 0.5rem;
}

.feature-card p {
    margin-bottom: 1rem;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--ocean-teal);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
}

.btn:hover {
    background-color: var(--deep-teal);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--sunset-orange);
}

.btn-primary:hover {
    background-color: #d68910;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

/* Lists */
ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

ul li::before {
    content: "🏝️";
    position: absolute;
    left: 0;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Videos */
video {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Island Cards */
.island-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.island-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.island-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.island-card video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
}

.island-card-content {
    padding: 1.5rem;
}

/* Attraction Items */
.attraction-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.attraction-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.attraction-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.attraction-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.attraction-item-content {
    padding: 1rem;
}

.attraction-item h4 {
    color: var(--deep-teal);
    margin-bottom: 0.5rem;
}

/* Food Items */
.food-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.food-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.food-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.food-item-content {
    padding: 1rem;
}

.food-item h4 {
    color: var(--deep-teal);
    margin-bottom: 0.5rem;
}

/* Form Styles */
form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--deep-teal);
    font-weight: 500;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--mint-green);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: var(--ocean-teal);
}

form textarea {
    resize: vertical;
    min-height: 120px;
}

form button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background-color: var(--ocean-teal);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button[type="submit"]:hover {
    background-color: var(--deep-teal);
}

.error {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
    color: var(--deep-teal);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    accent-color: var(--ocean-teal);
}

.success-message {
    background-color: #4caf50;
    color: white;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--deep-teal);
    color: #f0f7ff;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

footer span {
    font-weight: 600;
}

footer a {
    color: #f0f7ff;
    text-decoration: underline;
}

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

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
    }

    nav ul.active {
        display: flex;
    }

    nav a {
        display: block;
        padding: 1rem;
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .slide img {
        height: 300px;
    }

    .hero {
        height: 250px;
    }

    main {
        padding: 1rem;
    }

    .feature-cards,
    .island-cards,
    .food-items,
    .attraction-items {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    .slide img {
        height: 250px;
    }

    .hero {
        height: 200px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Map Image */
.map-image {
    width: 55%;
    max-width: 800px;
    margin: 2rem auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


