/* Modern color palette and base styles */
:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --accent: #0ea5e9;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
}

body {
    font-family: 'Inter', 'Arial', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* Modern header with gradient */
header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 4em 0 2em;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: 2em;
}

header h1 {
    font-size: 2.5em;
    margin: 0;
    font-weight: 800;
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
    margin-top: 0.5em;
}

/* Floating navigation */
nav {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: -1em auto 2em;
    max-width: 90%;
    position: sticky;
    top: 1em;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0.5em;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5em;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    padding: 0.75em 1.25em;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

nav ul li a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Main content sections */
section {
    max-width: 1200px;
    margin: 2em auto;
    padding: 2em;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

h2 {
    color: var(--primary);
    font-size: 2em;
    margin-bottom: 1em;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -0.5em;
    left: 0;
    width: 2em;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Profile section */
.profile-section {
    display: flex;
    align-items: center;
    gap: 3em;
    margin: 2em 0;
}

.profile-image {
    width: 240px;
    height: 240px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: rotate(2deg) scale(1.02);
}

/* Experience and Project Cards */
.experience-card, .project-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2em;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    display: flex;
    gap: 2em;
    padding: 1.5em;
}

.experience-card:hover, .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.experience-image, .project-image {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.experience-content, .project-content {
    flex: 1;
}

.experience-content h3, .project-content h3 {
    color: var(--primary);
    margin-top: 0;
    font-size: 1.4em;
}

/* Skills section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5em;
    margin-top: 2em;
}

.skill-card {
    background: var(--surface);
    padding: 1.5em;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Awards section */
.awards-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5em;
}

.award-card {
    background: var(--surface);
    padding: 1.5em;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.award-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Contact section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 1em;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Olive button */
.olive-button {
    background: linear-gradient(135deg, #87cf3e, #5c9219);
    color: white !important;
    font-weight: 600;
}

.olive-button:hover {
    background: linear-gradient(135deg, #5c9219, #87cf3e);
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2em;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    margin-top: 4em;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

/* Responsive design */
@media (max-width: 768px) {
    nav {
        position: static;
        margin: 1em auto;
        border-radius: 8px;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25em;
    }

    nav ul li a {
        display: block;
        text-align: center;
        padding: 0.5em 1em;
        font-size: 0.95em;
    }

    nav ul li a:hover {
        transform: none;
    }

    .profile-section, .experience-card, .project-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .experience-image, .project-image {
        width: 100%;
        height: 200px;
    }
}
