:root {
    --bg-color: #050814;
    --bg-secondary: #0a0f1d;
    --text-primary: #e0e6ed;
    --text-secondary: #a0aec0;
    --accent-blue: #28edff;
    
    
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--accent-blue);
    color: #fff;
}


h1,
h2,
h3 {
    font-family: var(--font-mono);
    font-weight: 700;
}


.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    backdrop-filter: none;
    z-index: 100;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
    background: rgba(5, 8, 20, 0.85);
    backdrop-filter: blur(10px);
}

.hidden-onload {
    transform: translateY(-100%);
    animation: slideDown 0.8s ease forwards 0.5s;
}

@keyframes slideDown {
    to {
        transform: translateY(0);
    }
}

.logo {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--accent-blue);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}


.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 101;
    
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-blue);
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.lang-btn {
    background: none;
    border: 1px solid var(--text-secondary);
    border-radius: 4px;
    padding: 0.2rem 0.6rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--bg-color);
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.lang-sep {
    color: var(--text-secondary);
    opacity: 0.5;
}


.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: contrast(1.1) brightness(0.7);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 20, 0.367);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    z-index: 1;
}

.hero-title {
    font-size: 4.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: var(--font-sans);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--accent-blue);
    font-family: var(--font-mono);
    margin-bottom: 1.5rem;
    word-break: break-word;
    
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    background: transparent;
    transition: all 0.1s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--accent-blue);
    color: var(--bg-color);
}


section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    padding-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 2px;
}


.stack {
    padding: 3rem 0 3rem 0;
    
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    max-width: none;
    
}

.stack .section-title {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    display: block;
    
}

.stack .section-title::after {
    left: 2rem;
    
}



.carousel-container {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 1rem 2rem;
    
    
}


.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 90px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-secondary) 0%, transparent 100%);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-secondary) 0%, transparent 100%);
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}


.carousel-track.reverse {
    animation-direction: reverse;
}

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

    100% {
        transform: translateX(-50%);
    }
}

.stack-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    cursor: default;
}

.stack-item:hover {
    transform: translateY(-4px) scale(1.02);
}

.stack-item i,
.stack-item svg {
    font-size: 1.75rem;
    color: var(--text-secondary);
    transition: color 0.4s ease, transform 0.4s ease;
}

.stack-item:hover i,
.stack-item:hover svg {
    color: var(--text-primary);
}

.stack-item span {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.stack-item:hover span {
    color: var(--text-primary);
}

.text-icon {
    font-size: 1.5rem;
    font-family: var(--font-mono);
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.project-tags {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    
    gap: 0.5rem;
}

.tag {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-radius: 20px;
    white-space: nowrap;
    transition: color 0.3s ease, background 0.3s ease;
}

.project-card:hover .tag {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.project-media {
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.project-media img, .project-media video {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    height: 220px;
}

.hover-video-container .hover-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .hover-video-container .hover-media {
    opacity: 1;
}

.hover-video-container .default-media {
    transition: opacity 0.4s ease;
}

.project-card:hover .hover-video-container .default-media {
    opacity: 0;
}

.zoom-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(5, 8, 20, 0.85); 
    border-radius: 50%;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    opacity: 1; 
    transform: scale(1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
}


@media (hover: hover) {
    .project-card:hover .zoom-indicator {
        background: rgba(40, 237, 255, 0.15); 
        border-color: rgba(40, 237, 255, 0.4);
        color: var(--accent-blue);
    }
}


@media (max-width: 768px) {
    .zoom-indicator {
        top: 10px;
        right: 10px;
        padding: 8px;
    }
    .zoom-indicator svg {
        width: 16px;
        height: 16px;
    }
}


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

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

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--text-secondary);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
    line-height: 1;
}

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


.contact-content {
    background: rgba(10, 15, 29, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.contact-icon {
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.contact-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: var(--font-sans);
}

.contact-email {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.03);
}

.contact-email:hover {
    color: var(--accent-blue);
    background: rgba(40, 237, 255, 0.1);
    border-color: rgba(40, 237, 255, 0.3);
}


.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-secondary {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--text-secondary);
    color: var(--bg-color);
}


.footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.footer-email {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-email:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.video-credit {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 1rem;
}


.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s ease forwards;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateY(20px);
}

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

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}





@media (max-width: 900px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {

    
    .navbar {
        padding: 1rem 1.5rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        background: rgba(5, 8, 20, 0.2); 
        backdrop-filter: blur(4px);
    }

    .navbar.scrolled {
        background: rgba(5, 8, 20, 0.95);
        backdrop-filter: blur(10px);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        transform: none;
        flex-direction: column;
        background-color: rgba(5, 8, 20, 0.98);
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        gap: 3rem;
    }

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

    .nav-links {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        margin: 0;
        padding: 0;
    }

    .lang-toggle {
        margin: 0;
        display: flex;
        justify-content: center;
    }

    
    .hero {
        align-items: center;
        
    }

    .hero-content {
        margin-top: 4rem;
        
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-title {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }

    .subtitle {
        font-size: 1.05rem;
    }

    
    .carousel-container::before,
    .carousel-container::after {
        width: 80px;
    }

    .stack-item {
        margin: 0 1rem;
        padding: 0.25rem 0.5rem;
    }

    .stack-item i,
    .stack-item svg {
        font-size: 1.25rem;
    }

    .stack-item span {
        font-size: 0.95rem;
    }

    
    section {
        padding: 4rem 1.5rem;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .description {
        font-size: 0.95rem;
    }
}
