/* General Reset */
* {
    box-sizing: border-box;
}

body {
    width: 98%;
    margin: auto;
    background-color: #c3d8fa; /* light blue */
    color: #2f3e5c; /* muted navy */
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
aside {
    position: relative;
    background-color: #1c2b40; /* dark blue background */
    padding: 2rem 2rem 2rem 3rem; /* top, right, bottom, left */
    font-size: 1rem;
    color: #ffffff;
    border-radius: 30px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
    text-align: center;
}

/* Light blue gradient border on the left */
aside::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 8px;
    border-radius: 6px 0 0 6px;
}

/* Style links inside aside */
aside a {
    color: #bcdcff;
    text-decoration: underline;
}

/* Structure Elements */
section, article, aside, footer, header {
    padding: 0.5rem;
}

img, video, embed {
    max-width: 98%;
}

/* Header with faded edges */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(to right, 
        rgba(195, 216, 250, 0) 0%, 
        #e0e6f0 10%, 
        #e0e6f0 90%, 
        rgba(195, 216, 250, 0) 100%);
    color: #2f3e5c;
}

header img {
    max-width: 150px;
    height: auto;
}

/* Navigation with fade */
/* Container for the dropdown */
.dropdown {
    position: relative;
    text-align: center;
}

/* Hide the submenu by default */
.dropdown-1 {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #e0e6f0;
    width: 100%;
    z-index: 1;
}

/* Style submenu links */
.dropdown-1 li a {
    display: block;
    padding: 0.5rem;
    text-decoration: none;
    color: #2f3e5c;
}

/* Show the submenu on hover */
.dropdown:hover .dropdown-1 {
    display: block;
}
nav {
    display: flex;
    flex-direction: column;
    background: linear-gradient(to right, 
        rgba(195, 216, 250, 0) 0%, 
        #e0e6f0 10%, 
        #e0e6f0 90%, 
        rgba(195, 216, 250, 0) 100%);
    color: #2f3e5c;
}

nav a {
    flex: 100%;
    margin: 5px;
    padding: 0.75rem;
    text-decoration: none;
    color: #2f3e5c;
    text-align: center;
}

nav a:hover {
    background-color: #d4deea;
    color: #1c2b40;
}

/* Main layout */
main {
    display: flex;
    flex-wrap: wrap;
    padding: 2rem;
}

/* Responsive Layout */
@media screen and (min-width: 768px) {
    body {
        display: flex;
        flex-direction: column;
        max-width: 90rem;
    }

    nav, header {
        order: -1;
    }

    nav {
        flex-direction: row;
    }

    nav a {
        flex: auto;
    }

    article {
        flex: 50%;
    }

    aside, section {
        flex: 100%;
    }
}

@media screen and (min-width: 1200px) {
    article {
        flex: 35%;
    }

    aside {
        flex: 30%;
    }
}
/*Movie Poster*/
.poster-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    /*align-items: center;*/
    margin-top: 1rem;
}

.poster-text {
    flex: 1 1 50%;
}

.poster-image {
    flex: 1 1 40%;
    max-width: 500px;
}

.poster-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
/*Projects Page*/
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Smaller columns */
    gap: 1rem; /* Less spacing between boxes */
    padding: 1rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Larger min size */
    gap: 1.5rem;
    width: 100%;
    padding: 2rem;
}

.project-box {
    aspect-ratio: 1 / 1; /* Keeps them square */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: white;
}

.project-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}


.project-box:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Travel Page */
body.travel table {
    width: 100%;
    border-collapse: collapse;
    background-color: #e8cafa;
    margin-top: 1rem;
    box-shadow: 0 0 10px rgba(150, 123, 182, 0.5);
    border-spacing: 5px;
}

body.travel th,
body.travel td {
    border: 1px solid #f8ebff;
    padding: 0.75rem;
    text-align: left;
}

body.travel thead {
    background-color: #f8ebff;
    color: #0065A0;
}

body.travel tr:nth-child(even) {
    background-color: #f5f0fa;
}

body.travel tr:hover {
    background-color: #e6d8f4;
}

body.travel main {
    display: block;
    padding-bottom: 75px;
}

body.travel caption {
    caption-side: top;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #0065A0;
    text-align: center;
}

body.travel h2 {
    color: #0065A0;
    text-align: center;
    font-size: 2rem;
}

/* Contact Form Styling */
body.contact {
    background-color: #c3d8fa;
}
section#form {
    background-color: #e0e6f0;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(60, 90, 120, 0.2);
}

fieldset {
    border: 2px solid #d4deea;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
}

legend {
    font-weight: bold;
    color: #2f3e5c;
}

label {
    font-size: 1.2rem;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid #a6ccd8;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
}

input[type="submit"], input[type="reset"], button {
    background-color: #a6ccd8;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
}

input[type="submit"]:hover, input[type="reset"]:hover, button:hover {
    background-color: #d4deea;
}

.message{
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #e0e6f0;
    color: #2f3e5c;
}

footer a {
    color: #2f3e5c;
    text-decoration: none;
}

footer a:hover {
    color: #1c2b40;
}
