* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

:root {
    /* Typography */
    --fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);

    --fs-h3: clamp(1.5rem, 1.3rem + 0.5vw, 1.8rem);
    --fs-h2: clamp(2.2rem, 1.8rem + 1vw, 3rem);
    --fs-h1: clamp(3rem, 2rem + 3vw, 5rem);

    --line-height: 1.6;

    /* Layout */
    --header-height: 45px;
    --header-padding: 25px; /* Total header height = header height + (2 * header padding) */

    --icon-team: 2rem;
    --icon-contact: 3.5rem;
    --logo-height: 60px;

    --team-card-count: 3;
    --team-card-gap: 2rem;
    --team-grid-max-width: 1550px;

    /* Colors */
    --color-bg: #0B1F2A;
    --color-text: #FFFAFB;
    --color-accent-pink: #FF4089;
    --color-accent-blue: #0EAEFF;
    --color-accent-green: #3DB9B2;

    --color-sudokuClash-red: #ff8092;
    --color-sudokuClash-yellow: #ffd682;
    --color-sudokuClash-blue: #81d6ff;
}

@media (max-width: 700px) {

    :root {
        --header-padding: 15px;
        --logo-height: 50px;
    }
}

/* #region Fonts */

@font-face {
    font-family: "Inter";
    src: url("/fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: "Inter";
    src: url("/fonts/Inter-Italic-VariableFont_opsz,wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: italic;
}

@font-face {
    font-family: "Rajdhani Light";
    src: url("/fonts/Rajdhani-Light.ttf") format("truetype");
    font-weight: 300;
}

@font-face {
    font-family: "Rajdhani";
    src: url("/fonts/Rajdhani-Regular.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: "Rajdhani Medium";
    src: url("/fonts/Rajdhani-Medium.ttf") format("truetype");
    font-weight: 500;
}

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

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

/* #endregion */

/* #region Global Styles */

body {
    background:var(--color-bg);
    font-family: "Inter", sans-serif;
    color: var(--color-text);

    font-size: var(--fs-body);
    line-height: var(--line-height);
}

h1 {
    font-family: "Rajdhani", sans-serif;
    color: #FFFAFB;
    font-size: var(--fs-h1);
    font-weight: 700;
}

h2 {
    font-family: "Rajdhani", sans-serif;
    color: #FFFAFB;
    font-size: var(--fs-h2);
    font-weight: 600;
}

h3 {
    font-family: "Rajdhani", sans-serif;
    color: #FFFAFB;
    font-size: var(--fs-h3);
    font-weight: 500;
}

.header-company-name {
    font-family: "Rajdhani", sans-serif;
    color: #FFFAFB;
    font-size: var(--fs-h3);
    font-weight: 600;
    text-decoration: none;

    opacity: 0;
    visibility: hidden;
    white-space: nowrap;

    transition: opacity 0.3s ease;
}

p + p {
    margin-top: 1rem;
}

p strong {
    font-weight: 700;
}

/* #endregion */

/* #region Header */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    height:var(--header-height);

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    background: var(--color-bg);
    padding: var(--header-padding);

    z-index: 100;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-company-name {
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    margin: 0;
    flex: 0 0 auto;

    transition: opacity 0.5s ease, visibility 0s linear 0.5s;;
}

header.scrolled .header-company-name {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0s linear 0s;
}

@media (max-width: 550px) {
    .header-company-name {
        display: none;
    }
}

header::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    height: 150px;

    background: linear-gradient(to bottom,rgba(0, 0, 0, 0.35),rgba(0, 0, 0, 0.1) 50px,transparent);

    pointer-events: none;
}

.companyLogoSquare-svg {
    color:var(--color-text);
    width: var(--logo-height);
    height: var(--logo-height);
    display: block;
    flex-shrink: 0;
}

nav {

    display: flex;
    gap: 20px;
}

nav a {
    color: var(--color-text);
    text-decoration: none;
}

/* #endregion */

/* #region Main */

main {
    padding-top: calc(var(--header-height) + var(--header-padding) + var(--header-padding));
}

section {
    background: var(--color-bg);
    scroll-margin-top: calc(var(--header-height) + var(--header-padding) + var(--header-padding));
    padding: 6rem 10%;
}

/* #region Hero Section */

#hero {
    position: relative;
}

.hero-art {
    position: absolute !important;
    inset: 0;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    overflow: hidden;

    mask-image: linear-gradient(to right, black 0%, black 5%, transparent 50%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 5%, transparent 50%);
}

.companyLogo-svg {
    color:#0B1F2A;
    height: 110%;
    width: auto;
    flex-shrink: 0;
    display: block;
    transform: translateX(-5%);

    mask-image: linear-gradient(to right, black 0%, black 50%, transparent 95%);
    -webkit-mask-image: linear-gradient( to right, black 0%, black 50%, transparent 95%);
}

.hero-content {
    position: relative;
    margin-left: max(0px, min(400px, calc(100% - 600px)));
    width: calc(100% - max(0px, min(400px, calc(100% - 600px))));
    z-index: 2;
}

/* #endregion */

/* #region Sudoku Clash Section */

#sudokuclash p {
    font-family: "Your Font", sans-serif; /*remember to replace this with ingame font*/
    color: black;
}

#sudokuclash {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    gap: 2rem;
}

.sudokuclash-logo {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 550px;
    margin-inline: auto;
}

.sudokuclash-image {
    grid-column: 2;
    grid-row: 1 / 5;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    justify-self: end;

    contain: size;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    transform: translateX(10vw);
}

.sudokuclash-image img {
    width: 100%;
    height: auto;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
    object-position: right center;

    display: block;
}

.sudokuclash-text-1 {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
}

.sudokuclash-bullet-points {
    grid-column: 1;
    grid-row: 3;

    margin-top: 2rem;
    display: grid;
    grid-template-columns: minmax(0, min(120px, calc((100% - 1rem) / 2))) minmax(0, max-content);
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.sudokuclash-bullet-points img {
    width: 100%;
    height: auto;
    max-width: 100%;

    object-fit: contain;

    transform: rotate(-20deg) scale(1.2) translateX(10%) translateY(-25%);
}

.sudokuclash-text-2 {
    grid-column: 1;
    grid-row: 4;
    text-align: center;
}

.sudokuclash-text-1,
.sudokuclash-text-2 {
        width: fit-content;
    justify-self: center;
    background: white;
    color: black;
    padding: 1.5rem;
    box-shadow: 4px 6px 15px rgba(0, 0, 0, 0.3);
}

.sudokuclash-bullet-points p {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    background: white;
    color: black;
    padding: 1.5rem;
    box-shadow: 4px 6px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1400px) {
    #sudokuclash {
        grid-template-columns: 1fr;
    }

    .sudokuclash-logo,
    .sudokuclash-text-1,
    .sudokuclash-text-2,
    .sudokuclash-text-3,
    .sudokuclash-image {
        grid-column: 1;
        grid-row: auto;
    }

    .sudokuclash-logo,
    .sudokuclash-image {
        width: 100%;
        transform: none;
    }

    .sudokuclash-image {
        contain: none;
        height: auto;
    }

    .sudokuclash-image img {
        width: 100%;
        height: auto;
        max-height: 700px;
        object-fit: contain;
        object-position: center;
    }
}

/* #endregion */

/* #region Team Section */

#team {
    position: relative;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--team-card-gap);
    max-width: var(--team-grid-max-width);
    margin: 0 auto;
}

.team-card {
    --team-card-content-height: calc((var(--fs-h3) * var(--line-height) + var(--fs-body) * var(--line-height) * 5 + var(--icon-team) + 4rem) * 2);
    --team-card-content-width: calc(var(--team-card-content-height) * 0.75);

    width: var(--team-card-content-width);
    height: var(--team-card-content-height);

    position: relative;
    overflow: hidden;
}

.team-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-content {
    position: absolute;
    left: 30%;
    right: 0;
    top: 60%;
    bottom: 0;
    padding: 2rem;
    z-index: 2;
    display: grid;
    grid-template-rows: 1fr 40px;
}

.team-card-text {
    overflow: hidden;
}

.team-card-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    align-self: end;
}

.team-icon {
    width: var(--icon-team);
    height: var(--icon-team);
    display: block;
    overflow: visible;
    color: var(--color-text);
}

.icon-fallback {
    display: none;
}

@media (max-width: 700px) {
    .team-card-image {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: top left;
        top: 0;
        left: 0;
    }

    .team-card-content {
        top: clamp(40%, calc(15% + 45vw), 60%);
        bottom: auto;
        row-gap: 1rem;
        grid-template-rows: auto 40px;
    }

    .team-card-icons {
        align-self: start;
    }
}

/* #endregion */

/* #region Contact Section*/

.contact-content {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-layout-temp {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 4rem 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(100px, 1fr);
    gap: 3rem;
    align-items: stretch;
}

.contact-form-placeholder {
    min-height: 450px;
    background: white;
    border-radius: 4px;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-evenly;
}

.contact-icon {
    width: var(--icon-contact);
    height: var(--icon-contact);
    display: block;
    overflow: visible;
    color: var(--color-text);
}

@media (max-width: 700px) {
    .contact-intro {
        margin-bottom: 3rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-placeholder {
        min-height: 400px;
    }

    .contact-buttons {
        flex-direction: row;
        justify-content: flex-start
    }
}

/* #endregion */

/* #region Footer */

footer {
    background: #0B1F2A;
    padding: clamp(2rem, 3vw, 3rem) 10%;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-left {
    text-align: left;
}

.footer-right {
    text-align: right;
}

.footer-left p,
.footer-right p { 
    margin: 0; 
}

@media (max-width: 700px) {

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-right {
        text-align: left;
    }
}

/* #endregion */

/* #endregion */

/* #region Aurora */

.aurora {
    position: relative;
    overflow: hidden;
}

.aurora::before {
    content: "";
    position: absolute;
    inset: -50%;

    background:
        radial-gradient(circle at var(--pos1), var(--color-accent-pink) 0%, transparent 60%),
        radial-gradient(circle at var(--pos2), var(--color-accent-green) 0%, transparent 60%),
        radial-gradient(circle at var(--pos3), var(--color-accent-blue) 0%, transparent 60%);

    filter: blur(120px);
    opacity: 0.25;

    animation: aurora-drift 20s infinite alternate ease-in-out;

    z-index: 0;
}

.hero {
    --pos1: 80% 0%;
    --pos2: 0% 20%;
    --pos3: 40% 80%;
}

.team {
    --pos1: 30% 0%;
    --pos2: 40% 90%;
    --pos3: 90% 40%;
}

.aurora > * {
    position: relative;
    z-index: 1;
}

@keyframes aurora-drift {
    from {
        transform: translate(-25%, -25%) scale(1) rotate(-2deg);
    }

    to {
        transform: translate(25%, 25%) scale(1.15) rotate(2deg);
    }
}

/* #endregion */

/* #region Sunburst*/

.sunburst {
    position: relative;
    overflow: hidden;
}

.sunburst::before {
    content: "";
    position: absolute;
    inset: 0;

    background: repeating-conic-gradient(
        from 0deg at 110% 75%,
        var(--color-sudokuClash-yellow) 0deg 5deg,
        var(--color-sudokuClash-red) 5deg 10deg,
        var(--color-sudokuClash-blue) 10deg 15deg,
        
        var(--color-sudokuClash-yellow) 15deg 17.5deg,
        var(--color-sudokuClash-red) 17.5deg 20deg,
        var(--color-sudokuClash-blue) 20deg 22.5deg
    );
    
    z-index: 0;
}

.sunburst > * {
    position: relative;
    z-index: 1;
}

/* #endregion */

/* #region Dropshadow */

.fade-overlay {
    z-index: 3;
    position: absolute;
    inset: 0;

    background:
    linear-gradient(to top,rgba(0, 0, 0, 0.35),rgba(0, 0, 0, 0.1) 50px,transparent 150px),
    linear-gradient(to bottom,rgba(0, 0, 0, 0.35),rgba(0, 0, 0, 0.1) 50px,transparent 150px);

    pointer-events: none;
}

/* #endregion */

/* #region Glitch Effect */

.glitch-icon .contact-icon,
.glitch-icon .team-icon {
    color: var(--color-text);
}

.glitch-icon:hover .contact-icon,
.glitch-icon:focus-visible .contact-icon,
.glitch-icon:hover .team-icon,
.glitch-icon:focus-visible .team-icon {
    color: var(--color-accent-blue);

    filter:
        drop-shadow(-1px -2px 0 var(--color-accent-green))
        drop-shadow(2px 1px 0 var(--color-accent-pink));
}

/* Glitch copy */
.glitch-layer {
    opacity: 0;
    pointer-events: none;
}

.glitch-icon:hover .glitch-layer,
.glitch-icon:focus-visible .glitch-layer {
    opacity: 1;
    color: var(--color-accent-blue);
    animation: icon-glitch 2s infinite;
}

@keyframes icon-glitch {
    0% {
        clip-path: polygon(
            0 2%, 100% 2%, 100% 95%, 95% 95%,
            95% 90%, 85% 90%, 85% 95%, 8% 95%, 0 70%
        );
    }

    2%, 8% {
        clip-path: polygon(
            0 78%, 100% 78%, 100% 100%, 95% 100%,
            95% 90%, 85% 90%, 85% 100%, 8% 100%, 0 78%
        );
        transform: translateX(-5%);
    }

    6% {
        transform: translateX(5%);
    }

    9% {
        transform: translateX(0);
    }

    10% {
        clip-path: polygon(
            0 44%, 100% 44%, 100% 54%, 95% 54%,
            95% 54%, 85% 54%, 85% 54%, 8% 54%, 0 54%
        );
        transform: translateX(5%);
    }

    13% {
        transform: translateX(0);
    }

    14%, 21% {
        clip-path: polygon(
            0 0, 100% 0, 100% 0, 95% 0,
            95% 0, 85% 0, 85% 0, 8% 0, 0 0
        );
        transform: translateX(5%);
    }

    25% {
        transform: translateX(5%);
    }

    30% {
        transform: translateX(-5%);
    }

    35%, 45% {
        clip-path: polygon(
            0 40%, 100% 40%, 100% 85%, 95% 85%,
            95% 85%, 85% 85%, 85% 85%, 8% 85%, 0 70%
        );
        transform: translateX(-5%);
    }

    40% {
        transform: translateX(5%);
    }

    50% {
        transform: translateX(0);
    }

    55% {
        clip-path: polygon(
            0 63%, 100% 63%, 100% 80%, 95% 80%,
            95% 80%, 85% 80%, 85% 80%, 8% 80%, 0 70%
        );
        transform: translateX(5%);
    }

    60% {
        transform: translateX(0);
    }

    31%, 61%, 100% {
        clip-path: polygon(
            0 0, 100% 0, 100% 0, 95% 0,
            95% 0, 85% 0, 85% 0, 8% 0, 0 0
        );
    }
}

/* #endregion */