:root {
    --white-smoke: #f1f1f1;
    --dark-charcoal: #313131;
    --blood-red: #8a0303;
    --highlight-red: #d80000;
}

@font-face {
    font-family: "_aeiou";
    src: url("../../aeiou.woff2") format("woff2");
}

@font-face {
    font-family: "Proclamate Light";
    src: url("../../proclamatelight.woff2") format("woff2");
}

@font-face {
    font-family: "And This Happened";
    src: url("../../andthishappened.woff2") format("woff2");
}

/* Use border-box globally to avoid padding/width overflow issues */
*, *::before, *::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: var(--white-smoke);
    color: var(--dark-charcoal);
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox, Safari 18.2+, Chromium 121+ */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

nav {
    font-family: "Proclamate Light", Arial, sans-serif;
    background-color: var(--white-smoke);
    color: var(--dark-charcoal);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

nav:hover {
    background-color: var(--dark-charcoal);
    color: var(--white-smoke);
    transition: background-color 0.3s ease, color 0.1s ease;
}

@keyframes headerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    margin-top: 80px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

header h1 {
    font-family: "_aeiou", Arial, sans-serif;
    color: var(--blood-red);
    margin: 20px 0;
    font-size: clamp(2.5rem, 12vw, 6rem);
    animation: headerFadeIn 1s ease-in-out forwards;
    text-decoration: underline;
}

.hover-underline-animation {
    display: inline-block;
    position: relative;
}

.hover-underline-animation::after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover::after {
    transform: scaleX(1);
}

.hover-underline-animation.left::after {
    transform-origin: bottom right;
}

.nav-link {
    display: inline-block;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-link a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}
.nav-link a:visited {
    color: inherit;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    opacity: 0;
    font-size: 1.2em;
    line-height: 1.6;
    animation: contentFadeIn 1s ease-in-out forwards;
    animation-delay: 1.5s;
}

.content p {
    font-family: "And This Happened", Arial, sans-serif;
    font-size: 1.2em;
    margin-bottom: 35px;
}

@keyframes contactFormFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-header-box {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 50px;
    padding: 20px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-header-box h1 {
    font-family: "_aeiou", Arial, sans-serif;
    color: var(--blood-red);
    margin: 20px 0;
    margin-top: 30px;
    font-size: clamp(2rem, 6vw, 4rem);
    animation: headerFadeIn 1s ease-in-out forwards;
}

.contact-header-box p {
    font-family: "And This Happened", Arial, sans-serif;
    font-size: 1.4em;
    margin-bottom: 10px;
}

/* Contact form styles */
.contact-form {
    opacity: 0;
    max-width: 760px;
    margin: 30px auto;
    background-color: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(49,49,49,0.07);
    border: 1px solid rgba(0,0,0,0.04);
    animation: contactFormFadeIn 1s ease-in-out forwards;
}

.contact-form * {
    box-sizing: border-box;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--dark-charcoal);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--highlight-red);
    box-shadow: 0 0 0 6px rgba(216,0,0,0.06);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form button {
    align-self: flex-start;
    background: var(--blood-red);
    color: var(--white-smoke);
    font-family: "Proclamate Light", Arial, sans-serif;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.12s ease, transform 0.08s ease;
}

.contact-form button:hover {
    background: var(--highlight-red);
    transform: translateY(-1px);
}

@media (max-width: 520px) {
    .contact-form { padding: 18px; margin: 18px; }
    .contact-form button { width: 100%; text-align: center; }
}

.about-header-box {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 50px;
    padding: 20px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.about-header-box h1 {
    font-family: "_aeiou", Arial, sans-serif;
    color: var(--blood-red);
    margin: 20px 0;
    margin-top: 30px;
    font-size: clamp(2rem, 6vw, 4rem);
    animation: headerFadeIn 1s ease-in-out forwards;
}

/* Each about row becomes a two-column grid on desktop; place the inner
   boxes in the left or right column so rows appear as L (empty) / (empty) R */
.about-row {
    display: block;
}

@media (min-width: 900px) {
    .about-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 40px;
        align-items: start;
    }

    .about-row > .left-align-box {
        grid-column: 1;
        justify-self: start;
        text-align: left;
        padding: 20px;
    }

    .about-row > .right-align-box {
        grid-column: 2;
        justify-self: end;
        text-align: right;
        padding: 20px;
    }
}

/* About section: stacked on small screens, two columns on wide screens */
.about-content {
    width: 100%;
    max-width: 1200px; /* keep content inset from viewport edges */
    margin: 0 auto;    /* center the content area */
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.left-align-box,
.right-align-box {
    display: flex;
    flex-direction: column;
    padding: 20px;
    max-width: 100%;
    margin: 0;
}

.left-align-box { text-align: left; }
.right-align-box { text-align: right; }

/* Note: per-row `.about-row` controls desktop layout. Removing
   `.about-content` grid-template-areas to avoid conflicting placements. */

.left-align-box p,
.right-align-box p {
    font-family: "And This Happened", Arial, sans-serif;
    font-size: 1.4em;
    max-width: 600px;
}

.left-align-box ul,
.right-align-box ul {
    font-family: "And This Happened", Arial, sans-serif;
    font-size: 1.4em;
    max-width: 600px;
    padding-left: 20px;
    margin-bottom: 20px;
}

.right-align-box ul {
    direction: rtl;
}

.right-align-box h2,
.left-align-box h2 {
    color: var(--blood-red);
    font-family: "Proclamate Light", Arial, sans-serif;
    font-size: 1.8em;
    margin-bottom: 15px;
}

#footer-fixed {
    font-size: 0.9em;
    position: absolute;
    margin-top: 400px;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    background-color: var(--white-smoke);
    color: var(--dark-charcoal);
    text-align: center;
}

#footer-not-fixed {
    font-size: 0.9em;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    background-color: var(--white-smoke);
    color: var(--dark-charcoal);
    text-align: center;
}

/* Make media elements responsive to avoid overflow */
img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

#footer-not-fixed:hover,
#footer-fixed:hover {
    background-color: var(--dark-charcoal);
    color: var(--white-smoke);
    transition: background-color 0.3s ease, color 0.1s ease;
}
