/* GLOBAL */

* {
    box-sizing: border-box;
    margin: 0;
    border: 0;
}

html {
    font-size: 1rem;
    height: 100dvh;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-size: 1rem;
    font-family: "Segoe UI", Tahoma, Verdana, sans-serif;
    background-color: #f3f3f3;
    max-width: 100vw;
    overflow-x: hidden;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

h4 {
    padding-bottom: 10px;
}

.label {
    font-weight: 600;
    font-size: 0.95em;
    color: #222;
}

.card_area:hover .label {
    color: var(--accent-color);
}

/* LINK GROUP — matches navbar link style */
.link_group a {
    color: black;
    text-decoration: none;
    font-weight: 500;
    font-family: "Yu Gothic UI", Tahoma, Verdana, sans-serif;
    transition: color 0.3s ease;
    position: relative;
    padding-right: 0.75rem; /* space for arrow */
}

/* Add arrow */
.link_group a::after {
    content: "  ⇨";
    position: absolute;
    right: -15px;
    top: 0;
    color: black;
    transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

/* Hover effect */
.link_group a:hover {
    color: var(--accent-color);
}

.link_group a:hover::after {
    color: var(--accent-color);
    transform: translateX(4px);
    opacity: 1;
}

/* Optional: subtle bottom padding for spacing */
.link_group {
    padding: 10px 0;
}

.software_title {
    padding-bottom: 10px;
}

@font-face {
    font-family: "Tw Cen MT";
    src: url("./fonts/TwCenMTStd.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Tw Cen MT";
    src: url("./fonts/TwCenMTStdBold.otf") format("opentype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "Tw Cen MT";
    src: url("./fonts/TwCenMTStdItalic.otf") format("opentype");
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: "Yu Gothic UI";
    src: url("./fonts/YUGOTHR.TTC") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Yu Gothic UI Bold";
    src: url("./fonts/YUGOTHB.TTC") format("truetype");
    font-weight: 700;
}

@font-face {
    font-family: "Yu Gothic UI Light";
    src: url("./fonts/YUGOTHL.TTC") format("truetype");
    font-weight: 300;
}

@font-face {
    font-family: "Yu Gothic UI Medium";
    src: url("./fonts/YUGOTHM.TTC") format("truetype");
    font-weight: 500;
}

@font-face {
    font-family: "Brittany Signature";
    src: url("./fonts/BrittanySignature.ttf") format("truetype");
    font-weight: normal;
}

@font-face {
    font-family: "Cormorant Garamond Bold";
    src: url("./fonts/CormorantGaramond-Bold.ttf") format("truetype");
    font-weight: 700;
}

@font-face {
    font-family: "Cormorant Garamond Semibold";
    src: url("./fonts/CormorantGaramond-SemiBold.ttf") format("truetype");
    font-weight: 600;
}

@font-face {
    font-family: "Cormorant Garamond Regular";
    src: url("./fonts/CormorantGaramond-Regular.ttf") format("truetype");
    font-weight: normal;
}

.new_main {
    flex: 1;
}

/* Can add this to keep navbar the same on all pages
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}
*/

:root {
    --accent-color: #47cc1f;
    --background-color: #f5f5f5;
}

/* NAVBAR */

nav {
    position: fixed;
    display: flex;
    padding: 0.5rem 0px 0px 0px;
    justify-content: center;
    width: 100%;
    background-color: var(--background-color);
    z-index: 9999 !important;
    /* inset: 0 0 90%; */
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    border-bottom: 2px solid black;
    padding-bottom: 0.5rem;
}

.logo {
    width: 50px;
}

nav.no-border {
    border-bottom: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    align-items: center;
    line-height: 2rem;
}

.nav-menu.with-border {
    border-bottom: 2px solid black;
    padding-bottom: 10px;
}

.nav_item {
    margin-left: 40px;
}

.nav-link {
    transition: 0.7s ease;
    text-decoration: none;
    color: black;
}

.nav-link:hover {
    color: var(--accent-color);
}
.hamburger {
    display: none;
    align-self: center;
    cursor: pointer;
}

.link_group {
    padding: 20px 0 20px 0;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: black;
}

footer {
    max-width: 100%;
    padding-bottom: 20px;
}

.footer_text {
    text-align: center;
}

.footer_credit {
    font-size: 12px;
    color: gray;
    text-align: center;
    margin-top: 10px;
}

.icon_link:hover {
    background-image: var(--accent-color);
}

/* Scroll Button */

#scrollToTopBtn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
    width: 50px;
    height: 50px;
    font-size: 24px;
    background-color: var(--background-color);
    color: var(--accent-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-align: center;
    line-height: 50px;
    padding: 0;
}

/* When visible */
#scrollToTopBtn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#scrollToTopBtn:hover {
    background-color: var(--accent-color);
    color: var(--background-color);
}

/* HAMBURGER ACTIVE */

@media (max-width: 426px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hamburger.active .nav-menu.with-border {
        border-top: 2px solid black;
    }

    .nav-menu {
        position: fixed;
        left: 0;
        top: 70px;
        gap: 0;
        flex-direction: column;
        width: calc(100% - 2rem);
        text-align: right;
        transition: height 0.3s ease-in-out, opacity 0.3s ease-in-out;
        margin: 0 1rem;
        align-items: flex-end;
        opacity: 0;
        background: var(--background-color);
        max-height: 0px;
        overflow: hidden;
        z-index: 1000;
    }

    nav-item {
        margin: 16px 0;
    }

    .nav-menu.active {
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
        opacity: 1;
        max-height: 100px;
    }

    .nav-content {
        width: 90%;
    }
}

@media (min-width: 2560px) {
    html {
        font-size: 20px; /* Scale everything using rem */
    }

    h1 {
        font-size: 4rem; /* Make headings larger */
    }

    p {
        font-size: 1.5rem; /* Increase readability */
    }
}

@media (min-width: 1920px) {
    body {
        font-size: 1.25rem;
    }
}

@media (min-width: 1440px) {
    body {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) and (min-width: 320px) {
    main {
        margin: 0 1rem;
    }
}
