body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(to bottom right, #2d3748, #718096);
    font-family: 'Courier New', Courier, monospace;
    font-style: normal;
    font-size: 18px;
}

h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    font-size: 25px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    height: 50px;
    width: 200px;
    top: 12px;
    left: -1px;
    rotate: -20deg;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 100;
}

.main-nav ul {
    display: flex;
    justify-content: flex-end;
    margin-right: 20px;
}

.main-nav ul li {
    list-style: none;
    margin-left: 20px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #E2E8F0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav ul li a::after {
    content: '';
    width: 0;
    height: 2px;
    background-color: #A0AEC0;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover {
    color: white;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* --- Language Selector --- */
#languageSelectorContainer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

#languageToggleBtn {
    background-color: rgba(45, 55, 72, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 28px;
    transition: background-color 0.3s ease;
}

#languageToggleBtn:hover {
    background-color: rgba(74, 85, 104, 0.9);
}

#languageSelector {
    display: flex;
    flex-direction: column; /* Default: vertical */
    gap: 10px;
    background-color: rgba(45, 55, 72, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease;
    
    /* Default position (upwards) */
    bottom: 65px;
    right: 0;
    transform-origin: bottom right;
    transform: scale(0.9) translateY(10px);
}

#languageSelector.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

/* Media Query for smaller/shorter screens (tablets, phones) */
@media (max-width: 768px), (max-height: 450px) {
    #languageSelector {
        flex-direction: row; /* Horizontal layout */
        
        /* New position (sideways) */
        bottom: 0;
        right: 65px;
        transform-origin: bottom right;
        transform: scale(0.9) translateX(10px);
    }

    #languageSelector.show {
        transform: scale(1) translateX(0);
    }
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 5px;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.lang-btn:hover {
    cursor: pointer;
    transform: scale(1.15);
}

.lang-btn iconify-icon {
    vertical-align: middle;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: rgba(26, 32, 44, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
    z-index: 1000;
    transition: left 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu.show {
    left: 0;
}

.sidebar-menu ul {
    position: absolute;
    padding-left: 0;
    top: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.sidebar-menu li {
    list-style-type: none;
    margin-bottom: 10px;
    width: 100%;
}

.sidebar-menu li a {
    display: block;
    text-decoration: none;
    color: #E2E8F0;
    padding: 10px 20px;
    width: 100%; 
    box-sizing: border-box; 
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.menu-toggle-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.menu-toggle-btn span {
    display: block;
    height: 3px;
    width: 30px;
    background: white;
    margin: 3px 0;
    border-radius: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle-btn.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.menu-toggle-btn:focus {
    outline: none;
}

.menu-toggle-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
    border-radius: 5px;
}

.skills-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  margin: 80px 0 40px;
  color: #fff;      
}

.box {
  width: 280px;
  height: 450px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

.box ion-icon {
  font-size: 100px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.box-html ion-icon { color: #f16529; }
.box-css ion-icon { color: #2196f3; }
.box-js ion-icon { color: #ffeb3b; }

.box h2 {
  font-size: 22px;
  margin: 10px 0;
  color: #ffffff;
}

.circle {
  --p: 90; /* default value */
  --deg: calc(var(--p) * 3.6deg);
  width: 120px;
  height: 120px;
  margin: 20px auto 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 20px;
  color: white;
  position: relative;
}

.circle::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--clr, #00bfff) var(--deg), #4A5568 0deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #fff 0);
    mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #fff 0);
}


.box-html .circle { --clr: #e44d26; }
.box-css .circle  { --clr: #2965f1; }
.box-js .circle   { --clr: #f0db4f; }

.circle.loading {
  animation: spin 1s linear infinite;
  background: conic-gradient(from 0deg, var(--clr, #00bfff) 0deg, #4A5568 0deg);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


.description {
  margin-top: 25px;
  font-size: 14px;
  color: #CBD5E0;
  padding: 0 10px;
  line-height: 1.5;
}

.beschreibung {
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    color: #E2E8F0;
    margin-top: 40px;
}

.beschreibung a {
    text-decoration: none;
    color: #90cdf4;
    font-weight: 600;
    transition: color 0.3s ease;
}

.beschreibung a:hover{
    color: #fff;
}

@media (max-width: 800px) {
     .menu-toggle-btn {
        display: flex;
        top: 2px;
        left: 2px;
    }

    .main-nav ul {
        display: none; 
    }

    .sidebar-menu ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-title {
      margin-top: 100px;
    }
}


@media (max-width: 600px) {
    h1 {
        font-size: 20px;
        width: 160px;
        height: 40px;
    }

    .section-title {
        font-size: 28px;
    }

    .box {
        width: 90%;
        max-width: 280px;
    }
}