﻿<style >
/* ZacNotes font */
@font-face {
    font-family: 'ZacNotes';
    src: url('fonts/zacnotes-webfont.eot');
    src: url('fonts/zacnotes-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/zacnotes-webfont.woff') format('woff'), url('fonts/zacnotes-webfont.ttf') format('truetype'), url('fonts/zacnotes-webfont.svg#ZacNotesRegular') format('svg');
}

/* THEME VARIABLES — DARK MODE */
:root {
    color-scheme: dark;
    --background: #2F2F2F;
    --text: #FFFFFF;
    --heading-hover: turquoise;
    --link: #FF5555;
    --input-background: #414141;
    --input-text: #FFFFFF;
    --input-placeholder: #BBBBBB;
    --button-background: #FFFFFF;
    --button-text: #008F8F;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* THEME VARIABLES — LIGHT MODE */
html[data-theme="light"] {
    color-scheme: light;
    --background: #F7F7F5;
    --text: #292929;
    --heading-hover: #008C8C;
    --link: #C62828;
    --input-background: #FFFFFF;
    --input-text: #292929;
    --input-placeholder: #777777;
    --button-background: #292929;
    --button-text: #FFFFFF;
    --card-shadow: rgba(0, 0, 0, 0.15);
}

/* GLOBAL STYLES */
html {
    background-color: var(--background);
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    background-color: var(--background);
    color: var(--text);
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    transition: var(--transition);
}

body {
    min-height: 100vh;
}

#container {
    width: 100%;
    margin: auto;
    max-width: 1000px;
    padding: 2rem;
    box-sizing: border-box;
}

h1, h2 {
    font-weight: 700;
    text-align: center;
    font-size: 4rem;
    line-height: 4.5rem;
    letter-spacing: 1px;
    margin: 2rem 0 1rem 0;
    padding-top: 38px;
    font-family: "ZacNotes", "Trebuchet MS", Helvetica, Arial;
    text-decoration: none;
    transition: color 0.2s;
}

h2 {
    font-size: 2rem;
    line-height: 2.3rem;
    text-align: left;
    cursor: pointer;
    user-select: none;
}

    h2:hover {
        color: var(--heading-hover);
    }

img {
    margin: auto;
    width: 100%;
    max-width: 1359px;
    height: auto;
    box-shadow: 0 0 0.5rem 0.5rem var(--card-shadow);
    display: block;
}

#hero {
    max-width: 1359px;
    margin: auto;
    margin-top: 160px !important;
}

/* TOP-RIGHT MENU */
#menu {
    position: absolute;
    top: 12px;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 10000;
}

    #menu .language {
        font-size: 16px;
        line-height: 1.2;
        margin: 0;
        padding: 0;
        white-space: nowrap;
        font-family: 'Nunito', sans-serif;
    }

a {
    color: var(--link);
    transition: color 0.25s ease;
}

/* LIGHT / DARK TOGGLE */
#themeToggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--text);
    border-radius: 24px;
    background: transparent;
    color: var(--text);
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

    #themeToggle:hover {
        background: var(--text);
        color: var(--background);
        opacity: 1;
    }

    #themeToggle:focus-visible {
        outline: 3px solid var(--heading-hover);
        outline-offset: 3px;
    }

/* CONTACT FORM */
form {
    max-width: 600px;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: 'Nunito', sans-serif;
    background: var(--input-background);
    color: var(--input-text);
    transition: var(--transition);
}

    input::placeholder,
    textarea::placeholder {
        color: var(--input-placeholder);
    }

    input:focus,
    textarea:focus {
        outline: 2px solid var(--heading-hover);
        outline-offset: 1px;
    }

button {
    padding: 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    background: var(--button-background);
    color: var(--button-text);
    font-weight: bold;
    cursor: pointer;
}

    button:hover {
        opacity: 0.9;
    }

#contactForm button {
    color: var(--link);
}

    #contactForm button:hover {
        color: #FFFFFF;
        background-color: var(--link);
    }

/* COLLAPSIBLE SECTIONS */
.dropdown {
    display: inline-block;
    width: 1.3em;
    transition: transform 0.25s ease;
}

    .dropdown.open {
        transform: rotate(90deg);
    }

.collapsible {
    padding-left: 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

p, li {
    line-height: 1.6;
}

/* BUSINESS CARD */
#bcard {
    width: 400px !important;
    z-index: 9999;
    transform: rotate(-10deg);
    position: fixed;
    top: 44px;
    left: 24px;
}

/* MOBILE */
@media (max-width: 700px) {
    #container {
        width: 100%;
        margin: auto;
        max-width: 1000px;
        padding: 0.2rem;
        box-sizing: border-box;
    }

    #hero {
        margin-top: 80px !important;
    }

    h1, h2 {
        font-size: 1rem;
        line-height: 1.5rem;
        padding-top: 18px;
        margin: 0.5rem 0 0.2rem 0;
    }

    h2 {
        font-size: 0.8rem;
        line-height: 1.2rem;
    }

    #menu {
        top: 5px;
        right: 5%;
        gap: 8px;
    }

        #menu .language {
            font-size: 0.8rem;
        }

    #themeToggle {
        font-size: 12px;
        padding: 5px 8px;
        gap: 4px;
    }

    #bcard {
        width: 150px !important;
        top: 22px;
        left: 24px;
    }

    p, li {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    ul {
        margin-block-start: 4px;
        padding-inline-start: 20px;
    }

    .collapsible {
        padding-left: 0;
        padding-inline-start: 10px !important;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}


/* RECENT PROJECT SCREENSHOTS */

.project-frame {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    position: relative;
    border: 1px solid #888;
    border-radius: 6px;
}

    .project-frame img {
        display: block;
        width: 100%;
        height: auto;
        max-width: none;
        position: absolute;
        top: 0;
        left: 0;
    }

    /* Keep the screenshot still until activated */
    .project-frame img {
        transform: translateY(0);
    }

@media (hover: none) {
    .collapsible {
        scroll-snap-type: y proximity;
    }

    .recent-project {
        scroll-snap-align: start;
        scroll-snap-stop: normal;
    }
}
</style >
