/* =========================================
   1. General Styles
   ========================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    /* የጀርባ ምስል ማስተካከያ */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                      url('image/background.jpg'); 
    background-size: cover;      
    background-position: center; 
    background-attachment: fixed; 
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

ul {
    list-style: none;
}

.container {
    display: flex;
    width: 90%;
    max-width: 1000px;
    min-height: 600px;
    background: #ffffff; 
    border-radius: 15px;
    overflow: hidden;
}

/* =========================================
   2. Sidebar & Navigation 
   ========================================= */
.sidebar {
    width: 30%;
    background: rgba(26, 53, 58, 0.95); 
    color: rgb(255, 255, 255);
    padding: 40px 20px;
    backdrop-filter: blur(10px); 
}

/* Images in Sidebar */
.profile-img img { width: 150px; height: 150px; border-radius: 50%; border: 4px solid #376888; object-fit: cover; margin-bottom: 20px; }
.dmu-logo img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; }

/* Buttons */
.tab-btn { 
    width: 100%; padding: 12px; margin: 5px 0; background: none; border: none; 
    color: #ffffff; cursor: pointer; text-align: left; font-size: 16px; 
    transition: 0.3s; border-radius: 5px; 
}

.tab-btn.active, .tab-btn:hover { 
    background: #77cdf5; 
    color: white; 
}

.tab-btn.active {
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* =========================================
   3. Social Icons
   ========================================= */
.social-icons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white; 
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s ease;
}

.fa-github { color: #333; font-size: 24px; }
.fa-linkedin { color: #0077b5; font-size: 24px; }
.fa-telegram { color: #229ED9; font-size: 24px; }

.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* =========================================
   4. Main Content Area
   ========================================= */
.content {
    width: 85%;
    padding: 50px;
    background: #ffffff;
    overflow-x: hidden; 
    position: relative;
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.5s; }

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

h1 { font-family: Cambria, 'Cambria', Cambria; color: #000000; margin-bottom: 10px; }
h2 { font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; color: #35ee35; border-bottom: 2px solid #3498db; display: inline-block; margin-bottom: 20px; }

/* Home Section Specifics - ምስሉ በኮምፒውተር ጊዜ */
.home-page-image img { 
    width: 100%; 
    max-width: 600px; 
    height: auto; 
    object-fit: cover; 
    margin: 20px 0; 
}

.home-hero {
    text-align: center;
    padding: 50px 20px;
    background: #fafafa;
    border-radius: 15px;
    margin-top: 20px;
}

.home-hero h1 { font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman'; font-size: 2.5rem; color: #2dcf83; }
.home-hero p { font-size: 1.2rem; color: #f012d2; margin: 20px 0; }

/* =========================================
   5. Cards & Grids (projects and certificate)
   ========================================= */
.cert-card, .project-card { 
    background: #f9f9f9; padding: 15px; border-radius: 8px; margin-bottom: 10px; 
    border-left: 5px solid #3498db; transition: 0.3s; cursor: pointer;
}
.cert-card:hover, .project-card:hover { background: #eef6ff; transform: translateY(-3px); }

.cert-grid, .project-grid { display: grid; gap: 15px; margin-top: 20px; }
.cert-grid { grid-template-columns: 1fr 1fr; }
.project-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.cert-img { width: 100%; max-width: 500px; margin-top: 15px; border-radius: 4px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.project-link { display: inline-block; margin-top: 10px; color: #3498db; text-decoration: none; font-weight: bold; }

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #3498db;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.close-all-btn {
    background: #3ce745;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
}

/* =========================================
   6. Skills Section
   ========================================= */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.skill-category h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #eef6ff;
    color: #3498db;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #d1e7ff;
    transition: all 0.3s ease;
    cursor: default;
}

.tag:hover {
    background: #3498db;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

/* =========================================
   7. Education Section 
   ========================================= */
.edu-container {
    display: flex;          
    align-items: center;   
    gap: 20px;             
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
}

.edu-details h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

/* =========================================
   8. Responsive Design mobile user
   ========================================= */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        width: 100%;
        height: auto; 
        margin: 0;
        border-radius: 0;
    }
    .sidebar {
        width: 100%;
        height: auto;
        padding: 20px;
        text-align: center;
    }

    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .content {
        width: 100%;
        padding: 20px;
    }

    .edu-container {
        flex-direction: column;
        text-align: center;
    }

    .dmu-logo img {
        width: 150px; 
    }

    /* ምስሉ በስልክ ጊዜ እንዳይበላሽ ማስተካከያ */
    .home-page-image img { 
        width: 100% !important; 
        max-width: 100% !important; 
        height: auto !important;
        margin: 10px 0;
    }
}

#about h1 {
    color: #1e293b; /* ጥቁር ሰማያዊ */
    font-size: 2.5rem;
    margin-bottom: 10px;
}
#about h3 {
    color: #3498db; 
    font-size: 1.2rem;
    margin-bottom: 15px;
}
#about p {
    color: #6d6262; 
    line-height: 1.1; 
    font-size: 1.1rem;
    text-align: justify;
}
