@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');


@keyframes drift-animation {
    0% {
        transform: translate(-50%, -50%) rotate(35deg);
    }
    50% {
        transform: translate(-50%, -65%) rotate(35deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(35deg);
    }
}


.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    width: 26px;
    height: 26px;
    margin-top: 2px;
    margin-right: 2px
}

:root {
    --background-color: #1a1a2e;
    --header-bg-color: rgba(16, 16, 27, 0.45);
    --header-height: 66px;
    --text-color: #dcdbe1;
    --highlight-color: #aa5dc8;
    --button-bg: #3a364d;
    --button-hover-bg: #4c4766;
    --main-heading-color: #f8f9fa;
    --slidein-purple: #aa5dc8;
    --contact-grey: #7d7a8e;
    --accent-color-pop: #ff63c3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-y: scroll;
    background-image: radial-gradient(circle at 1px 1px, rgba(220, 219, 225, 0.04) 1px, transparent 0);
    background-size: 25px 25px;
}

header {
    height: var(--header-height);
    background: linear-gradient(180deg, rgba(22,22,37,0.45), rgba(22,22,37,0.30));
    background-color: var(--header-bg-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    padding: 0 5%;
    box-shadow: 0 6px 30px rgba(0,0,0,0.35);
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
    padding: calc(var(--header-height) + 6rem) 5% 2rem;
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1900px;
    margin: 0 auto;
    margin-top: 0;
}

nav .logo a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
}

nav .logo a:hover {
    color: var(--highlight-color);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 3rem; 
}


nav ul li a:not(.nav-contact-button) {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem;
    position: relative;
    padding-bottom: 8px;
}

nav ul li a:not(.nav-contact-button)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--highlight-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

nav ul li a:not(.nav-contact-button):hover {
    color: var(--highlight-color);
}

nav ul li a:not(.nav-contact-button):hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-contact-button {
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: var(--accent-color-pop);
    color: var(--background-color) !important;
    border: 2px solid var(--accent-color-pop);
    font-weight: 700;
    white-space: nowrap;
}

.nav-contact-button:hover {
    background-color: #ff85d1;
    border-color: #ff85d1;
    color: var(--background-color) !important;
}

.nav-contact-button i {
    font-size: 0.9rem;
}

.hello-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    gap: 4rem;
    margin-left: -30px
}

.hello-text {
    max-width: 720px;
    margin-left: 10px; 
}

.hello-text h1 {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--main-heading-color);
    margin-bottom: -1.5rem;
}

.hello-text h1 span {
    font-weight: 400;
}

.animation-container {
    font-size: 4.5rem;
    font-weight: 400;
    color: #aa5dc8;
    height: 7rem;
    position: relative;
    margin: -0.5rem 0 2.5rem 0;
    padding-left: 2.5rem;
    text-indent: 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.hello-text p {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--text-color);
    line-height: 1.4;
}

.hello-text p.multiline {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.no-bottom-margin {
    margin-bottom: 0 !important;
}

.rainbow-text {
    font-weight: 500;
    background: linear-gradient(90deg, 
        #9e84d0, #f296b8, #a0cdf4, #759ddf, #7c6eca);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 100%;
    animation: rainbow-scroll 7s linear infinite;
}

@keyframes rainbow-scroll {
    to {
        background-position: -300% 0;
    }
}

.quote-text {
    font-style: italic;
}

.hello-buttons {
    margin-top: 3.5rem;
    display: flex;
    gap: 1rem;
    padding-left: 2.5rem;
}

.hello-buttons .contact-button, .hello-buttons .work-button {
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hello-buttons .contact-button {
    background-color: var(--accent-color-pop);
    color: var(--background-color);
    border: 2px solid var(--accent-color-pop);
    font-weight: 700;
    position: relative;
    overflow: hidden;
    width: 175px;
    height: 48px;
    padding: 0;
}

.hello-buttons .contact-button:hover {
    background-color: #ff85d1;
    border-color: #ff85d1;
}

.hello-buttons .contact-button i,
.hello-buttons .contact-button span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.5s ease-in-out; 
}

.hello-buttons .contact-button i {
    left: 28px; 
}

.hello-buttons .contact-button span {
    left: 54px;
    white-space: nowrap;
}

.hello-buttons .contact-button:hover i {
    left: 50%;
    animation: drift-animation 1.1s infinite ease-in-out;
}

.hello-buttons .contact-button:hover span {
    left: 150%;
    opacity: 0;
}

.hello-buttons .work-button {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--button-bg);
    width: 175px;
    height: 48px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    position: relative; 
}

.hello-buttons .work-button:hover {
    background-color: var(--button-bg);
}

.hello-buttons .work-button i,
.hello-buttons .work-button span {
    position: relative;
    top: auto;
    transform: none;
    transition: none; 
    white-space: nowrap;
}

.hello-buttons .work-button i {
    margin-right: 8px;
}

.hello-image {
    width: 280px;
    height: 370px;
    transform: translateX(30px);
}

.picture-placeholder {
    width: 100%;
    height: 100%;
    background-color: #b8b7bf;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #6a667d;
    font-weight: 500;
    border-radius: 8px;
}


/*
========================================
About Page Styles
========================================
*/

.about-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 80vh;
    padding: 3rem 5%;
    padding-top: calc(var(--header-height) + 3rem);
}

.about-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    gap: 5rem;
    margin-left: 20px
}

.about-left {
    flex-basis: 80%;
    padding-top: 4rem;
    padding-right: 1rem;
    transform: translateX(-15%);
}

.about-right {
    flex-basis: 40%;
    margin-top: 20px
}

.about-left h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #aa5dc8;
}

.about-left .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 5rem;
}

.about-left .tags button {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--button-bg);
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-left .tags button:hover {
    background-color: var(--button-bg);
    border-color: var(--button-bg);
}
.about-left p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-color);
    max-width: 90%;
}

.about-left p a {
    color: var(--highlight-color);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.about-left p a:hover {
    color: var(--text-color);
}

.about-right h2 {
    color: var(--main-heading-color);
    font-weight: 500;
    font-size: 1.3rem;
    margin-bottom: 1.3rem;
    position: relative;
    border-bottom: none;
    text-align: center; 
    left: 15%;
}

.team-history h2 {
    margin-bottom: 1.3rem;
}

.team-history ul {
    list-style: none;
    position: relative;
    padding: 0;
    margin: 0;
}

.team-history ul::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 65%;
    transform: translateX(-50%);
    width: 2px;
    height: 90%;
    background-color: var(--button-hover-bg); 
}

.team-history li {
    position: relative;
    display: flex;
    align-items: center;
    height: 5.5rem;
    margin-bottom: 0;
}

.team-history li:last-child {
    margin-bottom: 0;
}

.team-history li::after {
    content: attr(data-year);
    position: absolute;
    top: 50%;
    left: 65%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--background-color);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
    transition: all 0.3s ease-out;
}

.team-history li:hover::after,
.team-history li.is-active::after {
    border-color: var(--highlight-color);
    box-shadow: 0 0 15px 3px rgba(170, 93, 200, 0.4);
}

.team-history li::before {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateY(10px) scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    background: linear-gradient(135deg, rgba(45, 43, 68, 0.15), rgba(30, 28, 45, 0.25));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 0.9rem 1.1rem;
    width: 220px;
    border-radius: 10px;
    text-align: left;
    z-index: 10;
}

.team-history li:hover::after {
    border-color: var(--highlight-color);
    box-shadow: 0 0 15px 3px rgba(170, 93, 200, 0.4);
    transform: translate(-50%, -50%) scale(1.1);
}

.team-history li:hover::before,
.team-history li.is-active::before {
    opacity: 1;
    transform: translateY(-50%) translateY(0) scale(1);
}

.team-history li:nth-child(odd)::before {
    left: 75%;
}
.team-history li:nth-child(even)::before {
    right: 45%;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-history li:nth-child(odd) .timeline-content {
    width: 65%;
    padding-right: 40px;
    text-align: right;
}

.team-history li:nth-child(even) .timeline-content {
    width: 35%;
    margin-left: 65%;
    padding-left: 40px;
    text-align: left;
}

.team-block:not(:last-child) {
    margin-bottom: 0.1rem;
}

.team-name {
    font-size: 0.85rem;
    font-weight: 400 !important;
    line-height: 1.4;
    white-space: nowrap;
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.team-logo {
    width: 16px;
    height: 16px;
}

.team-history li:nth-child(even) .timeline-content .team-name {
    flex-direction: row-reverse;
}


.references {
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.references p {
    color: #a0a0b4;
    line-height: 1.6;
    font-size: 0.9rem;
    position: relative;
    left: 10%;
    width: 120%;
}

.references p a {
    color: var(--highlight-color);
    text-decoration: underline;
    transition: color 0.2s;
}

.references p a:hover {
    color: var(--text-color);
}


/*
========================================
Contact Page Styles
========================================
*/

.contact-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 4rem 5%;
    padding-top: calc(var(--header-height) + 3.5rem);
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1100px;
    gap: 6rem;
}

.contact-left {
    flex-basis: 50%;
    margin-top: 2rem;
}

.contact-left h1 {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--main-heading-color);
    max-width: 100%;
}

.contact-left h1 .highlight {
    color: var(--highlight-color);
}

.contact-left > p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 4rem;
}

.social-links a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding-left: 4rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--highlight-color);
}

.social-links a i {
    margin-right: 0.6rem;
    width: 25px;
    text-align: center;
}

.contact-right {
    flex-basis: 50%;
    padding-left: 5rem;
    padding-top: 5rem;
}

.direct-contact-text {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 2.5rem;
}

.contact-right form {
    display: flex;
    flex-direction: column;
}

.form-group {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 0rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--contact-grey);
    color: var(--text-color);
    font-size: 1.1rem;
    padding: 0.7rem 0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--highlight-color);
}

.form-group label {
    position: absolute;
    top: 0.5rem;
    left: 0;
    color: #7d7a8e;
    font-size: 0.9rem;
    pointer-events: none;
    transition: all 0.4s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -1.5rem;
    font-size: .9rem;
    color: var(--highlight-color);
}
.form-group textarea {
    resize: vertical;
    min-height: 50px;
}

.submit-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 400;
    cursor: pointer;
    align-self: flex-start;
    transition: color 0.3s;
    padding-top: 0.5rem;
}

.submit-btn:hover {
    color: var(--highlight-color);
}

.typed-cursor {
    opacity: 1;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}


/*
========================================
Work Page Styles
========================================
*/

.work-main {
    padding: calc(var(--header-height) + 4rem) 5% 4rem;
    align-items: flex-start;
}

.work-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.work-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--main-heading-color);
    margin-bottom: 3rem;
}

.work-filters {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--button-bg);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--highlight-color);
    border-color: var(--highlight-color);
    color: var(--main-heading-color);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    min-height: 250px;
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--button-bg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 215px;
}

.work-item.hide {
    display: none;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
    filter: blur(0.6px);

}

.work-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.95), rgba(26, 26, 46, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.work-item:hover,
.work-item.is-active {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.work-item:hover .overlay,
.work-item.is-active .overlay {
    opacity: 1;
}

.work-item:hover img,
.work-item.is-active img {
    transform: scale(1.05);
    filter: blur(2px);
}

.overlay h3 {
    color: var(--main-heading-color);
    font-weight: 700;
    margin-bottom: 1rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.overlay .preview-btn {
    background-color: var(--accent-color-pop);
    color: var(--background-color);
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.2s, background-color 0.3s ease;
}

.work-item:hover .overlay h3,
.work-item:hover .overlay .preview-btn {
    transform: translateY(0);
}

.overlay .preview-btn:hover {
    background-color: #ff85d1;
}


/* Modal Styles */
.modal {
    display: none; 
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: #1e1e32;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 1700px;
    min-height: 600px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: #fff;
}

.modal-body {
    display: flex;
    gap: 2rem;
}

.modal-slider {
    flex: 2;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.slider-images img {
    width: 100%;
    display: none;
    border-radius: 8px;
}

.slider-images img.active-slide {
    display: block;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 46, 0.4);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.8rem;
    transition: background 0.3s;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-arrow:hover {
    background: rgba(46, 46, 66, 0.8);
}
.prev-arrow {
    left: 15px;
}
.next-arrow {
    right: 15px;
}

.modal-details {
    flex: 1;
    color: var(--text-color);
}

.modal-details h2 {
    color: var(--main-heading-color);
    margin-bottom: 1rem;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.modal-details p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 1.8rem;
}

.modal-link {
    color: var(--highlight-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.modal-link:hover {
    color: #c97ee8;
}

.modal-link i {
    margin-left: 0.5rem;
    font-size: 0.8em;
}


/*
========================================
Responsive Styles
========================================
*/

.mobile-nav-toggle {
    display: none;
}
.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;
}


@media (max-width: 992px) {
    /* --- Home Page --- */
    .hello-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        margin-left: 0;
        padding-top: 2rem;
    }

    .hello-text {
        margin-left: 0;
        max-width: 100%;
        order: 2;
    }

    .hello-image {
        transform: translateX(0);
        margin: 0 auto;
        order: 1;
        width: 220px;
        height: 290px;
    }

    .hello-text h1, .animation-container {
        font-size: 3rem;
    }

    .hello-text h1 {
        margin-bottom: -1rem;
    }

    .animation-container {
         padding-left: 0;
         justify-content: center;
    }

    .hello-buttons {
        justify-content: center;
        padding-left: 0;
        margin-top: 2.5rem;
    }

    /* --- About Page --- */
    .about-container {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .about-left,
    .about-right {
        flex-basis: 100%;
        max-width: 600px;
        padding-right: 0;
        transform: none;
    }

    .references p {
        width: auto;
        left: 0;
    }
    
    .about-right h2 {
        left: 0;
    }

    .team-history ul::before {
        left: 20px;
        transform: translateX(-50%);
    }

    .team-history li::after {
        left: 20px;
        transform: translate(-50%, -50%);
    }

    .team-history li:nth-child(odd) .timeline-content,
    .team-history li:nth-child(even) .timeline-content {
        width: auto;
        margin-left: 0;
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
    }
    
    .team-history li:nth-child(odd) .timeline-content .team-name,
    .team-history li:nth-child(even) .timeline-content .team-name {
        flex-direction: row-reverse;
    }

    .team-history li:nth-child(odd)::before,
    .team-history li:nth-child(even)::before {
        left: 60px;
        right: auto;
    }

    /* --- Work Page --- */
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .modal-body {
        flex-direction: column;
    }

    /* --- Contact Page --- */
    .contact-container {
        flex-direction: column;
        gap: 3rem;
    }

    .contact-left, .contact-right {
        flex-basis: 100%;
        padding-left: 0;
        padding-top: 0;
        margin-top: 0;
    }

    .contact-left h1 {
        font-size: 3rem;
    }

    .social-links a {
        padding-left: 0;
    }

}

@media (max-width: 768px) {
    .work-grid {
        grid-template-columns: 1fr;
    }

    .hello-text h1, .animation-container {
        font-size: 2.5rem;
    }

    .work-title {
        font-size: 3rem;
    }

    .contact-left h1 {
        font-size: 2.5rem;
    }

    #primary-navigation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: calc(var(--header-height)) 1.5rem 2rem;
        gap: 1rem;
        background: hsl(240 21% 13% / 0.95);
        backdrop-filter: blur(0.6rem);
        transform: translateX(100%); 
        transition: transform 350ms ease-out;
        z-index: 11000;
        overflow-y: auto;
        box-sizing: border-box;
    }

    #primary-navigation[data-visible="true"] {
        transform: translateX(0);
    }

    .mobile-nav-toggle {
        display: block;
        position: absolute;
        z-index: 10001;
        top: 50%;
        transform: translateY(-50%);
        right: 1.5rem;
        width: 2rem;
        aspect-ratio: 1;
        background: transparent;
        border: 0;
        cursor: pointer;
    }

    .mobile-nav-toggle::before,
    .mobile-nav-toggle::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--text-color);
        transition: transform 300ms ease, opacity 300ms ease;
    }

    .mobile-nav-toggle::before {
        top: 25%;
    }
    .mobile-nav-toggle::after {
        bottom: 25%;
    }

    .mobile-nav-toggle[aria-expanded="true"]::before {
        transform: translateY(6.5px) rotate(45deg);
    }

    .mobile-nav-toggle[aria-expanded="true"]::after {
        transform: translateY(-6.5px) rotate(-45deg);
    }
}