@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&family=Montserrat:wght@400;700&display=swap');

/* Змінні */
:root {
    --bg-color: #0b1120;
    --surface-color: #172033;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.3);
    --nav-height: 70px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(11, 17, 32, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

/* Фон, який перекриває весь екран */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    display: flex;
    /* Центруємо контент */
    justify-content: center;
    align-items: center;
}

/* Біла/темна плашка самого вікна */
.modal-content {
    background: #172033;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid #38bdf8;
}

/* Хрестик закриття */
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #94a3b8;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 400;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--nav-height) 2rem 2rem 2rem;
    background: radial-gradient(circle at center, var(--surface-color) 0%, var(--bg-color) 70%);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease out;
}

.greeting {
    font-family: 'Fira Code', monospace;
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.role {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--bg-color);
    background-color: var(--accent);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    border: 2px solid var(--accent);
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px var(--accent);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: rgba(56, 189, 248, 0.1);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

section {
    margin-bottom: 8rem;
}

section h2 {
    font-size: 2.8rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    letter-spacing: -1px;
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-item {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.stat-item span {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.skill-tag {
    background-color: var(--surface-color);
    padding: 12px 24px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    color: var(--accent);
    border: 1px solid rgba(56, 189, 248, 0.1);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-tag i {
    font-size: 1.1rem;
}

.skill-tag:hover {
    background-color: rgba(56, 189, 248, 0.1);
    transform: scale(1.05);
    border-color: var(--accent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(56, 189, 248, 0.3);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.project-icon {
    font-size: 1.8rem;
    color: var(--accent);
}

.project-title {
    font-size: 1.6rem;
    font-weight: 700;
}

.project-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
    flex-grow: 1;
}

.project-tech {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    background-color: rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    border-radius: 4px;
    display: flex;
    margin-bottom: 1.5rem;
}

.project-links {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.project-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.3rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--accent);
}

.contact {
    text-align: center;
    background-color: var(--surface-color);
    padding: 5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.social-links a i {
    font-size: 1.4rem;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

footer {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    .nav-links {
        display: none;
    }

    h1 {
        font-size: 2.8rem;
    }

    .role {
        font-size: 1.2rem;
    }

    section h2 {
        font-size: 2.2rem;
    }

    .container {
        padding: 4rem 1rem;
    }

    section {
        margin-bottom: 5rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 0.5rem;
    }
}