@import url('https://fonts.googleapis.com/css2?family=Special+Gothic+Expanded+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --primary-color: #34a8eb;
    --color-pallete: #74b3ce, #508991, #172a3a, #004346, #09bc8a;
    --secondary-color: #508991;
    --text-color: #eaeaea;
    --background-color: #131b21;
    --scrollbar-bg: var(--background-color);
    --scrollbar-color: var(--primary-color);
    --scrollbar-color-hover: var(--secondary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: 800;
    scroll-behavior: smooth;
    color: var(--text-color);
}

.scroll-down {
    position: fixed;
    bottom: 80px;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translateX(-50%);
    font-size: 1rem;
    color: var(--text-color);
    animation: bounce 2s infinite;
    z-index: 1000;
    user-select: none;
    cursor: pointer;
    border: #eaeaea50 2px solid;
    padding: 0.5rem 1rem;
    border-radius: 90px;
    transition: all 0.3s cubic-bezier(0.3, 0, 0, 1.3);
    overflow: hidden;
    text-align: center;
}

.scroll-down i {
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.3, 0, 0, 1.3);
}

.scroll-down.spinned i {
    transform: rotate(180deg);
}

.scroll-down:hover {
    background: var(--primary-color);
    width: 80px;
}

.scroll-down:hover i {
    color: #0d0d0d;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header,
.header div {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-size: 3rem;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
    position: absolute;
}

.header {
    height: 100vh;
}

.header {
    background: linear-gradient(135deg, #0d0d0d 0%, #151515 100%);
    overflow: hidden;
    position: relative;
}

.header div span {
    transition: all 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
    transition-delay: calc(var(--i) * 0.01s);
    color: white;
}

.header div span.last {
    color: var(--primary-color);
}

.header div:hover span {
    transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1.2);
    text-shadow: #295084 0px 0px 10px, #295084 0px 0px 20px, #295084 0px 0px 30px, #295084 0px 0px 40px, #295084 0px 0px 50px, #295084 0px 0px 60px, #295084 0px 0px 70px;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0) 50%);
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.sub-header {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    color: var(--text-color);
    text-align: center;
}

.spacer {
    height: 80px;
}

body {
    background: var(--background-color);
    color: var(--text-color);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-color);
    border-radius: 90px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-color-hover);
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav * {
    font-family: 'Inter', sans-serif !important;
}

.nav-logo {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

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

.project-card {
    background: #151515;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #252525;
}

.project-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-description {
    color: #888;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tech-tag,
.project-links a {
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-links a {
    color: #888;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.project-links a:hover {
    color: var(--primary-color);
}

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

.skill-card {
    background: #151515;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #252525;
}

.skill-card:hover,
.project-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.skill-name {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.skill-level {
    width: 100%;
    height: 4px;
    background: #252525;
    border-radius: 2px;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.skill-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #34a8eb, #eaeaea);
    border-radius: 2px;
    transition: width 1s ease;
}

.experience {
    color: #888;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #151515;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #252525;
    border-radius: 4px;
    background: #1a1a1a;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 4px var(--primary-color);
}

.contact-form button {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #295084;
}