* {
    margin: 0;
    font-family: 'Satoshi', sans-serif;
    box-sizing: border-box;
}

:root {
    --bg-primary:  #F7F7F8;
    --bg-secondary: #EDEDED;
    --bg-inverse: #1C1E1F;
    --text-primary: #1C1E1F; 
    --text-inverse: #DADBDC;
    --text-secondary: #2A2C2F;
    --image-filter: invert(100%);
    --med-contrast: #6B6E71;
    --border-color: #d9d9de;
    --yap: #F1A268;
    --opentowork: #51b446;
    --bg-active: #dcdcdc;
    --gradient: linear-gradient(to bottom, #f7f7f800, #F7F7F8);
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6E71' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}


body {
    background: var(--bg-primary, #0E0F10);
    font-size: 16px;
    overflow-x: hidden;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] a,
html[lang="ar"] p,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h4,
html[lang="ar"] h6,
html[lang="ar"] span,
html[lang="ar"] label,
html[lang="ar"] select,
html[lang="ar"] option,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] .title,
html[lang="ar"] #project-number {
    font-family: "IBM Plex Sans Arabic", "Satoshi", sans-serif !important;
}


body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--bg-inverse);
    border-radius: 8px;
}

body::-webkit-scrollbar-track {
    background-color: transparent;
}

body::-webkit-scrollbar-thumb:hover {
    background-color: var(--med-contrast);
}


header {
    margin: 32px;
    display: flex;
    justify-content: center;
    z-index: 5;
    transition: top 0.6s;
}

.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, 32px);
    margin: 0!important;
  
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 104px;
}

.home-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
}

.right-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

}



.spacer {
    height: 3rem;
}

.left {
    display: flex;
    max-width: 50dvw;
    max-height: 100dvh;
    padding: 64px 80px;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    flex: 1 0 0;
}

.home-container .left p {
    text-align: center;
}

.round-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    box-shadow: rgba(0, 0, 0, 0.5) 0px 0.6px 0.6px -1.25px, rgba(0, 0, 0, 0.16) 0px 2.4px 2.4px -2.5px, rgba(0, 0, 0, 0.06) 0px 10px 10px -4px;
    object-fit: cover;
}

.note {
    width: 50%;
    height: auto;
    object-fit: contain;
    filter: none;
    position: absolute;
}

.flip-card {
    display: flex;
    align-items: center;
    background-color: transparent;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    perspective: 1000px;
}

.flip-card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card:focus .flip-card-inner {
    transform: rotateY(180deg);
}

.right:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}


.flip-card-back {
    transform: rotateY(180deg);
}

.flip-card-back:focus {
    transform: rotateY(180deg);
}

.about-me {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.about-me_text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-me_text .chip {
    color: #73db67;
    background-color: #73db6722;
}

.about {
    display: flex;
    align-items: center;
    max-width: 390px;
    gap: 1rem;
    flex-wrap: wrap;
}

.hover-target {
    position: relative;
    animation: pulse-grey 2s infinite ease-in-out;
    cursor: help;
}

@keyframes pulse-grey {
    0% {
      color: #DADBDC;
    }
    50% {
      color: #6B6E71;
    }
    100% {
      color: #DADBDC;
    }
  }

.hover-target .hover-content {
  position: absolute;
  bottom: 125%;
  left: 50%;
  color: white;
  font-size: 2.5rem;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-50%) scale(0.9);
  z-index: 10;
}

.hover-target:hover .hover-content {
    opacity: 0.9;
    transform: translateX(-50%) scale(1);
}

.chip {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    gap: 0.5rem;
    font-size: 0.75rem;
    border-radius: 24px;
}

.dot {
    display: flex;
    flex-direction: row;
    background-color: #73db67;
    border-radius: 40px;
    width: 5px;
    height: 5px; 
}

.right {
    display: flex;
    margin-bottom: 40px;
    width: min(40dvw, 680px);
    max-width: 100%;
    padding: 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex: 1 0 0;
    border-radius: 12px;
    background: var(--bg-secondary, #1C1E1F);
    perspective: 1000px;
    transform-style: preserve-3d;
    border: 1px solid;
    border-color: var(--border-color);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0.6px 0.6px -1.25px, rgba(0, 0, 0, 0.16) 0px 2.4px 2.4px -2.5px, rgba(0, 0, 0, 0.06) 0px 10px 10px -4px;
}

.projects-section {
    width: min(40dvw, 680px);
    max-width: 100%;
}

.projects-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-preview-card {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary, #1C1E1F);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0.6px 0.6px -1.25px, rgba(0, 0, 0, 0.16) 0px 2.4px 2.4px -2.5px, rgba(0, 0, 0, 0.06) 0px 10px 10px -4px;
}

.project-preview-visual {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
}

.project-preview-image {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: right center;
    border-radius: 8px;
}

.project-preview-visual--one {
    background: linear-gradient(135deg, #A56BF880 0%, #2C3335 100%);
}

.project-preview-visual--two {
    background: linear-gradient(135deg, #21a18c88 0%, #2C3335 100%);
}

.project-preview-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.project-preview-meta p {
    margin: 0;
}

.status-pill {
    border-radius: 999px;
    border: 1px solid #73db6799;
    background: #73db6722;
    color: #73db67;
    padding: 4px 10px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.status-pill--building {
    border-color: #f8c66b99;
    background: #f8c66b22;
    color: #f8c66b;
}



.margin-bottom {
    margin-bottom: 1.5rem;
}

.activity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.activity p {
    position: relative;
    display: inline-block;
}

.activity a {
    text-decoration: none;
}

.activity-modal {
    display: none;
    position: absolute;
    max-width: 100%;
    height: auto;
    left: 65%;
    background-color: transparent;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    top: 5%;
}

html[dir="rtl"] .activity-modal {
    left: auto;
    right: 65%;
}

.activity-modal img {
    max-width: 75%;    
}


.activity p:hover + .activity-modal {
    display: inline-block;
    opacity: 1;
}

.activity:focus + .modal-hover {
    display: block;
}

figcaption {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.dropshadow {
    border-radius: 4px;
    box-shadow: 0 2px 12px 0px rgba(0, 0, 0, 0.15);
}
/*iframe {
    margin-top: 10px;
    height: 80px;
}*/

button {
    color: var(--med-contrast);
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}


.expandable-tabs {
    display: flex;
    width: fit-content;
    gap: 8px;
    background: var(--bg-primary);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-button:hover {
    background: var(--bg-active)!important;
}

.tab-button.active {
    background: var(--bg-secondary);
}

.tab-button .title {
    width: 0;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tab-button.expanded {
    gap: 8px;
    background: var(--bg-secondary);
}

.tab-button.expanded .title {
    width: auto;
    opacity: 1;
}

.tab-button .icon {
    transition: transform 0.2s ease;
}

.tab-button:hover .icon,
.tab-button.active .icon {
    transform: scale(1.1);
}

.tab-button.loading {
    opacity: 0.7;
    cursor: wait;
}

@media (hover: none) {
    .tab-button:active {
        background: var(--bg-active);
        transform: scale(0.98);
    }
}


.btn-link {
    color: var(--link);
    cursor: pointer;
    text-decoration: none;
}

.btn-link:hover {
    color: var(--med-contrast);
}

.links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

a {
    color: var(--med-contrast);
    font-size: 1em;
}

h1 {
    color: var(--text-primary);
    font-family: 'Neco', serif;
    font-size: 3rem;
    font-weight: 700;
    text-wrap: nowrap;
}

h2 {
    color: var(--text-primary);
    font-family: 'Neco', serif;
    font-size: 2rem;
    font-style: normal;
    font-weight: 700;
    line-height: 2.4rem;
}

h6 {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 300;
    margin: 0;
}

p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 300;
    margin: 0;
}

#project-description {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 300;
    min-height: 60px;
    height: 40vh;
}

#project-description.updating {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#project-description {
  transition: opacity 0.3s ease-in-out;
}

.bold {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
    z-index: 1200;
}

footer img {
    filter: var(--image-filter);
}

.location {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    flex-wrap: wrap;
    width: 190px;
}

.tooltiptext {
    display: none;
    text-wrap: nowrap;
    width: fit-content!important;
    background-color: var(--bg-inverse);
    color: var(--text-inverse);
    font-size: 0.7rem!important;
    font-weight: 400;
    text-align: center;
    border-radius: 4px;
    padding: 6px 10px;
    position: absolute;
    z-index: 1;
    top: -30px;
    left: 25%;
    transform: translateX(-50%);
}


.location:hover .tooltiptext {
    display: block;
}

.tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--bg-inverse) transparent transparent transparent;
}

.socials {
    display: flex;
    align-items: center;
    gap: 24px;
}

.linkedin-link {
    display: flex;
}

.linkedin-box {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.linkedin-box img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.globe-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    stroke: var(--med-contrast);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.language-select {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 8px 12px;
    background: transparent;
    background-image: var(--select-arrow);
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    color: var(--med-contrast);
    font-size: 0.7rem;
    line-height: 1.2;
    min-width: 80px;
    color-scheme: light;
}

html[lang="ar"] .language-select {
    background-position: left 12px center;
    padding: 8px 12px;
}

.language-select:hover {
    background: var(--bg-active);
}

.language-select:focus-visible {
    outline: 2px solid var(--med-contrast);
    outline-offset: 1px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

footer p {
    color: var(--med-contrast);
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 300;
    width: auto;
    text-align: center;
}

.alert {
    font-size: 0.8rem;
    font-weight: 400;
    position: fixed;
    bottom: 16px;
    right: 8%;
    transform: translateX(-50%);
    background-color: var(--bg-inverse);
    color: var(--text-inverse);
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    display: inline-block;
}


@media only screen and (max-width: 900px) {
    h1 {font-size: 2rem;}
    h2 {font-size: 1.5rem; line-height: 24px;}
    p {font-size: 1rem;}
    h6 {font-size: 0.85rem;}
    #project-description {font-size: 1rem;}

    .container {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 8px;
        padding: 8px 6%;
        flex-wrap: nowrap;
    }
   
    .round-image {
        width: 150px;
        height: 150px;
    }
    .right {
        width: min(100%, 680px);
        max-width: 100%;
        padding: 28px;
        margin-right: 0;
        gap: 16px;
        }

    
    .left {
        width: min(100%, 680px);
        max-width: 100%;
        padding: 40px 20px;
        gap: 32px;
        }

    .about-me {
        gap: 16px;
    }
    .flip-card {
    width: 150px;
    height: 150px;
    }

    footer p,
    footer img {
        font-size: 0.7rem;
        height: 16px;
    }

    #project-name {
        gap: 16px!important;
    }

    #project-name p {
        margin-bottom: 0!important;
    }
    .project-info {
        flex-direction: row!important;
        justify-content: space-between;
        gap: 24px!important;
    }

    .f-horizon {
        flex-direction: row;
        gap: 8px!important;
    }

    .project-container {
        width: 100%!important;
        padding: 40px 20px 24px 20px!important;
        flex-direction: column;
        gap: 24px!important;
        position: static;
    }

    .project.container img {
        border-radius: 4%;
    }

    #project-description {
        height: auto;
    }

    .service p {
        word-wrap: normal!important;
    }

    .textbox {
        padding-top: 20%;
        line-height: 1.7rem!important;
    }


    .activity-modal img {
        max-width: 90%;
        width: 100%;
        height: 100%;
    }

    .work {
        flex-direction: column;
    
    }

    .project-gallery {
        width: auto!important;
        margin: 16px 20px 24px 20px!important;
        overflow-y: visible;
        scroll-snap-type: none;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto; 
      }
    
      .grid > div {
        grid-column: span 2; 
        grid-row: auto;
      }
}

@media only screen and (max-width: 480px) {
    .left p {
        text-align: center;
    }

    .container {
        padding: 8px 4%;
        height: auto;
    }

    .playground-container {
    padding-top: 10%;
    }
    
    .right {
        width: 100%;
        padding: 20px 16px;
        margin-bottom: 48px;
    }

    .left {
        width: 100%;
        padding: 24px 12px;
        gap: 24px;
    }

    .right-section {
        width: 100%;
        align-items: center;
    }

    .projects-section {
        width: 100%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .mode {
        display: none;
    }

    button {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
        text-wrap: nowrap;
    }

    #project-description {
        height: auto;
    }
    
    .project-gallery img,
    .project-gallery video {
        min-height: 180px!important;
    }

    .project-container {
        padding: 32px 12px 20px 12px!important;
        margin-top: 16px;
    }

    .project-gallery {
        margin: 12px 12px 20px 12px!important;
        gap: 20px;
    }

    .work {
        justify-content: space-between!important;
    }

    .arrows img {
        max-height: 40px!important;
        min-height: 20px;
    }

    .f-horizon {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    footer {
        background-color: var(--bg-primary);
        padding: 8px 16px!important;
        box-shadow: 0 -2px 16px -2px rgba(0, 0, 0, 0.1);
        flex-wrap: wrap;
    }

    .tooltiptext {
        left: 40%;
    }

    .centered-vertical {
        order: 3;
        width: 100%!important;
        text-align: center;
        font-size: 0.75rem;
        
    }
    .location {
        width: auto;
        flex-wrap: nowrap;
    }

    .language-switcher {
        order: 4;
    }

    .language-select {
        font-size: 0.65rem;
        padding: 6px 34px 6px 8px;
        background-position: right 10px center;
        min-width: 100px;
    }

    .globe-icon {
        width: 16px;
        height: 16px;
    }

    .socials a {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    html[lang="ar"] .language-select {
        background-position: left 10px center;
        padding: 6px 8px 6px 34px;
    }

 .location p {
    text-align: left;
    width: max-content;
 }

 .expandable-tabs {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 8px;
    z-index: 1000;
}

html[dir="rtl"] .container,
html[dir="rtl"] .project-container,
html[dir="rtl"] .project-info,
html[dir="rtl"] #project-name,
html[dir="rtl"] .service,
html[dir="rtl"] .activity,
html[dir="rtl"] .right {
    align-items: flex-end;
    text-align: right;
}

html[dir="rtl"] .activity {
    align-items: stretch;
}

html[dir="rtl"] .activity p {
    width: 100%;
    text-align: right;
}

html[dir="rtl"] .about-me_text,
html[dir="rtl"] .centered-vertical {
    text-align: center;
}

html[dir="rtl"] .f-horizon {
    flex-direction: row-reverse;
}

html[dir="rtl"] .location {
    flex-direction: row-reverse;
}

html[dir="rtl"] .socials {
    flex-direction: row-reverse;
}

html[dir="rtl"] .activity-modal {
    left: auto;
    right: 65%;
}

.blog-container {
    padding: 20% 5%;
}
}

/* work page */

.work-container {
    display: flex;
    flex-direction: column;
    
}

.project-container {
    display: flex;
    flex-direction: column;
    height: fit-content;
    width: 50vw;
    padding: 60px 40px;
    margin-top: 40px;
    align-items: flex-start;
    gap: 40px;
    align-self: stretch;
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 1;
}

.project-gallery {
    height: auto;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    gap: 40px;
    margin: 80px 40px 40px 40px;
    }

.arrows {
    position: absolute;
    top: 15px;
    right: 15px;
}

.arrows img {
    max-height: 80px;
    min-height: 40px;
    mix-blend-mode: plus-lighter;
}

#project-number {
    font-family: neco;
    font-weight: 600;
    font-size: 2rem;
}

.project-gallery img,
.project-gallery video {
    scroll-snap-align: center;
    width: 100%; 
    height: auto;
    min-height: 480px;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0.6px 0.6px -1.25px, rgba(0, 0, 0, 0.16) 0px 2.4px 2.4px -2.5px, rgba(0, 0, 0, 0.06) 0px 10px 10px -4px;
}

.blog-container {
    padding: 10% 25%;
}

.center {
    padding: 10% 25%;
}

.blog-container p {
    margin-bottom: 1rem;
    line-height: 150%;
}


.article {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2rem;
    margin: 1rem;
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    background-color: var(--bg-primary);
    appearance: none;
    cursor: pointer;
    border: none;
    text-align: inherit;
    vertical-align: baseline;
    line-height: normal;
    color: var(--med-contrast);
}

.article div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.article:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}


.date {
    color: var(--med-contrast);
    text-wrap: nowrap;
    font-weight: 500;
    font-size: 0.8rem;
    width: 20%;
}

.article .chip {
    color: var(--yap);
    background-color: #DA763F20;
    width: fit-content;
    text-wrap: none;
    min-width: 80px;
}

.divider {
    width: 100%;
    height: 1px;
    background-color: var(--bg-secondary);
}

.img-blog {
    border-radius: 12px;
    max-width: 50rem;
    min-width: 25rem;
    max-height: fit-content;
    min-height: 15rem;
    object-fit: cover;
    margin: 2.5rem 0;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 20px -2px, rgba(0, 0, 0, 0.06) 0px 10px 20px -4px;
}

.vid-blog {
    border-radius: 12px;
    max-width: 50rem;
    min-width: 25rem;
    max-height: fit-content;
    min-height: 15rem;
    object-fit: cover;
    margin: 2.5rem 0;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 20px -2px, rgba(0, 0, 0, 0.06) 0px 10px 20px -4px;
}



.f-horizon {
    display: flex;
    align-items: center;    
    gap: 40px;
}

.f-horizon p {
    font-size: 1rem;
}

.two-col {
    display: flex;
    width: 100vw;
    gap: 16px;
    width: 100%;
}

.two-col img {
    border-radius: 16px;
    object-fit: cover;
    width: 50%;
    max-width: 100%;
    height: auto;
    overflow-x: hidden;
}

.three-col {
    display: flex;
    gap: 16px;
    width: 100%;
}

.three-col img {
    border-radius: 16px;
    object-fit: cover;
    width: 50%;
    max-width: 100%;
    height: auto;
    overflow-x: hidden;
}


#project-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 24px;
    gap: 16px;
}

#project-name p {
    margin-bottom: 24px;
}

.project-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.service {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
}

.service p {
    font-size: 1rem;
    width: auto;
    word-wrap: break-word;
}

.work {
    display: flex;
    flex: 0 0 auto; 
    scroll-snap-align: center;
    scroll-snap-stop: always;
    border-radius: 12px;
}


.vertical-padding {
    padding-left: 25%;
    padding-right: 25%;
    padding-top: 5%;
    line-height: 1.7rem!important;
}


.tooltiptext {
    width: 80px;
    font-size: 0.5rem;
    border-radius: 6px;
}

.email:hover {
    cursor: pointer;

}

.socials {
    gap: 16px;
    }

/* monthly activities archive */

.centered-vertical {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.centered-vertical p {
    padding: 0 24px;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    padding: 40px;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    margin-bottom: 5%;
}

.grid > div {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.grid > div:hover {
    transform: scale(1.02);
}

.grid img, video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.col6 {
    grid-column: span 6;
    grid-row: span 4;
}

.col4 {
    grid-column: span 4;
    grid-row: span 3;
}

.col3{
    grid-column: span 3;
    grid-row: span 4;
}

.col8{
    grid-column: span 8;
    grid-row: span 3;
}


@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .grid > div {
        grid-column: span 4 !important;
        grid-row: span 3 !important;
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 20px;
    }
    
    .grid > div {
        grid-column: span 4 !important;
        grid-row: span 3 !important;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}
  
.close {
    color: var(--bg-inverse);
}
.modal .close {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 20px;
    right: 30px;
    background-color: var(--bg-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%; 
    font-size: 2.5rem;
    font-weight: semibold;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 20px -2px, rgba(0, 0, 0, 0.06) 0px 10px 20px -4px;
}
  
.modal .close:hover {
    color: var(--med-contrast);
}

  
.modal-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 20px -2px, rgba(0, 0, 0, 0.06) 0px 10px 20px -4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img,
.modal-content video {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 12px;
}

.modal-content.show {
    opacity: 1;
    transform: scale(1);
}
  
.v-flex {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

h4 {
    font-family: "Neco Variable";
    color: var(--text-primary);
    font-size: 2rem;
}

.month-card {
    display: flex;
    max-width: 400px;
    max-height: 400px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    padding: 24px 40px;
    border-radius: 12px;
    background: var(--bg-secondary, #1C1E1F);
    perspective: 1000px;
    transform-style: preserve-3d; 
    transition: transform 0.4s, box-shadow 0.3s ease;
    border: 1px solid;
    border-color: var(--border-color);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0.6px 0.6px -1.25px, rgba(0, 0, 0, 0.16) 0px 2.4px 2.4px -2.5px, rgba(0, 0, 0, 0.06) 0px 10px 10px -4px;
}

.month-card:hover {
    animation: waveAnimation 0.3s ease-in-out infinite;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0.6px 0.6px -1.25px, rgba(0, 0, 0, 0.16) 0px 2.4px 2.4px -2.5px, rgba(0, 0, 0, 0.12) 0px 10px 10px -2px;
    transform: scale(1.02) translateY(1rem);
     
}

.title {
    font-weight: 700;
}


@media (prefers-color-scheme: dark) {
    :root {
    --bg-primary: #0E0F10;
    --bg-secondary: #1C1E1F;
    --bg-inverse: #C8C9CA;
    --text-primary: #F7F7F8; 
    --text-inverse: #1C1E1F;
    --text-secondary: #ededed;
    --image-filter: invert(0%);
    --med-contrast: #909295;
    --border-color: #26262b;
    --work1: #0b231b;
    --work1-card: #21a18c75;
    --work2-card: #A56BF850;
    --work2: #1d0f2c;
    --work3: #1a2932;
    --work3-card: #2b4b4f;
    --work4: #3c140e;
    --work4-card: #702e1e;
    --work5: #2e5ac8;
    --work5-card: #002fa7;
    --archive: #272a2a;
    --archive-card: #3a4040;
    --yap: #DA763F;
    --opentowork: #73db67;
    --bg-active: #2e2e2e;
    --gradient: linear-gradient(to bottom, #0e0f1000, #0e0f10);
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23909295' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    .note {
        filter: invert(1);
    }
    }

    .language-select {
        color-scheme: dark;
    }

}

@media only screen and (max-width: 900px) {
    html[dir="rtl"] .work .project-container,
    html[dir="rtl"] .work #project-name,
    html[dir="rtl"] .work .project-info,
    html[dir="rtl"] .work .service {
        align-items: flex-end;
        text-align: right;
    }

    html[dir="rtl"] .work .f-horizon {
        align-items: flex-end;
    }
}

@media only screen and (max-width: 480px) {
    html[dir="rtl"] .work .project-container,
    html[dir="rtl"] .work #project-name,
    html[dir="rtl"] .work .project-info,
    html[dir="rtl"] .work .service {
        align-items: flex-end !important;
        text-align: right !important;
    }

    html[dir="rtl"] .work .f-horizon {
        align-items: flex-end !important;
        text-align: right !important;
    }

    html[dir="rtl"] .work #project-name,
    html[dir="rtl"] .work .project-info,
    html[dir="rtl"] .work .service {
        width: 100%;
    }

    html[dir="rtl"] .work #project-name h2,
    html[dir="rtl"] .work #project-name p,
    html[dir="rtl"] .work .service p {
        width: 100%;
        text-align: right !important;
    }
}