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

body {
    background-color: #000;
    color: #d0d0d0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 200px;
    background-color: #000;
    border-right: 1px solid #837A6C;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;
}

.nav-header {
    color: #837A6C;
    font-size: 12px;
    padding: 0 25px 15px;
    margin-bottom: 10px;
    border-bottom: 1px solid #837A6C;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav a {
    color: #808080;
    text-decoration: none;
    font-size: 14px;
    padding: 12px 25px;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.nav a:hover {
    color: #f2f2f2;
    background-color: #0a0a0a;
    border-left-color: #f2f2f2;
}

.nav a.active {
    color: #f2f2f2;
    background-color: #0a0a0a;
    border-left-color: #f2f2f2;
    animation: navHighlight 0.4s ease;
}

.lang-toggle {
    background: none;
    border: 1px solid #837A6C;
    color: #808080;
    font-size: 12px;
    padding: 6px 12px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    margin: 15px 25px;
    display: inline-block;
    width: auto;
}

.lang-toggle:hover {
    border-color: #837A6C;
}

.lang-toggle:active {
    transform: scale(0.95);
}

.lang-active {
    color: #f2f2f2;
    font-weight: bold;
}

.lang-inactive {
    color: #837A6C;
}

@keyframes navHighlight {
    0% {
        transform: translateX(-3px);
        opacity: 0.5;
    }
    50% {
        transform: translateX(2px);
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

main {
    margin-left: 200px;
    padding: 0;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 60px;
    border-bottom: 1px solid #837A6C;
}

.section:last-of-type {
    border-bottom: none;
}

.hero {
    text-align: center;
    background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
    justify-content: center;
}

.hero-content {
    margin-bottom: 60px;
}

.name {
    font-size: 72px;
    color: #f2f2f2;
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: -1px;
}

.title {
    font-size: 18px;
    color: #888;
    margin-bottom: 25px;
    font-weight: 300;
}

.status {
    font-size: 14px;
    color: #666;
    margin-bottom: 40px;
    min-height: 24px;
    font-family: 'Consolas', monospace;
}

.cursor {
    display: inline-block;
    color: #666;
    animation: none;
}

.cursor.blink {
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

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

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
    margin: 0 auto;
    max-width: 700px;
}

.info-box {
    border: 1px solid #837A6C;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #050505;
    transition: border-color 0.3s ease;
}

.info-box:hover {
    border-color: #837A6C;
}

.label {
    font-size: 12px;
    color: #837A6C;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.value {
    font-size: 16px;
    color: #d0d0d0;
}

.link {
    color: #d0d0d0;
    text-decoration: none;
    transition: color 0.2s;
}

.link:hover {
    color: #f2f2f2;
}

.section-title {
    font-size: 36px;
    color: #f2f2f2;
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.about-text {
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 50px;
    max-width: 900px;
    color: #b0b0b0;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
}

.focus-item {
    border: 1px solid #837A6C;
    padding: 20px 25px;
    font-size: 15px;
    background-color: #050505;
    transition: all 0.3s ease;
}

.focus-item:hover {
    border-color: #837A6C;
    background-color: #0a0a0a;
}

.skill-categories {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    background: transparent;
    border: 1px solid #837A6C;
    color: #808080;
    padding: 10px 20px;
    font-family: 'Consolas', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: #837A6C;
    color: #d0d0d0;
    background-color: #0a0a0a;
}

.category-btn.active {
    border-color: #f2f2f2;
    color: #f2f2f2;
    background-color: #0a0a0a;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1000px;
    grid-auto-rows: auto;
    transition: max-height 0.6s ease;
}

.skills-grid.collapsed {
    max-height: calc((20px + 40px + 12px + 2px) * 4 + 15px * 3);
    overflow: hidden;
}

.show-more-container {
    margin-top: 30px;
    text-align: center;
    display: none;
}

.show-more-btn {
    background: transparent;
    border: 1px solid #837A6C;
    color: #808080;
    padding: 10px 30px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    color: #f2f2f2;
    border-color: #f2f2f2;
    background-color: #0a0a0a;
}

.skill-item {
    border: 1px solid #837A6C;
    padding: 20px;
    background-color: #050505;
    transition: all 0.3s ease;
    opacity: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-item.hidden {
    display: none;
}

.skill-item:hover {
    border-color: #837A6C;
    background-color: #0a0a0a;
    transform: translateY(-3px);
}

.skill-name {
    font-size: 16px;
    color: #d0d0d0;
    font-weight: 300;
}

.skill-level {
    width: 100%;
    height: 4px;
    background-color: #837A6C;
    border-radius: 2px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(90deg, #837A6C 0%, #f2f2f2 100%);
    transition: width 0.8s ease;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
}

.cert-item {
    border-left: 2px solid #837A6C;
    padding: 20px 25px;
    font-size: 16px;
    background-color: #050505;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cert-clickable {
    cursor: pointer;
}

.cert-clickable:hover {
    border-left-color: #f2f2f2;
    background-color: #0a0a0a;
}

.cert-name {
    flex: 1;
}

.cert-hint {
    font-size: 12px;
    color: #837A6C;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-clickable:hover .cert-hint {
    opacity: 1;
}

.cert-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-left: 15px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.cert-clickable:hover .cert-icon {
    opacity: 1;
}

.project-controls {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.project-sort,
.project-limit {
    display: flex;
    gap: 15px;
    align-items: center;
}

.sort-label {
    color: #837A6C;
    font-size: 13px;
}

.sort-btn {
    background: transparent;
    border: 1px solid #837A6C;
    color: #808080;
    padding: 8px 16px;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-btn:hover {
    border-color: #837A6C;
    color: #d0d0d0;
    background-color: #0a0a0a;
}

.sort-btn.active {
    border-color: #f2f2f2;
    color: #f2f2f2;
    background-color: #0a0a0a;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1100px;
    align-items: start;
}

.loading {
    font-size: 15px;
    color: #666;
}

.project-card {
    border: 1px solid #837A6C;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #050505;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: #837A6C;
    background-color: #0a0a0a;
    transform: translateY(-3px);
}

.project-name {
    font-size: 20px;
    color: #f2f2f2;
    font-weight: 300;
}

.project-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    flex-grow: 1;
}

.project-thumbnail {
    max-width: 150px;
    max-height: 100px;
    object-fit: contain;
    margin: 10px 0;
    border-radius: 4px;
}

.project-thumbnail-large {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    margin: 15px 0;
    border-radius: 4px;
}

.project-meta {
    display: flex;
    gap: 25px;
    font-size: 13px;
    color: #837A6C;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #837A6C;
}

.project-link {
    color: #808080;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.project-link:hover {
    color: #f2f2f2;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 900px;
    margin-bottom: 60px;
}

.timeline-item {
    border-left: 2px solid #837A6C;
    padding-left: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-left-color 0.3s ease;
}

.timeline-item:hover {
    border-left-color: #f2f2f2;
}

.timeline-date {
    font-size: 13px;
    color: #837A6C;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-desc {
    font-size: 16px;
    color: #b0b0b0;
}

.milestones-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.milestone-item {
    border: 1px solid #837A6C;
    background-color: #050505;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.milestone-item:hover {
    border-color: #f2f2f2;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(131, 122, 108, 0.4);
}

.milestone-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.milestone-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.milestone-item:hover .milestone-img {
    transform: scale(1.1);
}

.pdf-icon {
    font-size: 32px;
    color: #837A6C;
    font-weight: 300;
    letter-spacing: 3px;
}

.milestone-info {
    padding: 20px;
    background: #050505;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.milestone-year {
    font-size: 11px;
    color: #837A6C;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.milestone-caption {
    font-size: 15px;
    color: #d0d0d0;
    line-height: 1.4;
    font-weight: 400;
}

.milestone-date-stamp {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #837A6C;
    padding: 8px 15px;
    font-size: 11px;
    color: #d0d0d0;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.current-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
}

.current-item {
    border: 1px solid #837A6C;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #050505;
    transition: all 0.3s ease;
}

.current-item:hover {
    border-color: #837A6C;
    background-color: #0a0a0a;
}

.current-label {
    font-size: 12px;
    color: #837A6C;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.current-value {
    font-size: 16px;
    color: #d0d0d0;
}

.footer {
    text-align: center;
    padding: 60px 20px 40px;
    border-top: 1px solid #111;
    font-size: 13px;
    color: #837A6C;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, background-color 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
    background-color: rgba(0, 0, 0, 0.95);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    perspective: 1000px;
}

.modal-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid #837A6C;
    background: linear-gradient(135deg, #0a0a0a 0%, #050505 100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.modal-overlay.active .modal-layer {
    opacity: 1;
}

.modal-layer.layer-1 {
    transform: translateZ(-100px) translateY(0);
    background: #0a0a0a;
    border-color: #0f0f0f;
}

.modal-overlay.active .modal-layer.layer-1 {
    transform: translateZ(-100px) translateY(-20px);
}

.modal-layer.layer-2 {
    transform: translateZ(-50px) translateY(0);
    background: #080808;
    border-color: #151515;
}

.modal-overlay.active .modal-layer.layer-2 {
    transform: translateZ(-50px) translateY(-10px);
}

.modal-layer.layer-3 {
    transform: translateZ(-25px) translateY(0);
    background: linear-gradient(90deg, transparent 0%, #837A6C 50%, transparent 100%);
    border-color: #837A6C;
    height: 2px;
    top: 50%;
}

.modal-overlay.active .modal-layer.layer-3 {
    transform: translateZ(-25px) translateY(-5px) scaleX(1.5);
    opacity: 0.3;
}

.modal-content {
    position: relative;
    background-color: #000;
    border: 1px solid #837A6C;
    padding: 50px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(50px) scale(0.95);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 1px solid #837A6C;
    color: #808080;
    padding: 10px 20px;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    border-color: #f2f2f2;
    color: #f2f2f2;
    background-color: #0a0a0a;
}

#modal-body {
    margin-top: 20px;
}

.modal-title {
    font-size: 28px;
    color: #f2f2f2;
    margin-bottom: 30px;
    font-weight: 300;
}

.modal-description {
    font-size: 16px;
    color: #999;
    margin-bottom: 25px;
    line-height: 1.6;
    padding: 15px;
    background-color: #0a0a0a;
    border-left: 2px solid #837A6C;
    font-family: 'Courier New', monospace;
}

.modal-description::before {
    content: '> ';
    color: #666;
    display: inline;
}

.modal-embed {
    width: 100%;
    height: 70vh;
    border: 1px solid #837A6C;
    background-color: #050505;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #050505;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #837A6C;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #837A6C;
}


@media (max-width: 1200px) {
    .nav {
        width: 180px;
    }
    
    main {
        margin-left: 180px;
    }
    
    .section {
        padding: 60px 40px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1002;
    background: none;
    border: 1px solid #837A6C;
    padding: 10px;
    cursor: pointer;
    width: 45px;
    height: 45px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    border-color: #f2f2f2;
    background-color: #0a0a0a;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #837A6C;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background-color: #f2f2f2;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        border-right: 1px solid #837A6C;
        border-bottom: none;
        padding: 80px 0 40px 0;
        gap: 5px;
        background-color: #000;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 1001;
    }
    
    .nav.active {
        left: 0;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    .nav-header {
        display: block;
    }
    
    .nav a {
        padding: 15px 25px;
        font-size: 15px;
    }
    
    .lang-toggle {
        margin: 20px 25px;
    }
    
    main {
        margin-left: 0;
    }
    
    .section {
        padding: 40px 25px;
        min-height: auto;
    }
    
    .hero {
        min-height: 100vh;
        padding: 60px 25px 40px;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .name {
        font-size: 64px;
        text-shadow: 0 0 30px rgba(242, 242, 242, 0.3);
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .focus-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 30px 25px;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        padding: 8px 15px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .mobile-menu-toggle {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        padding: 8px;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
    }
    
    .nav {
        width: 250px;
    }
    
    .nav a {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .section {
        padding: 30px 20px;
        min-height: auto;
    }
    
    .hero {
        min-height: 100vh;
        padding: 50px 20px 30px;
    }
    
    .hero-content {
        margin-bottom: 35px;
    }
    
    .name {
        font-size: 48px;
        text-shadow: 0 0 25px rgba(242, 242, 242, 0.4);
        letter-spacing: -0.5px;
        margin-bottom: 15px;
    }
    
    .title {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-categories {
        gap: 10px;
    }
    
    .category-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .milestones-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .modal-content {
        padding: 25px 20px;
    }
    
    .modal-container {
        width: 95%;
    }
    
    .modal-title {
        font-size: 22px;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}
