/* Reset and base styles */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
    font-family: 'Roboto', sans-serif;
    background-color: #fafafa;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 50px;
    overflow: visible;
    position: relative;
}

/* Headings */
h1, h2, h3 { margin: 20px 0; }
h1 { font-size: 2.5em; text-align: center; }
h2 { font-size: 1.8em; }
.tagline { font-size: 1.2em; text-align: center; font-style: italic; margin: 10px 0; }

/* Profile Photo */
.profile-photo {
    display: block;
    width: 150px;
    height: 180px;
    border-radius: 50%;
    margin: 20px auto;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Navigation */
header { width: 100%; text-align: center; }
.nav-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px 0;
}
.nav-links li { display: inline; }

/* Links (Buttons) */
a {
    color: #fff;
    background-color: #1a5f7a; /* Deep teal for default buttons */
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s;
    display: inline-block; /* Ensures proper spacing */
}
a:hover {
    background-color: #2a829e; /* Lighter teal on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05); /* Slight scale on hover */
}
.cta-button {
    background-color: #2563eb; /* Modern blue for CTA */
}
.cta-button:hover {
    background-color: #1d4ed8; /* Darker blue on hover */
}
.project-link {
    background-color: #16a34a; /* Fresh green for project links */
}
.project-link:hover {
    background-color: #15803d; /* Darker green on hover */
}

/* Media Container */
.media-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 0;
}

/* Images */
.hero-image {
    display: block;
    max-width: 80%;
    height: auto;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Videos */
.hero-video {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Sections */
main { flex: 1; width: 100%; max-width: 800px; }
section { margin: 20px 0; }
.intro { text-align: center; }
.documents ul, .projects ul, .bio ul {
    list-style: none;
    padding: 0;
}
.documents li, .projects li, .bio li { margin: 10px 0; }

/* Background image with fallback */
body::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/ache.jpg');
    background-position: top center;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #fafafa; /* Fallback */
    opacity: 0.15;
    z-index: -1;
}

/* Footer */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 600px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.5em; }
    .nav-links { flex-direction: column; gap: 10px; }
    .hero-image { max-width: 100%; }
    .hero-video { width: 100%; height: auto; }
    a { padding: 6px 12px; }
    .profile-photo { width: 120px; height: 144px; }
}