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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #333;
}

::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #888;
}

body.light-theme ::-webkit-scrollbar-track {
    background: #e0e0e0;
}

body.light-theme ::-webkit-scrollbar-thumb {
    background: #999;
}

body.light-theme ::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Modal scrollbar removal */
.modal-content::-webkit-scrollbar {
    display: none;
}

.modal-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html {
    background-color: #000000;
    transition: background-color 0.3s ease;
    min-height: 100%;
}

html.light-theme {
    background-color: #ffffff;
}

body {
    background-color: #000000;
    color: white;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    min-height: 100vh;
}

body.light-theme {
    background-color: #ffffff;
    color: #000000;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Main content initially hidden */
.main-content {
    opacity: 0;
    transition: opacity 0.5s ease 0.2s;
}

.main-content.loaded {
    opacity: 1;
}

.container {
    max-width: none;
    margin: 0;
    padding: 0 max(20px, calc((100vw - 700px) / 2));
    min-height: 100vh;
    position: relative;
}

.profile-picture {
    position: absolute;
    top: 20px;
    left: max(20px, calc((100vw - 700px) / 2));
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    position: absolute;
    top: 80px;
    left: max(20px, calc((100vw - 700px) / 2));
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    font-weight: 400;
    color: inherit;
    letter-spacing: 0.3px;
}

.profile-title {
    position: absolute;
    top: 112px;
    left: max(20px, calc((100vw - 700px) / 2));
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #888888;
    letter-spacing: 0.2px;
}

.job-container {
    display: inline-block;
    position: relative;
    min-height: 1.6em;
    vertical-align: top;
}

.job-text {
    display: inline-block;
    color: inherit;
    position: relative;
}

.job-text.selected {
    background-color: #0066cc;
    color: white;
}

body.light-theme .job-text.selected {
    background-color: #0066cc;
    color: white;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: #0078d4;
    position: absolute;
    top: 0;
    vertical-align: text-bottom;
    animation: blink 1s infinite;
}

.cursor.typing {
    animation: none;
    opacity: 1;
}

.cursor.hidden {
    opacity: 0;
}

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

.social-links {
    position: absolute;
    top: 145px;
    left: max(20px, calc((100vw - 700px) / 2));
    display: flex;
    gap: 8px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    font-size: 22px;
}

.social-link:hover {
    transform: translateY(-2px);
    color: #ccc;
}

body.light-theme .social-link {
    color: #000000;
}

body.light-theme .social-link:hover {
    color: #333;
}

.controls {
    position: absolute;
    top: 145px;
    right: max(20px, calc((100vw - 700px) / 2));
    display: flex;
    gap: 8px;
}

.theme-toggle, .language-toggle {
    width: 40px;
    height: 40px;
    background-color: #1a1a1a;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.language-toggle {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.theme-toggle:hover, .language-toggle:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.theme-toggle i {
    transition: transform 0.5s ease;
}

.theme-toggle.rotating-moon i {
    transform: rotate(-360deg);
}

.theme-toggle.rotating-sun i {
    transform: rotate(360deg);
}

body.light-theme .theme-toggle, body.light-theme .language-toggle {
    background-color: #f0f0f0;
    color: #000000;
}

body.light-theme .theme-toggle:hover, body.light-theme .language-toggle:hover {
    background-color: #e0e0e0;
}

.dividing-line {
    position: absolute;
    top: 215px;
    left: max(20px, calc((100vw - 700px) / 2));
    right: max(20px, calc((100vw - 700px) / 2));
    height: 1px;
    background-color: #333;
    transition: background-color 0.3s ease;
}

body.light-theme .dividing-line {
    background-color: #e0e0e0;
}

.section-nav {
    position: absolute;
    top: 245px;
    left: max(20px, calc((100vw - 700px) / 2));
    display: flex;
    gap: 20px;
}

.section-tab {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.section-tab.active {
    color: white;
    background-color: #1a1a1a;
}

.section-tab:hover {
    color: #aaa;
}

body.light-theme .section-tab {
    color: #666;
}

body.light-theme .section-tab.active {
    color: #000000;
    background-color: #f0f0f0;
}

body.light-theme .section-tab:hover {
    color: #333;
}

.section-content {
    position: absolute;
    top: 295px;
    left: max(20px, calc((100vw - 700px) / 2));
    right: max(20px, calc((100vw - 700px) / 2));
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #ccc;
    display: none;
}

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

body.light-theme .section-content {
    color: #333;
}

/* Dynamic content based on language */
.content-en { display: block; }
.content-cs { display: none; }

html[lang="cs"] .content-en { display: none; }
html[lang="cs"] .content-cs { display: block; }

html[lang="cs"] .section-tab.active {
    color: white;
    background-color: #1a1a1a;
}

html[lang="cs"].light-theme .section-tab.active {
    color: #000000;
    background-color: #f0f0f0;
}

.twitter-link {
    color: rgba(204, 204, 204, 0.8);
    text-decoration: underline;
    transition: all 0.3s ease;
}

.twitter-link:hover {
    color: #ccc;
    text-decoration: underline;
}

body.light-theme .twitter-link {
    color: rgba(51, 51, 51, 0.8);
}

body.light-theme .twitter-link:hover {
    color: #333;
}

.main-sections {
    transition: opacity 0.3s ease;
}

.main-sections.hidden {
    display: none;
}

.experience-section {
    position: absolute;
    top: 380px;
    left: max(20px, calc((100vw - 700px) / 2));
    right: max(20px, calc((100vw - 700px) / 2));
}

.experience-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

body.light-theme .experience-title {
    color: #000000;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 14px;
    height: calc(80px + 40px + 40px);
    width: 2px;
    background-color: #666;
}

.timeline::after {
    content: '';
    position: absolute;
    left: 8px;
    top: calc(14px + 80px + 40px + 40px);
    height: 60px;
    width: 2px;
    background: linear-gradient(to bottom, #666, rgba(102, 102, 102, 0.3), transparent);
}

body.light-theme .timeline::before {
    background-color: #999;
}

body.light-theme .timeline::after {
    background: linear-gradient(to bottom, #999, rgba(153, 153, 153, 0.3), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -27px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #666;
    border: 3px solid #000000;
}

.timeline-dot.present {
    background-color: #aaa;
    box-shadow: 0 0 0 4px rgba(170, 170, 170, 0.2);
}

.timeline-dot.past {
    background-color: #444;
    opacity: 0.7;
}

body.light-theme .timeline-dot {
    border-color: #ffffff;
}

body.light-theme .timeline-dot.present {
    background-color: #333;
    box-shadow: 0 0 0 4px rgba(51, 51, 51, 0.2);
}

body.light-theme .timeline-dot.past {
    background-color: #aaa;
}

.timeline-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.timeline-content .company {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #888;
    margin-bottom: 4px;
}

.timeline-content .period {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #666;
}

body.light-theme .timeline-content h3 {
    color: #000000;
}

body.light-theme .timeline-content .company {
    color: #555;
}

body.light-theme .timeline-content .period {
    color: #777;
}

.projects-section {
    position: absolute;
    top: 735px;
    left: max(20px, calc((100vw - 700px) / 2));
    right: max(20px, calc((100vw - 700px) / 2));
}

.projects-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

body.light-theme .projects-title {
    color: #000000;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    height: 300px;
}

.project-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-card:active {
    transform: translateY(-4px);
}

.project-card.see-all {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #333;
    background-color: transparent;
}

.project-card.see-all:hover {
    border-color: #555;
    background-color: #111;
    transform: translateY(-4px);
}

body.light-theme .project-card {
    background-color: #f5f5f5;
    color: #000000;
}

body.light-theme .project-card:hover {
    background-color: #e8e8e8;
}

body.light-theme .project-card.see-all {
    background-color: transparent;
    border-color: #ddd;
}

body.light-theme .project-card.see-all:hover {
    border-color: #999;
    background-color: #f9f9f9;
}

.project-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: background-color 0.3s ease;
}

.project-image img {
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    object-fit: cover;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

body.light-theme .project-image {
    background-color: #ddd;
}

body.light-theme .project-image img {
    filter: brightness(0);
}

.project-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: white;
}

.project-description {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    flex-grow: 1;
}

.see-all-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.light-theme .project-title {
    color: #000000;
}

body.light-theme .project-description {
    color: #555;
}

body.light-theme .see-all-text {
    color: #666;
}

.footer {
    position: absolute;
    top: max(1250px, calc(100vh - 120px));
    left: max(20px, calc((100vw - 700px) / 2));
    right: max(20px, calc((100vw - 700px) / 2));
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0 20px 0;
}

.footer-logo {
    width: 75px;
    height: 75px;
    margin-bottom: -3px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-image: url('kanye.svg');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    filter: brightness(0) invert(1);
}

.footer-logo:hover {
    background-image: url('kanye-hovered.svg');
    transform: scale(1.05);
    filter: none;
}

body.light-theme .footer-logo {
    filter: brightness(0);
}

body.light-theme .footer-logo:hover {
    filter: none;
}

.footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

body.light-theme .footer-text {
    color: #000000;
}

.contact-footer {
    position: absolute;
    top: max(1250px, calc(100vh - 120px));
    left: max(20px, calc((100vw - 700px) / 2));
    right: max(20px, calc((100vw - 700px) / 2));
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0 20px 0;
}

.contact-footer .footer-logo {
    width: 75px;
    height: 75px;
    margin-bottom: -3px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-image: url('kanye.png');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    filter: brightness(0) invert(1);
}

.contact-footer .footer-logo:hover {
    background-image: url('kanye-hovered.png');
    transform: scale(1.05);
    filter: none;
}

body.light-theme .contact-footer .footer-logo {
    filter: brightness(0);
}

body.light-theme .contact-footer .footer-logo:hover {
    filter: none;
}

.contact-footer .footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

body.light-theme .contact-footer .footer-text {
    color: #000000;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2a2a2a;
    color: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    max-width: 320px;
    width: calc(100vw - 40px);
    font-family: 'Inter', sans-serif;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 0.3s ease;
}

.toast-close:hover {
    color: white;
}

.toast-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
    margin-right: 20px;
}

.toast-progress {
    width: 100%;
    height: 3px;
    background-color: #444;
    border-radius: 2px;
    margin-bottom: 12px;
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    background-color: #0078d4;
    border-radius: 2px;
    transition: width 5s linear;
    width: 0%;
}

.toast-progress-bar.animate {
    width: 100%;
}

.toast-button {
    background-color: #0078d4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.toast-button:hover {
    background-color: #106ebe;
}

/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.project-modal.show {
    display: flex !important;
    opacity: 1 !important;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10001;
}

.modal-content {
    position: relative;
    background-color: #1a1a1a;
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    z-index: 10002;
}

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

body.light-theme .modal-content {
    background-color: #ffffff;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 10003;
}

.modal-close:hover {
    color: white;
    background-color: #333;
}

body.light-theme .modal-close {
    color: #666;
}

body.light-theme .modal-close:hover {
    color: #000000;
    background-color: #f0f0f0;
}

.modal-body {
    padding: 32px;
}

.modal-section {
    margin-bottom: 32px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-title {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
}

body.light-theme .modal-title {
    color: #000000;
}

.modal-link {
    margin-bottom: 24px;
}

.modal-link a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.modal-link a:hover {
    color: #ccc;
}

body.light-theme .modal-link a {
    color: #666;
}

body.light-theme .modal-link a:hover {
    color: #333;
}

.modal-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

body.light-theme .modal-section-title {
    color: #000000;
}

.modal-description {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
    margin: 0;
}

body.light-theme .modal-description {
    color: #444;
}

.modal-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
}

.modal-gallery::-webkit-scrollbar {
    height: 6px;
}

.modal-gallery::-webkit-scrollbar-track {
    background: #333;
    border-radius: 3px;
}

.modal-gallery::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 3px;
}

.modal-gallery::-webkit-scrollbar-thumb:hover {
    background: #888;
}

body.light-theme .modal-gallery::-webkit-scrollbar-track {
    background: #e0e0e0;
}

body.light-theme .modal-gallery::-webkit-scrollbar-thumb {
    background: #999;
}

body.light-theme .modal-gallery::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.gallery-image {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    display: block;
}

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

.gallery-video {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    display: block;
    background-color: #333;
}

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

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    pointer-events: none;
    z-index: 1;
}

.modal-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background-color: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

body.light-theme .tech-tag {
    background-color: #f0f0f0;
    color: #000000;
}

.modal-challenges {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.modal-challenges li {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 8px;
}

body.light-theme .modal-challenges li {
    color: #333;
}

.modal-results {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
    margin: 0;
}

body.light-theme .modal-results {
    color: #333;
}

/* Improve touch experience for overlay */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.image-overlay.show {
    display: flex !important;
}

.image-overlay img {
    max-width: 85vw;
    max-height: 90vh;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    display: block;
    pointer-events: none; /* Prevent interference with touch events */
}

.image-overlay video {
    max-width: 85vw;
    max-height: 90vh;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    display: block;
}

/* Mobile responsive overlay */
@media (max-width: 768px) {
    .image-overlay img,
    .image-overlay video {
        max-width: 95vw;
        max-height: 85vh;
    }
}

@media (max-width: 740px) {
    .coding-languages-section {
        top: 650px;
        left: 20px;
        right: 20px;
    }
    
    .language-item {
        gap: 16px;
    }
    
    .language-name {
        min-width: 70px;
        font-size: 13px;
    }

    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        width: auto;
    }
    
    .controls {
        flex-direction: row;
        gap: 8px;
    }
    
    .theme-toggle, .language-toggle {
        top: 140px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .language-toggle {
        font-size: 10px;
    }
    
    .profile-picture {
        height: 50px;
        width: 50px;
    }
    
    .profile-name {
        top: 80px;
    }
    
    .profile-title {
        top: 110px;
    }
    
    .social-links {
        top: 140px;
    }
    
    .dividing-line {
        top: 195px;
    }
    
    .section-nav {
        top: 215px;
    }
    
    .section-content {
        top: 260px;
        font-size: 16px;
    }
    
    .contact-footer {
        top: max(1560px, calc(100vh - 120px));
        left: 20px;
        right: 20px;
        padding: 30px 0 20px 0;
    }
    
    .experience-section {
        top: 360px;
    }
    
    .projects-section {
        top: 860px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        height: 450px;
        gap: 12px;
    }
    
    .project-card {
        padding: 15px;
    }
    
    .project-title {
        font-size: 13px;
    }
    
    .project-description {
        font-size: 11px;
    }
    
    .footer {
        top: max(1560px, calc(100vh - 120px));
        padding: 30px 0 20px 0;
    }
    
    .footer-logo {
        width: 60px;
        height: 60px;
    }
    
    .footer-text {
        font-size: 14px;
    }
    
    .contact-footer .footer-logo {
        width: 60px;
        height: 60px;
    }
    
    .contact-footer .footer-text {
        font-size: 14px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-section {
        margin-bottom: 24px;
    }
    
    .modal-section-title {
        font-size: 16px;
    }
    
    .gallery-image,
    .gallery-video {
        width: 100px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .profile-name {
        font-size: 22px;
    }
    
    .profile-title {
        font-size: 13px;
    }
    
    .section-content {
        font-size: 15px;
    }
    
    .experience-section {
        top: 370px;
    }
    
    .projects-section {
        top: 740px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        height: 600px;
    }
    
    .footer {
        top: max(1600px, calc(100vh - 120px));
    }
    
    .footer-logo {
        width: 50px;
        height: 50px;
    }
    
    .footer-text {
        font-size: 13px;
    }
    
    .contact-footer {
        top: max(1600px, calc(100vh - 120px));
    }
    
    .contact-footer .footer-logo {
        width: 50px;
        height: 50px;
    }
    
    .contact-footer .footer-text {
        font-size: 13px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .gallery-image,
    .gallery-video {
        width: 90px;
        height: 55px;
    }
}

@media (max-width: 740px) {
    .container {
        padding: 0 20px;
    }
    
    .controls {
        right: 20px;
    }
    
    .dividing-line {
        left: 20px;
        right: 20px;
    }
    
    .section-nav {
        left: 20px;
    }
    
    .section-content {
        left: 20px;
        right: 20px;
    }
    
    .experience-section {
        left: 20px;
        right: 20px;
    }
    
    .projects-section {
        left: 20px;
        right: 20px;
    }
    
    .footer {
        left: 20px;
        right: 20px;
    }
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2a2a2a;
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    max-width: 350px;
    width: calc(100vw - 40px);
    font-family: 'Inter', sans-serif;
    z-index: 5000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-popup.show {
    transform: translateY(0);
    opacity: 1;
}

body.light-theme .cookie-popup {
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-text {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: #ccc;
}

body.light-theme .cookie-text {
    color: #333;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.cookie-accept {
    background-color: #0078d4;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    order: 1;
}

.cookie-accept:hover {
    background-color: #106ebe;
}

.cookie-decline {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s ease;
    text-align: center;
    order: 2;
    display: inline-block;
    align-self: center;
}

.cookie-decline:hover {
    opacity: 0.8;
}

body.light-theme .cookie-decline {
    color: #000000;
}

@media (max-width: 768px) {
    .cookie-popup {
        bottom: 0;
        left: 0;
        right: 0;
        max-width: none;
        width: 100%;
        border-radius: 12px 12px 0 0;
        transform: translateY(100%);
    }
    
    .cookie-popup.show {
        transform: translateY(0);
    }
}

.coding-languages-section {
    position: absolute;
    top: 730px;
    left: max(20px, calc((100vw - 700px) / 2));
    right: max(20px, calc((100vw - 700px) / 2));
}

.coding-languages-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

body.light-theme .coding-languages-title {
    color: #000000;
}

.coding-languages-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-name {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: white;
    min-width: 80px;
    text-align: left;
}

body.light-theme .language-name {
    color: #000000;
}

.language-progress {
    flex: 1;
    height: 8px;
    background-color: #333;
    border-radius: 4px;
    overflow: hidden;
}

body.light-theme .language-progress {
    background-color: #e0e0e0;
}

.progress-bar {
    height: 100%;
    background-color: white;
    border-radius: 4px;
    width: 0%;
    transition: width 2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

body.light-theme .progress-bar {
    background-color: #333;
}

.projects-section {
    position: absolute;
    top: 1000px;
    left: max(20px, calc((100vw - 700px) / 2));
    right: max(20px, calc((100vw - 700px) / 2));
}

@media (max-width: 500px) {
    .profile-picture {
        width: 50px;
        height: 50px;
    }
    
    .profile-name {
        font-size: 24px;
        top: 80px;
    }
    
    .profile-title {
        font-size: 16px;
        top: 110px;
    }
}

.contact-intro {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 24px;
    text-align: left;
}

body.light-theme .contact-intro {
    color: #444;
}

.contact-form {
    background-color: #1a1a1a;
    padding: 24px;
    border-radius: 12px;
    width: 100%;
    max-width: none;
}

body.light-theme .contact-form {
    background-color: #f8f8f8;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin-bottom: 6px;
    text-align: left;
}

body.light-theme .form-group label {
    color: #000000;
}

.required {
    color: #dc3545;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #333;
    border-radius: 8px;
    background-color: #0f0f0f;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0078d4;
}

body.light-theme .form-group input,
body.light-theme .form-group textarea {
    background-color: #ffffff;
    color: #000000;
    border-color: #ddd;
}

body.light-theme .form-group input::placeholder,
body.light-theme .form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Inter', sans-serif;
}

.character-counter {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #666;
    margin-top: -4px;
    margin-bottom: 16px;
    text-align: right;
}

body.light-theme .character-counter {
    color: #999;
}

.submit-btn {
    background-color: white;
    color: #000000;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    float: right;
}

.submit-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background-color: #666;
    color: white;
    cursor: not-allowed;
    transform: none;
}

body.light-theme .submit-btn {
    background-color: #000000;
    color: white;
}

body.light-theme .submit-btn:hover {
    background-color: #333;
}

.contact-form::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .submit-btn {
        float: none;
        margin: 0 auto;
        display: flex;
    }
}
