*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4; 
    background-image: url('images/background.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

.tagline {
    margin: 10px 0 20px;
    color: #666;
    font-size: 1.1rem;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-link {
    color: #555;
    font-size: 1.5rem;
    transition: all 0.2s ease;
    padding: 5px; 
}

.social-link:hover {
    color: #007bff;
    transform: scale(1.1);
}

.site-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 10px; 
    margin-bottom: 40px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.2s;
    white-space: nowrap; 
}

.nav-link:hover {
    background-color: #f0f0f0;
    color: #000;
}

.nav-link.active {
    background-color: #007bff;
    color: white;
}

.content h2 {
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: #222;
}

.education-item {
    display: flex;
    align-items: center; 
    gap: 20px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.education-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.uni-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0; 
}

.school-info {
    display: flex;
    flex-direction: column;
}

.school-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #222;
}

.degree {
    margin: 5px 0 0 0;
    font-size: 0.95rem;
    color: #666;
}

.education-date {
    margin-left: auto; 
    font-weight: 600;
    color: #888;
    white-space: nowrap;
    font-size: 0.9rem;
}

.skill-category {
    margin-bottom: 30px;
}

.skill-category h3 {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
    font-weight: 600;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-box {
    background-color: #f0f0f0; 
    border: 2px solid #333; 
    border-radius: 6px;
    padding: 8px 16px; 
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.skill-box:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

@media (max-width: 600px) {
    .container {
        margin: 0;
        border-radius: 0;
        padding: 25px 15px; 
        min-height: 100vh;
    }
    
    .header h1 {
        font-size: 2rem; 
    }

    .site-nav {
        gap: 8px;
        justify-content: stretch;
    }

    .nav-link {
        flex: 1 1 45%; 
        text-align: center;
        font-size: 0.9rem;
        padding: 10px 5px;
        border: 1px solid #eee; 
    }

    .education-item {
        flex-wrap: wrap; 
        padding: 15px;
        gap: 15px;
    }
    
    .uni-logo {
        width: 50px;
        height: 50px;
    }

    .school-info {
        width: calc(100% - 70px); 
    }

    .education-date {
        margin-left: 0;
        width: 100%;
        margin-top: 5px;
        font-size: 0.85rem;
        color: #666;
        padding-left: 0; 
    }
    
    .skill-box {
        font-size: 0.9rem; 
    }
}
