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

:root {
    --primary-black: #1a1a1a;
    --charcoal: #2d2d2d;
    --muted-gold: #c9a961;
    --gold-accent: #b8860b;
    --white: #ffffff;
    --light-gray: #f8f8f8;
    --medium-gray: #e8e8e8;
    --text-gray: #666666;
    --text-light: #888888;
    --border-color: #e0e0e0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--primary-black);
    background-color: var(--white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main Container - Landscape Layout */
.resume-container {
    display: grid;
    grid-template-columns: 360px 1fr;
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
}

/* Left Sidebar */
.sidebar {
    background: linear-gradient(180deg, var(--charcoal) 0%, #1f1f1f 100%);
    color: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-content {
    padding: 60px 40px;
}

/* Identity Section */
.identity {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 30px;
    border: 4px solid var(--muted-gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.identity h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    color: var(--white);
}

.identity h2 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--muted-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.identity .location {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--muted-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

/* Contact List */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-item strong {
    display: block;
    color: var(--muted-gold);
    margin-bottom: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

.contact-item a:hover {
    color: var(--muted-gold);
}

.contact-item span {
    color: rgba(255, 255, 255, 0.9);
}

/* Expertise Chips */
.expertise-chips {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.expertise-chip {
    display: inline-block;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    text-align: center;
}

.expertise-chip:hover {
    background: rgba(201, 169, 97, 0.15);
    border-color: var(--muted-gold);
    transform: translateX(4px);
}

/* Credentials and Markets Lists */
.credentials-list,
.markets-list {
    list-style: none;
    padding: 0;
}

.credentials-list li,
.markets-list li {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.credentials-list li::before,
.markets-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--muted-gold);
    font-weight: bold;
}

/* Main Content Area */
.main-content {
    background-color: var(--white);
    padding: 60px 80px;
    overflow-y: auto;
}

.content-section {
    margin-bottom: 60px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--primary-black);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--muted-gold);
    letter-spacing: -0.5px;
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.content-section p strong {
    color: var(--primary-black);
    font-weight: 600;
}

/* Experience Section */
.experience-item {
    margin-bottom: 40px;
    padding: 30px;
    background-color: var(--light-gray);
    border-left: 4px solid var(--muted-gold);
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.experience-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.experience-header h3 {
    font-size: 1.4rem;
    color: var(--primary-black);
    font-weight: 600;
    margin-right: auto;
}

.experience-header .company {
    font-size: 1.1rem;
    color: var(--charcoal);
    font-weight: 500;
}

.experience-header .period {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-style: italic;
    margin-left: auto;
}

.experience-item ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.experience-item ul li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.experience-item ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--muted-gold);
    font-weight: bold;
}

/* Awards Timeline - Horizontal Layout */
.awards-timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.award-year-group {
    margin-bottom: 0;
}

.award-year-header {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--muted-gold);
    display: inline-block;
    min-width: 100px;
}

.award-year-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-left: 0;
}

.award-item {
    padding: 20px;
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 280px;
}

.award-item:hover {
    border-color: var(--muted-gold);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.15);
    transform: translateY(-4px);
}

.award-image {
    width: 100%;
    max-width: 160px;
    height: 160px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    padding: 10px;
    border-radius: 4px;
}

.award-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.award-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 8px;
    line-height: 1.4;
}

.award-issuer {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: auto;
}

/* Skills Section */
.skills-intro {
    font-size: 1.05rem;
    margin-bottom: 30px;
    font-style: italic;
    color: var(--text-gray);
}

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

.skill-category {
    padding: 25px;
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--muted-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.skill-category h3 {
    font-size: 1.15rem;
    color: var(--primary-black);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--muted-gold);
    font-weight: 600;
}

.skill-category p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-top: 10px;
}

/* Footer */
footer {
    background-color: var(--charcoal);
    color: var(--white);
    text-align: center;
    padding: 25px;
    font-size: 0.9rem;
    margin-top: 0;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .main-content {
        padding: 50px 60px;
    }
    
    .award-year-items {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 1200px) {
    .resume-container {
        grid-template-columns: 320px 1fr;
    }
    
    .sidebar-content {
        padding: 50px 30px;
    }
    
    .main-content {
        padding: 50px 50px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 968px) {
    .resume-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: relative;
        height: auto;
        min-height: auto;
    }
    
    .sidebar-content {
        padding: 40px 30px;
    }
    
    .profile-image {
        width: 160px;
        height: 160px;
    }
    
    .identity h1 {
        font-size: 1.75rem;
    }
    
    .main-content {
        padding: 40px 30px;
    }
    
    .content-section h2 {
        font-size: 1.75rem;
    }
    
    .experience-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .experience-header .period {
        margin-left: 0;
    }
    
    .award-year-items {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    
    .award-item {
        min-height: 260px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .sidebar-content {
        padding: 30px 20px;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .content-section {
        margin-bottom: 40px;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .profile-image {
        width: 140px;
        height: 140px;
    }
    
    .identity h1 {
        font-size: 1.5rem;
    }
    
    .experience-item {
        padding: 20px;
    }
    
    .experience-header h3 {
        font-size: 1.2rem;
    }
    
    .award-year-items {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .award-item {
        padding: 15px;
        min-height: 240px;
    }
    
    .award-image {
        max-width: 120px;
        height: 120px;
    }
    
    .award-year-header {
        font-size: 1.25rem;
    }
}

/* Scrollbar Styling for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--muted-gold);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--gold-accent);
}

/* Print Styles */
@media print {
    .resume-container {
        grid-template-columns: 320px 1fr;
    }
    
    .sidebar {
        position: relative;
        height: auto;
    }
    
    .main-content {
        padding: 30px 40px;
    }
    
    .award-year-items {
        grid-template-columns: repeat(4, 1fr);
    }
}
