/* ================ */
/* Mobile-First CSS */
/* ================ */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #2980b9;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --border-color: #eaeaea;
}

html {
    font-size: 14px;
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: relative;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.header-text {
    text-align: center;
}

/* PORTRAIT PHOTO STYLES (UPDATED) */
.header-photo {
    width: 120px;
    height: auto; /* Natural height */
    border-radius: 4px; /* Soft rectangle instead of circle */
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-photo {
    width: 100%;
    height: auto; /* No cropping */
    display: block;
}

.header-photo:hover {
    transform: scale(1.05);
    border-color: white;
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.site-header h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.site-history {
    font-size: 0.8rem;
    opacity: 0.8;
    font-style: italic;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    background-color: var(--primary-color);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
}

.main-nav ul.active {
    display: flex;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: block;
}

.main-nav a:hover,
.main-nav a:focus {
    background-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

/* Social badges */
.social-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

.social-badges img {
    max-height: 60px;
    width: auto;
    height: auto;
    transition: transform 0.3s;
}

.social-badges a:hover img,
.social-badges a:focus img {
    transform: scale(1.05);
}

.national-icons {
    display: flex;
    gap: 1rem;
}

/* Content sections */
section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    scroll-margin-top: 1rem;
}

h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin: 1.2rem 0 0.8rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Blockquote */
blockquote {
    font-size: 1.1rem;
    font-style: italic;
    margin: 1.5rem auto;
    padding: 1.2rem;
    background-color: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    max-width: 800px;
}

blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-style: normal;
    text-align: right;
    color: var(--secondary-color);
}

/* Lists */
ul {
    margin: 1rem 0 1rem 1.5rem;
}

ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.education-list li, .training-list li {
    margin-bottom: 0.7rem;
}

.training-list ul {
    margin-top: 0.5rem;
    list-style-type: none;
}

.training-list ul li::before {
    content: "◦";
}

/* Transition note */
.transition-note {
    text-align: center;
    font-style: italic;
    margin: 1.2rem 0;
    font-size: 1rem;
    color: #7f8c8d;
}

/* Contact section */
.contact-section {
    border-bottom: none;
    text-align: center;
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.contact-link:hover,
.contact-link:focus {
    text-decoration: underline;
    background-color: rgba(41, 128, 185, 0.1);
    outline: none;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 1.2rem 0;
    text-align: center;
    margin-top: auto;
}

/* ================== */
/* Tablet and Desktop */
/* ================== */
@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 1.5rem 0;
    }
    
    .header-text {
        text-align: left;
    }
    
    /* Portrait photo remains same aspect ratio */
    .header-photo {
        width: 120px;
        height: auto;
    }
    
    .social-badges {
        flex-direction: row;
        justify-content: space-between;
        margin: 2rem 0;
    }
    
    .national-icons {
        flex-direction: row;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    blockquote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .main-nav ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
        background: none;
        padding: 0;
        margin-top: 1.5rem;
    }
}

@media (min-width: 992px) {
    html {
        font-size: 16px;
    }
    
    .social-badges img {
        max-height: 80px;
    }
}

/* ============= */
/* Print Styles */
/* ============= */
@media print {
    body {
        font-size: 12pt;
        background: none;
        color: black;
    }
    
    .site-header, .site-footer {
        background: white !important;
        color: black !important;
    }
    
    .menu-toggle, .social-badges {
        display: none;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .header-photo {
        border-color: #ddd !important;
    }
}