@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --background-color: #f4f7f6;
    --card-background: #ffffff;
    --border-color: #ecf0f1;
    --accent-color: #e74c3c;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* For potential background effects */
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

header h1 {
    margin: 10px 0;
    font-size: 2.8em;
    font-weight: 700;
}

header .tagline {
    font-size: 1.3em;
    margin-bottom: 25px;
    font-weight: 300;
    color: #bdc3c7;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.contact-info a .fas, .contact-info a .fab {
    margin-right: 8px;
    font-size: 1.2em;
}

nav {
    background-color: var(--primary-color);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

main {
    padding: 40px 0;
}

.card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    padding: 30px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

h2 {
    color: var(--primary-color);
    font-size: 2.2em;
    border-bottom: 3px solid var(--border-color);
    padding-bottom: 15px;
    margin-top: 0;
    margin-bottom: 30px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

h3 {
    color: var(--secondary-color);
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.job, .education-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
}

.job:last-child, .education-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.company, .university {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
    font-size: 1.1em;
}

.date {
    font-style: italic;
    color: #777;
    margin-bottom: 10px;
    display: block;
}

footer {
    background-color: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 0.9em;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2em;
    }

    header .tagline {
        font-size: 1em;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    nav ul li {
        margin: 0;
    }

    .card {
        padding: 20px;
    }

    h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    h3 {
        font-size: 1.3em;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

.icon{
    margin-right: 4px;
}