/*** GLOBALS ***/

html, body {
    min-height: 100vh; 
    margin: 0;
    padding: 0;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: black transparent; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Degular, sans-serif;
    color: #333;
    padding: 0;
    min-height: 100vh;
    display: flex; 
    flex-direction: column; 
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: transparent; 
    border-left: 1px solid black;
}

::-webkit-scrollbar-thumb {
    background-color: black; 
    border-radius: 0; 
}

h2 {
    padding-bottom: 10px;
}

h2 a {
    text-decoration: none;
}

h2 a:visited{
     color: black;
}

a {
    color: black;
}

a:hover { 
    color: black;
}

a:visited{
    color: black;
}

/* Header */
header {
    background-color: #fff;
    padding: 1em;
    margin: 0;
    width: 100%;
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    position: relative; 
    
    border-bottom: 1px solid black;
}

/* Stacked title-name */
.title-name {
    color: black !important;
    font-family: Editor, Georgia, Times New Roman, Times, serif;
    font-size: 30px;
    font-weight: 400;
    text-transform: uppercase;
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.2;
    max-width: 100%;
}

.title-name .first-line {
    letter-spacing: 0.05em; 
}

.title-name a {
    text-decoration: none;
    transition: none;
    text-align: justify;
    display: inline-block;
    width: 100%;
}

.title-name a:hover {
    text-decoration: none;
    transition: none;
    --underline-width: 0;
}

.title-name a:visited {
    text-decoration: none;
    transition: none;
    --underline-width: 0;
    color: black;
}

.bar {
    position: flex;
    width: 100%;
    height: 5px;

    background-color: black;
    bottom: 0;
    top: 10px;
}


/* Navigation Menu (Desktop) */
.navigation{
    background-color: transparent;
    position: relative;
    top: 16px;
}

#nav-list {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

#nav-list li {
    text-align: center;
    margin: 0 15px;
    padding: 10px;
    position: relative;
    display: inline-block;
}

/* Set fixed widths for each tab */
#nav-list li:nth-child(1) {
    width: 100px; 
}

#nav-list li:nth-child(2) {
    width: 100px;
}

#nav-list li a {
    position: relative;
    display: inline-block;
    font-family: Degular, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #adadad;
    text-decoration: none;
    font-style: italic;
}

#nav-list li a:hover {
    color: black; 
    --underline-width: 0;
    font-weight: 600;
    text-decoration: underline;
}

#nav-list li a.active {
    color: black !important;
    --underline-width: 0;
    font-weight: 600 !important;
}


/*** Main content ***/
main {
    height: calc(100vh - 130px);
    overflow: hidden; 
}

.semi-circle {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 200px;
    width: 200px;
    border-radius: 150px 150px 0 0;
    background-color: green;
}

.content {
    width: 100%;
    height: 100%;
} 

.parent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto 1fr 1fr;
    grid-column-gap: 30px;
    grid-row-gap: 0;
    height: 100%;

    padding: 20px 20px 30px 20px;
    
    flex-grow: 1;
    z-index: 10;
} 

.tab-master{
    grid-area: 1 / 1 / 1 / 4;
    background-color: transparent;
    position: relative;
    top: 0;
    border-bottom: 1px solid black;
    z-index: 3; 
}

#tab-list {
    display: flex;
    flex-wrap: wrap; 
    position: relative;
    padding: 10px;
    justify-content: center;
    gap: 0.5rem;
}

#tab-list li {
    flex: 1 0 auto;
    max-width: 200px;
    height: auto;
    padding: 10px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    background: white;

    border-top: 1px solid #adadad;
    border-left: 1px solid #adadad;
    border-right: 1px solid #adadad;

    position: relative;
    z-index: 1;
    margin-bottom: -10px; 
    box-sizing: border-box; 
}

#tab-list li.active {
    border-color: black;
}

#tab-list li a {
    display: inline-block;
    width: auto; 
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    color: #adadad;
    position: relative;

    border: none;
    white-space: nowrap;
    overflow: hidden;
}

#tab-list li::after {
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    width: 25px;
    pointer-events: none;
    z-index: 2; 
    right: 0;

    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0.2), 
        rgba(255, 255, 255, 0.5), 
        rgba(255, 255, 255, 1), white);
}

#tab-list li:hover a {
    color: black; 
    --underline-width: 0;
    font-weight: 600;
    text-decoration: underline;
}

#tab-list li a.active {
    color: black; 
    font-weight: 600 !important;
}

.tab-banner {
    display: none; 
    position: absolute;
    background-color: white; 
    padding: 5px 10px; 
    
    font-family: Degular, sans-serif;
    font-size: 10px; 
    font-weight: 500; 
    color: black; 
    border: 1px solid black; 
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); 
    z-index: 20; 
    
    max-width: calc(100vw - 20px); 
    white-space: normal;
    word-wrap: break-word; 
    left: 0;
}

.tab-content {
    grid-area: 2 / 1 / 4 / 4;
    position: relative;
    background-color: white;
    border-right: 1px solid black;
    border-left: 1px solid black;
    border-bottom: 1px solid black;
    
    height: 100%; 
    overflow-y: auto; 
    padding: 20px; 
    z-index: 1;
}

.tab-body {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: min-content 1fr;
    gap: 0;
    grid-column-gap: 50px;
    grid-auto-rows: auto;

    background-color: white;
    padding: 20px 20px 20px 20px;
}

.tab-text {
    grid-area: 1 / 1 / 2 / 2;
    background-color: white;
}

.tab-text b {
    line-height: normal;
    padding: 10px 0;
}

.tab-text p {
    line-height: normal;
    padding: 5px 0;
    font-size: 16px;
}

.tab-description {
    grid-area: 2 / 1 / 3 / 2;
    background-color: white;
    width: 100%;
    height: auto;

    padding: 0;
    text-align: left;
    position: absolute;
    bottom: 0;

    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.4;
    max-height: calc(100% - 20px);
}

.tab-description-title {
    padding-bottom: 20px;
}

.tab-description p {
    font-family: Times New Roman, Times, serif;
    text-align: justify;
    font-size: 16px;
}

.tab-attribute {
    right: 0;
    padding: 15px 0 0 100px;
}

.tab-attribute p{
    font-family: Degular, sans-serif !important;
    text-align: right;
    font-size: 16px;
}

.tab-gallery {
    grid-area: 1 / 2 / 4 / 4;
    background-color: white;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.6s ease-in-out, border-color 0.3s ease;
    opacity: 1;
    border: 1px solid #adadad;
}

.tab-work-wrapper {
    width: 100%; /* Adjust this to fit the content */
    height: auto; /* Allow it to expand based on content */
    padding: 0;
    margin: 0;
    /* display: block; */
    text-align: right;
}

.tab-work-title { 
    width: auto;
    display: block;
    margin: 0; 
    padding: 0; 
    text-align: left;
}

.tab-work-title a { 
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    color: black; /* Change text color */
    --underline-width: 0;
    text-decoration: none;

    display: inline; /* Ensure the link respects alignment */
    text-align: right; /* Align text inside the link */
}

.tab-work-title a:hover { 
    font-weight: 600;
    text-decoration: underline;
    color: black; /* Change text color */
    --underline-width: 0;
}


.tab-image {
    padding: 10px 0;
}

.tab-image img {
    display: block;
    width: 70%;
    height: auto;
    margin: 0 auto; /* Centers the image horizontally */
}

p.address {
    line-height: 1.3em;
}


/** TBD **/
.work-list {
    width: fit-content;
    height: auto;
    grid-area: 1 / 1 / 4 / 2;
    overflow: visible; /* Ensure it doesn't cut off content */

    padding: 20px 20px 0 20px;
}

.work-list a{
    font-family: LoraRegular;
    font-weight: 400;
    font-size: 18px;
    text-decoration: none;
    color: #afafaf !important;
}

.work-list a:hover{
    /*text-decoration: underline;*/
    color: black !important;
}

.pointer {
    position: absolute;
    left: 30%;
    top: 110px;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-right: 100px solid black;
    z-index: 1;
    transition: top 0.3s ease-in-out; /* Smooth transition */
}

/* Dropdown Menu*/
.dropdown-toggle {
    font-family: LoraRegular;
    font-weight: 400;
    font-size: 18px;
    cursor: pointer;
    width: fit-content;
    height: auto;
    color: #afafaf;
    transition: color 0.3s ease; /* Smooth color transition */
    position: relative;
    
    padding-right: 25px;
}

.dropdown-toggle:hover{
    color: black;
}

/* Add the arrow with ::after */
.dropdown-toggle::after {
    content: '▼'; /* Down arrow symbol */
    font-size: 14px; /* Adjust arrow size as needed */
    color: transparent; /* Hidden by default */
    position: absolute;
    right: 0; /* Position it to the right of the text */
    top: 40%; /* Vertically center the arrow */
    transform: translateY(-50%) rotate(0deg); /* Initial state */
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease; /* Smooth transitions */}

/* Fade in arrow on hover */
.dropdown-toggle:hover::after {
    opacity: 1;
    color: black;
}

/* Keep the arrow visible when the dropdown is active */
.dropdown-active::after {
    /*content: '▲';  Up arrow symbol */
    opacity: 1; /* Keep it visible */
    color: black; /* Change color to black when active */
    transform: translateY(-50%) rotate(180deg); /* Rotate the arrow up */
    transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease; /* Smooth transitions */
}

.dropdown-active {
    color: black !important;
}

.dropdown-content {
    display: none;
    padding-bottom: 15px;
    padding-left: 15px;
    pointer-events: auto;
}

.dropdown-content a {
    color: black !important;
}

.dropdown-content p {
    padding-bottom: 10px;
}


/* Style when dropdown is active */
.dropdown-active .dropdown-content {
    display: block;
}

#projects a {
    font-family: LoraRegular;
    font-weight: 400;
    font-size: 18px;
    color: #D0D0D0;
}

/* Footer */
footer {
    position: fixed; /* Keep the footer fixed at the bottom */
    left: 0;         /* Align footer to the left */
    bottom: 0;       /* Position it at the bottom of the viewport */
    height: auto;
    width: 100%;     /* Make the footer take up the full width */
    text-align: left;
    font-size: 12px;
    color: black;
    z-index: 1000;   /* Ensure it appears above other elements */
    padding: 10px 0 !important;
    border-top: 1px solid black;
    background-color: white;
}

/* Marquee styles */
.marquee {
    --gap: 1rem;
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: var(--gap);
}

.marquee__content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    min-width: 100%;
    gap: var(--gap);
    animation: scroll 10s linear infinite; /* Base animation */
    animation-play-state: running; /* Default to running */
}

.marquee a {
    text-decoration: underline;
}

.marquee a:hover {
    font-weight: 700;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% - var(--gap)));
    }
}


/*** FONTS ***/
@font-face {
    font-family: 'Editor';
    src: url('/assets/fonts/editor/Editor-Regular.otf');
}

@font-face {
    font-family: 'EditorBold';
    src: url('/assets/fonts/editor/Editor-Bold.otf');
}

@font-face {
    font-family: 'EditorBoldItalic';
    src: url('/assets/fonts/editor/Editor-BoldItalic.otf');
}

@font-face {
    font-family: 'EditorItalic';
    src: url('/assets/fonts/editor/Editor-Italic.otf');
}

@font-face {
    font-family: 'Degular';
    src: url('/assets/fonts/degular-variable/DegularVariable.ttf');
}


@media (min-width: 769px) {
    .navigation-mobile {
        display: none;
    }
}

@media (max-width: 1148px) {
    .tab-attribute {
        padding: 15px 0 20px 100px;
    }
}

