* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #0a0a0a;
    color: #f5f5f5;
    line-height: 1.6;
}

header {
    padding: 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #222;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin-right: auto;
    max-height: 3vh;
    filter: drop-shadow(0 0 5px white) grayscale() brightness(10);
}

header .logo {
    margin-right: 40vw;
}

.navlinkholder {
    display:flex;
    flex-direction:row;
    justify-content:flex-end;
    align-items: flex-end;
    min-width: 40vw;
}

.navlinkholder a {
    padding: 0.1vw;
}
nav a {
    color: #f5f5f5;
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #999;
}

.hero {
    height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 2rem;
    margin-top: 20vh;
    position: relative;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.tagline {
    font-size: 1.2rem;
    color: #999;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: transparent;
    color: #f5f5f5;
    border: 1px solid #f5f5f5;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #f5f5f5;
    color: #0a0a0a;
}

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

h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.projects-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: #888 #0a0a0a;
}

.projects-carousel::-webkit-scrollbar {
    height: 8px;
}

.projects-carousel::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}

.projects-carousel::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.project-card {
    width: 300px;
    height: 550px;
    flex: 0 0 auto;
    background-color: #121212;
    border: 1px solid #222;
    padding: 1.2rem;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

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

.project-card h3 {
    margin-bottom: 1rem;
    font-weight: 400;
}

.project-card p {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 8.5rem;
    overflow-y: auto;
}

.project-card img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    margin-bottom: 1rem;
    display: block;
}

.project-card .btn {
    width: 100%;
    max-width: none;
}
.btn-holder {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 1.5rem;
}

.carousel-btn {
    background: none;
    color: #f5f5f5;
    border: 2px solid #f5f5f5;
    border-radius: 50%;
    font-size: 1.5rem;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.carousel-btn:hover {
    background-color: #f5f5f5;
    color: #0a0a0a;
    transform: scale(1.1);
}

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

.about-image img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    overflow: hidden;
}
.about-content p {
    margin-bottom: 1.5rem;
    color: #999;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #999;
    font-size: 0.9rem;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: #121212;
    border: 1px solid #222;
    color: #f5f5f5;
    font-size: 1rem;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

footer {
    padding: 2rem;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    border-top: 1px solid #222;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.social-links a {
    color: #f5f5f5;
    margin: 0 0.5rem;
    font-size: 1.2rem;
}

/* 3D Cube Animation */
.cube-container {
    position: absolute;
    width: 300px;
    height: 300px;
    perspective: 1000px;
    z-index: 0;
    opacity: 0.7;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube-face.front {
    transform: translateZ(150px);
}

.cube-face.back {
    transform: rotateY(180deg) translateZ(150px);
}

.cube-face.right {
    transform: rotateY(90deg) translateZ(150px);
}

.cube-face.left {
    transform: rotateY(-90deg) translateZ(150px);
}

.cube-face.top {
    transform: rotateX(90deg) translateZ(150px);
}

.cube-face.bottom {
    transform: rotateX(-90deg) translateZ(150px);
}
@keyframes rotate {
    0% {
        transform: rotateX(0) rotateY(0) rotateZ(0);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

@media (max-width: 768px) {
    .about {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    nav {
        max-height: 2.5vh;

        justify-content: space-between;
        
    }

    nav a {
        margin: 0.5rem 0;
        margin-left: 10px;
    }


    header .logo {
        margin-right: 25vw;
    }

    
    h1 {
        font-size: 2rem;
    }
}

.contact-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background-color: transparent;
    color: #f5f5f5;
    border: 2px solid #f5f5f5;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transition: left 0.4s ease;
    z-index: 0;
}

.contact-btn:hover::after {
    left: 0;
}

.contact-btn:hover {
    background-color: #f5f5f5;
    color: #0a0a0a;
}