/* --- ЗМІННІ (Колірна палітра) --- */
:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --highlight: #38bdf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
}

/* --- БАЗОВІ НАЛАШТУВАННЯ --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at top right, #1e1b4b, var(--bg-dark), var(--bg-darker));
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { text-decoration: none; }
ul { list-style: none; }

/* --- НАВІГАЦІЯ (HEADER) --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--highlight));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--highlight);
    border-radius: 2px;
}

/* --- КНОПКИ --- */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--highlight);
}

/* --- HERO СЕКЦІЯ --- */
.hero {
    padding: 150px 20px 80px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.greeting {
    color: var(--highlight);
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- СІТКА КАРТОК (GLASSMORPHISM) --- */
.about-section {
    padding: 50px 20px 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 35px;
    border-radius: 16px;
    transition: var(--transition);
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.featured-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border-color: rgba(56, 189, 248, 0.2);
}

.card-icon {
    font-size: 2.8rem;
    color: var(--highlight);
    margin-bottom: 25px;
}

.glass-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: white;
}

.glass-card p, .custom-list li {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.text-highlight { color: var(--highlight); }

/* --- ФУТЕР --- */
.footer {
    background: rgba(2, 6, 23, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 40px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-main);
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}
/* --- ПОРТФОЛІО (ПРОЕКТИ) --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    margin-top: 40px;
    margin-bottom: 80px;
}

@media (min-width: 1000px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}

.project-card {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: white;
}

.project-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.tags {
    margin-bottom: 35px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tags span {
    background: rgba(56, 189, 248, 0.1);
    color: var(--highlight);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.project-links {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 20px;
}

/* =========================================
   АДАПТИВНІСТЬ
   ========================================= */

@media (max-width: 1100px) {
    .auto-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .auto-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .glass-card {
        padding: 25px;
        min-height: auto;
    }

    .navbar {
        position: relative;
    }

    .hero {
        padding-top: 50px;
    }

    .nav-container {
        flex-direction: column;
        justify-content: center;
        padding: 15px;
        gap: 15px;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}
