/* General Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --dark-bg: #f8f9fa;
    --dark-card-bg: #ffffff;
    --text-color: #343a40;
    --heading-color: #212529;
    --accent-color: #28a745;
    --border-color: #dee2e6;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--heading-color);
    margin-bottom: 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Header */
header {
    background-color: var(--dark-card-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.8em;
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    color: var(--text-color);
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('https://source.unsplash.com/random/1600x900/?office,abstract,professional') no-repeat center center/cover;
    color: var(--text-color);
    text-align: center;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 86, 179, 0.3); /* Adjusted glow effect */
}

.hero h2 {
    font-size: 3.5em;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.social-links a i {
    margin-right: 8px;
}

.social-links a:hover {
    background-color: var(--accent-color);
}

/* Sections */
section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    width: 100%;
}

section h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    border-radius: 2px;
}

/* About Section */
.about p {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-category {
    background-color: var(--dark-card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

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

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.6em;
    text-align: center;
}

.skill-category ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.skill-category ul li {
    background-color: var(--border-color);
    color: var(--text-color);
    padding: 8px 15px;
    margin: 5px;
    border-radius: 20px;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
}

.skill-category ul li i {
    margin-right: 8px;
}

.skill-category ul li:hover {
    background-color: var(--accent-color);
}

/* Experience & Education Sections */
.experience-item, .education-item {
    background-color: var(--dark-card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.experience-item:hover, .education-item:hover {
    transform: translateY(-5px);
}

.experience-item:last-child, .education-item:last-child {
    margin-bottom: 0;
}

.experience-item h3, .education-item h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.8em;
}

.experience-item h4, .education-item h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.2em;
}

.experience-item .dates, .education-item .dates {
    color: var(--secondary-color);
    font-size: 0.9em;
    margin-bottom: 15px;
}

.experience-item ul {
    list-style: disc;
    margin-left: 20px;
}

.experience-item ul li {
    margin-bottom: 8px;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-item {
    background-color: var(--dark-card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

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

.project-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.6em;
}

.project-item p {
    font-size: 1em;
    color: var(--text-color);
}

/* Contact Section */
.contact {
    text-align: center;
}

.contact p {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.contact a {
    font-size: 1.1em;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: var(--dark-card-bg);
    color: var(--secondary-color);
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    header nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    header nav ul li {
        margin: 5px 10px;
    }

    .hero h2 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .social-links a {
        padding: 8px 15px;
        margin: 0 5px;
    }

    section {
        padding: 40px 0;
    }

    section h2 {
        font-size: 2em;
    }

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

    .skill-category, .experience-item, .education-item, .project-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    header nav ul li a {
        font-size: 0.9em;
    }

    .hero h2 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .social-links a {
        display: block;
        margin: 10px auto;
        max-width: 200px;
    }

    section h2 {
        font-size: 1.8em;
    }
}