:root{
    --body_text: #d2f0fd;
    --light_bluegren:#d4f3ee;
    --light_green: rgb(152, 198, 213);
    --blue_ish: #178da3;
    --green_ich: #76b2bd;
    --deep_dark: #05050c;


}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    margin: 0;
    padding: 0;

}
/*baggrunen på computer*/
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('assets/cutie.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.planet-button {

    border: none;
    background: transparent;
    cursor: pointer;

    color: var(--light_bluegren);

    pointer-events: auto;

    filter: drop-shadow(0 0 0.1rem rgb(119, 173, 255));

    transition: scale 0.25s ease;
}

.planet-button img {
    position: absolute;

    width: 100%;
    height: 100%;
    object-fit: contain;

    z-index: 1;
    pointer-events: none;

    transition:
            filter 0.3s ease,
            transform 0.3s ease;
}

.planet-button:hover img {
    filter:
            drop-shadow(0 0 0.7rem rgb(234, 240, 248))
            drop-shadow(0 0 0.8rem rgb(119, 173, 255));
}

/* Navigationen bliver fast under scroll */
.nav {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 5rem;
    z-index: 1000;
}

/* Logo */
.nav .planet1 {
    position: relative;
    top: auto;
    left: auto;
    transform: none;

    width: 5rem;
    height: 5rem;
    z-index: 10;
    pointer-events: auto;
}

/* Halvcirklen under logoet */
.nav-menu {
    --radius: 145px;

    position: absolute;
    top: -0.5rem;
    left: 50%;

    width: calc(var(--radius) * 2);
    height: var(--radius);

    transform: translateX(-50%) scale(0.8);
    transform-origin: top center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
            opacity 0.3s ease,
            transform 0.3s ease,
            visibility 0.3s ease;
}

/* Åben menu */
.nav-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
}

/* Menupunkter */
.nav-item {
    position: absolute;

    display: flex;
    justify-content: center;
    align-items: center;

    width: 4.5rem;
    height: 4.5rem;

    color: var(--body_text);
    font-family: Tahoma, sans-serif;
    font-size: 0.8rem;
    text-decoration: none;
    text-align: center;

    background: var(--blue_ish);
    border: 1px solid var(--deep_dark);
    border-radius: 50%;

    box-shadow: 0 0 0.8rem var(--blue_ish);

    transition:
            background 0.25s ease,
            box-shadow 0.25s ease,
            color 0.25s ease,
            scale 0.25s ease;
}

.nav-item:hover {
    color: var(--light_bluegren);
    background: var(--deep_dark);
    box-shadow: 0 0 1.2rem var(--light_bluegren);
}

/* cirklernes(nav) position langs halvcirkel */
.item-1 {
    left: 0;
    top: 10%;
}

.item-2 {
    left: 13%;
    top: 5rem;
}

.item-3 {
    left: 50%;
    top: 6.5rem;
    transform: translateX(-50%);
}

.item-4 {
    right: 13%;
    top: 5rem;
}

.item-5 {
    right: 0;
    top: 10%;
}

/* Seks planeter i en cirkel - planet 1 blev min nav/logo*/
.planet1 {
    position: fixed;
    top: 1rem;
    left: 50%;

    transform: translateX(-50%);

    width: 5rem;
    height: 5rem;

    z-index: 1000;

    display: flex;
    justify-content: center;
    align-items: center;

    pointer-events: auto;
}


/* Aboue me, sektionen */
.about-me {
    position: relative;
    z-index: 3;

    width: 100%;
    padding: clamp(2rem, 6vw, 5rem) 3vw;

    background: var(--deep_dark);
    color: var(--light_green);

    margin-top: 10rem;
}
.about-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;

    margin-bottom: clamp(3rem, 7vw, 6rem);

    font-family: Arial, sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.about-subtitle {
    opacity: 0.5;
}
.about-content {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(2rem, 7vw, 7rem);

    max-width: 1100px;
    margin: 0 auto;
}
/* Billede */
.about-image {
    position: relative;
    width: 100%;
    max-width: 420px;
    justify-self: center;
}
.about-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;

    border-radius: 1rem;

}
.image-caption {
    position: absolute;
    right: -2rem;
    bottom: -0.5rem;
    padding: 0.7rem 1rem;
    color: var(--blue_ish);
    background: var(--light_bluegren);
    border-radius: 2rem;
    font-family: Arial, sans-serif;
    font-size: 1.1rem;
    transform: rotate(8deg);
}

.about-text h2 {
    margin-bottom: 2rem;

    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: normal;
    font-family: Arial, sans-serif;
}
.about-text h2 span {
    display: inline-block;
    margin-left: 0.5rem;
    color: var(--light_bluegren);
    font-size: 0.5em;
    vertical-align: top;
}
.about-text h3 {
    margin-bottom: 1rem;

    color: var(--light_bluegren);
    font-family: Tahoma, sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
}
/* < betyder derekte underordnede child af */
.about-text p {
    margin-top: 1rem;
    color: var(--body_text);
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.6;

    font-family: Tahoma, sans-serif;
}
/* facts about me, the more u know...*/
.about-facts {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;

    margin-top: 2rem;

}
.about-fact {
    display: flex;
    padding: 1rem;
}
.about-fact p {
    color: var(--light_green);
    font-family: Arial, sans-serif;
    font-size: 1rem;
}

/* Univers delen. Its my hero! i just fuc*ed it up LOL*/
.universe {
    position: relative;
    z-index: 3;

    padding: clamp(4rem, 9vw, 8rem) 5vw;
    overflow: hidden;

    background: var(--deep_dark);

    color: var(--light_green);
    text-align: center;
}

.universe-header {
    display: flex;
    justify-content: space-between;

    font-family: Arial, sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.universe-header span:last-child {
    opacity: 0.55;
}

.universe h2 {
    margin-top: 3rem;

    font-family: Tahoma, sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: normal;
}

.universe-intro {
    max-width: 36rem;
    margin: 0.7rem auto;

    color: var(--body_text);
    font-family: Arial, sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.5;
}
.universe-intro span{
    font-family: Arial, sans-serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2.1vw, 1.6rem);
}

/* Planeterne i hero*/

.universe-carousel {
    display: flex;
    align-items: center;
    gap: clamp(0.25rem, 2vw, 1.5rem);

    margin: 0 auto 1.5rem;
}

.universe-page {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    flex: 0 0 100%;
    gap: clamp(0.4rem, 2vw, 1.5rem);
    min-width: 0;
    padding: 1rem 0;
    box-sizing: border-box;
}

/* Planet buttons, se more*/

.universe-planet {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;

    width: 100%;
    min-width: 0;
    padding: 0.6rem 0.25rem 0.9rem;

    color: var(--body_text);
    font-family: Tahoma, sans-serif;
    font-size: clamp(0.7rem, 1.2vw, 1rem);

    background: transparent;
    border: 1px solid transparent;
    border-radius: 1rem;

    cursor: pointer;

    transition:
            transform 0.3s ease,
            color 0.3s ease,
            border-color 0.3s ease,
            background-color 0.3s ease;
}

.universe-planet img {
    display: block;
    width: 100%;
    max-width: 155px;
    aspect-ratio: 1;
    object-fit: contain;

    filter: drop-shadow(
            0 0 0.4rem rgba(119, 173, 255, 0.2)
    );

    transition:
            filter 0.3s ease,
            transform 0.3s ease;
}

.universe-planet:hover {
    transform: translateY(-6px);
    color: var(--body_text);
}

.universe-planet:hover img,
.universe-planet.active img {
    filter:
            drop-shadow(0 0 0.7rem rgb(234, 240, 248))
            drop-shadow(0 0 0.8rem rgb(119, 173, 255));
}

.universe-planet.active {
    color: var(--body_text);
    background: rgba(119, 173, 255, 0.04);
    border-color: rgba(119, 173, 255, 0.4);
}

.universe-planet:focus-visible,
.universe-arrow:focus-visible {
    outline: 2px solid var(--light_bluegren);
    outline-offset: 4px;
}

/* Carousel arrows, tydelighed i at man kan se mere*/

.universe-arrow {
    display: grid;
    place-items: center;
    flex: 0 0 auto;

    width: clamp(2.2rem, 4vw, 3rem);
    height: clamp(2.2rem, 4vw, 3rem);

    color: var(--body_text);
    font-size: 1.5rem;

    background: rgba(119, 173, 255, 0.04);
    border: 1px solid rgba(140, 137, 183, 0.35);
    border-radius: 50%;

    cursor: pointer;
    transition:
            background-color 0.25s ease,
            transform 0.25s ease,
            opacity 0.25s ease;
}

.universe-arrow:hover:not(:disabled) {
    background: var(--green_ich);
    transform: scale(1.08);
}

.universe-arrow:disabled {
    opacity: 0.25;
    cursor: default;
}

/* Pagination dots , viser at der er flere sider*/

.universe-pagination {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    margin: 0 auto 2.5rem;
}

.universe-page-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50px;
    background: rgba(119, 173, 255, 0.28);

    transition:
            width 0.3s ease,
            background-color 0.3s ease;
}

.universe-page-indicator.active {
    width: 1.5rem;
    background: var(--light_bluegren);
}
.universe-viewport {
    overflow: hidden;
}

.universe-track {
    display: flex;
    width: 100%;

    transform: translateX(0);
    transition:
            transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);

    will-change: transform;
}

.universe-page {
    flex: 0 0 100%;
    min-width: 0;
}

/* Planets */

.universe-planet {
    opacity: 1;
    transform: scale(1);

    transition:
            transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.45s ease,
            filter 0.45s ease;
}

.universe-planet img {
    transition:
            transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
            filter 0.4s ease;
}

/* Hover effect */

.universe-planet:hover img {
    transform: scale(1.08) rotate(-4deg);
}

/* Selected planet */

.universe-planet.active img {
    filter:
            drop-shadow(0 0 0.7rem rgb(234, 240, 248))
            drop-shadow(0 0 0.8rem rgb(119, 173, 255));
}

/* Indholdet, der skifter (panelet)*/

.universe-panel {
    max-width: 700px;
    margin: 0 auto;
    padding: clamp(1.5rem, 5vw, 3rem);

    text-align: left;

    background: rgba(119, 173, 255, 0.04);
    border: 1px solid rgba(119, 173, 255, 0.35);
    border-radius: 1.5rem;

}

.universe-label {
    color: var(--body_text);
    font-family: Arial, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.universe-panel h3 {
    margin: 1rem 0;

    color: var(--light_green);
    font-family: Tahoma, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    font-weight: normal;
}

.universe-panel p {
    max-width: 55ch;

    color: var(--body_text);
    font-family: Arial, sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.7;
}

.universe-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;

    margin-top: 1.5rem;
    padding-bottom: 0.4rem;

    color: var(--light_bluegren);
    font-family: Tahoma, sans-serif;
    text-decoration: none;

    border-bottom: 1px solid rgba(212, 243, 238, 0.5);

    transition: gap 0.25s ease;
}

.universe-link:hover {
    gap: 1rem;
}

.universe-link:focus-visible {
    outline: 2px solid var(--light_bluegren);
    outline-offset: 5px;
}


/*kontakt me sektionen*/

.contact-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    margin-top: 10rem;
    padding-top: 5rem;

    color: var(--body_text);
    background: var(--deep_dark);
}

/* Layout */

.contact-container {
    width: 100%;
    margin: 0 auto;
}

.contact-header {
    margin: 0 auto clamp(3rem, 7vw, 5rem);
    text-align: center;
}

.contact-eyebrow,
.contact-small-title {
    color: var(--body_text);
    opacity: 0.55;
    font-family: Arial, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    line-height: 1.8;
}

.contact-header h2 {
    margin: 1.2rem 0;

    color: var(--light_green);
    font-family: Tahoma, sans-serif;
    font-size: clamp(2.3rem, 6vw, 4.8rem);
    font-weight: 400;
    line-height: 1.15;
}

.contact-header span {
    display: block;
    color: var(--body_text);

    text-shadow:
            0 0 10px #7ca8f1,
            0 0 20px rgb(0, 103, 255),
            0 0 30px #01245a;
}

.contact-header p {
    margin: 0 auto;

    color: var(--body_text);
    font-family: Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
}

.contact-layout {
    display: grid;
    margin: clamp(3px, 5vw, 4rem);
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

/* Kontaktinformation */

.contact-info {
    padding-top: 1rem;
}

.contact-info h3 {
    margin: 1rem 0;

    color: var(--body_text);
    font-family: Tahoma, sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
}

.contact-info > p {
    margin-bottom: 2rem;

    color: var(--body_text);
    font-family: Tahoma, sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
}

.contact-email {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;

    color: var(--body_text);
    font-family: Tahoma, sans-serif;
    text-decoration: none;
    overflow-wrap: anywhere;

    transition: color 0.25s ease;
}

.contact-email:hover {
    color: var(--light_green);
    text-shadow: 0 0 12px rgba(149, 219, 193, 0.7);
}

.contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-socials a {
    color: var(--body_text);
    font-family: Tahoma, sans-serif;
    font-size: 0.9rem;
    text-decoration: none;

    transition:
            color 0.25s ease,
            transform 0.25s ease;
}

.contact-socials a:hover {
    color: var(--light_green);
    transform: translateY(-2px);
}

/* Formular */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;

    padding: clamp(1.2rem, 4vw, 2.5rem);

    background: rgba(119, 173, 255, 0.04);
    border: 1px solid rgba(119, 173, 255, 0.4);
    border-radius: 1.25rem;

    box-shadow: 0 0 35px rgba(23, 141, 163, 0.06);
}

.contact-form label {
    margin-top: 0.5rem;

    color: var(--body_text);
    font-family: Tahoma, sans-serif;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.95rem 1rem;

    color: var(--body_text);
    font-family: Tahoma, sans-serif;
    font-size: 0.95rem;

    background: rgba(119, 173, 255, 0.04);
    border: 1px solid rgba(119, 173, 255, 0.4);
    border-radius: 0.7rem;

    outline: none;

    transition:
            border-color 0.25s ease,
            box-shadow 0.25s ease;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(210, 240, 253, 0.45);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--body_text);
    background: rgba(119, 173, 255, 0.17);
}

.contact-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;

    position: relative;
    isolation: isolate;
    overflow: hidden;

    margin-top: 0.8rem;
    padding: 1rem 1.2rem;

    color: var(--body_text);
    font-family: Tahoma, sans-serif;
    font-size: 0.95rem;

    background-color: rgba(23, 141, 163, 0.43);
    border: 1px solid transparent;
    border-radius: 50px;

    cursor: pointer;

    transition:
            background 0.25s ease,
            box-shadow 0.25s ease,
            transform 0.25s ease;
}


/* Hold tekst og ikon over stjernerne */
.contact-button-content {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

/* Laget med stjerner */
.contact-stars {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-form button:hover .contact-stars {
    opacity: 1;
    background-color: var(--deep_dark);
}
.text_send{
    color: var(--body_text);
    z-index: 10;
}


/* Hver enkelt stjerne */
.contact-star {
    position: absolute;
    display: block;
    width: 3px;
    height: 3px;
    border-radius: 50%;

    background: #d4f3ee;
    box-shadow:
            0 0 4px #d4f3ee,
            0 0 8px #78baff,
            0 0 12px #178da3;

    pointer-events: none;
    will-change: transform, opacity;
}

.contact-star:nth-child(3n) {
    width: 2px;
    height: 2px;
    background: #95dbc1;
}

.contact-star:nth-child(4n) {
    width: 4px;
    height: 4px;
    background: #ffffff;
    box-shadow:
            0 0 5px #ffffff,
            0 0 10px #78baff;
}



.contact-form button:focus-visible,
.contact-socials a:focus-visible,
.contact-email:focus-visible {
    outline: 2px solid var(--body_text);
    outline-offset: 4px;
}

/* Footer */

.contact-footer {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;

    color: var(--light_bluegren);
    opacity: 0.55;
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    text-align: center;

    border-top: 1px solid rgba(119, 173, 255, 0.15);
}

/* Responsiv tilpasning på mobil*/
@media (max-width: 768px) {
    /*no bg på måbil - dark color istedet - mindre informationer på skermen = overskuelighed*/
    body::before {

        background-image: none;
        background-color: var(--deep_dark);
    }

    .circle-wrapper {
        width: 80vw;
    }

    .nav-menu {
        --radius: 115px;
    }

    .nav-item {
        width: 3.6rem;
        height: 3.6rem;
        font-size: 0.68rem;
    }

    .item-1,
    .item-5 {
        top: 0.6rem;
    }

    .item-2,
    .item-4 {
        top: 4rem;
    }

    .item-3 {
        top: 5.7rem;
    }

    .universe-header{
        display: none;
    }

    .hero-title {
        font-size: clamp(1.5rem, 10vw, 3.5rem);
    }


    .about-me {
        overflow: hidden;
        margin-top: 0;
    }

    .about-header {
        margin-bottom: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        width: 75%;
        max-width: 300px;
    }

    .image-caption {
        right: -2.5rem;
    }

    .about-text h2 {
        margin-bottom: 1.5rem;
    }

    .about-facts {
        gap: 0.5rem;
    }
    .about-fact span {

        justify-content: start;
    }
    /*hero*/

    .universe-header {
        font-size: 0.75rem;
    }
    .universe-carousel {
        gap: 0.4rem;
    }
    .universe-page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        padding: 0.5rem 0;
    }
    .universe-planet {
        font-size: 0.85rem;
        padding: 0.5rem 0.25rem;
    }
    .universe-planet img {
        max-width: 120px;
    }

    .contact-section {
        margin-top: 0;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-header h2 {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .contact-form {
        padding: 1.2rem;
    }

}

@media (prefers-reduced-motion: reduce) {
    .universe-track,
    .universe-planet,
    .universe-planet img {
        transition: none !important;
    }
    .universe-arrow,
    .universe-page-indicator {
        transition: none;
    }
    .galaxy-star {
        animation-duration: 1ms !important;
    }

    .contact-stars span {
        animation: none;
        opacity: 0.6;
    }

    .contact-stars {
        transition: none;
    }
    .contact-email,
    .contact-socials a,
    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        transition: none;
    }

}


html::-webkit-scrollbar {
    width: 16px;
}

html::-webkit-scrollbar-track {
    background: var(--deep_dark);
}

html::-webkit-scrollbar-thumb {
    background: var(--body_text);
    border: 4px solid var(--body_text);
    border-radius: 20px;
}

html::-webkit-scrollbar-thumb:hover {
    background: var(--deep_dark);
}

