/* style.css - Shared styles and animations for all pages */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    margin: 0;
    background-color: #fff;
    color: #1d1d1f;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #d2d2d7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    z-index: 1000;
    font-weight: 600;
    font-size: 1rem;
    color: #1d1d1f;
}

nav .logo {
    height: 64px;
    cursor: pointer;
}

nav .nav-links {
    display: flex;
    gap: 24px;
}

nav .nav-links a {
    color: #1d1d1f;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

nav .nav-links a {
    color: #1d1d1f;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #0071e3;
    transition: left 0.3s ease, width 0.3s ease;
}

nav .nav-links a:hover::after,
nav .nav-links a.active::after {
    width: 100%;
    left: 0;
}

nav .nav-links a.active,
nav .nav-links a:hover {
    color: #0071e3;
}

main {
    max-width: 700px;
    margin: 80px auto 40px auto;
    padding: 24px;
    background: #f2f2f7;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.05);
    text-align: center;
}

h1, h2 {
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
}

p {
    font-size: 1rem;
    color: #3c3c4399;
    margin-bottom: 16px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.profile-pic:hover {
    transform: scale(1.05);
}

footer {
    max-width: 700px;
    margin: 0 auto 40px auto;
    padding: 0 24px;
    text-align: center;
    font-size: 1rem;
    color: #1d1d1f;
}

footer p {
    margin: 0;
    line-height: 1.5;
}

footer p a {
    color: #0071e3;
    text-decoration: none;
    font-weight: 600;
    transition: text-decoration 0.3s ease;
}

footer p a:hover {
    text-decoration: underline;
}

img.slide-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

img.slide-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgb(0 0 0 / 0.15);
}

/* Modal styles for image preview */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    margin: 80px auto 0 auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 0 12px;
    cursor: pointer;
    border-radius: 4px;
    user-select: none;
    z-index: 2100;
}

#modal-prev {
    left: 10px;
}

#modal-next {
    right: 10px;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

form {
    text-align: left;
}

form label {
    display: block;
    margin-top: 16px;
    font-weight: 600;
    font-size: 1rem;
    color: #1d1d1f;
}

form input, form select, form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    color: #1d1d1f;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgb(0 113 227 / 0.3);
}

button[type="submit"] {
    margin-top: 24px;
    background-color: #0071e3;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

button[type="submit"]:hover {
    background-color: #005bb5;
}

@media (max-width: 768px) {
    nav {
        height: 50px;
        padding: 0 16px;
    }
    nav .logo {
        height: 28px;
    }
    nav .nav-links {
        gap: 16px;
    }
    nav .nav-links a {
        font-size: 0.9rem;
        padding: 6px 0;
    }
    main {
        margin: 70px 16px 32px 16px;
        padding: 16px;
    }
}
