/* General Styling */
:root {
    --primary-color: #0056b3; /* Darker blue for accents */
    --secondary-color: #007bff; /* Bright blue */
    --text-color: #333;
    --background-color: #f4f7f6;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header/Hero Section */
.hero {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,86,179,0.9), rgba(0,123,255,0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    margin: 0;
    font-size: 2.8em;
    letter-spacing: 1px;
}

.hero .tagline {
    font-size: 1.4em;
    margin-top: 10px;
    font-weight: 300;
}

.contact-info-header {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-info-header p {
    margin: 5px 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info-header p i {
    color: #ffd700; /* Gold icon */
}

/* Navigation Bar */
.navbar {
    background-color: var(--secondary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Sections */
section {
    padding: 40px 0;
}

.section-card {
    background-color: var(--card-background);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* About Section */
#about p {
    font-size: 1.1em;
    text-align: justify;
    max-width: 800px;
    margin: 0 auto;
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.service-item h3 i {
    color: var(--secondary-color);
    font-size: 1.2em;
}

.service-item ul {
    list-style: none;
    padding-left: 0;
}

.service-item ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-item ul li::before {
    content: '\f058'; /* Checkmark icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 0;
}

/* Experience Section */
.job-entry {
    background-color: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.job-entry h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.5em;
}

.job-entry .company-name {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

.job-entry .dates {
    font-style: italic;
    color: #777;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.job-entry ul {
    list-style: disc;
    padding-left: 25px;
}

.job-entry ul li {
    margin-bottom: 8px;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.skill-category {
    background-color: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
}

.skill-category ul {
    list-style: none;
    padding-left: 0;
    columns: 2; /* For better readability on wider screens */
    column-gap: 20px;
}

.skill-category ul li {
    margin-bottom: 5px;
    padding-left: 10px;
    position: relative;
}

.skill-category ul li::before {
    content: '\2022'; /* Bullet point */
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Education Section */
.education-entry {
    background-color: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.education-entry h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.4em;
}

.education-entry p {
    margin: 5px 0;
    color: #555;
}

.education-entry .note {
    font-style: italic;
    font-size: 0.9em;
    color: #777;
}

#education ul {
    list-style: disc;
    padding-left: 25px;
    margin-top: 20px;
}

#education ul li {
    margin-bottom: 8px;
}

/* Languages Section */
#languages ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

#languages ul li {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact-links {
    text-align: center;
    margin-top: 30px;
}

.contact-links p {
    font-size: 1.2em;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.contact-links a:hover {
    text-decoration: underline;
}

.contact-links i {
    color: var(--secondary-color);
    font-size: 1.3em;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }

    .hero .tagline {
        font-size: 1.1em;
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }

    .navbar a {
        display: block;
        text-align: center;
        padding: 10px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-category ul {
        columns: 1;
    }

    .contact-info-header {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .profile-photo {
        width: 120px;
        height: 120px;
    }

    h2 {
        font-size: 1.8em;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}