@media (max-width: 1024px) {
    .title {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        width: 98%;
        padding: 10px 0.5rem;
    }
    .title-details-right {
        text-align: left;
        width: 100%;
    }
    .title-details-about {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .title-details-about img {
        width: 90vw;
        max-width: 400px;
        margin: 0 auto;
        display: block;
    }
}
/* Responsive fixes for about page grid */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem 0.5rem;
    }
    .about-grid .grid-item {
        height: 200px;
        padding: 1.5rem 0.7rem 1.2rem 0.7rem;
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 1rem 0.2rem;
    }
    .about-grid .grid-item {
        height: 180px;
        padding: 1.1rem 0.5rem 1rem 0.5rem;
        font-size: 0.98rem;
    }
}

@media (max-width: 520px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding: 0.5rem 0.1rem;
    }
    .about-grid .grid-item {
        height: 160px;
        padding: 0.7rem 0.2rem 0.7rem 0.2rem;
        font-size: 0.95rem;
    }
}
:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    --font-serif: Georgia, "Times New Roman", Times, serif;
    --base-size: 16px;
    --scale-xxs: 0.75rem;
    --scale-xs: 0.875rem;
    --scale-sm: 1rem;
    --scale-md: 1.125rem;
    --scale-lg: 1.5rem;
    --scale-xl: 2rem;
    --line-height: 1.6;
    --heading-line-height: 1.15;
    --color-text: #222222;
    --color-muted: #666666;
    --measure: 65ch;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-tertiary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

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

html {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    color: var(--color-text);
}

body {
    margin: 0;
    padding-top: 5.5rem;
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 0;
    font-size: var(--scale-sm);
    line-height: var(--line-height);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #764ba2 75%, #667eea 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--color-text);
}

section {
    display: block;
    width: auto;
    padding: 20px;
    margin: 42px auto 32px auto;
    max-width: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.section-title {
    font-family: 'Jacques Francois', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contact-form {
    max-width: 900px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #f093fb;
}

.contact-form button {
    max-width: 220px;
    border: none;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    align-self: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.form-feedback {
    margin-top: 0.4rem;
    font-size: 0.95rem;
}

.honeypot {
    display: none;
    visibility: hidden;
    height: 0;
    width: 0;
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

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

.certification-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cert-image img {
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cert-details p {
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .certification-content {
        flex-direction: column;
        text-align: center;
    }
    .cert-image img {
        max-width: 250px;
    }
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 520px) {
    .cert-image img {
        max-width: 200px;
    }
    .section-title {
        font-size: 1.5rem;
    }
}

p { 
    margin: 0 0 1rem 0; 
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.lead { 
    font-size: var(--scale-md); 
    color: #ffffff; 
    margin-bottom: 1rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
small, .small { font-size: var(--scale-xs); }

h1,h2,h3 {
    margin: 0 0 0.5rem 0;
    padding: 8px;
    line-height: var(--heading-line-height);
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

h1 { font-size: clamp(1.6rem, 2.6vw + 1rem, 2.5rem); }
h2 { font-size: clamp(1.4rem, 2.2vw + 0.8rem, 2rem); }
h3 { font-size: clamp(1.2rem, 2.0vw + 0.6rem, 1.25rem); }
@media (max-width: 768px) {
    h1 { font-size: clamp(1.2rem, 2vw + 0.8rem, 1.8rem); }
    h2 { font-size: clamp(1rem, 1.7vw + 0.7rem, 1.4rem); }
    h3 { font-size: clamp(0.9rem, 1.2vw + 0.6rem, 1.1rem); }
}

@media (max-width: 520px) {
    h1 { font-size: clamp(1rem, 1.5vw + 0.7rem, 1.3rem); }
    h2 { font-size: clamp(0.9rem, 1vw + 0.6rem, 1.1rem); }
}

.contact-h1 {
    margin: 0 0 0.5rem 0;
    padding: 8px;
    line-height: var(--heading-line-height);
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.custom-h1 { font-size: clamp(3.6rem, 4.6vw + 3rem, 4.5rem); }
@media (max-width: 768px) {
    .custom-h1 { font-size: clamp(2rem, 2.5vw + 1.5rem, 2.5rem); }
}

a { 
    color: #ffffff; 
    text-decoration: none; 
    transition: all 0.3s ease;
    position: relative;
}

a:not(.nav-links a):not(.slider-link)::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, #f093fb, #f5576c);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

a:not(.nav-links a):not(.slider-link):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

a:hover, a:focus { 
    text-decoration: none;
    color: #fee140;
}

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace; font-size: 0.875em; }

nav{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    color: #ffffff;
    font-family: 'Jacques Francois', serif;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: box-shadow 120ms ease, transform 120ms ease;
    border-bottom: 3px solid #f093fb;
}

nav:hover {
    box-shadow: 0 16px 40px rgba(102, 126, 234, 0.3);
    transform: translateY(2px);
}

.back-button {
    position: absolute;
    top: 4.75rem;
    left: 2rem;
    z-index: 999;
}

.back-button a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.8);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-button a:hover {
    background: rgba(118, 75, 162, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.nav-name{
    font-weight: 600;
    font-size: var(--scale-lg);
    line-height: 1;
    background: linear-gradient(135deg, #fee140 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links{
    display: flex;
    gap: 1.25rem;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
}

.hamburger {
    display: none;
    font-size: 1.525rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #ffffff;
    padding: 0;
    line-height: 1;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 600px) {
    .hamburger {
        display: block;
        z-index: 1001;
        position: fixed;
        top: 1rem;
        right: 1rem;
    }
    
    .hamburger.active {
        color: #ffffff;
        transform: rotate(720deg);
    }
    
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -120px;
        width: 120px;
        height: 100vh;
        background: linear-gradient(180deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
        flex-direction: column;
        gap: 0;
        padding: 5rem 0 0 0;
        box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        padding: 1.25rem 2rem;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: #ffffff;
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.2);
        text-decoration: none;
        transform: translateX(-5px);
    }
}

footer{
    width: 90%;
    margin: 16px auto;
    padding: 12px 0;
    text-align: center;
    color: #ffffff;
    font-family: 'Hahmlet', serif;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.title{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    width: 90%;
    margin: 24px auto;
    padding: 12px 16px;
    font-family: 'Jacques Francois', serif;
}

.title-details{
    flex: 1 1 50%;
    text-align: left;
}

.title-details img{
    width: 100%;
    max-width: none;
    height: auto;
    border-radius: 8px;
    position: relative;
    z-index: 0;
    display: block;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.title-details img:hover {
    transform: scale(1.03) rotate(-2deg);
    filter: brightness(1.1);
}

.title-details-about img{
    width: 620px;
    max-width: none;
    height: auto;
    border-radius: 8px;
    position: relative;
    z-index: 0;
    display: block;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.title-details-about img:hover {
    transform: scale(1.03) rotate(-2deg);
    filter: brightness(1.1);
}


.title-details-right{
    text-align: right;
}

.title-right{
    flex: 0 0 45%;
    display: flex;
    justify-content: flex-end;
}
.title-right img{
    width: 100%;
    max-width: none;
    height: auto;
    border-radius: 8px;
    position: relative;
    z-index: 0;
    display: block;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.title-right img:hover {
    transform: scale(1.03) rotate(-2deg);
    filter: brightness(1.1);
}

.home-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
}

/* Title on work page */
.work-title{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    width: 90%;
    margin: 24px auto;
    padding: 12px 16px;
    font-family: 'Jacques Francois', serif;
}
.work-title-wrapper{
    flex: 1 1 50%;
    text-align: left;
}

/* Buttons on home page */
.titlebtn{
    display: flex;
    gap: 0.75rem;
    margin-top: calc(0.75rem + 30px);
    align-items: center;
}
.btn{
    display: inline-block;
    padding: 1.2rem 2rem;
    border-radius: 18px;
    font-weight: 700;
    font-size: 1.75rem;
    text-decoration: none;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.3);
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn:hover {
    box-shadow: 0 16px 40px rgba(245, 87, 108, 0.5);
    transform: translateY(-4px) scale(1.02);
    filter: brightness(1.1);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleAnimation 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnimation {
    to {
        transform: scale(1);
        opacity: 0;
    }
}

.btn-primary{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: #ffffff;
}

.btn-primary:hover {
    box-shadow: 0 16px 40px rgba(102, 126, 234, 0.6);
}

.btn-secondary{
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
    color: #ffffff;
}

.btn-secondary:hover {
    box-shadow: 0 16px 40px rgba(245, 87, 108, 0.6);
}

/* Dividers */
.page-divider{
    width: calc(100% - 60px);
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.footer-divider{
    width: calc(100% - 12px);
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    margin: 0 auto;
    margin-top: -24px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.info-grid{
    width: 90%;
    margin: 28px auto 48px auto;
    margin-top: -8px;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    font-size: 1.15rem;
    font-family: 'Jacques Francois', serif;
}
.info-block{
    flex: 1 1 calc(25% - 1.5rem);
    min-width: 180px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: default;
}

.info-block:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.info-block p{
    margin: 0;
    padding: 8px 0;
    text-align: left;
    color: #ffffff;
}
.info-block p:first-of-type{
    font-size: 2rem;
    font-weight: 700;
}

/* Grid on about page */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    min-height: 600px;
    width: 100%;
    margin: 1rem auto;
    padding: 2.5rem 2rem;
    opacity: 0;
    transform: translateY(40px);
    animation: slideInGrid 0.9s cubic-bezier(0.23, 1, 0.32, 1) 0.1s forwards;
}

.about-section-label {
    font-family: 'Jacques Francois', serif;
    font-size: 2.7rem;
    font-weight: 700;
    color: #ffffff;
    margin-left: 3.5rem;
    margin-bottom: -2rem;
    margin-top: 1.5rem;
    padding-left: 0.5rem;
    letter-spacing: 0.01em;
    display: block;
    text-align: left;
    max-width: 600px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 1024px) {
    .about-section-label {
        max-width: 98%;
        transition: all 0.3s ease;
    }
}

@media (max-width: 768px) {
    .about-section-label {
        margin-left: 0.5rem;
        padding-left: 0.5rem;
        font-size: 2.2rem;
        margin-top: 1rem;
        margin-bottom: -1.2rem;
        transition: all 0.3s ease;
    }
}

@media (max-width: 520px) {
    .about-section-label {
        margin-left: 0.25rem;
        padding-left: 0.25rem;
        margin-top: 0.5rem;
        margin-bottom: -0.7rem;
        max-width: 100%;
        transition: all 0.3s ease;
    }
}

.about-grid .grid-item {
    background: rgba(255,255,255,0.13);
    border: 1.5px solid rgba(255,255,255,0.22);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18), 0 1.5px 8px 0 rgba(102,126,234,0.10);
    border-radius: 20px;
    padding: 2.2rem 1.2rem 1.7rem 1.2rem;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: #fff;
    transition: box-shadow 0.25s cubic-bezier(.4,2,.6,1), transform 0.22s cubic-bezier(.4,2,.6,1), background 0.22s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

.about-grid .grid-item h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.about-grid .grid-item p {
    font-size: 0.9rem;
    margin: 0;
    color: #ffffff;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.about-grid a.grid-item {
    text-decoration: none;
    color: inherit;
}

.about-grid a.grid-item:hover {
    text-decoration: none;
}

.about-grid .grid-item:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-10px) scale(1.035);
    box-shadow: 0 16px 48px 0 rgba(102, 126, 234, 0.18), 0 2.5px 16px 0 rgba(102,126,234,0.18);
    border-color: #f093fb;
}

.about-grid .grid-item:nth-child(even)::before {
    opacity: 0;
}

/* Grid on work pages */
.work-grid-updates {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4rem;
    min-height: 1000px;
    width: auto;
    margin: 1rem auto;
    padding: 2rem 3.5rem;
}
.work-grid-updates .grid-item {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.3);
    border-radius: 18px;
    padding: 1rem;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.work-grid-updates .grid-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.work-grid-updates .grid-item:nth-child(odd) img {
    width: calc(100% + 2rem);
    height: calc(100% + 2rem);
    margin: -1rem;
    max-width: none;
    max-height: none;
    border-radius: 16px;
    object-fit: cover;
}

.work-grid-updates .grid-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(245, 87, 108, 0.5);
}

.work-grid-updates a.grid-item.project-entry-link {
    text-decoration: none;
    color: inherit;
}

.work-grid-updates a.grid-item.project-entry-link::after {
    content: none;
}

.work-grid-updates .grid-item.project-card {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.6rem 1.5rem;
    background: linear-gradient(145deg, #7b8ef8 0%, #8e61b8 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 14px 36px rgba(60, 40, 120, 0.35);
    height: 400px;
}

.work-grid-updates .grid-item.project-card .project-eyebrow {
    margin: 0;
    padding: 0;
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: none;
}

.work-grid-updates .grid-item.project-card h3 {
    margin: 0;
    padding: 0;
    font-size: clamp(1.45rem, 1.8vw + 0.95rem, 2rem);
    line-height: 1.25;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.work-grid-updates .grid-item.project-card .project-date {
    margin: 0.15rem 0 0 0;
    padding: 0;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #fff;
    text-shadow: 0 2px 8px rgba(102, 126, 234, 0.13);
    letter-spacing: 0.01em;
    /* Removed background: w; and -webkit-text-fill-color: transparent; to restore visibility */
    /* background: w; */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    /* background-clip: text; */
}

/* Bobblehead project detail page */
.project-detail-page {
    max-width: 1120px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 18px 44px rgba(32, 16, 84, 0.25);
}

.project-hero {
    display: grid;
    grid-template-columns: minmax(280px, 480px) 1fr;
    gap: 1.75rem;
    align-items: stretch;
    margin-bottom: 2rem;
}

.project-hero-media {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.project-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-hero-media img.mural-hero-image {
    object-fit: contain;
    background: #ffffff;
}

.project-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    padding: 1.4rem 1.5rem;
}

.project-hero-copy h1 {
    margin: 0;
    padding: 0;
    font-size: clamp(2rem, 2.4vw + 1rem, 3rem);
}

.project-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0.55rem 0 0 0;
}

.project-skill-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    text-shadow: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.project-story {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.project-story-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
    align-items: stretch;
}

.project-story-row.reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.project-story-row.single {
    grid-template-columns: 1fr;
}

.project-story-block {
    padding: 1.15rem 1.2rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.project-story-block h2 {
    margin: 0 0 0.45rem 0;
    padding: 0;
    font-size: clamp(1.2rem, 1vw + 0.95rem, 1.5rem);
}

.project-story-block p {
    margin: 0;
    color: #ffffff;
    text-shadow: none;
    line-height: 1.7;
}

.project-time-stamp {
    margin-top: 0.6rem !important;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #fee140 !important;
}

.project-story-media {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.project-story-media img,
.project-story-media video {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

.project-story-media.video-block {
    background: rgba(0, 0, 0, 0.22);
}

.synchora-slideshow-container {
    padding: 1.15rem 1.2rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.synchora-slideshow-container h3 {
    margin: 0;
    padding: 0;
    font-size: clamp(1.2rem, 1vw + 0.95rem, 1.5rem);
    line-height: 1.25;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.synchora-pdf-button {
    display: inline-block;
    align-self: flex-start;
    padding: 0.65rem 1.2rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.3);
}

.synchora-pdf-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #7b8ef8 0%, #8e61b8 100%);
}

.project-media-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.project-media-card {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.project-media-card img,
.project-media-card video {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

/* Grid on work-timeline page */
.work-grid-updates.grid1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4rem;
    min-height: 1000px;
    margin: 0;
    padding: 0;
    width: 80%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Timeline layout for work-timeline page */
.timeline-layout {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 900px;
    margin: 0 auto;
    padding: 2rem 0;
    box-sizing: border-box;
}
.timeline-left {
    flex: 0 0 220px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}
.timeline-line {
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 3px;
    margin: 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}
.timeline-right {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: flex-end;
    justify-content: flex-start;
}

/* Grid on contact page */
 .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 4rem;
    min-height: 600px;
    width: 100%;
    width: 600px auto;
    min-width: 400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    box-sizing: border-box;
}
.contact-grid .grid-item {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
    border-radius: 18px;
    padding: 1rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-grid .grid-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(79, 172, 254, 0.5);
}

/* Work pages slider */
.slider {
    position: relative;
    width: 60%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    border-radius: 18px;
    min-height: 60px;
    display: block;
    font-weight: 500;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    gap: 0.5rem;
    transition: box-shadow 0.3s, border-radius 0.3s, transform 0.3s, filter 0.3s;
}

.slider:hover, .slider:focus-within {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 32px rgba(245, 87, 108, 0.4);
    border-radius: 28px;
    transform: scale(1.025) translateY(-2px);
    filter: brightness(1.04) drop-shadow(0 2px 8px rgba(245, 87, 108, 0.3));
}

.slider-link {
    flex: 1 1 0;
    text-align: center;
    padding: 1rem 0.5rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.01rem;
    margin: 0;
    color: #ffffff;
    opacity: 0.92;
    text-shadow: 0 1px 3px rgba(102, 126, 234, 0.08);
    font-family: var(--font-sans);
}

.slider-link.active {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    cursor: default;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-link:hover, .slider-link:focus {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.05);
}


/* Media Queries */


@media (max-width: 1024px) {
        .titlebtn {
            gap: 0.5rem;
            margin-top: 0.75rem;
            transition: all 0.3s ease;
        }
        .btn {
            padding: 0.7rem 1.1rem;
            font-size: 1.1rem;
            transition: all 0.3s ease;
        }
    .title {
        margin: 12px auto;
        padding: 8px 8px;
        width: 98%;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        transition: all 0.3s ease;
    }
    .title-details img {
        order: 2;
        margin-top: 1rem;
        width: 100%;
        max-width: 550px;
        align-self: center;
        transition: all 0.3s ease;
    }   
    .title-details-about img {
        order: 2;
        margin-top: 1rem;
        width: 100%;
        max-width: 550px;
        align-self: center;
        transition: all 0.3s ease;
    }   
    .contact-grid {
        order: 2;
        width: 100%;
        margin-top: 1.5rem;
        padding: 1rem 0.5rem;
        gap: 2rem;
    }
    .contact-grid .grid-item {
        min-height: 120px;
    }

    .title-right {
        order: 1;
        width: 100%;
        max-width: 550px;
        display: flex;
        justify-content: center;
        transition: all 0.3s ease;
    }
    .work-grid-updates.grid1 {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(1, 1fr);
        gap: 2rem;
        min-height: unset;
        width: 500px;
        padding: 1rem 0.5rem;
        transition: all 0.3s ease;
    }
    .work-grid-updates.grid1 .grid-item {
        min-width: 200px;
    }

}


@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }
    nav {
        padding: 1rem 1rem;
        align-items: flex-start;
        transition: all 0.3s ease;
    }
    .slider {
        width: 85%;
        transition: all 0.3s ease;
    }
    section {
        margin: 24px auto 16px auto;
        padding: 12px;
    }
    .info-grid {
        margin: 12px auto 24px auto;
        gap: 0.75rem;
        width: 98%;
    }
    footer {
        margin: 8px auto;
        padding: 8px 0;
        width: 98%;
    }
    .about-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, 1fr);
        gap: 2rem;
        column-gap: 0;
        min-height: unset;
        padding: 1rem 0.5rem;
    }
    .about-grid .grid-item {
        min-height: 150px;
    }
    .about-grid .grid-item:nth-child(1),
    .about-grid .grid-item:nth-child(2) {
        min-height: 200px;
    }
    .work-grid-updates {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 2rem;
        min-height: unset;
        padding: 1rem 0.5rem;
        transition: all 0.3s ease;
    }
    .work-grid-updates .grid-item {
        min-height: 200px;
    }

    .project-detail-page {
        margin: 1rem auto;
        padding: 1rem;
    }

    .project-hero {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-story-row,
    .project-story-row.reverse {
        grid-template-columns: 1fr;
    }

    .project-skill-tags {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .project-skill-tag {
        font-size: 0.86rem;
        padding: 0.4rem 0.68rem;
    }

    .project-story-media img,
    .project-story-media video {
        min-height: 220px;
    }

    .project-media-gallery {
        grid-template-columns: 1fr;
    }

    .project-media-card img,
    .project-media-card video {
        min-height: 220px;
    }

    .work-grid-updates.grid1 {
        min-height: unset;
        min-width: 250px;
        width: 100%;
        padding: 1rem 0.5rem;
        transition: all 0.3s ease;
    }

        .contact-grid {
            width: 100%;
            margin-top: 1.5rem;
            padding: 1rem 0.5rem;
            gap: 2rem;
        }
        .contact-grid .grid-item {
            min-height: 120px;
        }

        .title-details {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }
        .title-details img {
            max-width: 450px;
            order: 2;
            margin-top: 1rem;
            width: 100%;
            max-width: 550px;
            align-self: center;
        }   
        .title-details-about img {
            order: 2;
            margin-top: 1rem;
            width: 100%;
            max-width: 450px;
            align-self: center;
        }   
        .work-title {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .title-right {
            width: 100%;
            max-width: 450px;
        }
    }

@media (max-width: 520px) {
    body {
        font-size: 0.9rem;
    }
    .slider {
        width: 100%;
        min-height: 40px;
    }
    section {
        margin: 12px auto 8px auto;
        padding: 6px;
    }
    .title {
        margin: 6px auto;
        padding: 4px 4px;
        width: 100%;
    }
    .work-title {
        margin: 6px auto;
        padding: 4px 4px;
        width: 100%;
    }
    .title-right {
        width: 100%;
        max-width: 350px;
    }
    .info-grid {
        margin: 6px auto 12px auto;
        gap: 0.3rem;
        width: 100%;
    }
    footer {
        margin: 4px auto;
        padding: 4px 0;
        width: 100%;
    }
    .about-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, 1fr);
        column-gap: 0;
        min-height: unset;
        padding: 0.5rem 0.25rem;
    }
    .about-grid .grid-item {
        min-height: 100px;
        font-size: 0.95rem;
    }
    .about-grid .grid-item:nth-child(1),
    .about-grid .grid-item:nth-child(2) {
        min-height: 120px;
    }
    .work-grid-updates.grid1 {
        min-height: unset;
        width: 250px;
        transition: all 0.3s ease;
    }

    .project-hero-copy h1 {
        font-size: clamp(1.55rem, 1.9vw + 1rem, 2rem);
    }

    .project-skill-tag {
        font-size: 0.8rem;
        padding: 0.35rem 0.58rem;
    }

    .project-story-block h2 {
        font-size: 1.05rem;
    }

    .project-story-media img,
    .project-story-media video {
        min-height: 180px;
    }

    .project-media-card img,
    .project-media-card video {
        min-height: 180px;
    }
        .titlebtn {
            gap: 0.3rem;
            margin-top: 0.5rem;
        }
        .btn {
            padding: 0.5rem 0.7rem;
            font-size: 0.95rem;
        }
}



/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeInAnim 1.2s ease forwards;
}
@keyframes fadeInAnim {
    to {
        opacity: 1;
    }
}

.slide-up {
    transform: translateY(40px);
    opacity: 0;
    animation: slideUpAnim 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes slideUpAnim {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in {
    opacity: 0;
    transform: translateX(-60px);
    animation: slideInGrid 0.9s cubic-bezier(0.23, 1, 0.32, 1) 0.1s forwards;
}
@keyframes slideInGrid {
    to {
        opacity: 1;
        transform: none;
    }
}

.slide-down {
    transform: translateY(-60px);
    opacity: 0;
    animation: slideDownAnim 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes slideDownAnim {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes ripple {
    to {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(245, 87, 108, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(245, 87, 108, 0.8);
    }
} 
