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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
.header {
    padding: 80px 0 60px;
    border-bottom: 1px solid #e5e7eb;
}

.header-content {
    display: flex;
    justify-content: center;
}

.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    max-width: 800px;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
  width: 200px;          /* default for desktops */
  height: 200px;
  border-radius: 9999px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Larger size on small screens (mobile-first tweak) */
@media (max-width: 768px) {
  .profile-image img {
    width: 300px;
    height: 300px;
  }
}

.profile-image img:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.name {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 12px;
    line-height: 1.2;
}

.title {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #5a6c7d;
    margin-bottom: 32px;
    line-height: 1.3;
}

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

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3498db;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
}

.contact-link:hover {
    color: #2980b9;
    transform: translateX(2px);
}

.contact-link svg {
    flex-shrink: 0;
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

.section {
    margin-bottom: 56px;
}

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

.section-content {
    max-width: 800px;
    margin: 0 auto;
}

.executive-summary {
    font-size: 20px;
    line-height: 1.7;
    color: #2c3e50;
    font-weight: 400;
    margin-bottom: 0;
    text-align: justify;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 24px;
    line-height: 1.3;
}

.section p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

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

.section strong {
    font-weight: 600;
    color: #2c3e50;
}

/* Certifications List */
.certifications-list {
    list-style: none;
    padding: 0;
}

.certifications-list li {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.certifications-list li::before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 20px;
}

.certifications-list li:last-child {
    margin-bottom: 0;
}

/* Competencies Section */
.competencies-section {
    background-color: #fafafa;
    padding: 48px 32px;
    border-radius: 12px;
    margin-top: 40px;
}

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

.competency-category {
    background-color: #ffffff;
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.competency-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.competency-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 16px;
    line-height: 1.3;
}

.competency-items {
    font-size: 16px;
    line-height: 1.6;
    color: #5a6c7d;
    margin: 0;
}

/* Footer */
.footer {
    border-top: 1px solid #e5e7eb;
    padding: 48px 0;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer-text {
    font-size: 17px;
    color: #5a6c7d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #2980b9;
}

.separator {
    color: #5a6c7d;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header {
        padding: 60px 0 40px;
    }
    
    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 32px;
    }
    
    .profile-image img {
        width: 150px;
        height: 150px;
    }
    
    .name {
        font-size: 42px;
    }
    
    .title {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .executive-summary {
        font-size: 18px;
        text-align: left;
    }
    
    .section p {
        font-size: 16px;
        text-align: left;
    }
    
    .competencies-section {
        padding: 32px 24px;
        margin-top: 32px;
    }
    
    .competencies-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .competency-category {
        padding: 24px;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 8px;
    }
    
    .separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .name {
        font-size: 36px;
    }
    
    .title {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .executive-summary {
        font-size: 17px;
    }
    
    .section p {
        font-size: 15px;
    }
    
    .competencies-section {
        padding: 24px 20px;
    }
    
    .competency-category {
        padding: 20px;
    }
    
    .competency-title {
        font-size: 18px;
    }
    
    .competency-items {
        font-size: 15px;
    }
}

/* Print Styles */
@media print {
    body {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .header {
        padding: 20px 0;
    }
    
    .profile-image img {
        width: 120px;
        height: 120px;
    }
    
    .name {
        font-size: 28px;
    }
    
    .title {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 18px;
        page-break-after: avoid;
    }
    
    .section {
        margin-bottom: 20px;
        page-break-inside: avoid;
    }
    
    .competencies-section {
        background-color: #f8f9fa !important;
        padding: 20px;
    }
    
    .competency-category {
        background-color: transparent !important;
        box-shadow: none !important;
        border: 1px solid #e5e7eb;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .footer {
        margin-top: 30px;
        padding: 20px 0;
    }
    
    a {
        color: #333333 !important;
        text-decoration: underline;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .name {
        color: #000000;
    }
    
    .section-title {
        color: #000000;
    }
    
    .competency-title {
        color: #000000;
    }
    
    .contact-link,
    .footer-link {
        color: #0066cc;
    }
    
    .competency-category {
        border: 2px solid #000000;
    }
}