/* app/static/style.css */
/* Dark gray theme: dark background, light text - with updates for boxes and image sizing */
body {
    background-color: #2c2c2c; /* Dark gray */
    color: #f0f0f0; /* Light gray/white text */
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    line-height: 1.6;
}

header {
    background-color: #1e1e1e; /* Darker gray for header */
    padding: 1rem;
    color: #f0f0f0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.menu {
    position: relative;
}

.dropdown-btn {
    background-color: #3a3a3a; /* Medium gray button */
    color: #f0f0f0;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #3a3a3a; /* Medium gray dropdown */
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-content a {
    color: #f0f0f0;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #4a4a4a; /* Lighter gray hover */
}

main {
    width: 100%; /* Full width on small screens */
    max-width: 560px; /* Reduced by ~30% from 800px */
    margin: 2rem auto;
    padding: 0 1rem;
}

/* New: Content boxes with padding */
.content-box {
    background-color: #3a3a3a; /* Medium gray box */
    padding: 2rem; /* Extra padding */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
}

.content h1 {
    color: #d3d3d3; /* Light gray headers */
    border-bottom: 2px solid #4a4a4a;
    padding-bottom: 0.5rem;
    margin-top: 0;
}

/* Image styling: smaller, centered where needed */
.profile-img {
    display: block;
    max-width: 600px; /* Twice as big */
    height: auto;
    margin: 0 auto 1.5rem; /* Centered with space below */
    border-radius: 50%; /* Optional: circular for profile */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
    justify-content: space-between; /* Fill space evenly */
}

.image-gallery img,
.image-gallery video {
    width: calc(33.33% - 0.67rem); /* 3 wide, minus gaps */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    object-fit: cover; /* Ensure they fill nicely */
}

/* For journey/project: text wrap around images */
.image-wrap-left {
    float: left;
    margin: 0 1.5rem 1.5rem 0;
    width: 33%; /* About a third of the box width */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.image-wrap-right {
    float: right;
    margin: 0 0 1.5rem 1.5rem;
    width: 33%; /* About a third of the box width */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.image-wrap-left video,
.image-wrap-right video {
    width: 100%;
    height: auto;
}

/* Clear floats */
.content-box::after {
    content: "";
    display: table;
    clear: both;
}

/* Project boxes: clickable buttons - updated for image below text */
.project-button {
    background-color: #4a4a4a;
    color: #f0f0f0;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: background-color 0.3s;
}

.project-button:hover {
    background-color: #5a5a5a;
}

.project-button span {
    margin-bottom: 0.5rem; /* Space between text and image */
}

.project-icon {
    width: 160px; /* Twice as big */
    height: 160px; /* Square for circular crop */
    object-fit: cover; /* Crop to fit */
    border-radius: 50%; /* Circular */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Resume link */
.resume-link {
    display: block;
    text-align: center;
    background-color: #4a4a4a;
    color: #f0f0f0;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    max-width: 300px;
    margin: 2rem auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.resume-link:hover {
    background-color: #5a5a5a;
}

footer {
    background-color: #1e1e1e; /* Darker gray footer */
    color: #f0f0f0;
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
}

footer a {
    color: #a9a9a9; /* Light gray links */
    text-decoration: none;
}

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