﻿:root {
    --color-text-primary: #fbfbfb;
    --color-text-secondary: #3a3b5a;
    --color-accent: #5b57fe;

    --color-bg-gradient-start: #e0eafc;
    --color-bg-gradient-end: #cfdef3;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    --font-main: 'Source Sans Pro', sans-serif;
    --font-display: 'Wosker', sans-serif;
}

@font-face {
    font-family: 'Wosker';
    src: url('assets/fonts/Wosker.otf') format('opentype'),
        url('assets/fonts/Wosker.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Source Sans Pro';
    src: url('assets/fonts/SourceSansPro-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

html {
    background: url('assets/background_texture.png') no-repeat center center fixed;
    background-size: cover;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-secondary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}


.bg-decoration {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
    max-width: 100%;
}

.string-1 {
    top: -200px;
    left: -20%;
    width: 200vw;
    height: 120vh;
    transform: rotate(15deg) scaleY(1.5);
    opacity: 0.8;
}

.string-2 {
    bottom: -200px;
    right: -20%;
    width: 200vw;
    height: 120vh;
    transform: rotate(195deg) scaleY(1.5);
    opacity: 0.8;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    padding: 1rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    text-transform: uppercase;
}

.nav-links a {
    color: var(--color-text-secondary);
    font-weight: 500;
}

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

.burger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu div {
    width: 25px;
    height: 3px;
    background-color: var(--color-text-secondary);
    margin: 5px;
    transition: all 0.3s ease;
    border-radius: 5px;
}

main {
    padding-top: 100px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    flex: 1;
    width: 100%;
}

section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 4rem;
    padding: 2rem;
}

#cta-collaborate {
    min-height: 50vh;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 3rem 0 3rem;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    padding: 3rem;
    gap: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: flex-start;
    margin-top: 4rem;
}

.hero-text h1 {
    font-weight: lighter;
}

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    letter-spacing: 2px;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

.hero-image {
    width: 400px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 0;
    border: none;
    align-self: flex-end;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-image {
        width: 100%;
        max-width: 300px;
        margin-bottom: 2rem;
    }
}


.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-card {
    padding: 2rem;
}

.about-card p {
    margin-bottom: 0;
    text-align: justify;
}

.about-card h3 {
    margin-bottom: 0;
}

#about {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2rem;
}

#about h2 {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: lighter;
}

.productions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-link,
.carousel-slide .project-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.project-card {
    padding: 0;
    transition: transform 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-5px) scale(1.05);
}

.project-image,
.project-video {
    width: 100%;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
    object-fit: cover;
}

.project-info {
    background-color: var(--color-accent);
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
}

.project-info h4,
.project-info h3 {
    text-transform: uppercase;
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.project-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

#work h2 {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: lighter;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem;
}

#contact h2 {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: lighter;
}

.contact-icons {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icons a {
    margin: 0 10px;
    color: var(--color-text-secondary);
    display: inline-block;
    transition: all 0.3s ease;
}

.contact-icons a:hover {
    color: var(--color-accent);
    transform: scale(1.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.8);
}

.btn-submit {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: opacity 0.3s ease;
}

.btn-submit:hover {
    opacity: 0.9;
}

.carousel-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 3rem;
}

.carousel-track-container {
    overflow: hidden;
    padding: 2rem 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    list-style: none;
    align-items: stretch;
    padding: 0;
}

.carousel-slide {
    min-width: 300px;
    margin: 0 1rem;
    transition: all 0.5s ease;
    opacity: 0.5;
    filter: blur(4px);
    transform: scale(0.9);
}

.carousel-slide.current-slide {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.1);
    z-index: 10;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--color-accent);
    font-size: 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.carousel-slide .project-card {
    height: 320px;
}

.carousel-slide .project-info p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

footer {
    display: flex;
    flex-direction: column;
    background: var(--color-accent);
    width: 100%;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-top: none;
    margin-top: 4rem;
    padding: 1rem;
    color: white;
}



.footer-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.2rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 20px;
    height: 2px;
    background: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.2rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col a:hover {
    color: white;
    padding-left: 5px;
}

.footer-col p {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom p {
    margin: 0;
    margin-right: 1rem;
    flex-grow: 0.75;
    color: white;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.2rem;
}

.copy-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
}

.copy-btn:hover {
    color: white;
    transform: scale(1.1);
}

.btn-cv {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--color-accent);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 2rem;
    align-self: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(91, 87, 254, 0.4);
}

.footer-icons a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-icons a:hover {
    color: #4facfe !important;
    transform: scale(1.2);
}

.btn-cv:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(91, 87, 254, 0.6);
}

.contact-icons a {
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    padding: 1rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(91, 87, 254, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

#backToTopBtn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#backToTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(91, 87, 254, 0.6);
    background: #4facfe;
}

.software-ticker {
    width: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--glass-shadow);
}

.ticker-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.ticker-track span {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-accent);
    white-space: nowrap;
    padding-right: 2rem;
    font-weight: lighter;
    display: inline-block;
}

.ticker-track img {
    display: none;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% / 3));
    }
}

.project-detail-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 8rem;
}

.project-header-content {
    padding: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

.project-header-content h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-weight: lighter;
}

.project-gallery h2 {
    font-weight: lighter;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(91, 87, 254, 0.1);
    color: var(--color-accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(91, 87, 254, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    padding: 0;
    transition: transform 0.3s ease;
    position: relative;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-media-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-item-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-toggle-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.video-toggle-btn:hover {
    background: var(--color-accent);
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    top: 25px;
    left: 25px;
    background: var(--color-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 5;
    max-width: 80%;
    line-height: 1.4;
    transition: opacity 0.3s ease;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-secondary);
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--color-accent);
    color: white;
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .project-header-content h1 {
        font-size: 2.5rem;
    }

    .project-detail-section {
        padding: 1rem;
        padding-top: 6rem;
    }

    .project-header-content {
        padding: 1.5rem;
    }
}

.project-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-project {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.nav-project:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(91, 87, 254, 0.3);
}

.nav-project i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.prev-project:hover i {
    transform: translateX(-5px);
}

.next-project {
    margin-left: auto;
}

.next-project:hover i {
    transform: translateX(5px);
}

.filter-container {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
    padding: 0 1rem;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(91, 87, 254, 0.3);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.card-tags-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    z-index: 10;
}

.card-tag {
    background: rgba(91, 87, 254, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.project-image {
    position: relative;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--color-accent);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-modal {
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-modal.primary {
    background: var(--color-accent);
    color: white;
}

.btn-modal.primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-modal.secondary {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.project-main-image {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.project-main-image:hover {
    transform: scale(1.02);
}

#imageModal .modal-content {
    background: transparent;
    box-shadow: none;
    border: none;
    width: auto;
    max-width: 90%;
    height: auto;
    max-height: 90vh;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#imageModal img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

#imageModal .close-modal {
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    opacity: 0.8;
}

#imageModal .close-modal:hover {
    opacity: 1;
    transform: scale(1.1);
}

#about,
.about-content,
.about-Grid-row {
    overflow: visible !important;
    transform-style: preserve-3d;
}

.profile-orbit-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    height: auto;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
    transform-style: preserve-3d;
    padding: 2rem 0;
    overflow: visible !important;
    z-index: 10;
}

.profile-photo {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    position: relative;
    transform: translateZ(0px);
}

.software-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    z-index: 1;
    transform: rotateZ(15deg) rotateX(5deg);
}

.orbit-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 45px;
    height: 45px;
    margin-left: -22.5px;
    margin-top: -22.5px;
    animation: orbit-fly 20s linear infinite;
    animation-delay: calc(var(--i) * (-20s / 9));
}

.orbit-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
    transform: rotateX(-5deg) rotateZ(-15deg);
}

@keyframes orbit-fly {
    from {
        transform: rotateY(0deg) translateZ(290px) rotateY(0deg);
    }

    to {
        transform: rotateY(360deg) translateZ(290px) rotateY(-360deg);
    }
}

@media (max-width: 768px) {
    @keyframes orbit-fly {
        from {
            transform: rotateY(0deg) translateZ(180px) rotateY(0deg);
        }

        to {
            transform: rotateY(360deg) translateZ(180px) rotateY(-360deg);
        }
    }

    .orbit-icon {
        width: 35px;
        height: 35px;
        margin-left: -17.5px;
        margin-top: -17.5px;
    }
}

.languages-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: fit-content;
    margin: 0 auto;
}

.softskills-list {
    list-style-type: none;
    padding: 0;
    margin: 0 auto;
    width: fit-content;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 3rem;
    font-size: 1.2rem;
}

.btn-see-more {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-see-more:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(91, 87, 254, 0.3);
}

@keyframes blink-slow {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.blink-slow {
    animation: blink-slow 2s infinite ease-in-out;
}

.language-item {
    display: grid;
    grid-template-columns: 60px 150px auto;
    align-items: center;
    gap: 1rem;
}

.flag-icon {
    width: 45px;
    height: auto;
    object-fit: contain;
}

.lang-name {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.rating-dots {
    display: flex;
    gap: 0.3rem;
    color: var(--color-accent);
    font-size: 1.1rem;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-gradient-start) 0%, var(--color-bg-gradient-end) 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.preloader-logo {
    width: 300px;
    height: auto;
    transform: translateY(-20px);
}

.progress-container {
    width: 400px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--color-accent);
    border-radius: 20px;
    transition: width 0.1s linear;
}

.preloader-title {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--color-accent);
    margin: 0;
    opacity: 1;
    font-weight: lighter;
}



.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        gap: 0;
        top: 15px;
        width: 92%;
        border-radius: 16px;
        border: 1px solid var(--glass-border);
        box-sizing: border-box;
    }

    .nav-links {
        position: fixed;
        top: -15px;
        left: calc(50% - 50vw);
        width: 100vw;
        height: 100vh;
        background-color: rgba(235, 240, 252, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-20px);
        transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;

        padding: 0;
        margin: 0;
        gap: 2.5rem;
        z-index: 999;
    }

    .nav-links.nav-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .burger-menu {
        display: block;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    main {
        padding-top: 140px;
    }

    section {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column-reverse;
        padding: 1rem;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        align-self: center;
        padding: 0;
        margin-top: 0;
        gap: 1.5rem;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-image {
        max-width: 250px;
        margin: 0 auto;
    }

    .about-grid,
    .about-Grid-row,
    .skills-container {
        grid-template-columns: 1fr;
    }

    .about-grid>div {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-grid>div>.glass,
    .about-grid>.glass {
        width: 100%;
        box-sizing: border-box;
    }

    .softskills-list {
        display: flex;
        flex-direction: column;
    }

    .btn-cv {
        align-self: center;
        margin-left: auto;
        margin-right: auto;
    }

    #about .glass h3 {
        text-align: left !important;
    }

    .language-item {
        padding: 0.8rem 0.5rem;
        gap: 0.5rem;
        grid-template-columns: 45px 110px auto;
    }

    .language-item span.lang-name {
        font-size: 0.85rem;
    }

    .rating-dots {
        gap: 0.2rem;
    }

    .rating-dots i {
        font-size: 0.85rem;
    }

    #about h2 {
        font-size: 3rem;
        white-space: normal;
        text-align: center;
    }

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

    .ticker-track span {
        font-size: 1.5rem;
        padding-right: 1.5rem;
    }

    .carousel-wrapper {
        padding: 1rem 2.5rem;
        width: 100vw;
        max-width: 100%;
        overflow-x: hidden;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        z-index: 20;
    }

    .prev-btn {
        left: 12%;
    }

    .next-btn {
        right: 12%;
    }

    .carousel-slide {
        min-width: 240px;
    }

    .carousel-slide .project-card {
        height: 280px;
    }

    .carousel-slide .project-image,
    .carousel-slide .project-video {
        height: 150px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-col h4 {
        display: inline-block;
        margin-bottom: 1rem;
        padding-bottom: 0;
        padding-left: 0;
    }

    .footer-col h4::after {
        display: none;
    }

    .footer-col ul {
        padding: 0;
        text-align: center;
    }

    .contact-row {
        justify-content: center;
    }
}