* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overscroll-behavior: none;

}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    /* cursor: none; */
    
    scroll-behavior: smooth;

}

body::-webkit-scrollbar {
    display: none;
}

#bg-canvas{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    display: block;
    background: rgb(210, 37, 14);
    transition: filter 0.3s ease;
}

.blurred{
    filter: blur(4px);
}

.container {
    max-width: 60%;
    min-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 100px;
}


#topbar{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 25%;
    transition: height 0.15s ease;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(32px);
    box-shadow: 0 12px 16px rgba(44, 44, 44, 0.4);

    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

#topbar.shrink {
    height: 50px;
}


.logo {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #e9bb9b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(237, 215, 199, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
    margin-left: 24px;
}

@keyframes glow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2); }
}

.nav {
    display: flex;
    gap: 40px;
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav a:hover {
    color: #e9bb9b;
    transform: translateY(-2px);
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(90deg, #ffffff, #e9bb9b);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav a:hover::after {
    width: 100%;
}

/* projects */
.projects {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 20px 0;
}

.about {
    background: linear-gradient(-35deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.16));
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(16px);
    position: relative;
    width: 100%;
    max-width: 2000px;
    margin: 10px auto;
    margin-top: 50px;

    padding: 20px;

    border-top: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);


    opacity: 0;
    transform: translateY(40px);
    animation: aboutFadeIn 0.8s ease forwards;
    animation-delay: 0.2s;

}

@keyframes aboutFadeIn {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}

.project-card {
    /* background: rgba(255, 255, 255, 0.1); */
    background: linear-gradient(-35deg, rgba(86, 86, 86, 0.04), rgba(255, 255, 255, 0.16));
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(16px);
    position: relative;
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
}

.project-card:hover::before {
    opacity: 0.5;
}

.project-image {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.project-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    padding-top: 32px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.carousel-slide {
    min-width: 60%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    margin: 0 2%;
    border-radius: 15px;
    transition: all 0.6s ease;
    transform-origin: center;
    opacity: 0.6;
    scale: 0.8;
}

.carousel-slide.active {
    opacity: 1;
    scale: 1;
    z-index: 2;
}

.carousel-slide.prev,
.carousel-slide.next {
    opacity: 0.4;
    scale: 0.7;
    filter:blur(4px);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 10px;
    border-color:rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    /* border-radius: 50px; */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    /* backdrop-filter: blur(12px); */
    z-index: 2;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

/* images */
.project-slide {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.project-content {
    padding: 30px;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 8px 10px rgba(48, 48, 48, 0.3);
    /* animation: glow 2s ease-in-out infinite alternate; */
    background: linear-gradient(175deg, #ffffff, #e9bb9b);

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-btn {
    background: transparent;
    background-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);

    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 10px rgba(47, 47, 47, 0.3);
    /* background: #00d4ff; */
    /* background-color: rgba(255, 255, 255, 0.2); */
    background-color: rgb(233, 187, 155, 0.2);
    /* color: #ffffff; */
}

.project-btn.right {
    float: right;
}

.project-btn.unfinished{
    text-decoration: line-through;
    text-decoration-color: white;
    text-decoration-thickness: 1.5px;
}

.unfinished::after {
    content: "coming soon!";
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}

.unfinished:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .projects {
        gap: 40px;
    }

    .nav {
        display: none;
    }

    .logo {
        font-size: 2rem;
    }

    .carousel-slide {
        min-width: 80%;
        margin: 0 1%;
    }

    .project-image {
        height: 250px;
    }
}

/* scroll animations */
.project-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.img-modal {
    display: flex;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.0);
    backdrop-filter: blur(120px);
    justify-content: center;
    align-items: center;
  
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
  
.img-modal.show {
    opacity: 1;
    visibility: visible;
}
  
.img-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  
    transform: scale(0.8);
    transition: transform 0.3s ease;
}
  
.img-modal.show img {
    transform: scale(1);
}

.close-btn{
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}



.contact {
    background: linear-gradient(-35deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.16));
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(16px);
    position: relative;
    width: 100%;
    margin: 0 0;
    margin-top: 50px;
    padding: 20px 0px 80px 0px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
    text-align: center;
}
  
.icon{
    margin: 12px;
    margin-top: 48px;
    cursor: pointer;
}

.text{
    margin-top: 30px;
    margin-left: 16px;
}

.subheading{
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-top: 50px;
}

.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
    padding: 20px 0;
}

.skill {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px 25px;
    
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    /* cursor: pointer; */
    user-select: none;
}


.skill:hover::before {
    opacity: 1;
}

.skill::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.skill:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.skill:hover {
    background: rgba(233, 187, 155, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.02);
    box-shadow: 
        0 15px 35px rgba(233, 187, 155, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.skill {
    opacity: 0;
    animation: skillFadeIn 0.6s ease forwards;
}

.skill:nth-child(1) { animation-delay: 0.1s; }
.skill:nth-child(2) { animation-delay: 0.15s; }
.skill:nth-child(3) { animation-delay: 0.2s; }
.skill:nth-child(4) { animation-delay: 0.25s; }
.skill:nth-child(5) { animation-delay: 0.3s; }
.skill:nth-child(6) { animation-delay: 0.35s; }
.skill:nth-child(7) { animation-delay: 0.4s; }
.skill:nth-child(8) { animation-delay: 0.45s; }
.skill:nth-child(9) { animation-delay: 0.5s; }
.skill:nth-child(10) { animation-delay: 0.55s; }
.skill:nth-child(11) { animation-delay: 0.6s; }
.skill:nth-child(12) { animation-delay: 0.65s; }



@keyframes skillFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.bio-text {
    max-width: 800px;
    margin: 0 auto;
}

.intro-paragraph {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    margin-top: 64px;
}

.highlight-name {
    background: linear-gradient(135deg, #ffffff, #e9bb9b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.1em;
}

.bio-paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
}

.bio-paragraph strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    background: linear-gradient(90deg, rgba(223, 101, 76, 0.95), rgba(233, 187, 155, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.closing-paragraph {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}


@media (max-width: 768px) {
    .intro-paragraph {
        font-size: 1.15rem;
    }
    
    .bio-paragraph {
        font-size: 1rem;
    }
    
    .closing-paragraph {
        font-size: 0.95rem;
    }
}

.project-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    margin-top: 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-details.open {
    max-height: 400px;
    opacity: 1;
    margin-top: 20px;
}

.project-details p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-size: 1rem;
}

.feature-list {
    margin-top: 16px;
    padding-left: 20px;
    list-style-type: disc;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
}

.feature-list li {
    margin-bottom: 8px;
    position: relative;
}

.feature-list li::marker {
    color: rgba(233, 187, 155, 0.9);
}

.feature-list li::before {

    color: rgba(233, 187, 155, 0.9);
    font-size: 0.9rem;
    margin-right: 8px;
    position: absolute;
    left: -20px;
}