/* Custom properties for fonts and colors */
:root {
    /* Fonts */
    --font-heading: "marlide-display-variable", serif;
    --font-primary: "paralucent-condensed", sans-serif;
    --font-weight-regular: 300;
    --font-weight-bold: 600;

    /* Colors */
    --color-background: #ffb48d;
    --color-text: #000;
    --color-text-hover: #666;

    /* Dimensions */
    --projects-heading-height: 50vh;
    --rotation-angle: -3deg;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-regular);
    background-color: var(--color-background);
}

/* Navigation styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-text);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 8vh;
}

/* Carousel styles */
.carousel {
    position: relative;
    height: 92vh;
    overflow: hidden;
}

.carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Each direct child of nav gets equal width */
nav > * {
    /* flex: 1; */
    display: flex;
    /* justify-content: center; */
    /* max-width: 33.333%; */
}

.brand {
    flex: 1;
    max-width: 33.333%;
    font-size: 1.4rem;
    font-weight: var(--font-weight-regular);
    font-family: var(--font-primary);
    justify-content: flex-start;
    color: var(--color-text);
}

#logo {
    /* width: 40px; */
    cursor: pointer;
    pointer-events: all;
}

.suite {
    font-style: italic;
}


.nav-image {
    height: 40px;
    width: 59px;
}

.nav-links {
    flex: 1;
    max-width: 33.333%;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.nav-links a {
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.3s ease;
    font-weight: var(--font-weight-regular);
    font-family: var(--font-primary);
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Projects Section */

.projects-section {
    border-top: 1px solid var(--color-text);
}

.projects-heading {
    height: var(--projects-heading-height);
    font-weight: var(--font-weight-regular);
    font-family: var(--font-heading);
    font-size: clamp(30px, 27vw, 500px);
    transform: translateY(-6%) rotate(var(--rotation-angle));
    transform-origin: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    margin: 0 auto;
    pointer-events: none;
}

.projects-subheading {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    text-align: center;
    margin-top: 5rem;
    margin-bottom: 4rem;
    padding: 0 3rem;
    line-height: 1;
    color: var(--color-text);
}

.project-list {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    padding: 0 0;
}

.project-item:first-child {
    border-top: 1px solid var(--color-text);
}

.project-item {
    border-bottom: 1px solid var(--color-text);
    cursor: pointer;
    /* overflow: hidden; */
    transition: background-color 0.3s ease;
}

.project-header {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-text);
    padding: 0.1rem 1.8rem 0.4rem;
    display: flex;
    align-items: center;
    width: 100%;
}

.project-title-container {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    flex: 1;
}

.close {
    display: none;
    font-family: var(--font-primary);
    font-size: 0.4em;
    margin-left: auto;
    text-decoration: underline;
}

.project-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 1s ease;
    padding: 0 0rem;
}

.project-item.active .project-content {
    max-height: 105vh;
}

.project-item.active .close {
    display: block;
}

.project-description {
    max-width: 800px;
    padding: 0 1.8rem;
    /* height: 20vh; */
}

.project-description p {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    line-height: 1;
    max-width: 400px;
}

.project-info {
    /* max-height: 20vh; */
    height: 100%;
    display: flex;
    flex: 1;
    justify-content: space-between;
    cursor: default;
    align-items: end;
}

.info-bubbles {
  display: none;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: end;
}

/* Base bubble */
.bubble {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  padding: 0.35rem 1rem;
  background-color: var(--color-background);
  color: var(--color-text);
  position: relative;
  z-index: 1;
}

/* Outline container */
.outline {
  position: relative;
  display: inline-block;
  z-index: 0;
}

/* Outline background */
.outline::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #000;
  transform: scale(1.01, 1.029);
  z-index: -1;
}

/* Shapes — apply clip-path to both the .outline::before AND the .bubble */
.ellipse .bubble,
.ellipse.outline::before {
  clip-path: ellipse(50% 50% at 50% 50%);
}

.nonagon .bubble,
.nonagon.outline::before {
  clip-path: polygon(
    50% 0%, 83% 12%, 100% 43%, 94% 78%, 
    68% 100%, 32% 100%, 6% 78%, 0% 43%, 17% 12%
  );
}

.heptagon .bubble,
.heptagon.outline::before {
  clip-path: polygon(
    50% 0%, 90% 20%, 100% 60%, 
    75% 100%, 25% 100%, 0% 60%, 10% 20%
  );
}



.project-carousel {
    width: 100%;
    /* position: relative; */
    max-height: 85vh;
    aspect-ratio: 16/9;
}

.project-carousel-inner {
    display: flex;
    height: 100%;
    padding: 2rem 1.8rem 0 1.8rem;
    /* transition: transform 0.3s ease; */
}

.project-carousel-inner img {
    max-height: 85vh;
    object-fit: contain;
    padding: 0rem 1rem 1rem 0rem;
}

.project-carousel-inner video {
    max-height: 85vh;
    object-fit: contain;
    padding: 0rem 1rem 1rem 0rem;
}

.project-item.active .project-carousel-inner img {
    display: block;
}

.year {
    font-family: var(--font-primary);
    font-size: 0.4em;
    opacity: 0.8;
    text-decoration: underline;
}

.footer-section {
    font-family: var(--font-primary);
    overflow: hidden;
    width: 100vw;
}

.footer-top {
    display: flex;
    /* justify-content: space-between; */
    border-bottom: 1px solid #000;
    
}

.footer-left {
    width: 50vw;
    border-right: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-wrap: nowrap;
}

.footer-intro {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.5;
    width: 80%;
    text-align: center;
    line-height: 1.0;
}

.footer-right {
    display: flex;
    /* flex-direction: column; */
    /* align-items: ; */
    align-items: center;
    width: 50vw;
    align-items: center;
    justify-content: space-evenly;
    padding: 2rem 5%;
}

.all-services {
    text-decoration: underline; 
    color: var(--color-text);
    /* margin-bottom: 0.5rem; */
}

/* .footer-services {
    gap: 3rem;
} */

.footer-services p {
    margin: 0.3rem 0;
    font-size: 1.3rem;
    line-height: 0.8;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
    }
    
    .footer-left{
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #000;
        /* padding: 4rem 0; */
        height: 20vh;
    }
    .footer-right {
        width: 100%;
        border-right: none;
        padding: 1rem 10%;
        height: 20vh;
    }
}

.eye-row {
    display: flex;
    width: 2400px;
    justify-content: left;
    align-items: center;
    overflow-x: clip;
    border-bottom: 1px solid #000;
    padding: 0.5rem 0;
}

.bottom-eye {
    height: auto;
    width: 62px;
    animation: slide 10s infinite;
    animation-timing-function: linear;
    margin: 0 -1px;
}

@keyframes slide {
    0% {
        transform: translateX(0px);
    }
    100% {
        transform: translateX(-600px);
    }
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.4rem;
    height: 8vh;
    padding: 1rem 2rem;
}

.footer-links a {
    margin-right: 0.5rem;
    color: var(--color-text);
    text-decoration: none;
}

.footer-links a:last-of-type {
    margin-right: 0;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 576px) {
    .brand {
        max-width: 100%;
        font-size: 1.6rem;
    }

    .nav {
        display: flex;
    }

    .nav-links {
        display: none; 
    }

    .project-item.active .close {
        display: none;
    }

    .project-carousel {
        overflow: visible;
        width: 100%;
        aspect-ratio: auto;
    }

    .project-carousel-inner {
        overflow: scroll;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 1rem 1rem 0 1rem;
    }

    .project-carousel-inner::-webkit-scrollbar {
        display: none;
    }

    .project-carousel-inner img {
        max-height: 31vh;
        width: 100%;
        object-fit: contain;
        padding: 0 0 1rem 0;
        margin: 0 1rem 0 0;
    }

    .project-carousel-inner video {
        max-height: 31vh;
        width: 100%;
        object-fit: contain;
        padding: 0 0 1rem 0;
        margin: 0 1rem 0 0;
    }

    .project-carousel-inner img:last-of-type {
        margin: 0;
    }

    .footer-bottom{
        flex-direction: column;
        /* justify-content: flex-start; */
        text-align: left;
        align-items: flex-start;
        gap: 0.1rem;
        height: auto;
    }

    .footer-links {
        font-size: 1.6rem;
    }

    .footer-copy {
        font-size: 1.6rem;
    }

}


@font-face {
font-family:"paralucent-condensed";
src:url("https://use.typekit.net/af/160f8b/00000000000000007735b47a/31/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i4&v=3") format("woff2"),url("https://use.typekit.net/af/160f8b/00000000000000007735b47a/31/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i4&v=3") format("woff"),url("https://use.typekit.net/af/160f8b/00000000000000007735b47a/31/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i4&v=3") format("opentype");
font-display:auto;font-style:italic;font-weight:400;font-stretch:normal;
}

@font-face {
font-family:"paralucent-condensed";
src:url("https://use.typekit.net/af/98dce0/00000000000000007735b491/31/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff2"),url("https://use.typekit.net/af/98dce0/00000000000000007735b491/31/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff"),url("https://use.typekit.net/af/98dce0/00000000000000007735b491/31/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("opentype");
font-display:auto;font-style:normal;font-weight:400;font-stretch:normal;
}

@font-face {
font-family:"marlide-display-variable";
src:url("https://use.typekit.net/af/3af201/0000000000000000774ba8d7/31/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff2"),url("https://use.typekit.net/af/3af201/0000000000000000774ba8d7/31/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff"),url("https://use.typekit.net/af/3af201/0000000000000000774ba8d7/31/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("opentype");
font-display:auto;font-style:normal;font-weight:300 900;font-stretch:normal;
}