@charset "UTF-8";

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

.active {
    background-color: #04aa6d;
    color: white;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: oldlace;
    background-size: 800% 800%;
    -webkit-animation: Animado 19s ease infinite;
    -moz-animation: Animado 19s ease infinite;
    -o-animation: Animado 19s ease infinite;
    animation: Animado 19s ease infinite;
    font-family: "Courier New", Courier, monospace;
    color: black;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: clamp(14px, 1.2vw, 18px);
}

img {
    max-width: 100%;
}

/* ORCID White image specific styling */
img[src="images/ORCID_White.png"] {
    max-width: 400px;
}

/* Navigation Styles */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: clamp(180px, 15vw, 250px);
    height: 100vh;
    background-color: oldlace;
    z-index: 1000;
    overflow-y: auto;
    padding: clamp(8px, 1vw, 15px) 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e8001b;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        "Open Sans",
        "Helvetica Neue",
        sans-serif;
}

/* Style for the name link at the top */
nav > li {
    list-style: none;
    margin: 0px 0px 0px 0px;
    padding: 0;
}

nav > li > a {
    display: block;
    color: black;
    padding: clamp(6px, 0.8vw, 12px) clamp(12px, 1.2vw, 20px);
    text-decoration: none;
    margin: 0;
    vertical-align: baseline;
    line-height: normal;
    font-size: clamp(14px, 1.1vw, 17px);
    text-transform: none;
    font-weight: bold;
}

nav > li > a:hover {
    color: black;
    text-decoration: none;
}

/* Top menu styles */
.top-menu {
    list-style-type: none;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-block: 0 !important;
    padding: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-block: 0 !important;
    flex: 1;
}

.top-menu li {
    margin-left: 20px;
    padding: 0;
}

.top-menu li a {
    display: block;
    color: black;
    padding: clamp(6px, 0.8vw, 12px) clamp(12px, 1.2vw, 20px);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: clamp(12px, 1vw, 16px);
}

.top-menu li a:hover {
    color: #888;
}

/* Bottom menu styles for external links */
.bottom-menu {
    list-style-type: none;
    margin: 0;
    margin-top: auto;
    padding: 10px 5px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-menu li {
    margin: 0;
    padding: 0;
}

.bottom-menu li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    padding: 2px;
    text-decoration: none;
}

.bottom-menu li a img {
    transition: filter 0.3s ease;
}

.bottom-menu li a:hover img {
    filter: brightness(0) opacity(0.5);
}

.bottom-menu li a:hover img[alt="ORCID"] {
    filter: brightness(0) grayscale(1) opacity(0.7);
}

.bottom-menu li a img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.bottom-menu li a img[alt="Bluesky"] {
    width: 22px;
    height: 16px;
}

/* Button styles */
.btn {
    background: none;
    color: black;
    border: none;
    padding: clamp(6px, 0.8vw, 12px) clamp(12px, 1.2vw, 20px);
    cursor: pointer;
    font-size: clamp(12px, 1vw, 16px);
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.btn:hover {
    color: #888;
}

/* Active button override - keeps #E8001B color and prevents hover grey */
.btn.active {
    color: #e8001b !important;
}

.btn.active:hover {
    color: #e8001b !important;
}

/* Main Content */
.main-content {
    margin: 0 auto;
    margin-top: clamp(15px, 2vw, 30px);
    padding: clamp(15px, 2vw, 30px);
    padding-left: clamp(200px, 17vw, 280px); /* nav space + content padding */
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: clamp(1000px, 80vw, 1400px);
    color: black;
}

.main-content > * {
    max-width: clamp(600px, 60vw, 900px);
}

/* Content wrapper to allow float behavior */
.content-wrapper {
    display: block;
    overflow: hidden;
}

.active {
    color: #e8001b;
}

/* Center text utility */
.center-text {
    text-align: center;
    color: black;
}

/* Container */
.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(45deg, #1da38c, #1d79a3, #c67313, #9b5bd9);
    border: 2px solid #007acc;
    border-radius: 8px;
}

/* Image Styling */
.profile-img {
    width: clamp(200px, 20vw, 350px);
    border-radius: clamp(6px, 0.6vw, 12px);
    float: left;
    margin-right: clamp(15px, 1.5vw, 25px);
    margin-bottom: clamp(15px, 1.5vw, 25px);
}

/* Links */
a {
    color: #e8001b;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Paragraph Styling */
p {
    margin: clamp(8px, 1vw, 15px) 0;
    font-size: clamp(14px, 1.2vw, 18px);
    line-height: clamp(1.4, 1.5, 1.6);
}

/* Heading Styling */
h1 {
    font-size: clamp(24px, 2.5vw, 36px);
    margin: clamp(15px, 1.5vw, 25px) 0;
}

h2 {
    font-size: clamp(20px, 2vw, 28px);
    margin: clamp(12px, 1.2vw, 20px) 0;
}

h3 {
    font-size: clamp(18px, 1.8vw, 24px);
    margin: clamp(10px, 1vw, 16px) 0;
}

/* Test gradient */
.test-gradient {
    background: linear-gradient(45deg, #1da38c, #1d79a3, #c67313, #9b5bd9);
    min-height: 100px;
}

/* Footer styles */
.footer {
    margin-top: auto;
    padding: 10px;
    text-align: center;
    border-top: 1px solid #e8001b;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Clearfix for Floated Elements */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Small margin utility */
.small-margin-right {
    margin-right: 15px;
    display: inline-block;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    position: fixed;
    top: clamp(10px, 1.2vw, 20px);
    left: clamp(15px, 1.5vw, 25px);
    z-index: 1001;
    background: #e8001b;
    border: none;
    padding: clamp(8px, 0.8vw, 12px);
    border-radius: clamp(4px, 0.4vw, 8px);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: clamp(35px, 3vw, 45px);
    height: clamp(35px, 3vw, 45px);
}

.hamburger-line {
    display: block;
    width: clamp(18px, 1.5vw, 22px);
    height: clamp(2px, 0.15vw, 3px);
    background: white;
    margin: clamp(1px, 0.15vw, 3px) 0;
    transition: all 0.3s ease;
}

.hamburger-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        flex-direction: column;
        min-height: 100vh;
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 200px;
        height: 100vh;
        background-color: oldlace;
        z-index: 1000;
        overflow-y: auto;
        padding: 60px 0 10px 0;
        border-right: 1px solid #e8001b;
        transform: translateX(-100%);
        display: flex;
        flex-direction: column;
    }

    /* Navigation States for Mobile */
    .nav-open {
        transform: translateX(0) !important;
        transition: transform 0.3s ease;
    }

    .nav-closed {
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease;
    }

    nav > li > a {
        text-align: center;
        font-size: 14px;
        padding: 10px 16px;
    }

    .top-menu {
        margin: 0;
        padding: 0;
    }

    .top-menu li {
        margin: 5px 0;
    }

    .top-menu li a {
        margin: 2px 5px;
        border-radius: 3px;
        font-size: 12px;
        padding: 8px 12px;
    }

    .main-content {
        margin-left: 0;
        padding: 20px 10px;
        flex: 1;
        margin-right: 0;
        max-width: none;
    }

    .main-content > * {
        max-width: none;
    }

    .footer {
        margin-top: auto;
        order: 1;
        font-color: black;
    }

    .profile-img {
        width: 100%;
        float: none;
        margin: 0 0 20px 0;
    }

    .container {
        width: 95%;
    }

    .btn {
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (min-width: 601px) and (max-width: 800px) {
    .hamburger {
        display: flex;
    }

    nav {
        transform: translateX(-100%);
        width: 200px;
        padding: 60px 0 10px 0;
        display: flex;
        flex-direction: column;
    }

    /* Navigation States for Tablet */
    .nav-open {
        transform: translateX(0) !important;
        transition: transform 0.3s ease;
    }

    .nav-closed {
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
        margin-right: 0;
        max-width: none;
    }
}

@media (min-width: 801px) {
    /* Desktop mode - ensure nav is always visible */
    nav {
        transform: translateX(0) !important;
    }

    .hamburger {
        display: none !important;
    }
}

/* Large screen constraints (4K+ displays) */
@media (min-width: 2560px) {
    body {
        font-size: 18px;
    }

    nav {
        width: 250px;
    }

    .main-content {
        padding-left: 280px;
        max-width: 1400px;
    }

    .main-content > * {
        max-width: 900px;
    }

    .profile-img {
        width: 350px;
        margin-right: 25px;
        margin-bottom: 25px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 24px;
    }

    p {
        font-size: 18px;
    }

    .hamburger {
        width: 45px;
        height: 45px;
    }

    .hamburger-line {
        width: 22px;
        height: 3px;
    }
}
