* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html{
    scroll-behavior: smooth;
    scroll-padding: 12.5rem 0 0 0; 
    scroll-padding-top: 12.5rem; 
    scroll-padding-block-start: 4rem;
}
body {
    font-family: system-ui, sans-serif;
    font-weight: normal;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}
a{
    color:#598ba0;
}
p{
    margin-bottom: 0.5rem;
}
header {
    position: relative;
    width: 100%;
    height: 100dvh;
    background: url('images/hilary-quinn-seo.jpg') no-repeat 100% 35%/cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    color: #fff;
    padding: 0 1em 4em 0;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
}
header h1 {
    font-size: 4.5em;
}
header h2 {
    color: #e0e5d9;
    font-size: 2.5em;
    margin-top: -0.5em;
    text-transform: uppercase;
}
nav {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    text-align: right;
    width: 100%;
    z-index: 1000;
}
.centernav{
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 4px 0 rgba(0,0,0,.2);
    border-radius: 5px;
    display:inline-block;
    margin: 1rem 1.4rem 0 0;
    padding: 1.4rem;
}
.nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.nav-links li {
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 1.2em;
    font-weight: normal;
    transition: color 0.3s ease-in-out;
}
.nav-links a:hover {
    color: #3b373d;
}
.hamburger {
    display: none;
    cursor: pointer;
    margin: 0;
    position: relative;
    color: black;
    z-index: 1;
    padding: 0.3rem; /* Adjust padding for spacing */
    align-items: center; /* Centers vertically */
    justify-content: center; /* Centers horizontally */
    text-align: center; /* Ensures text is centered */
    width: 50px; /* Optional: Define width to prevent stretching */
    height: 50px; /* Optional: Define height for a square button */
    border-radius: 8px; /* Optional: Adds rounded edges */
}
main {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem 1.4rem;
    padding: 1.4rem;
}
section {
    background: #ffffff;
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 0;
}
.col {
    padding: 1.4rem;
    text-align: left;
}
/* First row (two columns) */
.col:nth-child(1) { flex: 1 1 40%; } /* Narrow */
.col:nth-child(2) { flex: 2 1 55%; } /* Wide */

/* Second row (two columns, reversed widths) */
.col:nth-child(3) { flex: 2 1 65%; } /* Wide */
.col:nth-child(4) { flex: 1 1 30%; } /* Narrow */

/* Third row (full-width column) */
.col.full-width {
    flex: 1 1 100%;
}
h2 {
    text-align: left;
    margin-bottom: 1rem;
    font-size: 2em;
    font-weight: 500;
    color: #444;
}
.itemscroll {
    max-width: 100%;
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
}
.itemscroll li:first-child {
    margin-left: auto;
    padding: 1.4rem 1.4rem 1.4rem 0rem;
}

.itemscroll li:last-child {
    margin-right: auto;
}

.itemscroll li {
    scroll-snap-align: start;
    flex: 0 0 40%;
    padding: 1.4rem;
}
.itemscroll img {
    height: auto;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}
#testimonials ul.itemscroll li {
    white-space: normal;
}
.skills-container {
    max-width: 600px;
    margin: 30px 0;
    font-family: 'Arial', sans-serif;
    text-align: center;
}
.skills-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.skills-container table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.skills-container th,.skills-container td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.skills-container th {
    background: #f4f4f4;
    font-weight: bold;
}

/* Level Indicators */
.level {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 4px;
    border-radius: 50%;
}

.full {
    background-color: #4CAF50; /* Green */
}

.empty {
    background-color: #e0e0e0; /* Light Gray */
}

.code-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.code-box {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 250px;
    max-width: calc(33.3333% - 10px);
    background: #29252b;
    color: #f8f8f2;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;
    overflow-x: auto;
}

pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #454a5f;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.copy-btn:hover {
    background: #595f7a;
}
#codesnippets{
    background: #464049;
    border-radius: 0;
    color: #fff;
    padding: 1.4rem;
}
#codesnippets h3{
    max-width: 80%;
}
#codesnippets h2{
    color: #fff;
}
.top {
    position: fixed;
    bottom: 0.5rem;
    right: 1.4rem;
    padding: 0.8rem 0.6rem;
    background: black;
    color: white;
    text-decoration: none;
    font-size: 1rem.;
    border-radius: 5px;
    opacity: 0; /* Hidden by default */
    pointer-events: none; /* Prevents interaction when hidden */
    transition: opacity 0.3s ease-in-out;
}
.top.visible {
    opacity: 1; /* Show when scrolled */
    pointer-events: auto; /* Enable interaction */
}
footer {
    background: #3b373d;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
    box-shadow: 0px -5px 15px rgba(0, 0, 0, 0.1);
}
/* Responsive */
@media (max-width: 900px) {
    .code-box {
        max-width: calc(50% - 10px); /* 2 per row */
    }
}

@media (max-width: 768px) {
    header {
        position: relative;
        width: 100%;
        height: 100dvh;
        background: url('images/hilary-quinn-seo.jpg') no-repeat;
        background-attachment: fixed;
        background-size: 150%; /* Increase size to zoom out */
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        color: #fff;
        padding: 0 1em 4em 0;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
    }
    .hamburger {
        display: block;
    }
    .centernav{
        padding: 0.6rem;
    }
    .nav-links {
        position: absolute;
        top: 0;
        left: -80%;
        width: 80%;
        height: 100vh; /* Full height */
        background: white; /* White background */
        text-align: left; /* Align links to the left */
        padding-top: 2rem; /* Adjust for spacing */
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1); /* Soft shadow */
        transition: transform 0.4s ease-in-out; /* Smooth slide-in */
        transform: translateX(0);
        display: flex;
        flex-direction: column; /* Ensures vertical stacking */
        align-items: flex-start; /* Aligns links to the left */
        justify-content: flex-start; /* Starts links from the top */
    }
    .nav-links.active {
        transform: translateX(100%); /* Slide in from left */
    }

    .nav-links a {
        display: flex;
        padding: 15px 20px;
        font-size: 18px;
        color: #333; /* Dark text for contrast */
        text-decoration: none;
        transition: background 0.3s ease;
    }
    .nav-links a:hover {
        background: rgba(0, 0, 0, 0.05); /* Subtle hover effect */
    }
    header h1 {
        font-size: 3rem;
    }
    header h2 {
        font-size: 2rem;
    }
    .itemscroll li {
        flex: 0 0 70%;
        scroll-snap-align: center;
    }
    .code-box {
        max-width: 100%; /* 1 per row */
    }
}