/* Portfolio CSS - Mountain/Outdoors Theme */

:root {
    /* Mountain-inspired colour palette */
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;

    /* Accent colours - inspired by alpine lakes and forest */
    --accent-primary: #0891b2;    /* Cyan - mountain lake */
    --accent-secondary: #059669;  /* Emerald - forest */
    --accent-warm: #d97706;       /* Amber - sunrise */

    /* Semantic colours */
    --text-primary: var(--slate-900);
    --text-secondary: var(--slate-600);
    --text-muted: var(--slate-500);
    --bg-primary: var(--slate-50);
    --bg-card: #ffffff;
    --border-color: var(--slate-200);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 3rem;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* Hero Section with Mountain Background */
.hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    /* Pexels mountain image - free to use */
    background-image: url('https://images.pexels.com/photos/1054218/pexels-photo-1054218.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center 70%;
    background-attachment: fixed;
    transition: background-image 0.5s ease-in-out;
}

/* Different mountain backgrounds per tab */
.hero[data-tab="summary"] {
    background-image: url('https://images.pexels.com/photos/346529/pexels-photo-346529.jpeg?auto=compress&cs=tinysrgb&w=1920');
}
.hero[data-tab="achievements"] {
    background-image: url('https://images.pexels.com/photos/417074/pexels-photo-417074.jpeg?auto=compress&cs=tinysrgb&w=1920');
}
.hero[data-tab="experience"] {
    background-image: url('https://images.pexels.com/photos/206359/pexels-photo-206359.jpeg');
}
.hero[data-tab="projects"] {
    background-image: url('https://images.pexels.com/photos/2403402/pexels-photo-2403402.jpeg');
}
.hero[data-tab="skills"] {
    background-image: url('https://images.pexels.com/photos/236959/pexels-photo-236959.jpeg');
}
.hero[data-tab="education"] {
    background-image: url('https://images.pexels.com/photos/2387873/pexels-photo-2387873.jpeg?auto=compress&cs=tinysrgb&w=1920');
}
.hero[data-tab="certifications"] {
    background-image: url('https://images.pexels.com/photos/572897/pexels-photo-572897.jpeg');
}
.hero[data-tab="publications"] {
    background-image: url('https://images.pexels.com/photos/2662116/pexels-photo-2662116.jpeg?auto=compress&cs=tinysrgb&w=1920');
}
.hero[data-tab="more"] {
    background-image: url('https://images.pexels.com/photos/691668/pexels-photo-691668.jpeg?auto=compress&cs=tinysrgb&w=1920');
}
.hero[data-tab="about"] {
    background-image: url('https://images.pexels.com/photos/2113566/pexels-photo-2113566.jpeg?auto=compress&cs=tinysrgb&w=1920');
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.7) 0%,
        rgba(15, 23, 42, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 800px;
}

.profile-container {
    margin-bottom: 1.5rem;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.hero .credentials {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.hero .tagline {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.hero .location {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    text-decoration: none;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.contact-btn-primary {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.contact-btn-primary:hover {
    background: #0e7490;
    border-color: #0e7490;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 1rem 2rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    justify-content: center;
}

.tab-navigation button {
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.tab-navigation button:hover {
    color: var(--text-primary);
    background: var(--slate-100);
}

.tab-navigation button[aria-selected="true"] {
    color: var(--accent-primary);
    background: rgba(8, 145, 178, 0.1);
}

.tab-navigation button:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Tab Content */
.tab-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--section-padding) 2rem;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-panel h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent-primary);
    display: inline-block;
}

/* Summary Section */
.summary-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.achievement-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.achievement-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.achievement-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.achievement-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Experience Items */
.experience-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-header {
    margin-bottom: 1rem;
}

.experience-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.experience-header .company {
    display: block;
    font-size: 1rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.experience-header .period {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.experience-item ul {
    list-style: none;
    padding-left: 0;
}

.experience-item li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.experience-item li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
    font-weight: bold;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.project-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-card h3 a {
    color: var(--text-primary);
}

.project-card h3 a:hover {
    color: var(--accent-primary);
}

.project-tech {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-secondary);
    background: rgba(5, 150, 105, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.skill-category h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.skill-category p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Education Items */
.education-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.education-item:last-child {
    border-bottom: none;
}

.education-header {
    margin-bottom: 1rem;
}

.education-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.education-header .institution {
    display: block;
    font-size: 1rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.education-header .period {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.education-item .thesis {
    font-style: italic;
    margin-bottom: 0.75rem;
}

.education-item ul {
    list-style: none;
    padding-left: 0;
}

.education-item li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.education-item li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
}

/* Certifications Grid */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.certification-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-primary);
}

.certification-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.certification-card h3 a {
    color: var(--text-primary);
}

.certification-card h3 a:hover {
    color: var(--accent-primary);
}

.cert-date {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-warm);
    margin-bottom: 0.5rem;
}

.certification-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Publications List */
.publications-list {
    list-style: none;
    padding: 0;
}

.publications-list li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.publications-list li:last-child {
    border-bottom: none;
}

.publications-list a {
    font-size: 1rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.publication-journal {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Personal/About Me Section */
.about-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 2rem;
}

.personal-intro {
    margin: 0;
}

.personal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.personal-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.personal-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-primary);
}

.personal-card > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.personal-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.personal-images img {
    width: 300px;
    height: 225px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.personal-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Athletic Section */
.section-divider {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.athletic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.athletic-category {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.athletic-category h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-warm);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.athletic-category ul {
    list-style: none;
    padding: 0;
}

.athletic-category li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
}

.athletic-category li::before {
    content: "🏆";
    position: absolute;
    left: 0;
    font-size: 0.75rem;
}

/* Footer */
.site-footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.site-footer a {
    color: var(--accent-primary);
    margin-left: 1rem;
}

.site-footer a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .contact-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .tab-navigation {
        padding: 0.75rem 1rem;
        gap: 0.25rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .tab-navigation button {
        flex-shrink: 0;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .tab-content {
        padding: 2rem 1rem;
    }

    .tab-panel h2 {
        font-size: 1.5rem;
    }

    .achievements-grid,
    .projects-grid,
    .skills-grid,
    .certifications-grid,
    .athletic-grid,
    .personal-grid {
        grid-template-columns: 1fr;
    }

    .personal-grid {
        grid-template-columns: 1fr;
    }

    .personal-images img {
        width: 225px;
        height: 168px;
    }

    .experience-header h3,
    .education-header h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero .credentials {
        font-size: 0.95rem;
    }

    .tab-navigation button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .achievement-value {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .hero {
        background: var(--slate-800);
        min-height: auto;
        padding: 2rem;
    }

    .tab-navigation {
        display: none;
    }

    .tab-panel {
        display: block !important;
        page-break-inside: avoid;
    }

    .site-footer {
        display: none;
    }
}
