html {
    scroll-behavior: smooth;
}

body {
    font-family: fantasque-sans-mono, monospace;
    margin: 20px;
    padding-top: 25px;
    
}

p {
    font-size: 1.2em;
    color: #666;
    text-align: left;
    margin: 20px;
}

h1 {
    color: #333;
    text-align: left;
    margin: 20px;
}

.mugshot {
    margin: 20px;
    border: #fff 3px solid;
}

.navbar {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-height: 60px;
    text-align: center;
}

/* Social icon buttons used in the navbar */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    margin-left: 6px;
    transition: background .12s ease, border-color .12s ease, transform .06s ease;
    color: inherit;
    text-decoration: none;
}
.icon-btn img {
    width: 18px;
    height: 18px;
    display: block;
}
.icon-btn:hover {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.06);
    transform: translateY(-1px);
}
.icon-btn:active { transform: translateY(0); }

.nav-logo {
    /* removed margin-right:auto so it doesn't push other nav items */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 1rem;
    flex: 0 0 auto; /* ensure it doesn't grow or shift other items */
}

.nav-logo img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

/* Visual container style shared by home, about-me, and contact sections */
.home, .about-me, .contact-form, .skills {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
    /* center horizontally while keeping a top and bottom margin */
    margin: 90px auto 20px;
    border-radius: 6px;
    max-width: 920px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    
}

.projects-inner {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
    margin: 90px auto 20px;
    border-radius: 6px;
    max-width: 920px;
    box-shadow: 0 1px 4px 
    rgba(0,0,0,0.03);
}
.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin: 12px 20px;
}
.image-projects {
    display: block;
    margin: 12px auto;
    max-width: 100%;
    height: auto;
}
.image-item {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.about-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.about-text { flex: 1; }

/* Project card: center the image and heading */
.card-project {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin: 12px 0;
}

/* Skills logos row */
.skills-inner ul {
    list-style: none;
    padding-left: 0;
    margin: 8px 0 0 0;
}
.skills-inner li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.06);
}
.skills-inner li:last-child { border-bottom: none; }
.skill-icons { display: flex; gap: 10px; align-items: center; }
.skill-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: inline-block;
    filter: brightness(0) saturate(100%);
    transition: transform .12s ease, opacity .12s ease;
    opacity: 0.95;
}
.skill-logo:hover { transform: translateY(-3px); opacity: 1; }

input::placeholder {
    opacity: 0.5;
}

@media (max-width: 720px) {
    .about-inner { flex-direction: column; align-items: center; text-align: center; }
    .image-item.small, .image-item.medium, .image-item.large { width: 100%; height: auto; max-width: 420px; }
    .contact-form, .home, .about-me { margin: 110px 12px 20px; }
}



