﻿/* ============================================
   HOME PAGE
   ============================================ */

body {
    background-image: url('../assets/images/BackGround/BackGround.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('../assets/images/BackGround/HomeBack.png');
    background-size: cover;
    background-position: center top;
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
}

/* ---- HERO ---- */
.hero {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 20px;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text h1 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 46px;
    line-height: 1.18;
    margin-bottom: 18px;
    max-width: 420px;
}

.hero-text p {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
    opacity: 0.88;
    max-width: 400px;
}

.hero-avatar {
    flex-shrink: 0;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    border: 3px solid #5b8dee;
    box-shadow: 0 0 0 6px rgba(91,141,238,0.18), 0 0 40px rgba(91,141,238,0.35);
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- SKILLS ---- */
.skills {
    position: relative;
    z-index: 1;
    padding-top: 50px;
    padding-bottom: 70px;
}

.skills-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 36px;
    text-align: center;
    margin-bottom: 32px;
}

.skills-card {
    background: rgba(22, 22, 38, 0.72);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.skill-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 38px 16px 28px;
    gap: 14px;
    border-right: 1px solid rgba(255,255,255,0.09);
    border-bottom: 1px solid rgba(255,255,255,0.09);
    transition: background 0.2s;
    cursor: default;
}

.skill-cell:hover {
    background: rgba(255,255,255,0.04);
}

.skill-cell:nth-child(4n) { border-right: none; }

.skill-cell img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.skill-cell span {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4px;
    opacity: 0.82;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 20px;
    }
    .hero-text h1 { font-size: 32px; max-width: 100%; }
    .hero-text p  { font-size: 15px; max-width: 100%; }
    .hero-avatar  { width: 180px; height: 180px; }
    .skills-title { font-size: 28px; }

    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .skill-cell:nth-child(4n)        { border-right: 1px solid rgba(255,255,255,0.09); }
    .skill-cell:nth-child(2n)        { border-right: none; }
}

@media (max-width: 480px) {
    .hero { padding-top: calc(var(--nav-height) + 30px); }
    .hero-text h1 { font-size: 26px; }
    .hero-text p  { font-size: 14px; }
    .hero-avatar  { width: 140px; height: 140px; }
    .skills-title { font-size: 24px; }
    .skill-cell { padding: 24px 10px 18px; }
    .skill-cell img { width: 50px; height: 50px; }
}

