:root {
    --primary-color: #2d3436;
    --accent-color: #0984e3;
    --text-color: #2d3436;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
}

header {
    background: linear-gradient(135deg, #2d3436 0%, #0984e3 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin: 0 auto;
    max-width: 800px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid white;
    margin-bottom: 1rem;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image i {
    font-size: 4rem;
    color: #666;
}

.social-links {
    margin-top: 20px;
    font-size: 18px;
}

.social-links a {
    text-decoration: none;
    color: #000;
    margin: 5px 0;
    display: inline-block;
}
.social-links i {
    margin-right: 8px;
}
.social-links a:hover {
    transform: translateY(-3px);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.2) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(0,0,0,0.2) 25%, transparent 25%);
    background-size: 60px 60px;
    opacity: 0.1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 2rem 0;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0.5rem auto;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.project-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-card h3 i {
    color: var(--accent-color);
}

.project-card p {
    color: #636e72;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.skills-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.skill-category h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: #f0f2f5;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    background: var(--accent-color);
    color: white;
}

.education-section {
    margin-bottom: 2rem;
}

.education-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.education-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.education-details h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.education-details p {
    color: #636e72;
    font-size: 0.9rem;
}

.contact-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

.credentials {
    background: linear-gradient(to right, #f5f6fa, #dfe6e9);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid var(--accent-color);
}

.credentials strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.warning {
    background-color: #fff3cd;
    border: none;
    color: #856404;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.warning i {
    font-size: 1.5rem;
}

.button-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.button:hover {
    background-color: #0670c4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(9, 132, 227, 0.2);
}

@media (max-width: 768px) {
    .skills-section {
        grid-template-columns: 1fr;
    }

    .education-card {
        flex-direction: column;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    header {
        padding: 3rem 1rem;
    }
    
    .container {
        padding: 2rem 1rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
}

.skills-container {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Space between the two boxes */
    margin-top: 20px;
}

.skills-box {
    flex: 1; /* Ensures each box takes up equal space */
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.skills-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.skills-box ul {
    list-style-type: none;
    padding: 0;
}

.skills-box ul li {
    margin-bottom: 8px;
    font-size: 1rem;
}
/* Add this CSS to style the hover animation for the name */
.name {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    position: relative;
}

/* Hover effect */
.name:hover {
    animation: nameHoverAnimation 1s ease-out forwards;
}

/* Keyframe animation for hover effect */
@keyframes nameHoverAnimation {
    0% {
        transform: scale(1);
        color: #ffffff;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.6);
    }
    50% {
        transform: scale(1.2);
        color: #f1a517;
        text-shadow: 0 0 20px rgba(9, 132, 227, 0.8), 0 0 30px rgba(9, 132, 227, 0.5);
    }
    100% {
        transform: scale(1);
        color: #ffffff;
        text-shadow: none;
    }
}

/* Optional: Make it bold and add a slight bounce on the first time */
.name:active {
    animation: nameActiveAnimation 0.2s ease-in-out;
}

@keyframes nameActiveAnimation {
    0% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Style for the profile image container */
.profile-image {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 50%;
    position: relative;
    margin: 20px auto;
    transition: all 0.3s ease;
}

/* Profile image itself */
.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 50%;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;  /* Animation when the page loads */
}

/* Hover effect for the image */
.profile-image:hover img {
    transform: scale(1.1); /* Scale up slightly */
    filter: brightness(1.2); /* Make the image brighter */
}

/* Fade-in animation when the page loads */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px); /* Start from below */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* End at normal position */
    }
}

/* Optional: Add a small rotation effect on hover for extra fun */
.profile-image:hover img {
    transform: scale(1.1) rotate(10deg); /* Rotate slightly along with scaling */
    filter: brightness(1.2);
}
