* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #000000;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 40px 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Visibility */
.home-section,
.content-section {
    display: none;
}

.home-section.active {
    display: flex;
    flex-direction: column;
}

.content-section.active {
    display: block;
}

/* Home Section */
.home-section {
    min-height: calc(100vh - 80px);
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0;
    padding: 20px 0;
}

.name {
    font-size: 2.5em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
}

/* Navigation Menu */
.navigation-menu {
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin-bottom: 50px;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.home-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    width: 100%;
    max-width: 1400px;
    align-items: center;
    margin: 0 auto;
}

.about-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-title {
    font-size: 1.2em;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 10px;
    opacity: 0.8;
}

.about-description {
    font-size: 1em;
    line-height: 1.8;
    color: #ffffff;
    opacity: 0.9;
    text-align: left;
}

.home-inline-link {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-inline-link:hover {
    opacity: 0.8;
}

.globe-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.globe-svg {
    width: 100%;
    height: auto;
    max-height: 500px;
    cursor: grab;
    background: transparent;
}

.globe-svg:active {
    cursor: grabbing;
}

.nav-option {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.nav-option:hover {
    opacity: 0.7;
}

.nav-title {
    font-size: 1.2em;
    font-weight: 400;
    color: #ffffff;
    white-space: nowrap;
}

/* Content Sections */
.content-section {
    min-height: 100vh;
    padding: 40px 0;
    max-width: 800px;
    margin: 0 auto;
}

.back-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1em;
    font-weight: 400;
    cursor: pointer;
    margin-bottom: 40px;
    padding: 10px 0;
    transition: opacity 0.2s;
    font-family: 'Inter', sans-serif;
}

.back-btn:hover {
    opacity: 0.7;
}

/* Glowing red dots animation */
@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.globe-svg circle[fill="#ff0000"] {
    animation: pulse 2s ease-in-out infinite;
}

.section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.2em;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 30px;
    opacity: 0.8;
}

/* Work Experience Tabs */
.experience-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: opacity 0.2s;
    opacity: 0.6;
}

.tab-btn:hover {
    opacity: 0.8;
}

.tab-btn.active {
    opacity: 1;
    border-bottom-color: #ffffff;
}

/* Qualifications */
.qualification-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 25px;
    margin-bottom: 20px;
    position: relative;
}

.qualification-summary {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.qualification-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1em;
    opacity: 1;
}

.qualification-org {
    color: #ffffff;
    font-weight: 400;
    font-size: 1em;
    opacity: 0.9;
}

.qualification-date-year {
    color: #ffffff;
    font-weight: 400;
    font-size: 0.95em;
    opacity: 0.8;
}

.qualification-date-full {
    color: #ffffff;
    font-weight: 400;
    font-size: 0.95em;
    opacity: 0.8;
}

/* Skills Section */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 400;
    opacity: 0.85;
    transition: all 0.2s;
}

.skill-tag:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.5);
}

.skills-segment {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skills-segment:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.skills-segment-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.2em;
    margin-bottom: 10px;
    opacity: 1;
}

.skills-segment-description {
    color: #ffffff;
    font-weight: 400;
    font-size: 0.95em;
    opacity: 0.85;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Work Experience */
.exp-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    display: none;
}

.exp-list.active {
    display: flex;
}

.overview-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.overview-text {
    color: #ffffff;
    opacity: 0.85;
    font-size: 1em;
    line-height: 1.7;
    padding-left: 24px;
    margin-bottom: 20px;
}

.overview-text:last-child {
    margin-bottom: 0;
}

.exp-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
    margin-bottom: 20px;
    position: relative;
    margin-left: 0;
}

.exp-summary {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.company-name {
    color: #ffffff;
    font-weight: 400;
    font-size: 1em;
    opacity: 0.9;
    line-height: 1.5;
}

.role-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1em;
    opacity: 1;
    margin-top: 2px;
}

.date-year {
    color: #ffffff;
    font-weight: 400;
    font-size: 0.95em;
    opacity: 0.8;
    margin-top: 2px;
}

.date-range-full {
    color: #ffffff;
    font-weight: 400;
    font-size: 0.95em;
    opacity: 0.8;
    margin-top: 2px;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #ffffff;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1em;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.2s;
    position: absolute;
    right: 0;
    top: 0;
}

.toggle-btn:hover {
    opacity: 0.7;
}

.toggle-btn .btn-text::after {
    content: " ▼";
    transition: transform 0.3s;
    display: inline-block;
    font-size: 0.8em;
}

.toggle-btn.expanded .btn-text::after {
    transform: rotate(180deg);
}

.exp-content {
    margin-top: 25px;
    padding-left: 20px;
    transition: max-height 0.5s ease-out, padding 0.3s, opacity 0.3s;
    overflow: hidden;
    opacity: 0.9;
}

.exp-content.collapsed {
    max-height: 0;
    padding-top: 0;
    margin-top: 0;
    opacity: 0;
}

.exp-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.exp-content li {
    margin-bottom: 14px;
    color: #ffffff;
    opacity: 0.88;
    padding-left: 0;
    padding-right: 0;
    line-height: 1.75;
    position: relative;
    font-size: 1em;
    text-align: left;
}

.exp-content li:last-child {
    margin-bottom: 0;
}

.exp-content li::before {
    content: "•";
    position: absolute;
    left: -16px;
    opacity: 0.7;
    font-weight: 400;
    font-size: 1.1em;
}

/* Category Buttons */
.category-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    margin-bottom: 25px;
    overflow-x: auto;
}

.category-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 0;
    font-size: 0.9em;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: opacity 0.2s;
    opacity: 0.7;
    white-space: nowrap;
}

.category-btn:hover {
    opacity: 1;
}

.category-btn.active {
    opacity: 1;
    font-weight: 500;
}

.category-content {
    margin-top: 20px;
    animation: fadeIn 0.3s ease-in;
}

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

/* Personal Projects */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
    margin-bottom: 20px;
    position: relative;
    margin-left: 0;
}

.project-summary {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.project-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1em;
    opacity: 1;
    line-height: 1.5;
}

.project-description {
    color: #ffffff;
    font-weight: 400;
    font-size: 0.95em;
    opacity: 0.85;
    margin-top: 2px;
    line-height: 1.5;
}

.project-actions {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.see-work-link,
.project-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1em;
    font-weight: 400;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.see-work-link:hover,
.project-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.project-toggle {
    position: relative;
}

.project-article-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    padding: 6px 10px;
    opacity: 0.9;
    transition: opacity 0.2s, border-color 0.2s, background-color 0.2s;
}

.project-article-link:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
}

.project-article-dropdown {
    position: relative;
}

.project-article-dropdown summary {
    list-style: none;
    cursor: pointer;
}

.project-article-dropdown summary::-webkit-details-marker {
    display: none;
}

.project-article-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 120px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(20, 20, 20, 0.95);
    z-index: 20;
}

.project-article-dropdown[open] .project-article-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-article-menu a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
    font-size: 0.9em;
}

.project-article-menu a:hover {
    opacity: 1;
    text-decoration: underline;
}

.tool-description {
    color: #ffffff;
    opacity: 0.7;
    font-size: 0.95em;
    margin-top: 5px;
    padding-left: 0;
}

/* Hobbies */
.hobbies-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.hobby-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.hobby-name {
    color: #ffffff;
    font-weight: 400;
    font-size: 1em;
    display: block;
    margin-bottom: 5px;
}

.hobby-description {
    color: #ffffff;
    opacity: 0.7;
    font-size: 0.95em;
    margin-top: 5px;
}

.hobbies-list-simple {
    list-style: none;
    padding-left: 0;
    margin: 15px 0 0 0;
}

.hobbies-list-simple li {
    margin-bottom: 14px;
    color: #ffffff;
    opacity: 0.88;
    padding-left: 24px;
    padding-right: 0;
    line-height: 1.75;
    position: relative;
    font-size: 1em;
    text-align: left;
}

.hobbies-list-simple li:last-child {
    margin-bottom: 0;
}

.hobbies-list-simple li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ffffff;
    opacity: 0.6;
    font-weight: 400;
    font-size: 1.2em;
    line-height: 1.5;
}

#hobbies .overview-section .overview-text {
    padding-left: 0;
}

.hobbies-list-detailed {
    margin: 15px 0 0 0;
    padding-left: 0;
}

.hobby-item-detailed {
    margin-bottom: 20px;
    color: #ffffff;
    opacity: 0.88;
    line-height: 1.75;
    font-size: 1em;
    display: flex;
    flex-direction: column;
}

.hobby-item-detailed:last-child {
    margin-bottom: 0;
}

.hobby-item-title {
    font-weight: 400;
    opacity: 1;
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
}

.hobby-item-text {
    opacity: 0.88;
    display: block;
    line-height: 1.6;
}

/* About & Contact Section */
.about-contact-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-item,
.location-item,
.contact-item {
    display: flex;
    align-items: baseline;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.label {
    color: #ffffff;
    opacity: 0.8;
    font-size: 1em;
    font-weight: 400;
    min-width: 150px;
}

.value {
    color: #ffffff;
    opacity: 0.9;
    font-size: 1em;
}

.flag {
    font-size: 1.2em;
    margin-left: 5px;
}

.contact-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-link {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.contact-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.separator {
    color: #ffffff;
    opacity: 0.5;
}

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

a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .home-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .globe-container {
        order: -1;
    }

    .navigation-menu {
        flex-wrap: wrap;
        gap: 20px;
    }

    .experience-tabs {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }

    .container {
        padding: 0;
    }

    .content-section {
        min-height: auto;
        padding: 24px 0 36px;
    }

    .name {
        font-size: 2em;
    }

    .exp-header {
        flex-direction: column;
        gap: 5px;
    }

    .section {
        margin-bottom: 40px;
    }

    .home-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-description {
        font-size: 0.95em;
    }

    .navigation-menu {
        gap: 14px;
        margin-bottom: 30px;
    }

    .nav-title {
        font-size: 1.05em;
    }

    .globe-svg {
        max-height: 360px;
    }

    .overview-text,
    .exp-summary,
    .qualification-summary,
    .project-summary {
        padding-left: 14px;
    }

    .exp-item,
    .qualification-item,
    .project-item {
        padding-bottom: 20px;
        margin-bottom: 12px;
    }

    .toggle-btn {
        position: static;
        margin-top: 8px;
        align-self: flex-start;
    }

    .project-actions {
        position: static;
        margin-top: 10px;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-start;
    }

    .skills-tags {
        gap: 8px;
    }

    .skill-tag {
        font-size: 0.85em;
        padding: 6px 10px;
    }

    .about-item,
    .location-item,
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .label {
        min-width: 0;
    }

    .contact-links {
        row-gap: 6px;
    }

    .separator {
        display: none;
    }

    .modal-content {
        max-width: 96%;
        padding: 18px 10px 22px;
    }

    .modal-images img,
    .modal-images video {
        max-height: 72vh;
    }

    .modal-close {
        top: 4px;
        right: 6px;
        font-size: 32px;
    }

    .modal-nav {
        width: 42px;
        height: 42px;
        font-size: 28px;
    }

    .modal-prev {
        left: 6px;
    }

    .modal-next {
        right: 6px;
    }

    .info-modal-content {
        margin: 4vh 12px 0;
        padding: 18px 16px;
        max-width: none;
    }

    .info-modal-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.7em;
        margin-bottom: 24px;
    }

    .tab-btn {
        font-size: 0.95em;
        padding: 8px 0;
    }

    .project-article-link,
    .see-work-link {
        font-size: 0.85em;
    }

    .modal-images img,
    .modal-images video {
        max-height: 66vh;
    }
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow: hidden;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
}

.modal-content {
    position: relative;
    z-index: 10002;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 60px;
}

.modal-images {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.modal-images img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: none;
}

.modal-images img.active {
    display: block;
}

.modal-images video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: none;
    background: #000000;
}

.modal-images video.active {
    display: block;
}

.modal-caption {
    display: none;
    margin-top: 16px;
    text-align: center;
}

.modal-caption.active {
    display: block;
}

.modal-download-link {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.95;
}

.modal-download-link:hover {
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10003;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10003;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0.8;
    transition: opacity 0.2s, background 0.2s;
}

.modal-nav:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-nav.hidden {
    display: none;
}

.info-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 11000;
}

.info-modal.active {
    display: block;
}

.info-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.info-modal-content {
    position: relative;
    z-index: 11001;
    max-width: 760px;
    margin: 8vh auto 0;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(17, 17, 17, 0.98);
    color: #ffffff;
    line-height: 1.6;
}

.info-modal-content h3 {
    margin: 0 0 14px 0;
    font-size: 1.2rem;
}

.info-modal-content p {
    margin: 10px 0;
    opacity: 0.92;
}

.info-modal-content a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.info-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 34px;
    cursor: pointer;
    opacity: 0.85;
}

.info-modal-close:hover {
    opacity: 1;
}

.info-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.info-modal-primary,
.info-modal-secondary {
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.92rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.info-modal-primary {
    color: #ffffff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
}

.info-modal-primary:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
}

.info-modal-secondary {
    color: #ffffff;
    background: transparent;
    cursor: pointer;
}
