/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "DM Sans";
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar Styles */
.navbar {
    position: sticky;
    top: 0;
    background-color: #f5f5f5;
    border-bottom: 1px solid #222;
    z-index: 1000;
    letter-spacing: 1px;    
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo{
    padding-top: 4px;
    z-index: 1001;
}

/* Navigation Menu */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #000;
}

.nav-link.active {
    color: #000;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #333;
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background-color: #333;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Background Image */
.hero-background {
    position: fixed;
    top: 70px;
    width: 120%;
    height: 120vh;
    aspect-ratio: 1/1;
    background-image: url('../images/backgrund-image.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 1;
    transition: opacity 0.3s ease;
}






/* Main Content */

main.container{
    margin: 3rem auto;
    padding: 0 2rem;
    max-width: 1200px;
    margin-bottom: 6rem;
}

h1, h2, h3 {
    font-family: "DM Sans";
    font-weight: 600;
    text-transform: none;
    
}

h1 {
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 7vw, 3rem);
}

h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: clamp(1.5rem, 3vw, 1.8rem);
}

p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #333;
  margin-bottom: 6px;
  max-width: 700px;
}

.hero-text p {
    font-size: 1.5rem;
    color: #222;
    max-width: 800px;
}

.hero-text {
  margin-bottom: 2rem;
}


.projects {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Project Card */
.project-card {
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    max-width: 340px;
    border: 1px solid #333;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .project-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(100, 100, 100, 0.1);
  }
  
  /* Project Image */
  .project-image {
    width: 100%;
    height: 140px;
    background-color: #e0e0e0;
    position: relative;
    overflow: hidden;
  }
  
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  
  /* Project Content */
  .project-content {
    padding: 1.5rem;
  }
  
  .project-title {
    font-family: "DM Sans";
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111;
  }
  
  .project-description {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 1rem;
  }
  
  /* Project Button */
  .project-button {
    display: inline-block;
    text-decoration: none;
    color: white;
    background-color: #333;
    padding: 0.5rem 1.5rem;
    border-radius: 2px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s ease;

  }

  .project-button-plus {
    display: inline-block;
    text-decoration: none;
    color: white;
    background-color: #333;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    margin: 4px;

  }

  .project-button-plus:hover {
    background-color: #111;
  }
  
  .project-button:hover {
    background-color: #111;
  }

  .not-active {
    pointer-events: none;
    cursor: not-allowed;
    display: inline-block;
    text-decoration: none;
    color: white;
    background-color: #777;
    padding: 0.5rem 1.5rem;
    border-radius: 2px;
    font-size: 0.875rem;
    font-weight: 500;
  }
  

  #see-more {
    background-color: #333;
    color: #f5f5f5;
    
  }

  #see-more h3, #see-more p {
    color: #f5f5f5;
  }

  #see-more .project-button {
    background-color: #f5f5f5;
    color: #333;
  }

  #see-more .project-button:hover {
    background-color: #fff;
  }




/* Projekt side */

  .project-img {
    width: 100%;
    max-width: 700px;
    object-fit: contain;
    border: 1px solid #333;
    border-radius: 4px;
    margin-bottom: 2rem;
  }

  .project-img-small{
    width: 100%;
    max-width: 200px;
    object-fit: contain;
    border: 1px solid #333;
    border-radius: 4px;
    margin-bottom: 2rem;
  }


  .notes li {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}




  /* Footer */
  footer{
    padding: 2rem;
    background-color: #333;
    margin: auto;
    max-width: 100%;
  }

  .footer-container{
    width: 100%;

  }

  .footer-content{
    margin: 0 auto;
    padding: 2rem;
    background-color: #333;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
  }

  .copyright {
    text-align: center;
    max-width: 100%;

  }

  footer p {
    font-size: 1rem;
    color: #f5f5f5;
  }

  footer ul li {
    font-size: 1rem;
    color: #f5f5f5;
    margin: 0 auto;
  }

  footer a {
    color: #E1B617;
  }

  .footer-logo { 
    max-width: 300px;
  }



/* Mobile Styles */
@media (max-width: 600px) {
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #f5f5f5;
        display: flex;
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 10px 0;
        font-size: 1.2rem;
    }
    
    /* Hamburger Animation */
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Prevent scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    /* Responsive adjustments cards */
    
    .project-content {
      padding: 1.25rem;
      
    }

    footer {
      flex-direction: column;
      gap: 1rem;
    }
}
