
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

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

body {
    font-family: "Poppins", sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

p {
    color: #ccc;
}

a,
.btn {
    transition: all 300ms ease;
    color: #fff;
}

a:hover {
    color: #00ff88;
    text-decoration: underline;
    text-underline-offset: 0.5rem;
}  

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}


nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 10vh;
    padding: 0 5%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    font-size: 1.2rem;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #00ff88;
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: #00ff88;
}


#hamburger-nav {
    display: none;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 5%;
}

.hamburger-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.hamburger-icon span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

.hamburger-icon.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

.menu-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
}

.menu-links.open {
    right: 0;
}

.menu-links li {
    list-style: none;
    margin: 1.5rem 0;
}

.menu-links a {
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu-links a:hover {
    color: #00ff88;
}


section {
    min-height: 100vh;
    padding-top: 10vh;
    margin: 0 10rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.section__text {
    text-align: center;
}

.section__text__p1 {
    font-size: 1.2rem;
    color: #00ff88;
   
}

.section__text__p2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
   
}

.title {
    font-size: 3rem;
    color: #fff;
    animation: boja 2s linear infinite alternate;
}



@keyframes boja {
    from { color: #00ff88; } 
    to { color: #ffffff; }    
}


.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding: 2rem;
}

.details-container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    width: 300px;
}

.color-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.color-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

.project-img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    filter: brightness(0) invert(1);
}

.project-title {
    font-size: 1.5rem;
    margin: 1rem 0;
}

.btn {
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    background: #00ff88;
    color: #000;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #00cc66;
}


#gallery {
    padding: 10vh 2rem;
    background: rgba(0, 0, 0, 0.8);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 1rem;
}

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

.gallery-text {
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem;
}


.fade-in {
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.fade-in.in-view {
    opacity: 1;
    transform: translateX(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.fade-left.in-view {
    opacity: 1;
    transform: translateX(0);
}


@media (max-width: 768px) {
    section {
        margin: 0 1rem;
        padding: 1rem;
    }

    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .details-container {
        width: 100%;
    }

    #desktop-nav {
        display: none;
    }

    #hamburger-nav {
        display: flex;
    }

    .menu-links {
        width: 70%;
    }

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

    .title {
        text-align: center;
    }

}
    