body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    background-color: #f5f5f5;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    /* Handle iOS Safari safe areas */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar, html::-webkit-scrollbar {
    display: none;
}

*, *::before, *::after {
    box-sizing: inherit;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f5f5f5;
    z-index: 1000;
    padding: 1.5rem 0;
    padding-top: calc(1.5rem + env(safe-area-inset-top));
    height: 72px;
    overflow: hidden;
}

/* Turn .nav-content into a 3-column grid */
.nav-content {
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    width: 100%;
}

.nav-logo {
    color: black;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    justify-self: start;
    z-index: 9999;
}

.nav-registered {
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: clamp(5rem, 15vw, 14rem);
    justify-content: center;
}

.nav-link {
    color: black;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    position: relative;
}

.nav-link:hover {
    opacity: 1;
}

.nav-number {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 9px;
    letter-spacing: -0.04em;
    opacity: 0.6;
    line-height: 100%;
    position: absolute;
    right: -12px;
}

/* Align hamburger to the right */
.hamburger {
    justify-self: end;
    display: flex;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 40px;
    height: 24px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    z-index: 9999;
}

/* Hamburger lines */
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: black;
    transition: all 0.3s ease;
    transform-origin: center;
    z-index: 9999;
}

/* Mobile styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-content {
        gap: 1rem;
        justify-content: space-between;
        display: flex; /* Override grid on small screens */
    }
}


.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 1.2s cubic-bezier(0.77,0,0.18,1);
    overflow: hidden;
    will-change: transform;
}

.preloader::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    height: 40dvh;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.8) 50%,
        rgba(0, 0, 0, 1) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1;
}

.preloader.hide {
    transform: translateY(-100%);
    pointer-events: none;
}


.logo {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    opacity: 0;
    position: absolute;
    bottom: -100px;
    animation: slideUp 1.2s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    z-index: 2;
}


.main-content {
    position: relative;
    min-height: calc(100vh - 72px);
    min-height: calc(100dvh - 72px);
    transform: translateY(100%);
    transition: transform 1.2s cubic-bezier(0.77,0,0.18,1);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    will-change: transform;
}

.main-content.show {
    transform: translateY(0);
}

.hero {
    width: calc(100% - 1rem);
    height: calc(100vh - 72px - 1rem);
    height: calc(100dvh - 72px - 1rem);
    background: black;
    position: relative;
    border-radius: 30px;
    margin: 0.5rem;
    margin-top: calc(72px + env(safe-area-inset-top));
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 130%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.textual-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    pointer-events: none;
    padding: 5vw 5vw 3vw 5vw;
    color: white; /* Required base color */
    mix-blend-mode: difference;
}

.textual-content-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.hero-title-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 3vw;
    margin-left: 1vw;
    mix-blend-mode: difference;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(3rem, 13vw, 13rem);
    line-height: 0.8;
    letter-spacing: -0.06em;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
}

.hero-registered {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 7vw, 8rem);
    margin-left: 1vw;
    position: relative;
    top: -2vw;
    line-height: 1.5;
}

.hero-title-detail {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 4vw, 4rem);
    letter-spacing: -0.06em;
    margin-top: 1vw;
    text-align: right;
}

.hero-services {
    margin-top: 6.5vw;
    margin-right: 4vw;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(1.2rem, 1.25vw, 1.2rem);
    line-height: 1.6;
    min-width: 18vw;
    mix-blend-mode: normal;

}

.textual-content-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(1.25rem, 1.25vw, 1.25rem);
    opacity: 0.8;
    line-height: 1.5;
    max-width: 40vw;
    margin-bottom: 2vw;
    margin-left: 1vw;
    text-align: center;
    color: black;
}

.rights {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.8rem, 1vw, 1rem);
    opacity: 0.6;

    color: black;
    letter-spacing: -0.04em;
}



.service {
    margin: 5px;
    padding: 0;
    letter-spacing: -0.05em;
}

.description-line {
    margin: 0;
    padding: 0;
}


/* Footer styles */
.footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto auto auto auto 120px;
    min-height: 85vh;
    min-height: 85dvh;
    font-family: 'Inter', sans-serif;
    margin-top: 2rem;
    padding: 0;
    background: #f5f5f5;
}
  
  
  
  .footer a {
    text-decoration: none;
    color: black;
    margin-bottom: 0.5rem;
    display: inline-block;
  }
  
  

  
  .footer-contact-col p {
    margin-top: 0;
    margin-bottom: 1rem; /* ou 0 si vous voulez vraiment serré */
  }
  

  .footer-phone-number {
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.04rem;
  }

  .footer-email {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.06rem;
  }
  
  .footer-email .email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none; /* Remove underline from whole link */
    color: inherit;
  }
  
  .footer-email .email-text {
    text-decoration: underline; /* Underline just the text */
    text-underline-offset: 8px;
  }
  
  .footer-email svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
  }

  .footer-contact-col {
    grid-area: 1 / 1 / 3 / 3; /* Colonnes 1 et 2 */
    display: flex;
    flex-direction: column;
    margin: 0 0 1rem 2rem;
    padding: 0;
}

.footer-columns {
    grid-area: 1 / 3 / 3 / 5; /* Colonnes 3 et 4 */
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 colonnes internes */
    gap: 2rem;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

  

.footer-navigation-col,
.footer-social-col {
    display: flex;
    flex-direction: column;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.06rem;
    margin: 0;
    padding: 0;
}

.footer-social-col a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.footer-social-col a:hover {
    color: #606060;
}

.footer-social-col i {
    font-size: 0.875rem;
    opacity: 0.7;
}

  
  .footer-nav-title,
  .footer-social-title {
    font-size: 1rem;
    font-weight: 400;
    color: #606060;
    margin-bottom: 0.75rem;
  }
  
  
  .footer-logo {
    grid-area: 3 / 3 / 5 / 5;
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    place-self: start;
    padding-bottom: 1rem;
  }
  
  .footer-logo-title {
    font-size: calc((100vw - 1rem) * 0.1);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    padding: 0;
  }
  
  
  .footer-logo-detail {
    font-size: 3rem;
    font-weight: 500;
    padding: 0;
  }

  .footer-rights-row {
    grid-area: 5 / 1 / 6 / 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    color: white;
    padding: 1rem 2rem;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}
  
  
  .footer-rights {
    font-size: 0.9rem;
    font-weight: 300;
    color: white;
  }
  
  .policies {
    display: flex;
    gap: 2rem;
  }
  
  .policies a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
  }
  
  .policies a:hover {
    text-decoration: underline;
  }
  

@keyframes slideUp {
    0% { 
        opacity: 0;
        bottom: -100px;
    }
    100% { 
        opacity: 1;
        bottom: 50%;
        transform: translateY(50%);
    }
}



@media (max-width: 900px) {
    .textual-content-top, .textual-content-bottom {
        flex-direction: column;
    }
    .textual-content-top {
        margin-top: 1rem;
    }

    .hero-services {
        align-self: flex-end;
        text-align: right;
        min-width: unset;
        margin-top: 6rem;
        color: rgb(0, 0, 0);
        margin-right: 0;
    }
    .hero-description {
        align-self: flex-start;
        max-width: 90vw;
        margin-bottom: 3rem;
    }

} 

.projects-section {
    width: 100%;
    background: #f5f5f5;
    padding: 2rem 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.projects-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-left: 1rem;
    padding-right: 1rem;
}
.projects-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #222;
    letter-spacing: -0.03em;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    width: 100%;
    margin-bottom: 2.5rem;
}

.project-item {
    background: #f5f5f5;
    border-radius: 20px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.07);
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s;
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
}

.project-item.landscape {
    justify-content: flex-start;
}

.project-meta {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    width: auto;
    background: #f5f5f5;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 0.6rem 1.2rem 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    z-index: 2;
}

.project-meta-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.08rem;
    font-weight: 500;
    color: #222;
    margin-right: 0.3rem;
}

.project-meta-year {
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    font-weight: 400;
    color: #888;
    opacity: 0.85;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    margin: 0;
    z-index: 1;
    aspect-ratio: 16 / 9;
    transform: none;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), border-radius 0.4s cubic-bezier(0.4,0,0.2,1), filter 0.4s cubic-bezier(0.4,0,0.2,1);
    filter: none;
}

.project-item:hover .project-image {
    transform: scale(1.08);
    filter: blur(4px);
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
}

.project-summary {
    font-size: 1.05rem;
    color: #555;
    margin: 0;
}

.see-more-projects {
    margin-top: 0;
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #fff;
    background: #222;
    border: none;
    border-radius: 32px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.2s, box-shadow 0.2s;
    align-self: center;
    display: block;
}

.see-more-projects:hover {
    background: #444;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}
  
.about-section {
    width: 100%;
    background: #f5f5f5;
    padding: 6rem 0 6rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 8rem;
    align-items: flex-start;
}

/* Responsive design for smaller screens */
@media (max-width: 800px) {
    .about-container {
        flex-direction: column;
        gap: 3rem;
        align-items: flex-start;
    }
    
    .about-header {
        min-width: auto;
        width: 100%;
    }
    
    .about-content {
        padding-right: 0;
        padding-left: 2rem;
    }
    
    .about-main-text {
        font-size: 2.5rem;
    }
    
    .about-secondary-text {
        font-size: 2rem;
    }
    
    /* Contact page specific rules */
    .contact-content {
        flex-direction: column;
        gap: 3rem;
        align-items: flex-start;
    }
    
    .contact-main-title {
        margin-top: 6rem;
    }
    
    /* Projects page specific rules */
    .projects-page-container .projects-main-title {
        margin-top: 6rem;
        padding-left: 1rem;
    }
    
    
    
}

.about-header {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 250px;
    gap: 0.5rem;
    padding-left: 2rem;
}


.about-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #272727;
    margin: 0;
}

.about-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-right: 2rem;
}

.about-main-text {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: #000;
    margin: 0;
    letter-spacing: -0.04em;
    opacity: 0;
    line-height: 1.1;
    transform: translateY(30px);
    transition: all 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-secondary-text {
    font-family: 'Inter', sans-serif;
    line-height: 1.1;
    font-size: 3.5rem;
    font-weight: 600;
    color: #666;
    margin: 0;
    letter-spacing: -0.04em;
    opacity: 0;
    transform: translateY(30px);
    transition: all 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-main-text.in-view,
.about-secondary-text.in-view {
    opacity: 1;
    transform: translateY(0);
}
  
.projects-hero-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    width: 100%;
    margin: 0 auto 3.5rem auto;
    padding: 2.5rem 0 1.5rem 0;
    background: transparent;
    margin-top: 72px;
}

.projects-hero-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.projects-hero-count {
    align-items: flex-start;
    justify-content: flex-start;
}

.projects-count {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #888;
    opacity: 0.7;
    margin-left: 2.5rem;

}

.projects-hero-title-col {
    align-items: center;
    justify-content: center;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.projects-hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    color: #111;
    margin: 0 auto;
    line-height: 1;
    letter-spacing: -0.04em;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
}

.projects-dot {
    color: #111;
    font-size: 1em;
    margin-left: 0.1em;
}

.projects-hero-copyright {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    color: #111;
    margin-top: 1.2rem;
    text-align: left;
    margin-left: 0.2em;
}

.projects-hero-desc {
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
}

.projects-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.90rem;
    color: #888;
    font-weight: 400;

    line-height: 1.5;
    opacity: 0.85;
    margin: 2.5rem;
}



@media (max-width: 1265px) {
    .projects-list {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .projects-page-container .projects-page-list {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 2rem 4rem 2rem;
    }
    .project-item, .project-item.landscape {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        aspect-ratio: 16 / 9;
    }
    .project-image {
        aspect-ratio: 16 / 9;
    }
    .projects-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .projects-page-container .projects-header {
        flex-direction: column !important;
        gap: 2rem;
    }
    
    .projects-page-container .projects-main-title,
    .projects-page-container .projects-info {
        width: 100% !important;
        text-align: right;
    }
}

@media (max-width: 900px) {
    .projects-hero-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    /* Left column: (27), Projects, ©2025 */
    .projects-hero-col.projects-hero-count,
    .projects-hero-col.projects-hero-title-col {
        grid-column: 1;
        margin: 2.5rem 0 0 2.5rem;
    }

    .projects-hero-col.projects-hero-desc {
        grid-column: 2;
    }

    /* Align (27) and Projects horizontally inside the left column */
    .projects-hero-title-col {
        display: flex;
        flex-direction: column;
    }

    .projects-hero-header-line {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .projects-hero-title {
        margin: 0;
    }

    .projects-count {
        font-size: 1.1rem;
    }

    .projects-hero-copyright {
        margin-top: 0.5rem;
    }
}

@media (max-width: 414px) {
    .projects-hero-row {
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }

    .projects-hero-col.projects-hero-count {
        display: inline-block;
    }

    .projects-hero-col.projects-hero-title-col {
        display: flex;
        flex-direction: column;
    }

    .projects-hero-header-line {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .projects-hero-title {
        margin: 0;
    }

    .projects-count {
        font-size: 1.1rem;
    }

    .projects-hero-copyright {
        margin-top: 0.25rem;
    }

    .projects-hero-col.projects-hero-desc {
        order: 3;
    }

    .projects-description {
        margin-top: 1rem;
    }
}


.mac-window-bar {
  display: flex;
  gap: 5px;
  padding: 0;
  background: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  width: fit-content;
  margin-top: 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background-color: #bbb;
  transition: background 0.2s;
}

.project-item:hover .dot.red { background-color: #ff5f57; }
.project-item:hover .dot.yellow { background-color: #ffbd2e; }
.project-item:hover .dot.green { background-color: #28c840; }
  
.project-meta-info {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

@media (max-width: 800px) {
  .footer {
    padding-top: 0;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    min-height: unset;
    grid-template-columns: none;
    grid-template-rows: none;
  }

  .footer-contact-col {
    padding-top: 0;
    padding-bottom: 2rem;
  }

  .footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 4rem;
  }

  .footer-navigation-col,
  .footer-social-col
  {
    grid-area: unset;
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .footer-logo {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* ensures left alignment */
  }
  
  .footer-logo-title {
    font-size: calc((100vw - 1rem) * 0.19); /* responsive and accounts for 1rem padding on both sides */
    font-weight: bold;
    line-height: 1.2;
    margin: 0;
    text-align: left;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .footer-logo-detail {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 2rem 0;
    text-align: left;
  }
  

  .footer-rights-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-rights {
    color: #d9d9d9;
    padding-top: 0.5rem;
    font-size: 0.8rem;
  }

  .policies {
    padding-top: 0.5rem;
    gap: 0.5rem;
    flex-direction: column;
    align-items: flex-start;
  }
}
  
/* Hamburger Menu Styles */
.navbar.menu-open {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* Set a z-index for the logo and hamburger so they appear above the overlay */
.nav-logo, .hamburger {
    position: relative;  /* Ensure they're in the stacking context */
    z-index: 1001;         /* Higher z-index */
}

/* Menu overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #f5f5f5;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

/* When the menu is open, make the overlay visible */
.menu-overlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Menu logo and hamburger */
.menu-nav-logo {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    z-index: 1003;
    color: black;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-hamburger {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    z-index: 1003;
    display: flex;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 40px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.menu-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: black;
    transition: all 0.3s ease;
    transform-origin: center;
    z-index: 9999;
}

/* Show menu elements when overlay is active */
.menu-overlay.active .menu-nav-logo,
.menu-overlay.active .menu-hamburger {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Slide down menu navigation when overlay is active */
.menu-overlay.active .menu-navigation {
    transform: translateY(0);
    opacity: 1;
}
  

.menu-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    padding: 2rem;
    box-sizing: border-box;
    position: relative;
    z-index: 1002;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}



.menu-navigation {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1002;
    transform: translateY(-30px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-link {
    color: black;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    letter-spacing: -0.03em;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: menuLinkFadeIn 0.6s ease forwards;
    position: relative;
    z-index: 1002;
    pointer-events: auto;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: black;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-link::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 50%;
    width: 20px;
    height: 20px;
    background: black;
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: left center;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.menu-link:nth-child(1) { animation-delay: 0.1s; }
.menu-link:nth-child(2) { animation-delay: 0.2s; }
.menu-link:nth-child(3) { animation-delay: 0.3s; }
.menu-link:nth-child(4) { animation-delay: 0.4s; }

.menu-link:hover {
    transform: translateY(-5px) scale(1.05) translateX(15px);
}

.menu-link:hover::after {
    width: 100%;
}

.menu-link:hover::before {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
}

.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 2rem;
    position: relative;
    z-index: 1002;
}

.menu-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-phone {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: black;
    margin: 0;
}

.menu-email {
    margin: 0;
}

.menu-email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: black;
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
}

.menu-email-link span {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.menu-email-link svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.menu-policies {
    display: flex;
    gap: 2rem;
}

.menu-policy-link {
    color: black;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.menu-policy-link:hover {
    opacity: 0.7;
}

.menu-copyright {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: black;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Menu hamburger animation - adjusted for proper X alignment */
.menu-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.menu-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hide nav links when menu is open */
.nav-links.menu-open {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Menu animations */
@keyframes menuLinkFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .menu-content {
        padding: 1.5rem;
    }
    
    .menu-navigation {
        gap: 1.5rem;
    }
    
    .menu-link {
        font-size: 2rem;
    }
    
    .menu-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .menu-policies {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .menu-link {
        font-size: 1.75rem;
    }
    
    .menu-email-link {
        font-size: 1.1rem;
    }
    
    .menu-phone {
        font-size: 0.9rem;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    body, html {
        /* Prevent zoom on input focus */
        -webkit-text-size-adjust: 100%;
        /* Handle iOS Safari viewport issues */
        height: 100vh;
        height: 100dvh;
    }
    
    .navbar {
        /* Ensure navbar stays at top with safe area */
        top: env(safe-area-inset-top);
        height: calc(72px + env(safe-area-inset-top));
    }
    
    .hero {
        /* Adjust hero margin for iOS safe areas */
        margin-top: calc(72px + env(safe-area-inset-top) + 0.5rem);
        height: calc(100dvh - 72px - env(safe-area-inset-top) - 1rem);
    }
    
    .main-content {
        /* Adjust main content for iOS safe areas */
        min-height: calc(100dvh - 72px - env(safe-area-inset-top));
        padding-top: env(safe-area-inset-top);
    }
}

/* Services Page Styles */
.services-hero {
    padding: 6rem 2rem;
    margin-top: 72px;
    min-height: calc(100vh - 72px);
    min-height: calc(100dvh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.services-container {
    max-width: 1400px;
    width: 100%;
}

.services-header {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 4rem;
    margin-bottom: 6rem;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 1rem;
}

.services-main-title {
    font-size: clamp(5rem, 15vw, 8rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    color: #000;
    margin: 0;
    text-align: left;
    flex: 1;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.services-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 50%;
    padding-top: 2rem;
    text-align: right;
}

.services-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #000;
    margin: 0;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.services-description {
    font-family: 'Inter', sans-serif;
    line-height: 1.1;
    font-size: 2rem;
    font-weight: 600;
    color: #666;
    margin: 0;
    letter-spacing: -0.04em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    padding: 1rem;
}

.service-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 10px;
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid #676767;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #000;
}

.service-icon {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.service-card-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #000;
    letter-spacing: -0.02em;
}

.service-card-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-feature {
    font-size: 0.875rem;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Contact Page Styles */
.contact-hero {
    margin-top: 10rem;
    min-height: calc(100vh - 72px);
    min-height: calc(100dvh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;

}

.contact-container {
    width: 100%;
}

.contact-main-title {
    font-size: calc((100vw - 1rem) * 0.125);
    font-weight: 600;
    letter-spacing: -0.05em;
    color: #000;
    margin-bottom: 3rem;
    margin-left: 2rem;
    text-align: left;
}

/* Projects Page Styles */
.projects-hero {
    margin-top: 10rem;
    min-height: calc(100vh - 72px);
    min-height: calc(100dvh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.projects-page-container {
    width: 100%;
}

.projects-page-content {
    width: 100%;
}

.projects-page-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding: 1rem;
    padding-bottom: 7rem;
}

.projects-page-container .projects-header {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 2rem;
    margin-bottom: 4rem;
    justify-content: center;
    align-items: center;
    padding-bottom: 3rem;
}

.projects-page-container .projects-main-title {
    font-size: clamp(5rem, 15vw, 8rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    color: #000;
    margin: 0;
    text-align: center;
    flex: 1;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



.projects-page-container .projects-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 50%;
    padding-top: 2rem;
    padding-right: 2rem;
    justify-content: center;
    text-align: right;
}

.projects-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #000;
    margin: 0;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.projects-page-description {
    font-family: 'Inter', sans-serif;
    line-height: 1.1;
    font-size: 2rem;
    font-weight: 600;
    color: #666;
    margin: 0;
    letter-spacing: -0.04em;
}

.contact-content {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding-bottom: 6rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-right: 1rem;
    padding-left: 2rem;
}

.contact-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #000;
    margin: 0;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.contact-description {
    font-family: 'Inter', sans-serif;
    line-height: 1.1;
    font-size: 2rem;
    font-weight: 600;
    color: #666;
    margin: 0;
    letter-spacing: -0.04em;
}

.contact-person {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 250px;
    gap: 0.5rem;
    padding-left: 2rem;
    margin-top: 2rem;
}

.contact-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-person-details {
    display: flex;
    flex-direction: column;
}

.contact-person-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #272727;
    margin: 0;
}

.contact-person-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #272727;
    margin: 0;
}


.contact-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-right: 2rem;
    padding-left: 1rem;
}

.contact-form-element {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: transparent;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #000;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.submit-btn {
    background: #000;
    color: white;
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: fit-content;
}

.submit-btn:hover {
    background: #333;
}

.submit-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    flex-shrink: 0;
}

.form-disclaimer {
    font-size: 0.85rem;
    color: #999;
    margin-top: 1rem;
    line-height: 1.4;
}

.disclaimer-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.disclaimer-link:hover {
    color: #000;
}

/* Responsive Design for New Pages */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        gap: 3rem;
        align-items: flex-start;
    }
    
    .contact-info {
        padding-right: 2rem;
        padding-left: 2rem;
    }
    
    .contact-subtitle {
        font-size: 2.5rem;
    }
    
    .contact-description {
        font-size: 2rem;
    }
    
    .contact-person {
        min-width: auto;
        width: 100%;
    }
    
    .contact-form {
        width: 100%;
        padding-right: 2rem;
        padding-left: 2rem;
    }
    
    .submit-btn {
        width: 100%;
    }
}

@media (max-width: 1115px) {
    .services-header {
        flex-direction: column !important;
        gap: 2rem;
    }

    .services-info {
        width: 100% !important;
        text-align: right;
    }

.services-main-title {
    width: 100% !important;
    text-align: left;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
  
  