* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
    z-index: 1;
}

#headerBackgrond{
    z-index: 0;
    width: 100vw;
    height: 100vh;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(68, 68, 68, 0.9);
    color: white;
    z-index: 1000;
}

#logo {
    font-size: 20px;
    font-weight: bold;
}

.hamburger {
    display: none;
    font-size: 25px;
    cursor: pointer;
}

.nav-container {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: white;
}

.nav a:hover {
    color: #bbb;
}

footer p a {
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-container {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: rgba(68, 68, 68, 0.9);
        width: 200px;
        text-align: right;
        padding: 10px;
        border-radius: 5px;
    }

    .nav-container.active {
        display: flex;
    }
}

section {
    width: 100%;
    height: 100vh;
    display: flex;
    padding: 20px;
    flex-direction: column;
}

#home {
    width: 99vw;
    height: 100vh;
    position: relative;
    overflow: hidden; 
    background-image: url('/Assets/andromeda-galaxy-way-ik.jpg');
    background-size: cover;
    background-position: center;
}

#headerBackgroundContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 2;
    background-color: hsl(260, 100%, 50%);
    padding: 2px 10px;
}

#projects {
    background: #f0f0f0;
    padding-top: 10vh;
}

#aboutme {
    background: #e0e0e0;
    justify-content: center;
    text-align: center;
    padding-top: 10vh;
}

#aboutme div {
    margin-bottom: 20px; 
}

#aboutme h2 {
    display: block;
    margin-top: 0;
    margin-bottom: 10px;
}

#aboutme .paragraph {
    text-align: justify;
    width: 80vw;
    max-width: 900px;
    margin: 0 auto;
    margin-top: 0;
    margin-bottom: 20px;
}

footer {
    background: #444;
    color: white;
    text-align: center;
    padding: 5px;
    margin-top: auto;
}

.shooting-star {
    position: absolute;
    top: -10px;
    width: 2px; 
    height: 15px;
    background-color: white;
    box-shadow: 0 0 10px white;
    opacity: 0.8;
    animation: shootingStars 2s linear infinite;
}

.shooting-star:nth-child(odd) {
    animation-duration: 1.5s;
}

.shooting-star:nth-child(even) {
    animation-duration: 2.5s;
    animation-delay: 1s;
}

@keyframes shootingStars {
    0% {
        transform: translateX(-100%) translateY(0);
    }
    100% {
        transform: translateX(100%) translateY(100vh);
    }
}


#projects h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .ProjectCaresoulContainer {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
  }
  
  #ProjectCaresoul {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
  }


  
  .ProjectCardContainer {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 280px;
    width: 300px;
    height: auto;
    text-decoration: none;
  }
  
  .card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 1rem;
    text-decoration: none;
  }
  
  .card:hover {
    transform: scale(1.05);
  }
  
  .card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
  }
  
  .card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-decoration: none;

  }
  
  .card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.5rem;
    text-decoration: none;

  }
  
  .card h4 {
    font-weight: bold;
    color: #4CAF50;
    text-decoration: none;

  }