/* Portfolio Website Stylesheet
    
    Author: Tasha Van Dayne

    Description: This stylesheet defines the visual presentation and layout of the portfolio website, 
    including typography, colors, spacing, and responsive design for various screen sizes.
    It ensures a consistent and visually appealing user experience across different devices and browsers.

*/

/* Global page layout */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 40px;
    background-color: #e5e7eb;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
}

main {
    max-width: 1200px;
    margin: 0 auto;
}


/* Main cards */

.card {
    margin-bottom: 20px;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


/* Introduction */

header.card {
    padding: 40px 25px;
}

h1 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #003366;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
}

header h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.5rem;
    text-align: center;
}

header h3 {
    margin-top: 0;
    margin-bottom: 0;
    color: #4b5563;
    font-size: 1.1rem;
    font-weight: normal;
    text-align: center;
}


/* Navigation */

.navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.navigation a {
    padding: 8px 14px;
    color: #003366;
    background-color: #f8fafc;
    border: 1px solid #c7d8eb;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.navigation a:hover {
    color: #ffffff;
    background-color: #003366;
    transform: translateY(-2px);
}

.navigation a:focus-visible {
    outline: 3px solid #0056b3;
    outline-offset: 3px;
}


/* General headings */

h4 {
    margin-top: 0;
    margin-bottom: 24px;
    padding: 16px;
    color: #003366;
    background-color: #ffffff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}

h5 {
    margin-top: 0;
}


/* Paragraphs and lists */

p {
    line-height: 1.5;
}

li {
    margin-bottom: 6px;
    line-height: 1.5;
}


/* General links */

a {
    display: inline-block;
    color: #0056b3;
    font-weight: 500;
    text-decoration: none;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

a:hover {
    color: #003366;
}

a:focus-visible {
    outline: 3px solid #0056b3;
    outline-offset: 3px;
}


/* Resume button */

.resume-button {
    display: block;
    width: fit-content;
    margin: 24px auto 0;
    padding: 12px 20px;
    color: #ffffff;
    background-color: #003366;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.resume-button:hover {
    color: #ffffff;
    background-color: #0056b3;
    transform: translateY(-2px);
}


/* Featured projects section */

.projects-section {
    padding: 2.5rem;
}

.section-heading {
    margin-bottom: 2rem;
}

.section-label {
    margin: 0 0 0.35rem;
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
}

.section-heading h4 {
    margin: 0;
    padding: 0;
    color: #003366;
    background-color: transparent;
    box-shadow: none;
    font-size: 2rem;
    text-align: left;
}

.section-introduction {
    max-width: 780px;
    margin: 0.75rem 0 0;
    color: #4b5563;
    line-height: 1.7;
}

.projects-grid {
    display: grid;
    gap: 2rem;
}


/* Individual project cards */

.project-card {
    padding: 2rem;
    background-color: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.featured-project {
    border-top: 5px solid #2563eb;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.project-type {
    margin: 0 0 0.4rem;
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.project-card h5 {
    margin: 0;
    color: #0f172a;
    font-size: 1.5rem;
}

.project-status {
    padding: 0.35rem 0.75rem;
    color: #166534;
    background-color: #dcfce7;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.development-status {
    color: #92400e;
    background-color: #fef3c7;
}

.project-summary {
    max-width: 850px;
    margin: 1rem 0 1.5rem;
    color: #374151;
    font-size: 1.05rem;
    line-height: 1.7;
}


/* Project detail boxes */

.project-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.project-detail {
    padding: 1.25rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.project-detail h6 {
    margin: 0 0 0.5rem;
    color: #1d4ed8;
    font-size: 0.8rem;
    letter-spacing: 0.07rem;
    text-transform: uppercase;
}

.project-detail p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
}


/* Technology tags */

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.5rem;
}

.project-technologies span {
    padding: 0.4rem 0.75rem;
    color: #1e3a5f;
    background-color: #e8eef8;
    border: 1px solid #d5e0ee;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}


/* Project links and buttons */

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.project-button {
    display: inline-block;
    padding: 0.7rem 1.1rem;
    border: 2px solid #1d4ed8;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.project-button:hover {
    transform: translateY(-2px);
}

.primary-button {
    color: #ffffff;
    background-color: #1d4ed8;
}

.primary-button:hover {
    color: #ffffff;
    background-color: #1e40af;
}

.secondary-button {
    color: #1d4ed8;
    background-color: transparent;
}

.secondary-button:hover {
    color: #1d4ed8;
    background-color: #eff6ff;
}


/* Technical skills */

.skills-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.skill-category h5 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #003366;
    font-size: 1.05rem;
}

.skill-category ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.skill-category li {
    margin-bottom: 8px;
    color: #1f2937;
}


/* Professional experience */

.experience-item {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d1d5db;
}

.experience-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.experience-item h5 {
    margin-bottom: 4px;
    color: #003366;
    font-size: 1.1rem;
}

.experience-details {
    margin-top: 0;
    margin-bottom: 10px;
    color: #4b5563;
    font-weight: 600;
}


/* Certifications */

.certification-item {
    margin-bottom: 20px;
}

.certification-item:last-child {
    margin-bottom: 0;
}

.certification-item h5 {
    margin-bottom: 4px;
    color: #003366;
    font-size: 1.05rem;
}

.certification-item p {
    margin-top: 0;
    margin-bottom: 0;
}

.certificate-list {
    list-style: none;
    padding-left: 0;
}

.certificate-list li {
    margin-bottom: 10px;
}

.certificate-list li::before {
    content: "🏆";
    margin-right: 10px;
}


/* Contact */

.contact-list {
    margin-bottom: 0;
}


/* Serverless Visitor counter */

.visitor-counter {
    text-align: center;
}

.visitor-counter p {
    margin-bottom: 0;
    font-size: 1.1rem;
}

#visitor-count {
    color: #003366;
    font-size: 1.3rem;
    font-weight: 700;
}


/* Site Footer */

footer {
    padding: 10px 0 20px;
    color: #4b5563;
    font-size: 0.9rem;
    text-align: center;
}

footer p {
    margin: 0;
}

.back-to-top {
    margin-top: 10px;
}


/* Tablet layout */

@media (max-width: 900px) {
    .skills-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Mobile layout */

@media (max-width: 768px) {
    body {
        padding: 20px;
    }

    h1 {
        font-size: 2.2rem;
    }
}


/* Project mobile layout */

@media (max-width: 700px) {
    .projects-section {
        padding: 1.25rem;
    }

    .project-card {
        padding: 1.25rem;
    }

    .project-details {
        grid-template-columns: 1fr;
    }

    .project-card-header {
        flex-direction: column;
    }

    .project-button {
        width: 100%;
        text-align: center;
    }
}


/* Small mobile layout */

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .card {
        padding: 20px;
    }

    header.card {
        padding: 30px 20px;
    }

    h1 {
        font-size: 1.9rem;
    }

    header h2 {
        font-size: 1.25rem;
    }

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

    .resume-button {
        width: 100%;
        text-align: center;
    }

    .section-heading h4 {
        font-size: 1.7rem;
    }

    .project-card h5 {
        font-size: 1.3rem;
    }
}