/* GLOBAL RESET */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

:root {
    --bg-main: #f2f2f2;
    --bg-card: #ffffff;
    --bg-sidebar: #f9fafb;
    --text-main: #333333;
    --text-heading: #111827;
    --accent: #4f46e5;
    --border-color: #e5e7eb;
    --transition: all 0.3s ease;
    --accent-contrast: #ffffff;
}

/* DARK MODE */
body.dark-mode {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-sidebar: #111827;
    --text-main: #e5e7eb;
    --text-heading: #ffffff;
    --accent: #818cf8;
    --border-color: #334155;
    --accent-contrast: #0f172a;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow: hidden;
}

p {
    font-size: 16px;
}

/* NAVBAR */

.navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.nav-name {
    font-weight: 600;
    font-size: 18px;
}

.nav-links a {
    margin-left: 25px;
    text-decoration: none;
    color: var(--text-main);
    opacity: 0.8;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
}

.nav-links a:hover {
    color: var(--accent);
}

.tab-link.active {
    color: var(--accent);
    font-weight: 600;
}

/* Hide scrollbar but keep scrolling */

/* Chrome, Safari */
.right::-webkit-scrollbar {
    display: none;
}

/* Firefox */
.right {
    scrollbar-width: none;
}

/* Internet Explorer / Edge */
.right {
    -ms-overflow-style: none;
}

/* MAIN CONTAINER */

.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    height: calc(100vh - 70px);
}

.left {
    width: 30%;
    text-align: center;
    padding: 40px 30px;
    height: 100%;
    overflow: hidden;
    background: var(--bg-sidebar);
}

.left img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.left img:hover {
    transform: scale(1.05);
}

.title {
    color: var(--text-main);
    margin-bottom: 20px;
}

.info {
    margin-top: 20px;
    text-align: left;
    display: inline-block;
}

.info p {
    margin: 12px 0;
    font-size: 15px;
}

.info i {
    width: 22px;
    margin-right: 10px;
    color: var(--text-main);
    opacity: 0.8;
}

.info a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.info a:hover {
    color: var(--accent);
    transform: translateX(3px);
}

.right {
    width: 70%;
    padding: 60px;
    height: 100%;
    overflow-y: auto;
    background: var(--bg-card);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

body, .left, .right, .navbar {
    transition: var(--transition);
}

section { 
    margin-bottom: 60px; 
}

h1 {
    font-size: 30px;
    margin-bottom: 20px;
    color: var(--text-heading);
}

h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-heading);
}

/* TABS */

.tab-content { display: none; }

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* PUBLICATIONS */

.publication {
    margin-bottom: 25px;
    padding: 18px;
    border-radius: 10px;
    transition: var(--transition);
}

.publication:hover {
    background: var(--bg-sidebar);
}

.pub-header {
    display: flex;
    justify-content: space-between;
}

.pub-title {
    font-weight: 600;
    margin: 0;
}

.pub-title a {
    color: var(--accent);
    text-decoration: none;
}

.pub-title a:hover { text-decoration: underline; }

.pub-year {
    font-size: 13px;
    color: var(--text-main);
    opacity: 0.6;
}

.pub-authors, .pub-venue, .pub-pages {
    font-size: 14px;
    margin: 5px 0;
}

/* CV Button */

.cv-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--accent);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
}

.cv-button:hover {
    background-color: #3730a3;
}

.cv-item {
    margin-bottom: 40px;
}

.cv-item h3 {
    margin-bottom: 5px;
}

.cv-meta {
    font-size: 14px;
    color: var(--text-main);
    opacity: 0.6;
    margin-bottom: 10px;
}

.subsection {
    font-size: 17px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-heading);
}

.custom-list {
    list-style: disc;
    padding-left: 20px;
}

.custom-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    body {
        overflow: auto;
        height: auto;
    }

    .container {
        flex-direction: column;
        height: auto;
    }

    .right {
        width: 100%;             
        height: auto;
        overflow: visible;
        padding: 40px 20px;
    }

    .left {
        width: 100%;         
        height: auto;
        overflow: visible;
        padding: 30px 20px;
    }

    .info { text-align: center; }

    .nav-container {
        flex-direction: column;
    }

    .nav-links {
        margin-top: 10px;
    }

    .lang-switch,
    .theme-toggle {
        margin-top: 6px;
    }

    .lang-switch:first-of-type {
        margin-left: 0;
        flex-basis: 100%;
    }

    .lang-switch {
        margin-left: 8px;
        padding: 3px 6px;
        font-size: 12px;
    }
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 18px;
    margin-left: 15px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.theme-toggle:hover {
    transform: scale(1.2);
}

.lang-switch {
    margin-left: 15px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border-color);
    opacity: 0.6;
    transition: var(--transition);
}

.lang-switch:hover {
    opacity: 1;
    border-color: var(--accent);
    color: var(--accent);
}

.footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: var(--text-main);
    opacity: 0.6;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

/* PHOTOGRAPHY GRID */

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 25px;
}

.photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.photo:hover {
    transform: scale(1.015);
    opacity: 0.95;
}

/* GLOBAL RESET */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

:root {
    --bg-main: #f2f2f2;
    --bg-card: #ffffff;
    --bg-sidebar: #f9fafb;
    --text-main: #333333;
    --text-heading: #111827;
    --accent: #4f46e5;
    --border-color: #e5e7eb;
    --transition: all 0.3s ease;
    --accent-contrast: #ffffff;
}

/* DARK MODE */
body.dark-mode {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-sidebar: #111827;
    --text-main: #e5e7eb;
    --text-heading: #ffffff;
    --accent: #818cf8;
    --border-color: #334155;
    --accent-contrast: #0f172a;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow: hidden;
}

p {
    font-size: 16px;
}

/* NAVBAR */

.navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.nav-name {
    font-weight: 600;
    font-size: 18px;
}

.nav-links a {
    margin-left: 25px;
    text-decoration: none;
    color: var(--text-main);
    opacity: 0.8;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
}

.nav-links a:hover {
    color: var(--accent);
}

.tab-link.active {
    color: var(--accent);
    font-weight: 600;
}

/* Hide scrollbar but keep scrolling */

/* Chrome, Safari */
.right::-webkit-scrollbar {
    display: none;
}

/* Firefox */
.right {
    scrollbar-width: none;
}

/* Internet Explorer / Edge */
.right {
    -ms-overflow-style: none;
}

/* MAIN CONTAINER */

.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    height: calc(100vh - 70px);
}

.left {
    width: 30%;
    text-align: center;
    padding: 40px 30px;
    height: 100%;
    overflow: hidden;
    background: var(--bg-sidebar);
}

.left img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.left img:hover {
    transform: scale(1.05);
}

.title {
    color: var(--text-main);
    margin-bottom: 20px;
}

.info {
    margin-top: 20px;
    text-align: left;
    display: inline-block;
}

.info p {
    margin: 12px 0;
    font-size: 15px;
}

.info i {
    width: 22px;
    margin-right: 10px;
    color: var(--text-main);
    opacity: 0.8;
}

.info a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.info a:hover {
    color: var(--accent);
    transform: translateX(3px);
}

.right {
    width: 70%;
    padding: 60px;
    height: 100%;
    overflow-y: auto;
    background: var(--bg-card);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

body, .left, .right, .navbar {
    transition: var(--transition);
}

section { 
    margin-bottom: 60px; 
}

h1 {
    font-size: 30px;
    margin-bottom: 20px;
    color: var(--text-heading);
}

h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-heading);
}

/* TABS */

.tab-content { display: none; }

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* PUBLICATIONS */

.publication {
    margin-bottom: 25px;
    padding: 18px;
    border-radius: 10px;
    transition: var(--transition);
}

.publication:hover {
    background: var(--bg-sidebar);
}

.pub-header {
    display: flex;
    justify-content: space-between;
}

.pub-title {
    font-weight: 600;
    margin: 0;
}

.pub-title a {
    color: var(--accent);
    text-decoration: none;
}

.pub-title a:hover { text-decoration: underline; }

.pub-year {
    font-size: 13px;
    color: var(--text-main);
    opacity: 0.6;
}

.pub-authors, .pub-venue, .pub-pages {
    font-size: 14px;
    margin: 5px 0;
}

/* CV Button */

.cv-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--accent);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
}

.cv-button:hover {
    background-color: #3730a3;
}

.cv-item {
    margin-bottom: 40px;
}

.cv-item h3 {
    margin-bottom: 5px;
}

.cv-meta {
    font-size: 14px;
    color: var(--text-main);
    opacity: 0.6;
    margin-bottom: 10px;
}

.subsection {
    font-size: 17px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-heading);
}

.custom-list {
    list-style: disc;
    padding-left: 20px;
}

.custom-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    body {
        overflow: auto;
        height: auto;
    }

    .container {
        flex-direction: column;
        height: auto;
    }

    .right {
        width: 100%;             
        height: auto;
        overflow: visible;
        padding: 40px 20px;
    }

    .left {
        width: 100%;         
        height: auto;
        overflow: visible;
        padding: 30px 20px;
    }

    .info { text-align: center; }

    .nav-container {
        flex-direction: column;
    }

    .nav-links {
        margin-top: 10px;
    }

    .lang-switch,
    .theme-toggle {
        margin-top: 6px;
    }

    .lang-switch:first-of-type {
        margin-left: 0;
        flex-basis: 100%;
    }

    .lang-switch {
        margin-left: 8px;
        padding: 3px 6px;
        font-size: 12px;
    }
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 18px;
    margin-left: 15px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.theme-toggle:hover {
    transform: scale(1.2);
}

.lang-switch {
    margin-left: 15px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border-color);
    opacity: 0.6;
    transition: var(--transition);
}

.lang-switch:hover {
    opacity: 1;
    border-color: var(--accent);
    color: var(--accent);
}

.footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: var(--text-main);
    opacity: 0.6;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

/* PHOTOGRAPHY GRID */

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 25px;
}

.photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.photo:hover {
    transform: scale(1.015);
    opacity: 0.95;
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    display: inline-block;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    background: none;
    border-radius: 0;
    padding: 0;
    transition: 0.2s;
}

.lightbox-close:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    transition: 0.2s;
    opacity: 0.7;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

