:root {
    --signature-blue: rgba(37, 99, 235, 1.0);
    --bg-dark: #0a0e1a;
    
    --signature-purple: #4ade80;

    --card-bg: #1e1e1e;
    --text-color: #ffffff;
    --link-color: #1e90ff;
    --card-padding: 1rem;
    --card-border-radius: 8px;
    --card-gap: 1.5rem;
}

body {
    background-color: #0a0e1a;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    scrollbar-width: thin;
    scrollbar-color: rgba(100, 100, 100, 0.3) transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: transparent;
    transition: width 0.3s ease, height 0.3s ease;
  }
  
  *::-webkit-scrollbar-track {
    background: transparent;
  }
  
  *::-webkit-scrollbar-thumb {
    background-color: rgba(100, 100, 100, 0.3);
    border-radius: 10px;
    transition: background-color 0.3s ease;
  }
  
  *:hover::-webkit-scrollbar {
    width: 12px;
    height: 12px;
  }
  
  *:hover::-webkit-scrollbar-thumb {
    background-color: rgba(100, 100, 100, 0.5);
  }
    /* Hamburger menu for mobile */
    .hamburger-menu {
        display: none;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        position: absolute;
        right: 1rem; /* Fixed position with padding */
        z-index: 1001;
    }
    
    .hamburger-menu span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #fff;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    /* Mobile responsive design */
    @media (max-width: 768px) {
        .hamburger-menu {
            display: flex;
        }
        
        .navbar-container {
            padding: 1rem 1rem; /* Consistent padding */
        }
        
        .navbar.menu-open .hamburger-menu span:nth-child(1) {
            transform: translateY(9px) rotate(45deg);
        }
        
        .navbar.menu-open .hamburger-menu span:nth-child(2) {
            opacity: 0;
        }
        
        .navbar.menu-open .hamburger-menu span:nth-child(3) {
            transform: translateY(-9px) rotate(-45deg);
        }
        
        .nav-links {
            position: fixed;
            top: 0;
            right: -100%;
            width: 70%;
            height: 100vh;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background-color: #1a1f2e;
            backdrop-filter: blur(10px);
            gap: 2rem;
            padding: 2rem;
            transition: right 0.4s ease;
            margin: 0;
        }
        
        .navbar.menu-open .nav-links {
            right: 0;
        }
        
        .nav-item {
            font-size: 1.2rem;
            opacity: 0;
            transform: translateY(20px);
        }
        
        .navbar.menu-open .nav-item {
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.4s ease, transform 0.4s ease;
            transition-delay: calc(var(--item-index) * 0.1s);
        }
    }
    
    /* Extra small devices */
    @media (max-width: 375px) {
        .navbar-logo {
            font-size: 1.3rem;
            left: 0.75rem;
        }

        .navbar-logo a {
            font-size: 1.3rem;
            left: 0.75rem;
        }
        
        .hamburger-menu {
            right: 0.75rem;
        }
    }
/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background-color: #1a1f2e;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Navbar scroll behavior */
.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navbar.hidden {
    transform: translateY(-100%);
}

/* Logo styling */

.navbar-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    top: 0;
    color: var(--signature-purple, #4ade80);
    letter-spacing: 1px;
    position: absolute;
    text-decoration: none;
    left: 0;
}

/* Navigation links - centered */
.nav-links {
    display: flex;
    gap: 2rem;
    margin: 0 auto;
    justify-content: center;
    width: 100%;
}

.nav-item {
    position: relative;
    color: #ccd6f6;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--signature-purple, #4ade80);
    transition: width 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    color: var(--signature-purple, #4ade80);
}

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 2rem;
}

.spacing {
    margin-top: 200px;
}

footer {
    position: relative;
    bottom: 0;
    left: 0;
    color: #ccd6f6;
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .footer-links {
    display: flex;
    gap: 15px;
  }

  .footer-links a {
    color: #aaaaaa;
    text-decoration: none;
  }

  .footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
  }

  .back-to-top {
    background: none;
    border: none;
    color: #ccd6f6;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: .5;
  }

  .back-to-top:hover {
    color: #fff;
  }

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--card-gap);
    width: 100%;
    max-width: 1200px;
    justify-content: center;
}

.sections {
    margin-top: 100px;
}

.card {
    box-sizing: border-box;
    background-color: var(--card-bg);
    border-radius: var(--card-border-radius);
    padding: var(--card-padding);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease;
    transition: border 0.3s ease;
    cursor: pointer;
}

.card:hover {
    /* transform: translateY(-1%); */
    border: 1px solid var(--text-color);
    border-color: #2a3441;
    background-color: #111720;
    transform: translateY(-2px);
}

.card p {
    color: gray;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: var(--card-border-radius);
}

.card a {
    color: var(--signature-purple);
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.card a:hover {
    text-decoration: underline;
}

.scroll-button {
    position: absolute;
    bottom: 1rem;  /* Position below the navigation buttons */
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: none;  /* Removed border */
    color: white;
    padding: 1rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.8;  /* Slightly transparent by default */
}

.scroll-button:hover {
    opacity: 1;  /* Full opacity on hover */
}

.scroll-arrow {
    animation: bounce 2s infinite;
    transform: translateY(0);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

.section-title {
    color: #ccd6f6;
    margin-bottom: 50px;
    margin-top: 50px;
}

.section-description {
    color: #ccd6f6;
    margin-bottom: 50px;
    margin-top: 50px;
}

/* Update banner-navigation margin to create space for scroll button */
.banner-navigation {
    position: absolute;
    bottom: 4rem;  /* Moved up to make room for scroll button */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

@media (max-width: 768px) {
    .banner-navigation {
        bottom: 5rem;  /* Adjusted for mobile */
    }
    
    .scroll-button {
        bottom: 1rem;
        padding: 0.75rem 1.5rem;
        font-size: 0.75rem;
    }
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .content-section {
        padding: 3rem 1rem;
    }
}

.socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    scale: 1.5;
}

.social-link {
    color: #1a1a1a;
    font-size: 1.75rem;
    transition: all 0.3s ease;
    position: relative;
}

.social-link:hover {
    color: #2563eb;
    transform: translateY(-3px);
}

/* Discord tooltip styles */
.discord-tooltip {
    position: relative;
    cursor: pointer;
}

.discord-tooltip::after {
    content: "Add me: @wheres.leon";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: #1a1a1a;
    color: white;
    font-size: 0.875rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.discord-tooltip:hover::after {
    opacity: 1;
    bottom: calc(100% + 10px);
}

/* Add arrow to tooltip */
.discord-tooltip::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a1a1a;
    opacity: 0;
    transition: all 0.3s ease;
}

.discord-tooltip:hover::before {
    opacity: 1;
    bottom: calc(100% + 4px);
}

@media (max-width: 768px) {
    .content-section {
        padding: 3rem 1rem;
    }
    
    .socials {
        gap: 1.5rem;
    }

    .social-link {
        font-size: 1.5rem;
    }
}

.social-link {
    font-size: 1.75rem;
    transition: all 0.3s ease;
    position: relative;
}

/* Add these brand-specific classes */
.social-link.instagram {
    color: #b100a8;
}

.social-link.youtube {
    color: #FF0000;
}

.social-link.discord {
    color: #5865F2;
}

.social-link.spotify {
    color: #1DB954;
}

.social-link.email {
    color: #EA4335;
}

.social-link.linkedin {
    color: #0A66C2;
}

.social-link.telegram {
    color: #3299ff;
}

.social-link.mail {
    color: blueviolet;
}

.social-link.twitter {
    color: black;
}

.tooltip {
    position: relative;
    cursor: pointer;
}

.tooltip::after {
    
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: #1a1a1a;
    color: white;
    font-size: 0.875rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.tooltip.java::after {
    content: "Java";
}

.tooltip.cpp::after {
    content: "C++";
}

.tooltip.csharp::after {
    content: "C#";
}

.tooltip.react::after {
    content: "React";
}

.tooltip.python::after {
    content: "Python";
}

.tooltip.nodejs::after {
    content: "Node.JS";
}

.tooltip.opengl::after {
    content: "Open GL";
}

.tooltip.vulkan::after {
    content: "Vulkan";
}

.tooltip:hover::after {
    opacity: 1;
    bottom: calc(100% + 10px);
}

/* Add arrow to tooltip */
.tooltip::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a1a1a;
    opacity: 0;
    transition: all 0.3s ease;
}

.tooltip:hover::before {
    opacity: 1;
    bottom: calc(100% + 4px);
}

/* Update the hover state */
.social-link:hover {
    color: #8B5CF6; /* Purple color on hover */
    transform: translateY(-3px);
}

.pretty-a {
    color: #4ade80;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.pretty-a:hover {
    border-bottom-color: #4ade80;
}

.onleft  {
    max-width: 70%;
    text-align: left;
}

.img-on-right {
    max-width: 400px;
    /* width: 400px; */
    /* height: 400px; */
    border-radius: 50px;
    position: fixed;
    margin-left: 200px;
    margin-top: 170px;
}

.colored-link {
    color: goldenrod;
}

@media (max-width: 768px) {
    .onleft {
        max-width: 100%;
        text-align: center;
    }

    .img-on-right {
        display: none;
    }
}

.bigger {
    font-size: 20px;
}

/* Scroll Effect Styles */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: calc(var(--item-index) * 0.1s);
}

.scroll-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Parallax effect for section backgrounds */
.content-section {
    position: relative;
    z-index: 1;
    padding-top: 4rem;
}

.content-section::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0e1a;
    z-index: -1;
    pointer-events: none;
}

/* Cool hover effects for cards */
.card {
    will-change: transform;
    background-color: #0f1419;
    border: 1px solid #1a1f2e;
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: #2a3441;
    background-color: #111720;
    transform: translateY(-2px);
}

/* Back to top button animation */
.back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: calc(var(--item-index, 0) * 0.1s);
    will-change: opacity, transform;
}

.scroll-item.active {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    position: relative;
    display: inline-block;
}


.section-title.active::after {
    width: 100%;
}

.svg-skill-icon {
    filter: brightness(0) saturate(100%) invert(75%) sepia(18%) saturate(1336%) hue-rotate(87deg) brightness(95%) contrast(92%);
    width: 30px;
    height: 30px;
    transition: 0.5s;
}

.svg-skill-icon:hover {
    opacity: 0.5;
}

.projects-section {
    margin-top: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    color: #ccd6f6;
    margin-bottom: 16px;
}

.archive-link {
    color: #4ade80;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.archive-link:hover {
    border-bottom-color: #4ade80;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.section-num {
    font-family: 'JetBrains Mono', 'Fira Code', 'Source Code Pro', Consolas, 'Courier New', monospace;
    color: #4ade80;
    font-size: 30px;
}

.section-nav-num {
    font-family: 'JetBrains Mono', 'Fira Code', 'Source Code Pro', Consolas, 'Courier New', monospace;
}

.project-card {
    background-color: rgba(17, 34, 64, 0.9);
    border: 1px solid #1a1f2e;
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    border-color: #2a3441;
    background-color: #111720;
    cursor:default;
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.card-folder {
    color: #4ade80;
    margin-bottom: 20px;
}

.card-folder svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.card-links {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.card-link {
    color: #8b92a5;
    text-decoration: none;
    transition: color 0.2s;
}

.card-link:hover {
    color: #ffffff;
}

.card-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-description {
    color: #8b92a5;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    min-height: 60px;
}

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.card-tech-tag {
    color: #8b92a5;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

.cards-loading,
.cards-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
}

.cards-loading {
    color: #8b92a5;
}

.cards-error {
    color: #ff6b6b;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        padding: 24px;
    }
}

.work-container {
    display: flex;
    gap: 20px;
}

.company-tabs {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.company-tab {
    background: none;
    border: none;
    border-left: 2px solid #233554;
    color: #8892b0;
    padding: 12px 20px;
    text-align: left !important;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.company-tab:hover {
    background-color: rgba(100, 255, 218, 0.1);
    color:  #4ade80;
}

.company-tab.active {
    border-left-color:  #4ade80;
    background-color: rgba(100, 255, 218, 0.1);
    color:  #4ade80;
}

.job-content {
    flex: 1;
    padding-left: 20px;
}

.job-title {
    color: #ccd6f6;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 5px;
    text-align: left !important;
}

.job-title .company-link {
    color:  #4ade80;
    text-decoration: none;
    transition: color 0.25s ease;
}

.job-title .company-link:hover {
    text-decoration: underline;
}

.job-date {
    color: #8892b0;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    margin-bottom: 25px;
    text-align: left !important;
}

.job-description {
    list-style: none;
    text-align: left !important;
}

.job-description li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 20px;
    color: #8892b0;
    line-height: 1.6;
}

.job-description li::before {
    content: "▶";
    color:  #4ade80;
    position: absolute;
    left: 0;
    font-size: 12px;
}

@media (max-width: 768px) {
    .work-container {
        flex-direction: column;
    }

    .company-tabs {
        flex-direction: row;
        min-width: auto;
        overflow-x: auto;
        white-space: nowrap;
    }

    .company-tab {
        border-left: none;
        border-bottom: 2px solid #233554;
        padding: 12px 20px;
        min-width: 120px;
    }

    .company-tab.active {
        border-left: none;
        border-bottom-color:  #4ade80;
    }

    .job-content {
        padding-left: 0;
        padding-top: 20px;
    }
}

.project {
    margin-bottom: 120px;
    position: relative;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.project:nth-child(odd) .project-content {
    direction: rtl;
}

.project:nth-child(odd) .project-content > * {
    direction: ltr;
}

.project-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.project-image:hover {
    transform: translateY(-10px);
    
}

.project-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(100, 255, 218, 0.3), rgba(34, 197, 94, 0.2));
    transition: opacity 0.3s ease;
}

.project-image:hover::after {
    opacity: 0;
}

.project-info {
    z-index: 2;
}

.project-label {
    color: #4ade80;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-title {
    font-size: 36px;
    font-weight: 700;
    color: #ccd6f6;
    margin-bottom: 20px;
    line-height: 1.2;
}

.project-description {
    background: rgba(17, 34, 64, 0.9);
    padding: 25px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
    color: #a8b2d1;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.tech-item {
    color: #4ade80;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    color: #ccd6f6;
    opacity: 0.4;
    font-size: 20px;
    transition: all 0.3s ease;
    padding: 10px;
}

.project-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 36px;
    }

    .project-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project:nth-child(odd) .project-content {
        direction: ltr;
    }

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

    .project-tech {
        justify-content: center;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: #64ffda;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4db8a3;
}

.cool-btn {
    padding: 17px;
    background: none;
    color: #4ade80;
    border-radius: 8px;
    border: 1px solid #4ade80;
    font-size: 16px;
    transition: 0.2s;
}

.cool-btn:hover {
    background-color: #4ade803f;
    cursor: pointer;
}