* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
   
}
:root {
    --bg-color: #d8d7d7;
    --second-bg-color: #f4f4f4;
    --text-color: #111111;
    --main-color: #ea580c;
    --accent-color: #f97316;
    --card-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-color: #e5e7eb;
}
body.dark-mode {
    --bg-color: #080808;
    --second-bg-color: #101010;
    --text-color: #ffffff;
    --card-bg: #1a1a1a;
    --shadow-color: rgba(255, 255, 255, 0.1);
    --border-color: #333333;
}
html {
    font-size: 60%;
    overflow-x: hidden;
}
body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    
}
body.no-scroll {
    position: fixed;
    overflow: hidden;
    width: 100%;
}
html.no-scroll {
    overflow: hidden;
    height: 100%;
}
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 4rem 15%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}
#menu-icon {
    font-size: 3.5rem;
    color: var(--main-color);
    display: none;
}
.logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.logo:hover {
    transform: scale(1.1);
}
span {
    background: linear-gradient(270deg, #df8908 10%, #ff1d15 100%);
    background-clip: text;
    color: transparent;
      
}

/* Navbar */
.navbar {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 8rem;
    font-weight: 500;
    transition: 0.3s ease-in-out;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}
.navbar a {
    margin-left: 3rem;
    color: var(--text-color);
    transition: 0.3s;
    border-bottom: 3px solid transparent;
}
.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}
#menu-icon {
    display: none;
    font-size: 2.4rem;
    cursor: pointer;
    margin-left: auto;
}
#toggle-mode {
    background: none;
    border: none;
    outline: none;
    padding: 0;
    margin-left: 3rem;
    cursor: pointer;
    font-size: 2.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    transition: 0.3s ease-in-out;
}
#toggle-mode:hover {
    color: var(--main-color);
}

/* Button Gradient */
.gradient-btn {
    font-size: 1.8rem;
    padding: 1rem 2rem;
    border-radius: 3rem;
    background: linear-gradient(270deg, #df8908 10%, #ff1d15 100%);
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    color: white;
    border: none;
    text-wrap: nowrap;
}
.gradient-btn:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--second-bg-color) 100%);
    padding: 15rem 15% 10rem;
}
.hero-content h1 {
    font-size: 8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
}
.hero-content p {
    font-size: 2.2rem;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 60rem;
    margin: 0 auto;
}

/* Projects */
.projects-overview {
    padding: 10rem 15%;
    background: var(--bg-color);
}
.projects-grid {
    max-width: 1400px;
    margin: 0 auto;
}
.project-category {
    margin-bottom: 8rem;
}
.category-title {
    font-size: 4rem;
    color: var(--text-color);
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--main-color);
}
.category-title i {
    color: var(--main-color);
}
.project-item {
    background: var(--card-bg);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.4s ease;
    margin-bottom: 4rem;
    border: 2px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    min-height: 35rem;
}
.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow-color);
    border-color: var(--main-color);
}
.project-item.featured {
    border: 3px solid var(--main-color);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(234, 88, 12, 0.05) 100%);
}

/* Projects Image */
.project-image video {
    width: 100%;
    height: auto;
    object-fit: cover;
    transform: scale(1.2);
    transform-origin: center;
    transition: transform 0.3s ease;
}
.project-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.4s ease;
}
.project-item:hover .project-image img {
    transform: scale(1.1);
}


.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.project-item:hover .project-overlay {
    opacity: 1;
}
.project-links {
    display: flex;
    gap: 2rem;
}
.project-links a {
    width: 6rem;
    height: 6rem;
    background: var(--main-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: all 0.3s ease;
}
.project-links a:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}
.project-info {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.project-badge {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--main-color);
    color: white;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    width: fit-content;
    transition: all 0.3s ease;
}
.project-badge:hover {
 transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
    transition: all 0.3s ease;
}
.featured-badge {
    display: inline-block;
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    color: #000;
    animation: shimmer 2s infinite;
     transition: all 0.3s ease;
}
.featured-badge:hover {
transform: scale(1.05);
    box-shadow: 0 0 25px #b09603,
                0 0 50px #ffd700;
    transition: all 0.3s ease;
}
@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}
.project-info h3 {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}
.project-info p {
    font-size: 1.6rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Tect tag */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.tech-tag {
    padding: 0.8rem 1.5rem;
    background: var(--second-bg-color);
    color: var(--text-color);
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: inline-block;
    transition: all 0.3s ease;
}
.tech-tag:hover {
    background: var(--main-color);
    color: white;
    border-color: var(--main-color);
      transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color),
                0 0 30px var(--main-color);
    transition: all 0.3s ease;
}

/* Modal */
#project-modal {
    display: none; /* Wichtig! */
    position: fixed;
    z-index: 1000;
    /* weitere Styles... */
}
.modal {
    display: none;              
    position: fixed;
    z-index: 1000;
    left: 0; 
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.6);
    overflow: auto;
    display: flex;              
    justify-content: center;     
    align-items: center;         
}
.modal-text {
  font-size: 4rem; /* oder z.B. 20px */
  line-height: 1.6;
}
.modal-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.modal-content {
    width: 80vw;
    max-width: 900px;
    height: 80vh;
    max-height: 700px;
    background: var(--bg-color);
    border-radius: 12px;
    padding: 30px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}
.toggle-text-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color, #333);
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    transition: transform 0.3s ease;
}
.close {
    position: absolute;
    top: 18px;
    right: 20px;
     top: 0.4rem; 
    font-size: 60px; 
    font-weight: bold;
    color: #333;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}
 #project-modal .modal-content {
        font-size: 1.6rem;
        max-width: 90vw;
        width: 800px;
        margin: 5% auto;
        padding: 2rem;
        background-color: var(--bg-color);
        border-radius: 8px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
#project-modal .modal-content h2,
#project-modal .modal-content h3 {
    font-size: 3rem;
    margin-top: 3rem;
}
#project-modal .modal-content ul {
    font-size: 1.6rem;
    padding-left: 1.5rem;
}
#project-modal .modal-content p {
    font-size: 1.6rem;
    line-height: 1.6;
}
#project-modal .close {
    font-size: 5rem;
    top: 0.1rem;
    right: 1rem;
    
    position: absolute;
    cursor: pointer;
    
    
}
.close:hover {
    color: #ff0000; /* Farbe beim Hover */
}
.toggle-text-btn:focus {
    outline: 2px solid var(--primary-color, #333);
    outline-offset: 2px;
}
.toggle-text-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}
.project-description.extended {
    margin-top: 0.5rem;
    color: var(--text-color);
    
}
#project-modal {
    display: none;
}

/* audio */
.audio-track {
    margin-bottom: 1rem;
    background: var(--second-bg-color);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 0 10px var(--main-color);
}
.audio-track h4 {
    margin-bottom: 0.5rem;
    font-size: 1.7rem;
    text-align: right; 
    font-weight: bold;
    width: 90%;
    color: var(--main-color);
}
.expand-btn {
    background: transparent;
    color: var(--main-color);
    border: 1px solid var(--main-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}
.expand-btn:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
}

/* Social Icons */
.social-icons a{
display: inline-flex;
justify-content: center;
align-items: center;
font-size: 3rem;
padding: 1rem;
background:transparent;
border: 2px solid var(--main-color);
border-radius: 50%;
color: var(--main-color);
margin: 3rem 0.5rem;
transition: 0.3s ease-in-out;
}
.social-icons a:hover{
color: var(--text-color);
background-color: var(--main-color);
transform: scale(1.2)translateY(-5px);
box-shadow: 0 0 25px var(--main-color);
}

/* Footer */
.footer{
    background-color: var(--second-bg-color);
    padding: 50px 0;
}
.footer .social-icons {
    text-align: center;
}
.footer ul{
    text-align: center;
    font-size: 1.8rem;
}
.footer ul li{
    display: inline-block;
    margin-left: 20px;
}
.footer ul li a{
    color:var(--text-color);
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}
.footer ul li a:hover{
    border-bottom: 3px solid var(--main-color);
}
.footer .copyright{
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: 10px;
    border: 3px solid var(--bg-color); 
}
::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}
html {
    scrollbar-width: auto; 
    scrollbar-color: var(--main-color) var(--bg-color); 
    
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}


@media (max-width: 768px) {
  .project-item {
    grid-template-columns: 1fr;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .project-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
  }

  .project-info {
    padding: 2rem;
    width: 100%;
  }

  .hero-content h1 {
    font-size: 4rem;
    text-align: center;
  }

  .hero-content p {
    font-size: 1.6rem;
    text-align: center;
  }

  .category-title {
    font-size: 2.5rem;
    text-align: center;
  }
}

@media (max-width: 1285px) {
  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 50%;
    padding: 1rem 3rem;
    background: var(--second-bg-color);
    border-bottom-left-radius: 2rem;
    border-left: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    display: none;
    text-align: center;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    color: var(--text-color);
  }

  .navbar.active {
    display: block;
  }

  .gradient-btn {
    display: none;
  }

  .project-item, .project-info, .project-image {
    margin-left: auto;
    margin-right: auto;
  }
   .audio-track audio {
    width: 100%;
    height: 40px;
    border-radius: 10px;
    background-color: #f0f0f0;
  }

  .audio-tracks {
    padding: 0 1rem;
  }

  .audio-track h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }

  .expand-btn {
    width: 100%;
    text-align: left;
    font-size: 1.6rem;
    margin-top: 1rem;
  }

  .project-info {
    text-align: center;
    align-items: center;
  }
}
