/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 120px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 0;
}

.logo-image {
    width: auto;
    height: 37px;
    object-fit: contain;
    flex-shrink: 0;
    align-self: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.logo-name {
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    letter-spacing: 2px;
    line-height: 1;
}

.logo-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: #666666;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 12px;
    align-items: center;
}

.lang-btn {
    background: none;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0.4;
}

.lang-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lang-btn:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.lang-btn.active {
    opacity: 1;
    border-color: #f0f0f0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin-left: auto;
}

.nav-menu li {
    display: inline-block;
}

.nav-menu a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

.nav-menu a:hover {
    opacity: 0.6;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #000000;
    margin: 3px 0;
    transition: all 0.3s ease;
    display: block;
}

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

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

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #ffffff;
}

.parallax-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, rgba(255, 255, 255, 1) 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 80px;
    font-weight: bold;
    letter-spacing: 8px;
    margin-bottom: 20px;
    color: #000000;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    color: #333333;
    letter-spacing: 2px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid #000000;
    min-width: 180px;
    text-align: center;
}

.cta-button:hover {
    background-color: #ffffff;
    color: #000000;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: #ffffff;
}

.about h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-align: center;
    color: #000000;
}

.about-name {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #000000;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.about-contact {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.about-contact-link {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.3s ease;
}

.about-contact-link:hover {
    opacity: 0.6;
}

.about p {
    font-size: 16px;
    max-width: 900px;
    margin: 0 auto 15px;
    text-align: center;
    color: #333333;
    line-height: 1.7;
}

/* About Grid Layout */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2px 1fr;
    gap: 50px;
    margin-top: 40px;
    align-items: stretch;
}

.about-separator {
    width: 2px;
    background: linear-gradient(to bottom, transparent, #e0e0e0 10%, #e0e0e0 90%, transparent);
    height: 100%;
    min-height: 400px;
}

.about-left,
.about-right {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.about-right {
    height: 100%;
}

.about-intro {
    font-size: 16px;
    text-align: left;
    color: #333333;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-intro-block {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: left;
}

.about-intro-block .about-intro {
    margin-bottom: 18px;
    text-align: left;
}

.about-intro-block .about-intro:last-of-type {
    margin-bottom: 20px;
    text-align: left;
}

.about-intro-block .about-cta {
    text-align: left;
}

.about-cta {
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    color: #000000;
    margin-top: 25px;
    margin-bottom: 0;
    white-space: pre-line;
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-separator {
        display: none;
    }
    
    .about-intro,
    .about-cta {
        text-align: center;
    }
    
    .info-block {
        padding: 20px;
    }
    
    .experience-block {
        max-height: none;
    }
}

/* Info Blocks */
.info-block {
    background: #ffffff;
    border: 2px solid #f0f0f0;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.info-block:hover {
    border-color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.experience-block {
    padding: 30px;
    max-height: 737px;
    overflow-y: auto;
    margin-bottom: 0 !important;
}

.experience-block::-webkit-scrollbar {
    width: 6px;
}

.experience-block::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.experience-block::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 3px;
}

.experience-block::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

/* Software Section */
.software-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.software-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #fafafa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.software-item:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.software-item img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.software-item span {
    font-size: 12px;
    font-weight: 500;
    color: #333333;
    text-align: center;
}

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

.skill-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #000000;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: #333333;
    transform: translateY(-2px);
}

/* Experience Section */
.experience {
    margin-top: 0 !important;
}

.timeline {
    position: relative;
    padding-left: 0;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-period {
    font-size: 11px;
    font-weight: 600;
    color: #999999;
    text-align: left;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.timeline-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    line-height: 1.4;
}

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

.timeline-content li {
    font-size: 13px;
    color: #555555;
    margin-bottom: 4px;
    padding-left: 12px;
    position: relative;
    line-height: 1.5;
}

.timeline-content li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #cccccc;
    font-weight: bold;
}

@media (max-width: 768px) {
    .software-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .skills-tags {
        gap: 10px;
    }
    
    .skill-tag {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 25px;
        padding-bottom: 25px;
    }
    
    .timeline-period {
        text-align: left;
        font-size: 12px;
    }
    
    .timeline-content h4 {
        font-size: 15px;
    }
    
    .timeline-content li {
        font-size: 13px;
    }
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background-color: #f8f8f8;
}

.gallery h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-align: center;
    color: #000000;
}

.gallery-intro {
    text-align: center;
    font-size: 18px;
    margin-bottom: 40px;
    color: #333333;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #f0f0f0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
}

.filter-btn:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

.filter-btn.active {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

.gallery-note {
    text-align: center;
    color: #333333;
    font-size: 14px;
    margin-bottom: 30px;
    margin-top: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    grid-auto-rows: 10px;
    align-items: start;
}

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.5s ease;
    width: 100%;
}

.gallery-item.hide {
    display: none;
}

.gallery-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.overlay p {
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 1px;
}

/* Media Indicators (Slide/Scroll) */
.media-indicator {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
    transition: all 0.3s ease;
}

.media-indicator svg {
    flex-shrink: 0;
}

.gallery-item:hover .media-indicator {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

.slide-count {
    line-height: 1;
    padding-top: 1px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: #ffffff;
    text-align: center;
}

.contact h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #000000;
}

.contact p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #333333;
}

.contact-info {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.contact-link {
    font-size: 24px;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-link svg {
    flex-shrink: 0;
}

.contact-link:hover {
    opacity: 0.6;
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal.scrollable {
    overflow-y: auto;
    align-items: flex-start;
}

.modal.show.scrollable {
    overflow-y: auto;
    align-items: flex-start;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.8);
    transform-origin: center center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin: auto;
    display: block;
    user-select: none;
    cursor: grab;
}

.modal-content:active {
    cursor: grabbing;
}

.modal.scrollable .modal-content {
    max-height: none !important;
    margin: 20px auto;
    transform: translateY(50px) scale(1);
    transform-origin: top center;
}

.modal.show .modal-content {
    opacity: 1;
    transform: scale(1);
}

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

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    border: none;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-nav:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

.modal.slider .modal-nav {
    display: flex;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 45px;
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10001;
}

.close-modal:hover,
.close-modal:focus {
    color: #cccccc;
}

/* Footer */
.footer {
    background-color: #000000;
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        gap: 10px;
    }

    .logo {
        order: 1;
    }

    .lang-switcher {
        gap: 8px;
        order: 2;
        margin-left: auto;
    }

    .hamburger {
        display: flex;
        order: 3;
    }

    .lang-btn {
        width: 28px;
        height: 28px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        margin-left: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger,
    .lang-switcher {
        position: relative;
        z-index: 1001;
    }

    .nav-menu a {
        font-size: 20px;
    }

    .hero-title {
        font-size: 48px;
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-note {
        text-align: center;
    }

    .overlay h3 {
        font-size: 20px;
        white-space: nowrap;
        max-width: 90%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .about h2,
    .gallery h2,
    .contact h2 {
        font-size: 36px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Parallax Effect */
.parallax-item {
    transition: transform 0.1s ease-out;
    will-change: transform;
}
