/* ==========================================================================
   // 1. VARIABLES AND BASICS (ROOT)
   ========================================================================== */
:root {
    /* Colors */
    --primary: #4e54c8;
    --primary-light: rgba(78, 84, 200, 0.08); /* For tags and icons */
    --primary-hover: rgba(78, 84, 200, 0.15);
    --bg-main: #f4f7f6;
    --bg-card: #ffffff;
    
    /* TEXT */
    --text-main: #333333;
    --text-muted: #6c757d;
    --text-light: #999999;

    /* Effects */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(78, 84, 200, 0.12);
    --transition: 0.3s ease;
}

/* ==========================================================================
   // 2. General Styles
   ========================================================================== */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 0% 0%, var(--primary-light) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(143, 148, 251, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    scroll-behavior: smooth;
    opacity: 0;
    transition: opacity .5s ease;
}

body.loaded { opacity: 1; }

.bg-light { background-color: rgba(0, 0, 0, 0.02) !important; }

/* Навигация */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(244, 247, 246, 0.8) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   3. БЛОК "ОБО МНЕ" (ABOUT / HERO)
   ========================================================================== */
/* Фото профиля */
.profile-img {
    width: 100%;
    max-width: 300px;
    border-radius: 50px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Roles */
.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 100px;
    background: var(--bg-card);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    box-shadow: var(--shadow);
    margin: 0 10px 10px 0;
}

.lead { color: var(--text-muted); }

/* ==========================================================================
   4. SKILLS
   ========================================================================== */
.skill-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.skill-card:hover { transform: translateY(-5px); }

.skill-tag {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px;
    border-radius: 10px;
    background: #f1f3f9;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

/* ==========================================================================
   5.PROJECTS
========================================================================== */
.project-tag {
    display: inline-block;
    padding: 4px 10px;
    margin: 2px;
    border-radius: 6px;
    background: var(--primary-light);
    border: 1px solid rgba(78, 84, 200, 0.1);
    font-size: 11px;
    color: var(--primary);
    font-weight: 500;
}

.card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-footer {
    margin-top: auto;
    padding-top: 15px;
}

/* ==========================================================================
   6. CONTACTS
   ========================================================================== */
.contact-item {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    user-select: none;
    background: var(--bg-card);
    border-radius: 20px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover) !important;
}

.contact-icon-wrapper {
    transition: transform 0.2s ease;
    display: inline-block;
}

.contact-icon-wrapper:hover { transform: scale(1.15); }

.contact-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: var(--primary-light);
    border-radius: 18px;
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.contact-icon-wrapper:hover .contact-icon {
    background: var(--primary-hover);
}

.copy-hint {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--text-light);
}