/* Basic reset */
* { box-sizing: border-box; }
html 
{
    scroll-behavior: smooth;
    min-height: 100%;
    margin: 0;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: #000000 transparent;
    overflow-x: hidden;
}

body 
{
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #151716;
}

/* Sticky header */
.site-header 
{
    position: sticky !important;
    top: 0;
    left: 0;
    right: 0;
    background: #000000;
    color: aliceblue;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    height: 64px; /* reference height used for main padding */
}

.site-headerText
{
    display: inline-block;
    transform-origin: center;
    font-size: 32px;
    color: #ffffff;
    transition: transform 200ms ease, color 150ms ease;
    will-change: transform;
    text-decoration: none;
}

.site-headerText:hover, .site-headerText:focus
{
    color: red;
    outline: none;
    transform: scale(1.05);
}

/* Keep page content visible below the fixed header */
main 
{
    padding: 0px;
    color: #ffffff;
}

/* Navigation styles */
nav ul 
{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
}

nav a 
{
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 200ms ease, color 150ms ease;
    will-change: transform;
}

.navigationheader:hover, .navigationheader:focus
{
    transform: scale(1.3);
    color: red;
    outline: none;
}

.currentpage
{
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: red;
    font-weight: 600;
    display: inline-block;
    transition: transform 200ms ease, color 150ms ease;
    will-change: transform;
}

.currentpage:hover, .currentpage:focus
{
    transform: scale(1.3);
    color: red;
    outline: none;
}

/* Homepage background image section */
.homepage-bgimage-bleed
{
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    background-image: url("images/homepagebackground.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 80px 20px;
    border-bottom: #ffffff 1px solid;
}

.homepage-bgimage-bleed .inner
{
    max-width: 1200px;
    margin: 0 auto;
}

.homepage-bgimage-bleed > .inner
{
    position: relative;
    z-index: 1;
}

.homepage-about-button
{
    display: inline-block;
    margin-top: 20px;
    margin-right: 20px;
    padding: 12px 24px;
    font-size: 18px;
    background-color: black;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 200ms ease, background-color 200ms ease;
    will-change: transform, background-color;
    text-decoration: none;
}
.homepage-about-button:hover, .homepage-about-button:focus
{
    background-color: #151716;
    outline: none;
    transform: scale(1.1);
}

.homepageheader
{
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;
}

.homepageparagraph
{
    text-align: center;
    font-size: 20px;
    margin-bottom: 60px;
}

.homepageprojectslink
{
    color: white;
    text-decoration: underline;
    transition: color 150ms ease;
    will-change: color;
}

.homepageprojectslink:hover, .homepageprojectslink:focus
{
    color: red;
    outline: none;
}

/* Responsive: stack header on narrow screens */
@media (max-width: 600px) 
{
    .site-header 
    {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 12px;
    }
    main 
    {
        padding-top: calc(12px + 20px + 40px); /* extra space to account for header height variation */
    }
}

/* page load transitions */
:root
{
    --page-trans-ms: 600ms;
    --page-trans-ease: ease;
}

/* Initial state: hide body content */
html.is-rendering body
{
    opacity: 0;
}

/* smooth transition to visible state for body */
body
{
    transition: opacity var(--page-trans-ms) var(--page-trans-ease),
                transform var(--page-trans-ms) var(--page-trans-ease);
    will-change: opacity, transform;
}

/* Final state: show body content */
html.is-rendered body
{
    opacity: 1;
    transform: none;
}

/* 404 Not Found page styles */
.not_found-message-header
{
    text-align: center;
    margin-top: 100px;
    font-size: 60px;
}

.not_found-message
{
    text-align: center;
    margin-top: 20px;
    font-size: 20px;
}

.not_found-home-button
{
    display: block;
    margin: 40px auto;
    padding: 12px 24px;
    font-size: 18px;
    background-color: red;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 200ms ease, background-color 200ms ease;
    will-change: transform, background-color;
}

.not_found-home-button:hover, .not_found-home-button:focus
{
    background-color: darkred;
    outline: none;
    transform: scale(1.1);
}

/* Contact form styles */
form 
{
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 2px solid rgba(255,255,255,0.06);
}

button[type="submit"] 
{
    background-color: red;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 200ms ease, transform 200ms ease;
    will-change: background-color, transform;
}

button[type="submit"]:hover, button[type="submit"]:focus 
{
    background-color: darkred;
    outline: none;
    transform: scale(1.05);
}

.contactheader
{
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
}

input[id="name"], input[id ="email"], textarea[id="message"]
{
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}

/* About Me styles */
.me-image
{
    position: relative;
    display: block;
    margin: 20px auto;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    float: right;
    border: #000000 8px solid;
}

@media (max-width: 300px) 
{
    .me-image
    {
        float: none;
        display: block;
        margin: 20px auto;
    }
}

.aboutmeheader
{
    font-size: 50px;
    margin-top: 20px;
    margin-left: 20px;
}

.aboutmeparagraph
{
    font-size: 20px;
    line-height: 1.6;
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 675px;
    margin-bottom: 20px;
}

.aboutline
{
    margin-top: -20px;
    margin-left: 20px;
}

.aboutreachoutlink
{
    color: white;
    text-decoration: underline;
    transition: color 150ms ease;
    will-change: color;
}

.aboutreachoutlink:hover, .aboutreachoutlink:focus
{
    color: red;
    outline: none;
}

.aboutmeskillslist
{
    margin-top: 20px;
    font-size: 20px;
    line-height: 1.6;
    gap: 8px;
    margin-bottom: 40px;
}

.cvbutton
{
    /* display: inline-block; */
    margin-top: 20px;
    margin-left: 20px;
    padding: 12px 24px;
    font-size: 18px;
    background-color: black;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 200ms ease, background-color 200ms ease;
    will-change: transform, background-color;
    text-decoration: none;
}

.cvbutton:hover, .cvbutton:focus
{
    background-color: #151716;
    outline: none;
    transform: scale(1.1);
}

.aboutmeiconsfirst
{
    width: 50px;
    height: 50px;
    object-fit: contain;
    vertical-align: middle;
    margin-top: 0;
    margin-left: 8px;
}

.aboutmeicons
{
    width: 50px;
    height: 50px;
    object-fit: contain;
    vertical-align: middle;
    margin-top: 0;
    margin-left: 20px;
}

.aboutmeroundicons
{
    width: 64px;
    height: 64px;
    object-fit: contain;
    vertical-align: middle;
    margin-top: 0;
    margin-left: 20px;
}

.aboutmeiconsfirst:hover, .aboutmeiconsfirst:focus,
.aboutmeicons:hover, .aboutmeicons:focus,
.aboutmeroundicons:hover, .aboutmeroundicons:focus
{
    transform: scale(1.2);
    transition: transform 200ms ease;
    will-change: transform;

}

.social-icons
{
    padding-left: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Tooltip styles */
.tooltip 
{
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltiptext 
{
    position: absolute;
    bottom: 125%;
    left: 65%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: rgba(0,0,0,0.9);
    color: #ffffff;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, visibility 160ms ease;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);

    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.tooltiptext::after 
{
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0,0,0,0.9) transparent transparent transparent;
}

.tooltip:hover .tooltiptext,
.tooltip:focus-within .tooltiptext
{
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 420px) 
{
    .tooltiptext { bottom: auto; top: 125%; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 24px); }
    .tooltiptext::after { top: -12px; border-color: transparent transparent rgba(0,0,0,0.9) transparent; }
}

/* Contact page styles */
.contactpageheader
{
    text-align: center;
    font-size: 50px;
    margin-bottom: 20px;
}

.contactpageparagraph
{
    text-align: center;
    font-size: 20px;
    margin-bottom: 40px;
}

.social-icons-contact
{
    padding-left: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Projects page styles */
.projectspageheader
{
    text-align: center;
    font-size: 50px;
    margin-bottom: 40px;
}

.projectspageparagraph
{
    text-align: center;
    font-size: 20px;
    margin-bottom: 60px;
}

.project-filters
{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -5px 0 32px 0;
    align-items: center;
    justify-content: center;
}

.project-tag
{
    color: #ffffff;
    background-color: transparent;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 15px;
    cursor: pointer;
    user-select: none;
    transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
    will-change: background-color, color, transform;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-tag:hover, .project-tag:focus
{
    background-color: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
    color: lightcoral;
}

.project-tag[aria-pressed="true"],
.project-tag:active
{
    background-color: red;
    color: #ffffff;
    border-color: red;
    transform: none;
}

@media (max-width: 520px) 
{
    .project-tag { padding: 6px 10px; font-size: 14px; }
}

.projects-grid
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 12px;
    box-sizing: border-box;
}

.project-card
{
    background-color: #000000;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.5);
    transition: transform 200ms ease, box-shadow 200ms ease;
    will-change: transform, box-shadow;
}

.project-card:hover, .project-card:focus-within
{
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

.project-link
{
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-card img
{
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #111111;
}

.card-caption
{
    padding: 12px;
    font-size: 16px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(255,255,255,0,0.02), transparent);
}

.project-card.hidden
{
    display: none !important;
}

@media (max-width: 960px) 
{
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card img { height: 160px; width: 100%; object-fit: cover; }
}
@media (max-width: 560px) 
{
  .projects-grid { grid-template-columns: 1fr; }
  .project-card img { height: 220px; width: 100%; object-fit: cover; }
}

/* Footer styles */
footer 
{
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: 12px 20px;
    border-top: 1px solid #e0e0e0;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    font-size: 16px;
}

.footer-text
{
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 0px;
}

.footer-link
{
    color: white;
    text-decoration: underline;
    transition: color 150ms ease;
    will-change: color;
}

.footer-link:hover, .footer-link:focus
{
    color: red;
    outline: none;
}

/* project download button */
.projectsdownloadbutton
{
    display: inline-block;
    max-width: 300px;
    margin: 20px auto;
    padding: 12px 24px;
    font-size: 18px;
    background-color: red;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 200ms ease, background-color 200ms ease;
    will-change: transform, background-color;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    display: flex;
}

.projectsdownloadbutton:hover, .projectsdownloadbutton:focus
{
    background-color: darkred;
    outline: none;
    transform: scale(1.1);
}

/* page image header */
.projectimageheader
{
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* hafoodworld page paragraph */
.hafoodworldparagraph
{
    font-size: 20px;
    margin-bottom: 40px;
    margin-left: 40px;
    margin-top: 40px;
}

.hafoodworldheader
{
    font-size: 50px;
    margin-top: 20px;
    margin-left: 40px;
}

.hafoodworldsubheader
{
    font-size: 32px;
    margin-top: 20px;
    margin-left: 40px;
    margin-bottom: 20px;
}

.hafoodworldlist
{
    /* margin-top: 20px; */
    font-size: 20px;
    line-height: 1.6;
    gap: 8px;
    margin-left: 60px;
    margin-bottom: 40px;
}

.foodworld-grid
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
    box-sizing: border-box;
}

.hafoodworldasset
{
    display: inline-block;
    max-width: 400px;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background-color: rgba(0, 0, 0, 0.5);
}

.hafoodworldimage
{
    position: relative;
    display: block;
    margin: 0 20px 20px 20px;
    max-width: 650px;
    height: auto;
    border-radius: 20px;
    float: right;
    border: #000000 4px solid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 800px) 
{
    .hafoodworldimage
    {
        float: none;
        display: block;
        margin: 20px auto;
    }
}

.hafoodworld-grid
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 12px;
    box-sizing: border-box;
}

.hafoodworld-card
{
    display: flex;
    flex-direction: column;
    background-color: #111111;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.5);
    transition: transform 200ms ease, box-shadow 200ms ease;
    will-change: transform, box-shadow;
    align-items: stretch;
    justify-content: flex-start;
}

.hafoodworld-card:hover, .hafoodworld-card:focus-within
{
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

.hafoodworld-link
{
    display: block;
    color: inherit;
    text-decoration: none;
}

.hafoodworld-card img
{
    display: block;
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    background-color: #111111;
    margin: 0 auto
}

.hafoodworld-card-caption
{
    padding: 12px;
    font-size: 16px;
    color: #ffffff;
    background-color: #000000;
}

.hafoodworld-card.hidden
{
    display: none !important;
}

@media (max-width: 960px) 
{
  .hafoodworld-grid { grid-template-columns: repeat(2, 1fr); }
  .hafoodworld-card img { height: 160px; }
}
@media (max-width: 560px) 
{
  .hafoodworld-grid { grid-template-columns: 1fr; }
  .hafoodworld-card img { height: 220px; }
}

.dannprojectimage
{
    position: relative;
    display: block;
    margin: 0 40px 20px 20px;
    max-height: 650px;
    height: auto;
    border-radius: 20px;
    float: right;
    border: #000000 4px solid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dannprojectimage2
{
    position: relative;
    display: block;
    margin: 0 20px 20px 40px;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    float: right;
    border: #000000 4px solid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 800px) 
{
    .dannprojectimage, .dannprojectimage2
    {
        float: none;
        display: block;
        margin: 20px auto;
    }
}