:root {
    --primary-color: #0f66b8;
    --secondary-color: #073d75;
    --accent-color: #ff602c;
    --light-color: #f8f9fc;
    --dark-color: #1f2937;
    --text-color: #374151;
    --border-color: #e5e7eb;
    --highlight-bg: #e2f0fd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Navigation */
nav {
    background-color: var(--dark-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-name {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Header */
header {
    background: linear-gradient(
        to right,
        var(--primary-color),
        var(--secondary-color)
    );
    color: white;
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
}

header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(
        to right bottom,
        transparent 49%,
        var(--light-color) 50%
    );
}

.profile-info {
    margin-bottom: 25px;
}

.profile-info h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.profile-tagline {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 300;
}

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

.contact-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
}

.contact-links a:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Profile Summary */
.profile-summary {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin: -25px auto 30px;
    position: relative;
    z-index: 10;
    max-width: 950px;
    line-height: 1.7;
}

.highlight {
    color: var(--accent-color);
    font-weight: 600;
}

/* Main sections */
section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin: 30px 0;
}

h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 25px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2 i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.education-item,
.experience-item,
.project-item,
.involvement-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

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

.education-header,
.experience-header,
.project-header,
.involvement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.institution,
.company,
.project-title,
.role {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 5px;
    width: 100%;
}

.institution-details,
.company-details,
.project-details,
.role-details {
    flex: 1;
    min-width: 280px;
}

.position {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.duration {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.duration i {
    color: var(--primary-color);
}

.achievements {
    margin-top: 15px;
}

ul {
    list-style-type: none;
    margin-left: 5px;
}

ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

ul li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.key-achievement {
    background-color: var(--highlight-bg);
    border-left: 3px solid var(--primary-color);
    padding: 8px 15px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
}

.key-achievement-title {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

/* Skills section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.skill-category {
    flex: 1;
}

.skill-category h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-category h3 i {
    color: var(--accent-color);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-item {
    background-color: var(--highlight-bg);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.skill-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Project highlights */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.project-tech span {
    background-color: #f0f5ff;
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.award-badge {
    display: inline-flex;
    align-items: center;
    background-color: #fdf2f8;
    color: #e11d48;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
    gap: 5px;
}

/* Print friendly */
@media print {
    body {
        background-color: white;
    }

    nav {
        display: none;
    }

    header {
        background: white;
        color: black;
        padding: 20px 0;
        text-align: left;
    }

    header::after {
        display: none;
    }

    .contact-links a {
        color: var(--primary-color);
        background: none;
        padding: 0;
    }

    section {
        box-shadow: none;
        margin: 20px 0;
        padding: 15px 0;
        page-break-inside: avoid;
    }

    .profile-summary {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .skill-item:hover {
        transform: none;
        background-color: var(--highlight-bg);
        color: var(--primary-color);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 10px;
    }

    .education-header,
    .experience-header,
    .project-header,
    .involvement-header {
        flex-direction: column;
        gap: 5px;
    }

    .duration {
        margin-top: 5px;
        width: 100%;
    }

    .company-details,
    .institution-details,
    .project-details,
    .role-details {
        width: 100%;
    }

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

    .profile-info h1 {
        font-size: 2.2rem;
    }

    .profile-tagline {
        font-size: 1.1rem;
    }

    .nav-container {
        flex-direction: column;
        padding: 10px;
    }

    .nav-name {
        margin-bottom: 10px;
    }
} 