/* 
   Made by the beatiful alex1dev! :)
   Theme: Dark and white
   Font: Outfit (Google Fonts)
*/

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Outfit:wght@300;400;500;700;900&display=swap');

:root {
    --bg-color: #050505;
    --bg-secondary: #0f0f0f;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent: #ffffff;
    --border-color: #222;
    --transition-speed: 0.6s;
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    cursor: none;
    position: relative;
    z-index: 0;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

ul {
    list-style: none;
}

.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid var(--text-main);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
}

.cursor.hovered {
    width: 50px;
    height: 50px;
    background-color: var(--text-main);
    opacity: 0.5;
    border: none;
}

@media (hover: none) {
    .cursor {
        display: none;
    }

    body,
    a,
    .project-card,
    .submit-btn {
        cursor: auto;
    }
}

nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
}

.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
}

.logo {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.mobile-logo {
    display: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 1;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
}

.burger-menu span {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: 0.3s;
}

@media (max-width: 768px) {
    nav {
        top: 1rem;
        width: 95%;
        padding: 1.5rem;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        transition: border-radius 0.3s ease;
        gap: 0;
    }

    .nav-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .desktop-logo {
        display: none;
    }

    .mobile-logo {
        display: block;
    }

    .nav-links {
        position: static;
        width: 100%;
        height: auto;
        background-color: transparent;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 1.5rem;
        transform: none;
        z-index: 99;
        
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        margin-top: 0;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin-top 0.4s ease;
    }

    .nav-links.active {
        max-height: 400px;
        opacity: 1;
        margin-top: 1.5rem;
        transform: none;
        padding-bottom: 0.5rem;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .burger-menu {
        display: flex;
    }

    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#reactbits-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
}

.hero-title {
    font-size: 10vw;
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    z-index: 2;
    mix-blend-mode: difference;
}

.hero-title span {
    display: block;
    cursor: default;
    background: linear-gradient(to bottom, #ffffff, #999999);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

.hacker-text {
    transition: none;
}

.hacker-text:hover {
    color: transparent;
    text-shadow: none;
    background: linear-gradient(to bottom, #ffffff, #999999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    margin-top: 2rem;
    font-size: 1.2rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

.hero-mobile-logo {
    display: none;
    width: 240px;
    max-width: 80%;
    height: auto;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.mobile-logo-img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .desktop-title {
        display: none;
    }

    .hero-mobile-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-logo-text {
        margin-top: 1rem;
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: 3px;
        color: var(--text-main);
        text-transform: uppercase;
        background: linear-gradient(to right, #ffffff, #a0a0a0);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-align: center;
    }

    .mobile-logo-subtitle {
        margin-top: 0.5rem;
        font-size: 0.9rem;
        letter-spacing: 4px;
        color: var(--text-muted);
        text-transform: uppercase;
        font-weight: 300;
        text-align: center;
    }

    .hero-title {
        font-size: 15vw;
    }

    .hero-subtitle {
        display: none;
    }
}

main:not(.hero) {
    position: relative;
    z-index: 10;
    padding-top: 150px;
    background-color: transparent; 
    min-height: 100vh;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skills-section {
    opacity: 0;
    animation: fadeUp 0.8s forwards 0.8s;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-main);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.skill-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.skill-tag:hover .skill-icon {
    transform: scale(1.1);
}

.invert-icon {
    filter: invert(1);
}

.skill-tag::after {
    content: attr(data-name);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--text-main);
    color: var(--bg-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.skill-tag::before {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent var(--text-main) transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
    transform: translateX(-50%) rotate(180deg);
}

.skill-tag:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.skill-tag:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) rotate(180deg);
}