@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@300;400;500;600;700&family=Zalando+Sans+Expanded:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #fafafa;
    --text-main: #404040;
    --text-sub: #666;
    --card-bg: #ffffff;
    --border-color: #eee;
    --nav-bg: rgba(250, 250, 250, 0.9);
}

[data-theme="dark"] {
    --bg-color: #0b0b0b;
    --text-main: #f0f0f0;
    --text-sub: #aaa;
    --card-bg: #161616;
    --border-color: #222;
    --nav-bg: rgba(11, 11, 11, 0.9);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    padding: 0 20px;
    margin: 0 auto;
    max-width: 1000px;
    transition: background 0.3s ease, color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
}

/* Progress */

.scroll-progress-wrapper {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);

    width: 220px;
    height: 6px;

    border-radius: 50px;

    background: var(--nav-bg);
    backdrop-filter: blur(10px);

    border: 1px solid var(--border-color);

    overflow: hidden;
    z-index: 2000;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;

    background: var(--text-main);

    border-radius: 50px;

    transition: width 0.1s linear;
}



.logo {
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    font-family: 'Zalando Sans Expanded', sans-serif;
    gap: 10px;
    color: var(--text-main);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-sub);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle,
.hamburger {
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
    background: none;
    border: none;
}

.hero {
    text-align: center;
    padding: 140px 0;
}

.hero h1 {
    font-size: 4rem;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: -2px;
    font-weight: 800;
}

.hero span {
    font-family: "Zalando Sans Expanded";
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-sub);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.btn-primary {
    text-decoration: none;
    color: var(--bg-color);
    background-color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 16px 32px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.github-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

/* Projects */
.projects {
    padding: 100px 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-img img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    color: var(--text-main);
    margin-bottom: 12px;
}

.projects h2 {
    margin-bottom: 20px;
    margin-left: 10px;
    font-family: "Zalando Sans Expanded";
}

.project-info p {
    color: var(--text-sub);
    margin-bottom: 30px;
    font-family: 'fira code';
}

.project-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: var(--text-sub);
    transition: rgba(0, 0, 0, 0.6);
}

/* Contact */
.contact-section {
    padding: 100px 0;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 550px;
    margin: 50px auto 0;
    text-align: left;
}

input,
textarea {
    padding: 16px;
    background: var(--card-bg);
    color: var(--text-main);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--text-main);
}

.contact-form button {
    background-color: var(--text-main);
    color: var(--bg-color);
    padding: 18px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.social-links a {
    font-size: 1.6rem;
    color: var(--text-sub);
    transition: 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-5px);
    color: var(--text-main);
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    #nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--card-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.4s ease;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    #nav-links.active {
        right: 0;
    }

    nav ul li {
        margin-left: 0;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}



.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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