/* Reset some defaults */
* {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Roboto', serif;
    color: #ffffff;
    background: linear-gradient(to bottom, #ff914d, #ff3131);
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    background: linear-gradient(to right, #5de0e6, #004aad);
    color: #ffffff;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid #CD37F5;
}

/* Nav container */
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    position: relative;
}

/* Optional logo styling */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

/* Hamburger menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1001;
}

/* Nav menu */
#nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

#nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

#nav-menu li a:hover {
    color: #66ADF2;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    #nav-menu {
        flex-direction: column;
        background: linear-gradient(to right, #5de0e6, #004aad);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: none;
        padding: 1rem 0;
    }

    #nav-menu.show {
        display: flex;
    }

    #nav-menu li {
        text-align: center;
        margin: 10px 0;
    }

    .menu-toggle {
        display: block;
    }
}

/* Section Layout */
section {
    padding: 30px;
    margin-top: 50px;
}

/* Portfolio Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 0px));
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.grid-wrapper {
    justify-content: center;
}

.grid-item {
    background: linear-gradient(to bottom, #5de0e6, #004aad);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #CD37F5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 275px;
}

.grid-item img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
}

.grid-item div {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    cursor: pointer;
    text-decoration: none;
}

.grid-item h1 {
    font-size: 2.25rem;
}

/* Headings */
h1 {
    font-size: 50px;
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    font-size: 55px;
    text-align: center;
    margin-bottom: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #ffffff;
    font-size: 1rem;
}

/* Password Lock Screen */
.password-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 9999;
}

.password-container input {
    padding: 10px;
    margin: 10px;
    font-size: 1rem;
    border-radius: 5px;
}

.password-container button {
    padding: 10px 20px;
    background-color: #2E6F40;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.password-container button:hover {
    background-color: #CD37F5;
}

.content-container {
    display: none;
}

/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.carousel-image.active {
    display: block;
}

.carousel img {
    transition: opacity 1s ease-in-out;
}
