* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: #121212;
    background: transparent;
}

body {
    overflow-x: hidden;
}

/* Full-screen video background */
.background-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
}

.video-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
    z-index: -2;
}

/* Main white container */
.site-container {
    position: relative;
    width: 90vw;
    height: 80vh;
    margin: 10vh auto;
    background: rgba(255, 255, 255, 0.86);
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.60);
    max-width: 1600px;
}

/*
    The content itself scrolls one full panel at a time.
    Each section is exactly the height of the visible container.
*/
.content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.content::-webkit-scrollbar {
    display: none;
}

.panel {
    position: relative;
    width: 100%;
    min-height: 100%;
    padding: clamp(50px, 7vw, 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.panel-inner {
    width: min(850px, 100%);
    margin: auto;
}

.hero-panel {
    padding: 40px;
}

.hero-title {
    text-align: center;
}

.hero-title h1 {
    font-family: "Roboto Condensed", sans-serif;
    margin: 0 0 0.2em 0;
    font-size: clamp(3rem, 9vw, 8rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    font-weight: 800;
}

.company-name {
    font-family: "Roboto Condensed", sans-serif;
    letter-spacing: -0.06em;
    font-size:1.2em;
    font-weight: 800;
}

.hero-title h1 span {
   color:#005E66;
}

.blue-text {
    color: #005E66;
}

/* Floating title animation */
/* The title gently floats up and down, with a slight rotation to give it a more organic feel. */

.hero-title h1, .hero-title h2 {
    animation: floatingTitle 5s infinite;
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
}

@keyframes floatingTitle {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(2px, -5px) rotate(0.2deg);
    }

    50% {
        transform: translate(0, -9px) rotate(0deg);
    }

    75% {
        transform: translate(-2px, -4px) rotate(-0.2deg);
    }
}


.profile-image {
  display: none;
  height: auto;
  position: fixed;
  bottom:0px;
  right:25px;
  width: clamp(170px, 22vw, 400px);
  z-index: 99;
}


/* Small section heading */
.eyebrow {
    margin: 0 0 15px;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    opacity: 0.55;
}

h2 {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 25px;
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.2;
}

h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

p {
    max-width: 780px;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.5;
    margin:0 auto 15px;
}

/* Down arrow */
.scroll-arrow {
    position: absolute;
    left: 50%;
    bottom: 30px;
    width: 42px;
    height: 52px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 5;
}

.scroll-arrow span {
    display: block;
    width: 20px;
    height: 20px;
    border-right: 3px solid #005E66;
    border-bottom: 3px solid #005E66;
    transform: rotate(45deg);
    animation: arrowBounce 1s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0) rotate(45deg);
    }

    50% {
        transform: translateY(10px) rotate(45deg);
    }
}

/* Hamburger */
.menu-toggle {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: #005E66;
    cursor: pointer;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-toggle:hover {
    background: rgba(23, 32, 42, 0.98);
}

.menu-toggle:focus-visible,
.social-toggle:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.menu-toggle::after,
.social-toggle::after {
    position: absolute;
    top: calc(100% + 10px);
    padding: 8px 11px;
    border-radius: 4px;
    background: #17202a;
    color: #fff;
    font: 600 0.8rem/1.2 Arial, Helvetica, sans-serif;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.menu-toggle::after {
    left: 0;
    content: "Main menu button";
}

.social-toggle::after {
    right: 0;
    content: "Social menu button";
}

.menu-toggle:focus-visible::after,
.social-toggle:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: hover) {
    .menu-toggle:hover::after,
    .social-toggle:hover::after {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-toggle.active::after,
.social-toggle.active::after {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
}

.social-toggle {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: #005E66;
    color: white;
    cursor: pointer;
    z-index: 20;
    font-size: 20px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.social-toggle:hover {
    background: rgba(23, 32, 42, 0.98);
}

.social-toggle.active {
    transform: none;
}

.social-toggle i {
    display: inline-block;
    transition: transform 0.25s ease;
}

.social-toggle.active i {
    transform: rotate(45deg);
}

.menu-toggle span {
    width: 21px;
    height: 2px;
    background: white;
    display: block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* What we do */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 45px;
}

.feature-grid p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Contact form */
.contact-form {
    margin-top: 35px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 2px solid #dfe3e6;
    border-radius: 12px;
    padding: 14px 16px;
    font: inherit;
    background: #f8f9fa;
    color: #17202a;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #17202a;
    background: white;
}

.form-field textarea {
    resize: vertical;
}

.submit-button {
    border: 0;
    border-radius: 999px;
    background: #005E66;
    color: white;
    padding: 15px 28px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.submit-button:hover {
    background: rgba(23, 32, 42, 0.98);
}

/* Smaller screens */
@media (max-width: 700px) {
    .site-container {
        position: fixed;
        top: 50vh;
        top: 50svh;
        left: 50%;
        width: 92vw;
        height: 86vh;
        height: 86svh;
        margin: 0;
        transform: translate(-50%, -50%);
        border-radius: 25px;
    }

    .panel {
        padding: 45px 30px 75px;
    }

    .hero-panel {
        padding: 30px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 10px;
        display:none;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .menu-toggle {
        top: 18px;
        left: 18px;
    }

    .social-toggle {
        top: 18px;
        right: 18px;
    }

    .side-menu {
        top: 12px;
        left: 12px;
        width: calc(100% - 24px);
    }

    .scroll-arrow {
        bottom: 20px;
    }
}


/* =========================================================
   ArcticArcade additions
   ========================================================= */

/* Menu now slides horizontally from the left and fills the
   complete height of the main content area. */
.side-menu {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100%;
    width: max-content;
    min-width: 230px;
    max-width: min(90%, 420px);
    padding: 105px 45px 45px;
    border-radius: 0 25px 25px 0;
    background: rgba(23, 32, 42, 0.98);
    z-index: 15;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
    overflow: hidden;

    opacity: 1;
    visibility: visible;
    transform: translateX(-105%);
    transition: transform 0.4s cubic-bezier(.77, 0, .18, 1);
}

.side-menu.open {
    transform: translateX(0);
}

.social-menu {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: max-content;
    min-width: 270px;
    max-width: min(90%, 420px);
    padding: 105px 32px 45px;
    border-radius: 25px 0 0 25px;
    background: rgba(23, 32, 42, 0.98);
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    visibility: hidden;
    transform: translateX(105%);
    transition: transform 0.4s cubic-bezier(.77, 0, .18, 1), visibility 0.4s;
}

.social-menu.open {
    visibility: visible;
    transform: translateX(0);
}

.social-menu-title {
    margin: 0 0 24px;
    color: #fff;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.side-menu a {
    font-size:1.4em;
    font-weight:500;
    text-decoration:none;
    color:#cccccc;
    white-space: nowrap;
    margin-bottom:15px;
    margin-left:0px;
}

.side-menu a:hover {
    color:#ffffff;
    margin-left:5px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-links a {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 6px;
    background: #005E66;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: background .2s ease, transform .2s ease;
}

.social-links a:hover {
    background: rgba(23, 32, 42, 0.98);
    transform: translateX(-3px);
}

.social-links i {
    width: 20px;
    text-align: center;
}

/* Previous arrow */
.previous-arrow {
    top: 27px;
    bottom: auto;
}

.previous-arrow span {
    transform: rotate(225deg);
    animation: previousBounce 1.8s ease-in-out infinite;
}

@keyframes previousBounce {
    0%, 100% {
        transform: translateY(0) rotate(225deg);
    }

    50% {
        transform: translateY(-8px) rotate(225deg);
    }
}

/* Keep the next arrow at the bottom. */
.next-arrow {
    bottom: 30px;
}

/* Past work horizontal carousel */
.work-inner {
    width: min(1000px, 100%);
}

.work-carousel {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 5px 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    cursor: grab;
}

.work-carousel:active {
    cursor: grabbing;
}

.work-card {
    flex: 0 0 clamp(260px, 32vw, 360px);
    scroll-snap-align: start;
    border-radius: 22px;
    overflow: hidden;
    background: #f1f3f5;
}

.work-image {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dbe5ec;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: .05em;
}

.work-card-content {
    padding: 20px;
}

.work-card-content h3 {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 10px;
    margin-bottom: 5px;
}

.work-card-content p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.5;
}

.carousel-hint {
    margin-top: 8px;
    margin-left: auto;
    margin-right:auto;
    font-size: .75rem;
    letter-spacing: .08em;
    opacity: .65;
text-align:center;
}

@media (max-width: 700px) {
    h2 {
       
        margin: 0 0 15px;
        font-size: clamp(1.3rem, 2vw, 2rem);
    }

    h3 {
        margin: 0 0px 0px;
        font-size: 1rem;
    }

    p {
        max-width: 780px;
        font-size: clamp(0.8rem, 1.5vw, 1.25rem);
        line-height: 1.3;
        margin:0 auto 4px;
    }

    .feature-grid p {
        font-size: 0.7rem;
        line-height: 1.5;
    }

    .profile-image {
        bottom: -20px;
        right: -75px;
        width: clamp(170px, 22vw, 400px);
    }

    .side-menu {
        padding: 90px 30px 30px;
        min-width: 210px;
    }

    .social-menu {
        padding: 90px 24px 30px;
        min-width: 240px;
    }

    .previous-arrow {
        top: 20px;
    }

    .work-card {
        flex-basis: 78vw;
    }
}
