/* Main Body */

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.pivot {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 6vw;
}

.leftPivot {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.leftPivot h1 {
    font-size: clamp(27px, 2vw, 40px);
    margin-bottom: 0.1em;
}

.leftPivot h2 {
    font-size: clamp(15px, 1.1vw, 22px);
    margin-top: 0.1em;
}

.leftPivot ul {
    font-size: clamp(15px, 1.1vw, 22px);
}

.rightPivot {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.iconPDFPivot {
    width: clamp(67px, 5vw, 100px);
    height: clamp(67px, 5vw, 100px);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.iconPDFPivot:hover {
    transform: scale(1.1);
}

.pivotImage {
    width: clamp(333px, 25vw, 500px);
    aspect-ratio: 5 / 3;
    height: auto;
    padding: clamp(7px, 0.5vw, 10px);
    border-radius: 5%;
    object-fit: cover;
    cursor: zoom-in;
}

.pivotImage.zoomed{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2.5);
    cursor: zoom-out;
}

.enactus {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 6vw;
    padding-top: 1vh;
    padding-bottom: 2vh;
}

.leftEnactus {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.rightEnactus {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rightEnactus h1 {
    font-size: clamp(27px, 2vw, 40px);
    margin-bottom: 0.1em;
}

.rightEnactus h2 {
    font-size: clamp(15px, 1.1vw, 22px);
    margin-top: 0.1em;
}

.rightEnactus ul {
    font-size: clamp(15px, 1.1vw, 22px);
}

.iconPDFEnactus {
    width: clamp(67px, 5vw, 100px);
    height: clamp(67px, 5vw, 100px);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.iconPDFEnactus:hover {
    transform: scale(1.1);
}

.enactusImage{
    width: clamp(333px, 25vw, 500px);
    aspect-ratio: 5 / 3;
    height: auto;
    padding: clamp(7px, 0.5vw, 10px);
    border-radius: 5%;
    object-fit: cover;
    cursor: zoom-in;
}

.enactusImage.zoomed{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2.5);
    cursor: zoom-out;
}

/* AI Generated Styles */
/* Theme variables */
:root {
    --bg: #ffffff;
    --text: #000000;
    --link: #000000;
    --border: #000000;
    --img-border: #000000;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1115;
        --text: #e6e6e6;
        --link: #e6e6e6;
        --border: #3a3f4b;
        --img-border: #ffffff;
    }
}

html.dark-theme,
body.dark-theme {
    --bg: #0f1115;
    --text: #e6e6e6;
    --link: #e6e6e6;
    --border: #3a3f4b;
    --img-border: #ffffff;
}

html.light-theme,
body.light-theme {
    --bg: #ffffff;
    --text: #000000;
    --link: #000000;
    --border: #000000;
    --img-border: #000000;
}

/* Prevent horizontal overflow on all pages */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Overlock';
}

/* Header / Navbar */
.navbar {
    width: 100%;
    height: 9vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 1vh;
}

.name {
    display: flex;
    align-items: center;
    gap: 1vw;
}

.name h1 {
    font-size: clamp(20px, 1.5vw, 30px);
    margin: 0;
    line-height: 1.1;
}

/* Make header name link theme-aware and unstyled, with subtle hover */
.name h1 a {
    color: var(--text);
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, color 0.2s ease;
}
.name h1 a:visited { color: var(--text); }
.name h1 a:hover { transform: scale(1.1); }

.menu { display: flex; gap: 2vw; }
.menu a {
    font-size: clamp(13px, 1vw, 20px);
    text-decoration: none;
    color: var(--link);
}
.menu a:hover { text-decoration: underline; }

/* Active states used by pages */
.activeHome { text-decoration: underline; }
.activeSub { text-decoration: underline; }
.activeMore { text-decoration: underline; }

/* Dropdowns */
.dropdownPerson, .dropdownInterest {
    position: relative;
    display: inline-block;
}
.activePerson:hover { text-decoration: underline; }
.activeInterest:hover { text-decoration: underline; }

.dropdownPerson:hover .dropdownPersonContent,
.dropdownInterest:hover .dropdownInterestContent {
    display: flex;
    gap: 2vw;
    padding-top: 2vh;
}

.dropdownPersonContent {
    display: none;
    position: absolute;
    transform: translateX(-15%);
    z-index: 1;
}
.dropdownInterestContent {
    display: none;
    position: absolute;
    transform: translateX(-35%);
    z-index: 1;
}
.dropdownPersonContent a,
.dropdownInterestContent a {
    padding: 5px 10px;
    border: 2px solid var(--border);
    border-radius: 30px;
    text-decoration: none;
    color: var(--text);
    font-size: clamp(13px, 1vw, 20px);
}

.location h1 {
    font-size: clamp(20px, 1.5vw, 30px);
    margin: 0;
    line-height: 1.1;
}

/* Header right cluster (location + toggle) */
.headerRight { display: flex; align-items: center; gap: 1vw; }

/* HUB button and Theme toggle share style */
.hub-button,
.theme-toggle {
    padding: 8px 14px;
    font-size: clamp(11px, 0.8vw, 16px);
    border-radius: 20px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    border: 1px solid var(--border);
    outline: none;
    box-shadow: none;
}
.hub-button { text-decoration: none; display: inline-block; }
.hub-button:hover, .theme-toggle:hover { transform: scale(1.1); }
.theme-toggle:focus, .theme-toggle:active { outline: none; box-shadow: none; }

/* Theme toggle icon sizing */
.theme-toggle img.iconTheme {
    width: clamp(15px, 1.1vw, 22px);
    height: clamp(15px, 1.1vw, 22px);
    display: block;
}

/* Apply borders/background to all content images except small UI icons */
img:not(.iconPhone):not(.iconEmail):not(.iconLinkedin):not(.iconGithub):not(.iconTheme):not(.iconPDFPivot):not(.iconPDFEnactus):not(.iconChessChess):not(.iconChess):not(.iconGoogleDrivePhotography):not(.magIcon):not(.iconResume):not(.iconGithubRepoDiscord):not(.iconGithubRepoApp):not(.iconYoutube) {
    border: 4px solid var(--img-border);
    box-sizing: border-box;
    background-color: var(--bg);
    background-clip: padding-box;
}

/* Invert icons in dark theme for visibility */
html.dark-theme .iconTheme,
html.dark-theme .iconPDFPivot,
html.dark-theme .iconPDFEnactus,
body.dark-theme .iconTheme,
body.dark-theme .iconPDFPivot,
body.dark-theme .iconPDFEnactus {
    filter: invert(1) brightness(1.15);
}

html.dark-theme [style*="color: blue"],
body.dark-theme [style*="color: blue"] { color: #8ab4f8 !important; }