/* Color Variables */
:root {
    /* Primary Colors */
    --color-primary: #ff8c00;        /* Orange for important elements */
    --color-primary-hover: #e67e00;  /* Darker orange for hover states */

    /* Background Colors */
    --color-bg: #1a1a1a;             /* Dark grey background */
    --color-bg-secondary: #252525;   /* Slightly lighter grey for cards */
    --color-bg-accent: #2f2f2f;      /* Accent background */

    /* Text Colors */
    --color-text: #d0d0d0;           /* Main text color */
    --color-text-secondary: #a0a0a0; /* Secondary text */
    --color-text-muted: #808080;     /* Muted text */

    /* Border Colors */
    --color-border: #444444;
    --color-border-light: #555555;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Navigation */
header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-border);
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

header nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
}

header nav a:hover {
    text-decoration: underline;
}

header nav a.active {
    color: var(--color-primary);
}

/* Main Content */
main {
    min-height: 60vh;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

h2 {
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--color-primary);
}

/* Home Page */
.home-container .intro {
    padding: 40px 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.home-container .intro h1 {
    font-size: 2rem;
}

.home-container .intro p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.profile-image-container {
    text-align: center;
    margin-bottom: 30px;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-border);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Resume Page */
.resume-container {
    max-width: 900px;
}

.profile-section {
    margin-bottom: 40px;
}

.profile-section h1 {
    margin-bottom: 5px;
}

.profile-section .title {
    font-size: 1.3rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

.links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.links a {
    padding: 8px 16px;
    background-color: var(--color-bg-secondary);
    border-radius: 4px;
    text-decoration: none;
    color: var(--color-primary);
}

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

.summary {
    margin-top: 20px;
    padding: 20px;
    background-color: var(--color-bg-secondary);
    border-left: 4px solid var(--color-primary);
}

.experience-item, .education-item {
    margin-bottom: 30px;
}

.experience-header, .education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.company, .institution {
    color: var(--color-text-secondary);
    margin: 5px 0;
}

.period {
    color: var(--color-text-muted);
    font-style: italic;
    white-space: nowrap;
}

.responsibilities, .education-details {
    list-style-position: outside;
    margin-left: 20px;
    margin-top: 10px;
}

.responsibilities li, .education-details li {
    margin-bottom: 8px;
}

/* Presentations Page */
.presentations-container {
    max-width: 1000px;
}

.presentations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.presentation-card {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--color-bg-secondary);
    transition: transform 0.2s, box-shadow 0.2s;
}

.presentation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.presentation-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--color-bg-accent);
}

.presentation-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.presentation-info {
    padding: 20px;
}

.presentation-card h3 {
    margin-top: 0;
    color: var(--color-primary);
}

.presentation-card .date {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.presentation-card .description {
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

.presentation-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.presentation-links .btn-view {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-primary);
    color: var(--color-bg);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
}

.presentation-links .btn-view:hover {
    background-color: var(--color-primary-hover);
}

.presentation-links .btn-download {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--color-bg-accent);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
    text-align: center;
}

.presentation-links .btn-download:hover {
    background-color: var(--color-border);
    border-color: var(--color-border-light);
}

/* Footer */
footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 2px solid var(--color-border);
    text-align: center;
    color: var(--color-text-secondary);
}

/* Print Styles for Resume */
@media print {
    body {
        padding: 0;
        max-width: none;
    }

    header, footer {
        display: none;
    }

    .links a {
        background-color: transparent;
        padding: 0;
    }

    .summary {
        background-color: transparent;
        border-left: 2px solid #000;
    }

    .presentation-card {
        break-inside: avoid;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

    .experience-header, .education-header {
        flex-direction: column;
    }

    .period {
        margin-top: 5px;
    }

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

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }
}
