* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial;
}

body {
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: #111;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar h2 {
    font-size: 22px;
}

.navbar nav {
    display: flex;
    flex-wrap: wrap;
}

.navbar a {
    color: white;
    margin: 8px;
    text-decoration: none;
    font-size: 14px;
}
/* Card Design */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

h2 {
    color: #e63946;
    margin-bottom: 15px;
}

/* Hero */
.hero {
    height: 80vh;
    background: url('../images/bg.jpg') center/cover no-repeat;
}

.overlay {
    height: 100%;
    background: rgba(0,0,0,0.6);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.overlay h1 {
    font-size: 40px;
}

/* Container */
.container {
    padding: 40px 20px;
}

/* Gallery */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.grid img {
    width: 100%;
    border-radius: 10px;
}

/* Form */
form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 15px;
}

/* ========================= */
/* 📱 Mobile Responsive */
/* ========================= */

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar nav {
        width: 100%;
        margin-top: 10px;
    }

    .navbar a {
        display: inline-block;
    }

    .overlay h1 {
        font-size: 28px;
    }

    .hero {
        height: 60vh;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 480px) {

    .overlay h1 {
        font-size: 22px;
    }

    .hero {
        height: 50vh;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .navbar h2 {
        font-size: 18px;
    }

}
/* Carousel */
.carousel {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.slides img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slides img.active {
    opacity: 1;
}

/* Overlay */
.carousel .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

/* Buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }

/* Dots */
.dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
}

.dots span {
    height: 10px;
    width: 10px;
    margin: 5px;
    background: white;
    display: inline-block;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.5;
}

.dots span.active {
    opacity: 1;
    background: orange;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel { height: 60vh; }
}

@media (max-width: 480px) {
    .carousel { height: 50vh; }
}

/* Gallery Filters */
.filters {
    text-align: center;
    margin-bottom: 20px;
}

.filters button {
    padding: 8px 15px;
    margin: 5px;
    border: none;
    background: #111;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

.filters button:hover {
    background: orange;
}

/* Smooth effect */
.grid img {
    transition: 0.3s;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: bold;
}

.tab.active {
    color: #e63946;
    border-bottom: 3px solid #e63946;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}