 :root {
      --primary: #00111c;
      --secondary: #002137;
      --accent: #FFFCF5;
      --text-primary: #EAF0F6;
      --text-secondary: #A9B4C2;
      --transition: all 0.3s ease;
      --shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.7);
    }

    .dark-mode {
      --primary: #00111c;
      --secondary: #002137;
      --accent: #FFFCF5;
      --text-primary: #EAF0F6;
      --text-secondary: #A9B4C2;
    }

    .light-mode {
      --primary: #f0f0f0;
      --secondary: #e0e0e0;
      --accent: #333333;
      --text-primary: #00111c;
      --text-secondary: #002137;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Space Grotesk';
      scroll-behavior: smooth;
    }

    body {
      background-color: var(--primary);
      color: var(--text-primary);
      transition: var(--transition);
      overflow-x: hidden;
    }

    header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 1000;
      backdrop-filter: blur(10px);
      transition: var(--transition);
    }

    .logo {
      font-size: 1rem;
      font-weight: bold;
      color: var(--accent);
      text-decoration: none;
    }

    .toggle-mode {
      background: none;
      border: none;
      cursor: pointer;
      color: var(--accent);
      font-size: 1.5rem;
    }

    nav ul {
      display: flex;
      list-style: none;
    }

    nav ul li {
      margin-left: 2rem;
    }

    nav ul li a {
      color: var(--text-primary);
      text-decoration: none;
      transition: var(--transition);
      position: relative;
    }

    nav ul li a:hover {
      color: var(--accent);
    }

    nav ul li a::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 0;
      height: 2px;
      background-color: var(--accent);
      transition: var(--transition);
    }

    nav ul li a:hover::after {
      width: 100%;
    }

    .hamburger {
      display: none;
      cursor: pointer;
      font-size: 1.5rem;
      color: var(--accent);
    }
    
    .close-menu {
      position: absolute;
      top: 1.5rem;
      right: 1.5rem;
      font-size: 1.5rem;
      color: var(--accent);
      background: none;
      border: none;
      cursor: pointer;
      display: none;
    }

    .hexagon-container {
      position: relative;
      width: 100%;
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
    }

    .hexagon-grid {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
      opacity: 0.1;
    }

    .hero {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      min-height: 100vh;
      padding: 0 10%;
      position: relative;
    }

    .hero-content {
      max-width: 700px;
    }

    .hello {
      color: var(--accent);
      margin-bottom: 1rem;
      font-size: 1.2rem;
    }

    .typing-container {
      height: 120px;
      margin-bottom: 1rem;
      display: flex;
      flex-direction: column;
    }

    .typing-prefix {
      font-size: 2.5rem;
      font-weight: bold;
      height: 40px;
      color: var(--text-primary);
      margin-bottom: 10px;
    }

    .name-animated {
      font-size: 4rem;
      font-weight: bold;
      height: 70px;
      color: var(--accent);
    }

    .profession {
      font-size: 2.5rem;
      color: var(--text-secondary);
      margin-bottom: 2rem;
    }

    .description {
      color: var(--text-secondary);
      font-size: 1.2rem;
      line-height: 1.6;
      margin-bottom: 2rem;
      max-width: 600px;
    }

    .cta-button {
      display: inline-block;
      padding: 1rem 2rem;
      background-color: transparent;
      color: var(--accent);
      border: 2px solid var(--accent);
      border-radius: 5px;
      text-decoration: none;
      font-weight: bold;
      transition: var(--transition);
      margin-top: 1rem;
    }

    .cta-button:hover {
      background-color: rgba(255, 252, 245, 0.1);
      transform: translateY(-5px);
    }

    section {
      padding: 100px 10%;
    }

    .section-title {
      font-size: 2rem;
      margin-bottom: 3rem;
      position: relative;
      display: inline-block;
    }

    .section-title::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 0;
      width: 70%;
      height: 3px;
      background-color: var(--accent);
    }

    .tools-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 20px;
      margin-top: 2rem;
    }

    .tool-item {
      background-color: var(--secondary);
      padding: 1.5rem;
      border-radius: 10px;
      text-align: center;
      transition: var(--transition);
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
    }

    .tool-item:hover {
      transform: translateY(-10px);
    }

    .tool-item::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 0;
      background-color: var(--accent);
      transition: var(--transition);
    }

    .tool-item:hover::before {
      height: 100%;
    }

    .tool-icon {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      color: var(--accent);
    }
    
    .tool-icon-one {
      font-size: 5rem;
      margin-bottom: 1rem;
      color: var(--accent);
    }
    
    .tool-icon-two {
      font-size: 1.5rem;
      margin-bottom: 1rem;
      color: var(--accent);
    }

    .tool-name {
      font-size: 1.2rem;
      font-weight: bold;
      padding-top: 50px;
    }

    .projects-container {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 30px;
      margin-top: 2rem;
    }

    .project-card {
      background-color: var(--secondary);
      border-radius: 10px;
      overflow: hidden;
      transition: var(--transition);
      box-shadow: var(--shadow);
      position: relative;
      min-height: 470px;  /* ← Changed to min-height */
      display: flex;
      flex-direction: column;
    }

    .project-card:hover {
      transform: translateY(-10px);
    }

    .project-image {
      width: 100%;
      height: 180px;
      object-fit: cover;
    }

    .project-image-ell {
      width: 30%;
      height: 180px;
      object-fit: cover;
    }

    .project-content {
      padding: 1.5rem;
    }

    .project-title {
      font-size: 1.3rem;
      margin-bottom: 0.5rem;
      color: var(--text-primary);
    }

    .project-description {
      color: var(--text-secondary);
      margin-bottom: 1rem;
      font-size: 0.9rem;
    }

    .project-description-one {
      color: var(--text-secondary);
      margin-bottom: 1rem;
      font-size: 0.9rem;
      padding-top: 50px;
    }

    .project-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 1rem;
    }

    .project-tag {
      background-color: rgba(255, 252, 245, 0.2);
      padding: 0.3rem 0.7rem;
      border-radius: 20px;
      font-size: 0.8rem;
      color: var(--accent);
    }

    .project-links {
      display: flex;
      gap: 15px;
      align-items: center;
      justify-content: center;
      padding-top: 30px;
    }

    .project-link {
      color: var(--text-primary);
      font-size: 1.2rem;
      transition: var(--transition);
      text-decoration: none;
    }

    .project-link:hover {
      color: var(--accent);
      text-decoration: none;
    }

    .contact-container {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 30px;
      margin-top: 2rem;
    }

    .contact-card {
      background-color: var(--secondary);
      padding: 2rem;
      border-radius: 10px;
      text-align: center;
      transition: var(--transition);
      box-shadow: var(--shadow);
      cursor: pointer;
    }

    .contact-card:hover {
      transform: translateY(-10px);
    }

    .contact-icon {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      color: var(--accent);
    }

    .contact-type {
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
      font-weight: bold;
    }

    .contact-value {
      color: var(--text-secondary);
    }

    .contact-card a {
      color: var(--text-secondary);
      text-decoration: none;
      transition: var(--transition);
      display: block;
      width: 100%;
      height: 100%;
    }

    .contact-card a:hover {
      color: var(--accent);
    }

    footer {
      padding: 2rem;
      text-align: center;
      color: var(--text-secondary);
      border-top: 1px solid rgba(255, 252, 245, 0.1);
    }

    .hexagon {
      position: absolute;
      background-color: var(--accent);
      opacity: 0.1;
      clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
      animation: float 20s infinite linear;
    }

    @keyframes float {
      0% {
        transform: translateY(0) rotate(0deg);
      }
      100% {
        transform: translateY(-1000px) rotate(360deg);
      }
    }

    @media (max-width: 768px) {
      .hamburger {
        display: block;
      }
      
      .close-menu {
        display: block;
      }

      nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background-color: var(--secondary);
        transition: var(--transition);
        padding: 4rem 2rem 2rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        z-index: 100;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
      }

      nav.active {
        right: 0;
      }

      nav ul {
        flex-direction: column;
      }

      nav ul li {
        margin: 1rem 0;
      }
      
      nav ul li a {
        font-size: 1.2rem;
        display: block;
        padding: 0.5rem 0;
        text-decoration: none;
      }
      a{
         text-decoration: none;
      }
      .hero-content {
        text-align: center;
        align-items: center;
      }

      .name-animated {
        font-size: 2.5rem;
      }

      .typing-prefix {
        font-size: 1.8rem;
      }

      .profession {
        font-size: 1.8rem;
      }

      .description {
        font-size: 1rem;
      }

      .section-title {
        font-size: 1.8rem;
      }
      
      .typing-container {
        height: 90px;
      }
      
      .projects-container {
        grid-template-columns: 1fr;
      }
      
      .project-card {
        height: auto;
        max-height: 400px;
      }
    }

    /*hexagon, call it lamborghini*/
    .loader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: var(--primary);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 2000;
      transition: opacity 0.5s ease;
    }

    .loader.hide {
      opacity: 0;
      pointer-events: none;
    }

    .loader-hexagon {
      width: 100px;
      height: 110px;
      position: relative;
      animation: hexagonRotate 2s infinite linear;
    }

    .loader-hexagon::before,
    .loader-hexagon::after {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      background-color: transparent;
      border: 5px solid var(--accent);
      clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
      animation: pulseHexagon 2s infinite;
    }

    .loader-hexagon::after {
      animation-delay: 1s;
    }

    @keyframes hexagonRotate {
      0% {
        transform: rotate(0deg);
      }
      100% {
        transform: rotate(360deg);
      }
    }

    @keyframes pulseHexagon {
      0% {
        transform: scale(0.8);
        opacity: 1;
      }
      50% {
        transform: scale(1.2);
        opacity: 0.5;
      }
      100% {
        transform: scale(0.8);
        opacity: 1;
      }
    }
    
    
    .scroll-indicator {
      position: fixed;
      top: 50%;
      right: 30px;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      z-index: 90;
    }
    
    .scroll-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background-color: var(--text-secondary);
      margin: 10px 0;
      transition: var(--transition);
      cursor: pointer;
    }
    
    .scroll-dot.active {
      background-color: var(--accent);
      transform: scale(1.5);
    }
    
    .scroll-line {
      width: 2px;
      height: 50px;
      background-color: var(--text-secondary);
    }
    
    /* mobile users */
    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 99;
      display: none;
    }
    
    .overlay.active {
      display: block;
    }




    /*experimental*/
    .toggle-mode i {
  transition: transform 0.5s ease, opacity 0.3s ease;
  display: inline-block;
}

body.light-mode .toggle-mode i.fa-sun {
  transform: rotate(360deg);
}

body:not(.light-mode) .toggle-mode i.fa-moon {
  transform: rotate(-360deg);
}

.logo-img {
  width: 60px; 
  height: auto;
  filter: invert(0%);
  transition: var(--transition);
}

body.light-mode .logo-img {
  filter: invert(100%);
}

.tools-categories {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 30px;
      margin-top: 2rem;
    }

    .category-card {
      background-color: var(--secondary);
      border-radius: 10px;
      overflow: hidden;
      transition: var(--transition);
      box-shadow: var(--shadow);
      position: relative;
      cursor: pointer;
      min-height: 150px;
    }

    .category-card:hover {
      transform: translateY(-10px);
    }

    .category-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 0;
      background-color: var(--accent);
      transition: var(--transition);
    }

    .category-card:hover::before {
      height: 100%;
    }

    .category-main {
      padding: 2rem;
      text-align: center;
      transition: var(--transition);
      height: 150px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    .category-card.expanded .category-main {
      padding: 1.5rem 2rem;
      height: auto;
      border-bottom: 1px solid rgba(255, 252, 245, 0.1);
    }

    .category-expanded {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.5s ease-out, padding 0.3s ease;
      padding: 0;
    }

    .category-card.expanded .category-expanded {
      max-height: 800px;
      padding: 1.5rem 2rem 2rem;
    }

    .tools-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
      gap: 15px;
    }

    .category-expanded .tool-item {
      background-color: rgba(255, 252, 245, 0.05);
      padding: 1rem;
      border-radius: 8px;
      text-align: center;
      transition: var(--transition);
      position: relative;
      overflow: hidden;
    }

    .category-expanded .tool-item:hover {
      transform: translateY(-5px);
      background-color: rgba(255, 252, 245, 0.1);
    }

    .category-expanded .tool-item::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 3px;
      height: 0;
      background-color: var(--accent);
      transition: var(--transition);
    }

    .category-expanded .tool-item:hover::before {
      height: 100%;
    }

    .category-main .tool-icon {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      color: var(--accent);
    }

    .category-expanded .tool-icon {
      font-size: 2rem;
      margin-bottom: 0.5rem;
      color: var(--accent);
    }

    .category-main .tool-name {
      font-size: 1.2rem;
      font-weight: bold;
      color: var(--text-primary);
    }

    .category-expanded .tool-name {
      font-size: 0.9rem;
      font-weight: bold;
      color: var(--text-primary);
    }

    .category-card.expanded {
      grid-column: 1 / -1;
      max-width: none;
    }

    @media (max-width: 768px) {
      .tools-categories {
        grid-template-columns: 1fr;
        gap: 20px;
      }
      
      .category-card {
        min-height: 120px;
      }
      
      .category-main {
        padding: 1.5rem;
        height: 120px;
      }
      
      .category-card.expanded .category-main {
        padding: 1rem 1.5rem;
      }
      
      .category-card.expanded .category-expanded {
        padding: 1rem 1.5rem 1.5rem;
      }
      
      .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
      }
      
      .tool-item {
        padding: 0.8rem;
      }
      
      .category-card .category-expanded .tool-icon {
        font-size: 1.5rem;
      }
      
      .category-card .category-expanded .tool-name {
        font-size: 0.8rem;
      }
    }
    
    #aboutme .tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 2rem;
  justify-items: center;
}

#aboutme .tool-item {
  background-color: var(--secondary);
  padding: 2rem 1.5rem;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 250px;
}

#aboutme .tool-item:hover {
  transform: translateY(-10px);
}

#aboutme .tool-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--accent);
  transition: var(--transition);
}

#aboutme .tool-item:hover::before {
  height: 100%;
}

#aboutme .tool-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

#aboutme .tool-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text-primary);
  line-height: 1.3;
}

@media (max-width: 768px) {
  #aboutme .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }
  
  #aboutme .tool-item {
    padding: 1.5rem 1rem;
    max-width: none;
  }
  
  #aboutme .tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  #aboutme .tool-name {
    font-size: 1rem;
  }
}
/* Footer */
footer {
  position: relative;
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 252, 245, 0.1);
  height: 80px;
  transition: height 0.6s ease, padding 0.6s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer.expanded {
  height: 200px;
  padding: 3rem 2rem;
}

.footer-content {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-flags {
  position: absolute;
  right: 20%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 15px;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
}

footer.expanded .footer-flags {
  opacity: 1;
}

.flag-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flag-img {
  width: 45px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--accent);
  transition: transform 0.3s ease;
}

.flag-img:hover {
  transform: scale(1.1);
}

.footer-name {
  position: absolute;
  right: 5%;
  top: 50%;
  padding-left: 100px;
  transform: translateY(-50%);
  font-family: 'Robotto', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
}

footer.expanded .footer-name {
  opacity: 1;
}

.footer-copyright {
  transition: opacity 0.3s ease;
}

footer.expanded .footer-copyright {
  opacity: 0;
}

@media (max-width: 768px) {
  .footer-flags {
    right: 10%;
    gap: 10px;
  }
  
  .flag-img {
    width: 35px;
    height: 23px;
  }
  
  footer.expanded {
    height: 160px;
  }
}



.desktop-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 80vh;
  margin: 2rem auto;
  background: #001426;
  border-radius: 20px;
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  border: 2px solid rgba(255, 252, 245, 0.1);
}

.desktop-screen {
  width: 100%;
  height: 100%;
  position: relative;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 252, 245, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 252, 245, 0.02) 0%, transparent 50%),
    linear-gradient(135deg, #00111c 0%, #001426 100%);
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 2rem;
}

.desktop-icon {
  width: 100px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 10px;
  padding: 1rem;
  position: relative;
}

.desktop-icon:hover {
  background: rgba(255, 252, 245, 0.1);
  transform: translateY(-5px);
}

.icon-image {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #FFFCF5 0%, #e8e5d8 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 252, 245, 0.2);
}

.icon-image i {
  font-size: 2rem;
  color: #00111c;
}

.icon-label {
  font-size: 0.9rem;
  text-align: center;
  color: #f6f7eb;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.folder-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 90%;
  max-width: 800px;
  height: 70%;
  background: #002137;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 252, 245, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow: hidden;
}

.folder-window.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.window-header {
  height: 50px;
  background: linear-gradient(135deg, #FFFCF5 0%, #e8e5d8 100%);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.window-controls {
  display: flex;
  gap: 8px;
  margin-right: 1rem;
}

.window-control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.control-close { background: #ff5f57; }
.control-minimize { background: #ffbd2e; }
.control-maximize { background: #28ca42; }

.window-control:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.window-title {
  color: #00111c;
  font-weight: bold;
  font-size: 1rem;
}

.window-content {
  padding: 2rem;
  height: calc(100% - 50px);
  overflow-y: auto;
}

#tools .tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.5rem;
}

#tools .tool-item {
  background: rgba(255, 252, 245, 0.05);
  padding: 1.5rem 1rem;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 252, 245, 0.1);
}

#tools .tool-item:hover {
  background: rgba(255, 252, 245, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#tools .tool-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #FFFCF5;
}

#tools .tool-name {
  font-size: 0.9rem;
  color: #f6f7eb;
  font-weight: 500;
}

.desktop-container .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
}

.desktop-container .overlay.active {
  opacity: 1;
  pointer-events: all;
}

@media (max-width: 768px) {
  .desktop-container {
    height: 60vh;
    margin: 1rem auto;
    background: #001426;
  }
  
  .desktop-screen {
    padding: 1rem;
    gap: 1rem;
    background: 
      radial-gradient(circle at 20% 50%, rgba(255, 252, 245, 0.02) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(255, 252, 245, 0.02) 0%, transparent 50%),
      linear-gradient(135deg, #00111c 0%, #001426 100%);
  }
  
  .desktop-icon {
    width: 80px;
    height: 100px;
  }
  
  .icon-image {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FFFCF5 0%, #e8e5d8 100%);
  }
  
  .icon-image i {
    font-size: 1.5rem;
    color: #00111c;
  }
  
  .icon-label {
    color: #f6f7eb;
  }
  
  .folder-window {
    width: 95%;
    height: 80%;
    background: #002137;
  }
  
  .window-content {
    padding: 1rem;
  }
  
  #tools .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
  }
}

#tools .tool-item {
  background: rgba(255, 252, 245, 0.05);
  padding: 1.5rem 1rem;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(255, 252, 245, 0.1);
}

#tools .tool-item:hover {
  background: rgba(255, 252, 245, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#tools .tool-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

#tools .tool-name {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.desktop-container .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
}

.desktop-container .overlay.active {
  opacity: 1;
  pointer-events: all;
}

@media (max-width: 768px) {
  .desktop-container {
    height: 60vh;
    margin: 1rem auto;
  }
  
  .desktop-screen {
    padding: 1rem;
    gap: 1rem;
  }
  
  .desktop-icon {
    width: 80px;
    height: 100px;
  }
  
  .icon-image {
    width: 50px;
    height: 50px;
  }
  
  .icon-image i {
    font-size: 1.5rem;
  }
  
  .folder-window {
    width: 95%;
    height: 80%;
  }
  
  .window-content {
    padding: 1rem;
  }
  
  #tools .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
  }
}

/* NAV */

.nav-section-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.5px;
  font-family: 'Space Grotesk', sans-serif;
  z-index: 10;
}

.nav-section-title.visible {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.nav-section-title.entering {
  transform: translate(-50%, -50%) translateY(10px);
  opacity: 0;
}

.nav-section-title.exiting {
  transform: translate(-50%, -50%) translateY(-10px);
  opacity: 0;
}

@media (max-width: 768px) {
  .nav-section-title {
    font-size: 0.9rem;
  }
}

body.dark-mode .nav-section-title {
  color: var(--text-primary);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.dark-mode .nav-overlay {
  background: var(--primary) !important;
}

.nav-overlay-menu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.nav-overlay-item {
  display: block;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--accent);
  text-decoration: none;
  margin: 1.5rem 0;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}

.nav-overlay-item:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay-item:nth-child(2) { transition-delay: 0.15s; }
.nav-overlay-item:nth-child(3) { transition-delay: 0.2s; }
.nav-overlay-item:nth-child(4) { transition-delay: 0.25s; }
.nav-overlay-item:nth-child(5) { transition-delay: 0.3s; }

.nav-overlay.active .nav-overlay-item {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay-item:hover {
  transform: translateY(-5px);
  color: var(--secondary);
}

.nav-overlay-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: left 0.5s;
}

.nav-overlay-item:hover::before {
  left: 100%;
}

body.dark-mode .nav-overlay-item {
  color: var(--accent) !important;
}

body.dark-mode .nav-overlay-item:hover {
  color: var(--secondary) !important;
}

body.dark-mode .nav-overlay-item::before {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.nav-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--accent);
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
}

.nav-close:hover {
  transform: rotate(90deg);
}

body.dark-mode .nav-close {
  color: var(--accent) !important;
}

@media (max-width: 768px) {
  header {
    cursor: pointer;
  }

  .hamburger {
    display: none;
  }

  header::after {
    content: '⋯';
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--text-primary);
    opacity: 0.7;
  }

  body.dark-mode header::after {
    color: var(--text-primary);
  }
}

@media (min-width: 769px) {
  header::after {
    display: none;
  }
}


.profession {
    font-size: 1.8rem;
    max-width: 100%;
    word-wrap: break-word;
  }

  .description {
    font-size: 1rem;
    max-width: 100%;
    word-wrap: break-word;
  }

  section {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }


@media (max-width: 480px) {
  .typing-prefix {
    font-size: 1.5rem;
    height: 30px;
  }

  .name-animated {
    font-size: 2rem;
    height: 45px;
  }

  .profession {
    font-size: 1.5rem;
  }

  .hero {
    padding: 0 5%;
  }
}

input, select, textarea {
  font-size: 16px !important;
  -webkit-text-size-adjust: 100%;
}

.cursor {
  font-weight: bold;
  animation: blink 1s infinite;
  position: relative;
  display: inline-block;
  width: 0;
}

.g-indicator {
  position: fixed;
  left: calc(var(--scroll-indicator-left, 50px) + 30px); 
  transform: translateY(-50%);
  font-family: 'Times New Roman', serif;
  font-size: 14px;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease, top 0.1s ease-out;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1000;
}

body::-webkit-scrollbar {
  display: none;
}


body {
  -ms-overflow-style: none; 
  scrollbar-width: none;
}


html::-webkit-scrollbar {
  display: none;
}

html {
  -ms-overflow-style: none;
  scrollbar-width: none;
}


::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}




.skills-tree-container {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
}


.tree-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.tree-connections path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0;
  filter: url(#glow);
  transition: all 0.3s ease;
}

.tree-connections path.active {
  opacity: 0.6;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 0.4s ease forwards;
}

.tree-connections path.hover {
  opacity: 1;
  stroke-width: 3;
  filter: url(#glow) drop-shadow(0 0 10px var(--accent));
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}


.category-nodes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
  width: 100%;
  max-width: 1000px;
  position: relative;
  z-index: 5;
}

.category-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.node-circle {
  width: 90px;
  height: 90px;
  border-radius: 15px;
  background: var(--secondary);
  border: 2px solid rgba(255, 252, 245, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
}

.node-circle i {
  font-size: 2rem;
  color: var(--accent);
  transition: all 0.3s ease;
}

.node-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.category-node:hover .node-circle {
  transform: scale(1.1);
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(255, 252, 245, 0.3);
}

.category-node:hover .node-label {
  color: var(--accent);
}

.category-node.active .node-circle {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(255, 252, 245, 0.5);
  transform: scale(1.1);
}

.category-node.active .node-label {
  color: var(--accent);
}


.skill-branches {
  position: relative;
  width: 100%;
  max-width: 1200px;
  z-index: 5;
}

.skill-branch {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 2rem;
  padding: 2rem;
  opacity: 0;
  position: relative;
}

.skill-branch.active {
  display: grid;
  animation: fadeInBranch 0.3s ease forwards;
}

@keyframes fadeInBranch {
  to {
    opacity: 1;
  }
}

.skill-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--secondary);
  border: 2px solid rgba(255, 252, 245, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  z-index: 10;
}

.skill-branch.active .skill-node {
  animation: popIn 0.4s ease forwards;
  animation-delay: calc(var(--delay) * 0.03s);
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  50% {
    transform: translateY(-5px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.skill-node i {
  font-size: 2rem;
  color: var(--accent);
  transition: all 0.3s ease;
}

.skill-node span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
}

.skill-node:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(255, 252, 245, 0.3);
}

.skill-node:hover i {
  transform: scale(1.2);
}


@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 252, 245, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 252, 245, 0.5);
  }
}

.category-node.active .node-circle {
  animation: pulse 2s ease-in-out infinite;
}


@media (max-width: 768px) {
  .category-nodes {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .node-circle {
    width: 70px;
    height: 70px;
    border-radius: 12px;
  }

  .node-circle i {
    font-size: 1.5rem;
  }

  .skill-branch {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    padding: 1rem;
  }

  .skill-node {
    padding: 0.75rem;
    border-radius: 10px;
  }

  .skill-node i {
    font-size: 1.5rem;
  }

  .skill-node span {
    font-size: 0.75rem;
  }
}


#experience .experience-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 2rem auto;
  gap: 30px;
}

#experience .experience-stack {
  position: relative;
  flex: 1;
  height: 350px; 
  perspective: 1000px;
}


#experience .experience-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem;
  border-radius: 20px;
  

  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  

  border: 1px solid rgba(255, 252, 245, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  

  opacity: 0;
  pointer-events: none;
  transform: translateY(30px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#experience .experience-card.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
  z-index: 10;
  border: 1px solid rgba(255, 252, 245, 0.2);
}

#experience .experience-card.next {
  opacity: 0.2;
  transform: translateY(20px) scale(0.96);
  z-index: 5;
}


#experience h2 { font-size: 1.8rem; margin-bottom: 0.5rem; color: var(--accent); }
#experience h3 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--text-primary); opacity: 0.9; }
#experience p { color: var(--text-secondary); line-height: 1.6; font-size: 0.95rem; }


#experience .tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5rem;
}

.tag {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


.experience-arrows {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#experience .exp-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 252, 245, 0.2);
  background: rgba(255, 252, 245, 0.05);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

#experience .exp-arrow:hover {
  background: rgba(255, 252, 245, 0.15);
  border-color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 252, 245, 0.2);
}


@media (max-width: 768px) {
  #experience .experience-wrapper {
    flex-direction: column;
  }
  
  .experience-arrows {
    flex-direction: row;
    justify-content: center;
    margin-top: 20px;
  }
  
  #experience .experience-stack {
    width: 100%;
    align-self: stretch;
    height: 420px;
  }

  #experience .experience-card {
    padding: 1.5rem;
  }

  #experience h2 { font-size: 1.4rem; }
  #experience h3 { font-size: 1rem; }
  #experience p  { font-size: 0.85rem; }
}

.tag.cpp { background: #00599C; color: #E6F3FF; }
.tag.typescript { background: #3178C6; color: #EAF4FF; }
.tag.java { background: #E76F00; color: #FFF4E6; }
.tag.linux { background: #FCC624; color: #1A1A1A; }
.tag.git { background: #F1502F; color: #FFF0ED; }


.tag.ansys { background: #FFB71B; color: #1A1A1A; }
.tag.ltspice { background: #8E44AD; color: #F5E9FF; }
.tag.solidworks { background: #D32F2F; color: #FFECEC; }
.tag.rtos { background: #00A896; color: #E6FFFB; }
.tag.tia { background: #009999; color: #E6FFFF; }

#experience .experience-card {
  /* a real tint (not 3% white) so text behind can't punch through */
  background:
    linear-gradient(135deg, rgba(255, 252, 245, 0.12), rgba(255, 252, 245, 0.03)),
    rgba(0, 33, 55, 0.6);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 252, 245, 0.18);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 252, 245, 0.15); /* glassy top edge */
}


#experience .experience-card .card-inner {
  opacity: 0;
  transition: opacity 0.2s ease;
}
#experience .experience-card.active .card-inner {
  opacity: 1;
  transition: opacity 0.3s ease 0.2s; /* fade in after the old card has gone */
}

#experience .experience-card.next {
  opacity: 0.35;
}

#experience p  { color: var(--text-primary); opacity: 0.85; }

body.light-mode #experience .experience-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.35)),
    rgba(240, 240, 240, 0.4);
  border: 1px solid rgba(0, 17, 28, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}
body.light-mode #experience p { color: var(--text-primary); opacity: 0.8; }

#experience { position: relative; }
#experience::before {
  content: "";
  position: absolute;
  top: 25%;
  left: 15%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(0, 120, 200, 0.35), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}
