/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    color-scheme: light;
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: #1a202c;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-align: left;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #718096;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
    outline: none !important;
    box-shadow: none !important;
}

.nav-logo:hover {
    color: #DE0F66;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    outline: none !important;
    box-shadow: none !important;
}

.nav-link:hover {
    color: #DE0F66;
}

.nav-link:focus,
.nav-link:active,
.nav-link.active {
    color: #DE0F66;
    background: none;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove pink color from resume links on focus/active since they open in new tab */
a.nav-link[href*="Resume"]:focus,
a.nav-link[href*="Resume"]:active {
    color: #4a5568 !important;
}

/* Remove pink underline from resume links on focus/active */
a.nav-link[href*="Resume"]:focus::after,
a.nav-link[href*="Resume"]:active::after {
    display: none !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #DE0F66;
    transition: width 0.3s ease;
}

/* Removed hover underline for nav links */
.nav-link:hover::after {
    width: 0;
}

/* Active nav link styling for about page */
.about-page .nav-link[href="about.html"] {
    color: #DE0F66;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 24px;
    height: 2px;
    background-color: #4a5568;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 100px 0 0;
    background: 
        radial-gradient(circle, #DDE4ED 1.5px, transparent 1.5px),
        linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    background-size: 24px 24px, 100% 100%;
    background-position: 0 0, 0 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    margin-bottom: 0;
    max-width: none;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1A202C;
    width: 100%;
    max-width: 1200px;
    min-height: 3em;
    display: block;
    text-align: left;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.typing-cursor {
    color: #DE0F66;
    animation: blink 0.8s infinite;
    margin-left: 1px;
    font-weight: 400;
}

.highlight {
    color: #DE0F66;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #DE0F66, #E948A3);
    opacity: 0.3;
}


.driving-text {
    color: #1A202C;
}

.salesforce-text {
    color: #DE0F66;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.salesforce-text:hover {
    color: #DE0F66;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hero-experience {
    color: #718096;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.company-link {
    color: #DE0F66;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    outline: none !important;
    box-shadow: none !important;
}

.company-link:hover {
    color: #DE0F66;
}

.company-link:focus,
.company-link:active {
    outline: none !important;
    box-shadow: none !important;
    border-bottom: 1px solid transparent;
}

/* Hero Greeting with Profile Image */
.hero-greeting {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.greeting-text {
    color: #718096;
    font-size: 1.1rem;
    font-weight: 400;
}

.profile-image {
    width: 138px;
    height: 138px;
    object-fit: cover;
}


@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes fadeInChar {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.typing-overlay {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1.2;
    font-family: 'Sora', sans-serif;
    width: 100%;
    max-width: 1200px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}




/* Work Section */
.work-section {
    padding: 150px 0 98px 0;
    background: white;
}

.section-header {
    margin-bottom: 4rem;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

/* Work Section Container */
.work-section .container {
    padding: 0;
    max-width: 1200px;
}

/* Standard Two-Column Layout */
.work-grid-standard {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.project-card-standard {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
    padding: 3.25rem 0;
    border-top: 1px solid #D5DCE3;
    position: relative;
}

.project-card-standard:first-child {
    border-top: none;
    padding-top: 0;
}

.project-card-standard + .project-card-standard {
    margin-top: 0;
}

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

.project-title-standard {
    font-size: 1.75rem;
    font-weight: 400;
    color: #1a202c;
    margin-bottom: 1rem;
}

.project-description-standard {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-link-standard {
    color: #DE0F66;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    outline: none !important;
    box-shadow: none !important;
}

.project-link-standard:hover {
    color: #c20d5a;
}

.project-link-standard i {
    transition: transform 0.3s ease;
}

.project-link-standard:hover i {
    transform: translateX(4px);
}

.project-link-standard:focus,
.project-link-standard:active {
    outline: none !important;
    box-shadow: none !important;
    color: #DE0F66;
}

.project-image-standard {
    position: relative;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
}

.project-image-standard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
    border: 1px solid #D5DCE3;
}

/* Scroll animation for project cards */
.project-card-standard {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease;
}

.project-card-standard.animate {
    opacity: 1;
    transform: translateY(0);
}

.project-card-standard:nth-child(1) { transition-delay: 0.05s; }
.project-card-standard:nth-child(2) { transition-delay: 0.1s; }
.project-card-standard:nth-child(3) { transition-delay: 0.15s; }
.project-card-standard:nth-child(4) { transition-delay: 0.2s; }

/* First project uses contain to show full image on desktop only */
@media screen and (min-width: 769px) {
    .project-card-standard:first-child .project-image-standard img {
        object-fit: contain;
        object-position: center;
    }
}

/* Asymmetrical Grid Layout */
.work-grid-asymmetrical {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 8rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: start;
}

.project-card-wide {
    grid-column: span 1;
}

.project-card-narrow {
    grid-column: span 1;
}

/* First row: Wide, then two narrows side by side */
.work-grid-asymmetrical .project-card:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1;
    justify-self: start;
    margin-left: 0;
}

.work-grid-asymmetrical .project-card:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1;
    justify-self: end;
}

.work-grid-asymmetrical .project-card:nth-child(3) {
    grid-column: 1 / 2;
    grid-row: 2;
    justify-self: start;
    margin-left: 0;
}

.work-grid-asymmetrical .project-card:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 2;
    justify-self: end;
}

.project-card-wide {
    grid-column: span 1;
}

.project-card-narrow {
    grid-column: span 1;
}

/* Alternating layout: 60/40, then 40/60 */
.work-grid-asymmetrical .project-card:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1;
}

.work-grid-asymmetrical .project-card:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1;
}

.work-grid-asymmetrical .project-card:nth-child(3) {
    grid-column: 1 / 2;
    grid-row: 2;
    justify-self: start;
}

.work-grid-asymmetrical .project-card:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 2;
    justify-self: end;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: visible;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    transition: all 0.3s ease;
}

.project-card:nth-child(3),
.project-card:nth-child(4) {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-card:nth-child(3).animate,
.project-card:nth-child(4).animate {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-card:nth-child(3) { transition-delay: 0.1s; }
.project-card:nth-child(4) { transition-delay: 0.2s; }

.project-card.featured {
    grid-column: span 2;
}

.project-image {
    position: relative;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
}

.project-card.featured .project-image {
    height: 600px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    display: none;
}

.project-content {
    padding: 0;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #1a202c;
}

.project-description {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: #edf2f7;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-impact {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 10px;
}

.impact-metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #48bb78;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-link {
    color: #DE0F66;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    gap: 1rem;
}

/* Process Section */
.process-section {
    padding: 100px 0;
    background: 
        radial-gradient(circle, #DDE4ED 1.5px, transparent 1.5px),
        linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    background-size: 24px 24px, 100% 100%;
}

.process-section .section-title {
    font-size: 1.125rem;
    font-weight: 400;
    color: #1a202c;
    margin-bottom: 1rem;
    text-align: center;
}


.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
}

.process-step:nth-child(1) { transition-delay: 0.1s; }
.process-step:nth-child(2) { transition-delay: 0.2s; }
.process-step:nth-child(3) { transition-delay: 0.3s; }

.process-step.animate {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #DE0F66;
    opacity: 0.1;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
}

.principle-icon {
    text-align: center;
    margin-bottom: 1rem;
    display: block;
}

.principle-icon-img {
    width: 60px;
    height: 60px;
    display: block;
    margin: 0 auto;
    fill: #718096 !important;
    color: #718096;
}

.principle-icon-img path {
    fill: #718096 !important;
}

.principle-icon-img svg {
    fill: #718096 !important;
}

.process-step:nth-child(3) .principle-icon-img {
    width: 48px;
    height: 60px;
    padding-top: 12px;
}

.process-step h3 {
    font-size: 16px;
    margin-bottom: 1rem;
    color: #1A202C;
    position: relative;
    z-index: 2;
    text-align: center;
}

.process-step p {
    color: #718096;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* About Section */
.about-section {
    padding: 225px 0 150px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1.9fr 3.1fr;
    gap: 4rem;
    align-items: start;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 2rem;
    margin-left: -60px;
}

.about-intro {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 600;
}

.about-text {
    align-self: start;
}

.about-text p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 16px;
}

.about-skills {
    margin-top: 3rem;
}

.about-skills h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.skill-category h4 {
    color: #DE0F66;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.about-card {
    background: transparent;
    border-radius: 20px;
    padding: 0;
    position: sticky;
    top: 0;
    align-self: start;
}

.about-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    margin-bottom: 0;
    padding-top: 10px;
}

/* Staggered animation for about section */
.about-fade-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.12s ease;
}

.about-fade-element-delayed {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.12s ease;
    transition-delay: 0.06s;
}

/* Faster animation for final designs images (75% faster) - appears with title */
#final-designs-images.about-fade-element {
    transition: all 0.03s ease;
}

.about-fade-element.animate,
.about-fade-element-delayed.animate {
    opacity: 1;
    transform: translateY(0);
}

.experience-timeline h3 {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.company-logo {
    width: 40px;
    height: 40px;
    background: #DE0F66;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.timeline-content h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.timeline-content p {
    font-size: 0.8rem;
    color: #718096;
}

.recognition {
    margin-top: 2rem;
}

.recognition h3 {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.award-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #4a5568;
    font-size: 0.875rem;
}

.award-item i {
    color: #f6ad55;
    width: 16px;
}

/* Password Protection Section */
.password-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.password-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 1;
}

.password-container {
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.password-content {
    text-align: center;
    background: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid #D5DCE3;
}

.lock-icon {
    margin-bottom: 0.5rem;
}

.lock-icon-img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

.password-title {
    font-size: 1.75rem;
    font-weight: 400;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.password-subtitle {
    font-size: 1rem;
    color: #718096;
    margin-bottom: 2rem;
}

.password-form {
    width: 100%;
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: stretch;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    min-height: 48px;
}

.password-input-container:focus-within {
    border-color: #DE0F66;
    outline: none;
    box-shadow: none;
}

.password-input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.password-input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.password-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #2d3748;
    outline: none;
    margin: 0;
    box-sizing: border-box;
}

.password-input::placeholder {
    color: #a0aec0;
}


.password-submit {
    background: #DE0F66;
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    outline: none;
    border-radius: 0 8px 8px 0;
    box-sizing: border-box;
    margin: -1px -1px -1px 0;
    border: 1px solid #DE0F66;
}

.password-submit:hover {
    background: #c20d5a;
}

.password-error {
    margin-top: 1.5rem;
    color: #e53e3e;
    font-size: 0.875rem;
    text-align: center;
}

.password-content-text {
    text-align: center;
    margin-top: 1rem;
}

.password-content-text p {
    color: #2d3748;
    font-size: 1rem;
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: 
        radial-gradient(circle, #DDE4ED 1.5px, transparent 1.5px),
        linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    background-size: 24px 24px, 100% 100%;
    color: #1A202C;
}

.contact-section .section-title {
    color: #1A202C;
    text-align: center;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-info {
    text-align: center;
}

.contact-title {
    font-size: 1.125rem;
    font-weight: 400;
    color: #1a202c;
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 16px;
    color: #718096;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-email {
    font-size: 16px;
    color: #DE0F66;
    text-align: center;
    margin-bottom: 1rem;
}

.contact-methods {
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    text-decoration: none;
    color: white;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.contact-method i {
    font-size: 1.5rem;
    color: #DE0F66;
    width: 30px;
}

.contact-method h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-method p {
    font-size: 0.875rem;
    color: #a0aec0;
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: #E2E8F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #E2E8F0;
}

.social-link:hover {
    background: #DE0F66;
    color: white;
    transform: translateY(-3px);
}

.social-link:focus,
.social-link:active,
.social-link:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Case Study Links */
.case-study-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    display: inline-block;
    width: fit-content;
}

.case-study-link:hover {
    color: #DE0F66;
}

.case-study-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #DE0F66;
    transition: width 0.3s ease;
}

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

.case-study-link:focus,
.case-study-link:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.copyright {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #718096;
    text-align: center;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e2e8f0;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #DE0F66;
    background: rgba(255, 255, 255, 0.15);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #DE0F66 0%, #B20C56 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(222, 15, 102, 0.3);
}


/* Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        backdrop-filter: blur(20px);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        padding: 100px 0 40px;
        min-height: 50vh;
    }

    .hero-content {
        margin-bottom: 1rem;
        text-align: left;
    }

    .hero-title {
        font-size: 2rem;
        width: 100%;
        max-width: 100%;
    }
    
    .typing-overlay {
        font-size: 2rem;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-experience {
        font-size: 1rem;
    }
    
    .hero-container {
        padding: 0 20px;
    }


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

    .project-card.featured {
        grid-column: span 1;
    }

    /* Responsive standard grid layout */
    .project-card-standard {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-image-standard {
        height: 300px;
    }

    /* Responsive asymmetrical grid */
    .work-grid-asymmetrical {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }

    .work-grid-asymmetrical .project-card:nth-child(1),
    .work-grid-asymmetrical .project-card:nth-child(2),
    .work-grid-asymmetrical .project-card:nth-child(3),
    .work-grid-asymmetrical .project-card:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
    }

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

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

    .about-card {
        position: static;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 20px;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
        width: 100%;
        max-width: 100%;
    }
    
    .typing-overlay {
        font-size: 1.75rem;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-experience {
        font-size: 0.9rem;
    }
    
    .hero-container {
        padding: 0 16px;
    }
    
    .hero-greeting {
        flex-wrap: wrap;
    }

    .profile-image {
        width: 114px;
        height: 114px;
    }
    
    .greeting-text {
        font-size: 1.1rem;
    }
    
    .hero-greeting {
        margin-bottom: 0.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-cta {
        flex-direction: column;
    }

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

}

/* Animations and Transitions */
.hero-fade-element {
    opacity: 0 !important;
    transform: translateY(30px);
}

.fade-in {
    animation: fadeInUp 0.25s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slower scroll animation for better visibility */
.scroll-animate.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.25s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure grid sections work with canvas overlay */
.hero,
.process-section,
.contact-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%) !important;
}

/* Ensure content appears above grid dots */
.hero-content,
.hero-title,
.hero-subtitle,
.hero-experience,
.hero-greeting,
.typing-overlay,
.hero-text {
    position: relative;
    z-index: 10;
}

/* Process section content */
.process-grid,
.process-step,
.section-title,
.section-subtitle {
    position: relative;
    z-index: 10;
}

/* Contact section content */
.contact-content,
.contact-info,
.contact-methods,
.contact-method,
.social-links,
.social-link,
.contact-form,
.contact-title,
.contact-subtitle,
.copyright {
    position: relative;
    z-index: 10;
}

/* Art Gallery Section */
.art-gallery-section {
    padding: 150px 0;
    background: white;
}

.art-gallery-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.art-gallery-content .section-title {
    font-size: 1.125rem;
    font-weight: 400;
    color: #1a202c;
    margin-bottom: 1rem;
    text-align: center;
}

.art-description {
    font-size: 16px;
    color: #718096;
    margin-bottom: 3rem;
    line-height: 1.6;
    text-align: center;
}

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

.art-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
}

.art-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.art-item:nth-child(1) { transition-delay: 0.1s; }
.art-item:nth-child(2) { transition-delay: 0.2s; }
.art-item:nth-child(3) { transition-delay: 0.3s; }
.art-item:nth-child(4) { transition-delay: 0.4s; }
.art-item:nth-child(5) { transition-delay: 0.5s; }
.art-item:nth-child(6) { transition-delay: 0.6s; }
.art-item:nth-child(7) { transition-delay: 0.7s; }
.art-item:nth-child(8) { transition-delay: 0.8s; }
.art-item:nth-child(9) { transition-delay: 0.9s; }

.art-item:hover {
    transform: translateY(-5px);
}

.art-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Specific cropping for portrait paintings to show faces */
.art-item[data-index="0"] .art-thumbnail {
    object-position: center top;
}

.art-item[data-index="1"] .art-thumbnail {
    object-position: center 20%;
}

.art-item[data-index="2"] .art-thumbnail {
    object-position: center 25%;
}

.art-item[data-index="4"] .art-thumbnail {
    object-position: center 10%;
}

.art-item:hover .art-thumbnail {
    transform: scale(1.05);
}

/* Art Modal */
.art-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.art-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.art-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: #f1f1f1;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
    box-shadow: none !important;
}

.art-modal-close:hover {
    color: #f1f1f1;
}

.art-modal-close:focus,
.art-modal-close:active {
    outline: none !important;
    box-shadow: none !important;
    color: #f1f1f1;
}

.art-modal-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.art-modal-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.art-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
    outline: none !important;
    box-shadow: none !important;
}

.art-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.art-next-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) translateX(100px);
}

.art-prev-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) translateX(-100px);
}

.art-nav-btn:active,
.art-nav-btn:focus {
    transform: scale(1.1);
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.art-next-btn:active,
.art-next-btn:focus {
    transform: scale(1.1) translateX(100px);
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.art-prev-btn:active,
.art-prev-btn:focus {
    transform: scale(1.1) translateX(-100px);
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.art-prev-btn {
    margin-left: 20px;
    transform: translateX(-100px);
}

.art-next-btn {
    margin-right: 20px;
    transform: translateX(100px);
}

/* Responsive design for art gallery */
@media (max-width: 768px) and (min-width: 481px) {
    .art-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .art-thumbnail {
        height: 200px;
    }
    
    .art-modal-content {
        width: 95%;
        padding: 10px;
    }
    
    .art-nav-btn {
        font-size: 24px;
        padding: 12px 16px;
    }
    
    .art-prev-btn {
        margin-left: 10px;
        transform: translateX(0) !important;
    }
    
    .art-next-btn {
        margin-right: 10px;
        transform: translateX(0) !important;
    }
    
    /* Override hover and active states for tablet */
    .art-prev-btn:hover,
    .art-prev-btn:active,
    .art-prev-btn:focus {
        transform: scale(1.1) translateX(0) !important;
    }
    
    .art-next-btn:hover,
    .art-next-btn:active,
    .art-next-btn:focus {
        transform: scale(1.1) translateX(0) !important;
    }
}

@media (max-width: 480px) {
    .art-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .art-thumbnail {
        height: 180px;
    }
    
    .art-modal-content .art-modal-close,
    .art-modal-close {
        font-size: 30px;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Make navigation buttons visible on mobile */
    .art-prev-btn {
        transform: translateX(0) !important;
        margin-left: 10px;
    }
    
    .art-next-btn {
        transform: translateX(0) !important;
        margin-right: 10px;
    }
    
    /* Override hover and active states for mobile */
    .art-prev-btn:hover,
    .art-prev-btn:active,
    .art-prev-btn:focus {
        transform: scale(1.1) translateX(0) !important;
    }
    
    .art-next-btn:hover,
    .art-next-btn:active,
    .art-next-btn:focus {
        transform: scale(1.1) translateX(0) !important;
    }
}

/* Work section content */
.work-grid,
.work-grid-asymmetrical,
.project-card,
.project-content,
.project-title,
.project-description,
.project-link,
.section-header {
    position: relative;
    z-index: 10;
}

/* About section content */
.about-content,
.about-text,
.about-card {
    position: relative;
    z-index: 10;
}

/* Achievements section */
.about-achievements {
    margin-top: 2rem;
}

.about-achievements h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.achievements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievements-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #4a5568;
    line-height: 1.6;
    font-size: 16px;
}

.achievements-list li::before {
    content: "•";
    color: #DE0F66;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Navigation */
.navbar {
    z-index: 1000;
}

/* Ensure canvas stays behind content */
canvas {
    z-index: 0 !important;
}

/* Project Page Styles */
.project-page {
    background: white;
}

.project-hero {
    padding: 150px 0 60px;
    background: white;
}

.project-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.project-hero-title {
    font-size: 3.5rem;
    font-weight: 400;
    color: #1a202c;
    margin: 0 0 1rem 0;
    text-align: left;
}

.project-hero-subtitle {
    font-size: 1.75rem;
    font-weight: 300;
    color: #4a5568;
    margin: 0 0 3rem 0;
    text-align: left;
}

.project-hero-details {
    padding: 40px 0;
    background: 
        radial-gradient(circle, #DDE4ED 1.5px, transparent 1.5px),
        linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    background-size: 24px 24px, 100% 100%;
}

.project-hero-image-centered {
    margin: 0 auto 2rem;
    max-width: 50%;
    display: flex;
    justify-content: center;
}

.project-hero-image-centered img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Hero Section Fade-in Animation */
.project-hero .fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.project-hero .fade-in:nth-child(1) {
    animation: fadeInUp 0.3s ease forwards;
}

.project-hero .fade-in:nth-child(2) {
    animation: fadeInUp 0.3s ease 0.06s forwards;
}

.project-hero .fade-in:nth-child(3) {
    animation: fadeInUp 0.3s ease 0.12s forwards;
}

/* Hero Image Section Fade-in Animation */
.project-hero-details .fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.3s ease 0.12s forwards;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.demo-button {
    font-size: 1.125rem;
    color: #DE0F66;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    margin-top: 0.5rem;
    outline: none !important;
    box-shadow: none !important;
}

.demo-button:hover {
    color: #c20d5a;
}

.demo-button i {
    transition: transform 0.3s ease;
}

.demo-button:hover i {
    transform: translateY(4px);
}

.demo-button:focus,
.demo-button:active {
    outline: none !important;
    box-shadow: none !important;
    color: #DE0F66;
}

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

.project-detail-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-detail-value {
    font-size: 1.125rem;
    font-weight: 400;
    color: #1a202c;
    line-height: 1.5;
}

.project-section {
    padding: 100px 0;
}

.project-section.bg-light {
    background: 
        radial-gradient(circle, #DDE4ED 1.5px, transparent 1.5px),
        linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    background-size: 24px 24px, 100% 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.project-content-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.project-content-two-col.reverse {
    grid-template-columns: 1fr 1fr;
}

.project-content-two-col.reverse > div:first-child {
    order: 2;
}

.project-content-two-col.reverse > div:last-child {
    order: 1;
}

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

.project-section-title {
    font-size: 2rem;
    font-weight: 400;
    color: #1a202c;
    margin: 0 0 1rem 0;
}

.project-intro-text {
    font-size: 1.125rem;
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.project-image-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #D5DCE3;
}

.project-image-full {
    width: 100%;
    margin: 2rem 0;
}

.project-image-full img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #D5DCE3;
    margin-bottom: 1rem;
}

.studio-high-fidelity-images img {
    border-radius: 12px;
    border: 1px solid #D5DCE3;
}

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

.metric-card {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 600;
    color: #DE0F66;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-subsection-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a202c;
    margin-bottom: 1rem;
}

.project-list {
    list-style: none;
    padding: 0;
}

.project-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #E2E8F0;
    color: #4a5568;
    position: relative;
    padding-left: 1.5rem;
}

.project-list-no-divider li {
    border-bottom: none;
}

.project-list li::before {
    content: "→";
    color: #DE0F66;
    position: absolute;
    left: 0;
}

.project-video {
    width: 100%;
    margin: 2rem 0;
}

.project-video video {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #D5DCE3;
}

.project-learning {
    max-width: 800px;
    margin: 0 auto;
}

.project-learning p {
    font-size: 1.125rem;
    color: #4a5568;
    line-height: 1.8;
}

/* Zoomable Thumbnail */
.zoomable-thumbnail {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.zoomable-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border: none;
    box-shadow: none;
}

.zoomable-thumbnail img.studio-home-stroke {
    border: 1px solid #d5dce3;
}

/* Enlargeable Images */
.enlargeable-image {
    cursor: pointer !important;
}

/* Modal Navigation Buttons */
.modal-prev-btn,
.modal-next-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%) scale(1);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
    outline: none !important;
    box-shadow: none !important;
    z-index: 1002;
}

.modal-prev-btn {
    left: 20px;
}

.modal-next-btn {
    right: 20px;
}

.modal-prev-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.modal-next-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev-btn:active,
.modal-prev-btn:focus {
    transform: translateY(-50%) scale(1.1);
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.modal-next-btn:active,
.modal-next-btn:focus {
    transform: translateY(-50%) scale(1.1);
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}



/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal.active {
    display: block;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: #f1f1f1;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
    box-shadow: none !important;
}

.modal-close:hover {
    color: #f1f1f1;
}

.modal-close:focus,
.modal-close:active {
    outline: none !important;
    box-shadow: none !important;
    color: #f1f1f1;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 98vh;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* Supply chain IA image larger in modal */
.modal-image[src*="supplychain_IA"] {
    max-height: 98vh;
    transform: scale(1.3);
    transform-origin: center;
}

/* Supply chain design system image larger in modal */
.modal-image[src*="supplychain_design_system"] {
    max-height: 98vh;
    transform: scale(1.3);
    transform-origin: center;
}

/* Supply chain feedback images larger in modal */
.modal-image[src*="supplychain_feedback_1"],
.modal-image[src*="supplychain_feedback_2"],
.modal-image[src*="supplychain_feedback_3"] {
    max-height: 98vh;
    transform: scale(1.3);
    transform-origin: center;
}

/* Supply chain patent image larger in modal */
.modal-image[src*="supplychain_patent"] {
    max-height: 98vh;
    transform: scale(1.3);
    transform-origin: center;
}

/* Supply chain success metrics image larger in modal */
.modal-image[src*="supplychain_success_metrics"] {
    max-height: 98vh;
    transform: scale(1.3);
    transform-origin: center;
}

/* Game experimentation persona images larger in modal */
.modal-image[src*="games_exp_persona_1"],
.modal-image[src*="games_exp_persona_2"] {
    max-height: 98vh;
    transform: scale(1.3);
    transform-origin: center;
}

/* Game experimentation journey image larger in modal */
.modal-image[src*="games_exp_journey"] {
    max-height: 98vh;
    transform: scale(1.5);
    transform-origin: center;
}

/* Game experimentation process image larger in modal */
.modal-image[src*="game_exp_process"] {
    max-height: 98vh;
    transform: scale(1.3);
    transform-origin: center;
}

/* Game experimentation wireframes images larger in modal */
.modal-image[src*="games_exp_wireframes_1"],
.modal-image[src*="games_exp_wireframes_2"] {
    max-height: 98vh;
    transform: scale(1.3);
    transform-origin: center;
}

/* Game experimentation iterations image larger in modal */
.modal-image[src*="games_exp_iterations"] {
    max-height: 98vh;
    transform: scale(1.3);
    transform-origin: center;
}

/* Game experimentation critiques image larger in modal */
.modal-image[src*="game_exp_critiques"] {
    max-height: 98vh;
    transform: scale(1.3);
    transform-origin: center;
}

/* Framework image larger in modal */
.modal-image[src*="salesforce_framework"] {
    max-height: 98vh;
    transform: scale(1.5);
    transform-origin: center;
}

/* Studio home image larger in modal */
.modal-image[src*="studio_home"] {
    max-height: 98vh;
    transform: scale(1.5);
    transform-origin: center;
}

/* Workflow image larger in modal */
.modal-image[src*="salesforce_workflow"] {
    max-height: 98vh;
    transform: scale(1.4);
    transform-origin: center;
}

/* Workflow2 image larger in modal */
.modal-image[src*="salesforce_workflow2"] {
    max-height: 98vh;
    transform: scale(1.4);
    transform-origin: center;
}

/* SME images larger in modal */
.modal-image[src*="salesforce_sme1"],
.modal-image[src*="salesforce_sme2"] {
    max-height: 98vh;
    transform: scale(1.5);
    transform-origin: center;
}

/* Component documentation image larger in modal */
.modal-image[src*="salesforce_components"] {
    max-height: 98vh;
    transform: scale(1.5) !important;
    transform-origin: center;
}

/* Wireframe images larger in modal */
.modal-image[src*="studio_wireframes"] {
    max-height: 98vh;
    transform: scale(1.56);
    transform-origin: center;
}

/* Iteration images larger in modal */
.modal-image[src*="salesforce_iterations"] {
    max-height: 98vh;
    transform: scale(1.32);
    transform-origin: center;
}

/* Challenge image larger in modal */
.modal-image[src*="mcu_challenge"] {
    max-height: 98vh;
    transform: scale(1.5);
    transform-origin: center;
}

/* Brainstorm image larger in modal */
.modal-image[src*="mcu_brainstorm"] {
    max-height: 98vh;
    transform: scale(1.2);
    transform-origin: center;
}

/* Competitors image larger in modal */
.modal-image[src*="mcu_competitors"] {
    max-height: 98vh;
    transform: scale(1.5);
    transform-origin: center;
}

/* Vision image larger in modal */
.modal-image[src*="mcu_vision"] {
    max-height: 98vh;
    transform: scale(1.5) !important;
    transform-origin: center;
}

/* Use case images larger in modal */
.modal-image[src*="mcu_usecase_1"],
.modal-image[src*="mcu_usecase_2"] {
    max-height: 98vh;
    transform: scale(1.5);
    transform-origin: center;
}

/* Scalable UX images larger in modal */
.modal-image[src*="mcu_scalable_ux"] {
    max-height: 98vh;
    transform: scale(1.5);
    transform-origin: center;
}

/* Second scalable UX image smaller in modal */
.modal-image[src*="mcu_scalable_ux2"] {
    max-height: 98vh;
    transform: scale(1.275);
    transform-origin: center;
}

/* MCU builder, design explorations, partnering, finalized solution images larger in modal */
.modal-image[src*="mcu_builder_anatomy"],
.modal-image[src*="mcu_triggers"],
.modal-image[src*="mcu_where"],
.modal-image[src*="mcu_idea1"],
.modal-image[src*="mcu_idea2"],
.modal-image[src*="mcu_idea3"],
.modal-image[src*="mcu_40builders"],
.modal-image[src*="mcu_builderstructures"],
.modal-image[src*="mcu_solution1"],
.modal-image[src*="mcu_solution2"] {
    max-height: 98vh;
    transform: scale(1.5) !important;
    transform-origin: center;
}

/* Wireframes Grid */
.wireframes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.wireframe-item {
    text-align: center;
}

.wireframe-title {
    font-size: 14px;
    font-weight: 400;
    color: #2d3748;
    margin-bottom: 1rem;
    text-align: center;
}

.wireframe-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.wireframe-item:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 50%;
}

/* For sections with odd number of items, center the last one */
.wireframes-grid .wireframe-item:nth-child(odd):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 50%;
}

@media (max-width: 768px) {
    .wireframes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Pinterest-style Masonry Layout */
.wireframes-masonry {
    column-count: 2;
    column-gap: 2rem;
    margin-top: 2rem;
}

.wireframes-masonry .wireframe-item {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 2rem;
    display: inline-block;
    width: 100%;
}

.wireframes-masonry .wireframe-title {
    font-size: 14px;
    font-weight: 400;
    color: #2d3748;
    margin-bottom: 1rem;
    text-align: center;
}

.wireframes-masonry .wireframe-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.wireframes-masonry .wireframe-item:last-child {
    column-span: all;
    width: 100%;
    text-align: center;
    margin-left: calc(50% + 1rem);
    transform: translateX(calc(-50% - 100px));
}

.wireframes-masonry .wireframe-item:last-child .wireframe-title {
    transform: translateX(100px);
}

/* Faster animations for high fidelity images section */
.high-fidelity-images.about-fade-element-delayed {
    transition: all 0.1s ease;
    transition-delay: 0.03s;
}

.high-fidelity-images .wireframe-item {
    transition: all 0.1s ease;
}

.high-fidelity-images .wireframe-item img {
    transition: opacity 0.1s ease, transform 0.1s ease;
}

.wireframes-masonry .wireframe-item:last-child img {
    width: 300%;
    max-width: calc(150% + 3rem);
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .wireframes-masonry {
        column-count: 1;
        column-gap: 1.5rem;
    }
}

/* Persona Card */
.persona-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 2rem;
    border-radius: 12px;
    border: none;
    box-shadow: none;
}

.persona-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.persona-title {
    font-size: 1rem;
    color: #DE0F66;
    font-weight: 500;
    margin-bottom: 1rem;
}

.persona-description {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.persona-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.persona-detail {
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.5;
}

.persona-detail strong {
    color: #1a202c;
    font-weight: 600;
}

/* Problem Cards */
.problem-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.problem-card {
    background: #EDF2F7;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    position: relative;
}

.problem-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.problem-icon img {
    width: 48px;
    height: 48px;
}

.problem-title {
    font-size: 1.125rem;
    font-weight: 400;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.problem-description {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 400;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

/* Customer Logos */
.customer-logos {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.logo-item {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    max-height: 40px;
    max-width: 120px;
    object-fit: contain;
}

/* Customer Quote */
.customer-quote {
    margin-top: 3rem;
    text-align: left;
}

.customer-quote blockquote {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2d3748;
    font-style: italic;
    margin: 0 0 1rem 0;
    padding: 0;
    border: none;
}

.customer-quote cite {
    font-size: 0.9rem;
    color: #666;
    font-style: normal;
    font-weight: 500;
}

/* Responsive Design for Project Page */
@media screen and (max-width: 768px) {
    .project-hero-title {
        font-size: 2.5rem;
    }

    .project-hero-subtitle {
        font-size: 1.5rem;
    }

    .project-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .demo-button {
        font-size: 0.875rem;
    }

    .project-content-two-col {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .project-content-two-col.reverse {
        grid-template-columns: 1fr !important;
    }

    .project-content-two-col.reverse > div:first-child {
        order: 1 !important;
    }

    .project-content-two-col.reverse > div:last-child {
        order: 2 !important;
    }

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

    .project-section-title {
        font-size: 1.5rem;
    }

    .problem-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .persona-card {
        padding: 1.5rem;
    }

    .persona-name {
        font-size: 1.25rem;
    }

    .modal-prev-btn,
    .modal-next-btn {
        font-size: 24px;
        padding: 12px 16px;
    }

    .modal-prev-btn {
        left: 10px;
    }

    .modal-next-btn {
        right: 10px;
    }

    /* Limit modal image width to 80% on tablet */
    .modal-image {
        max-width: 80vw !important;
        width: auto !important;
        transform: scale(1) !important;
        transform-origin: center !important;
    }

    .modal-image[src*="salesforce_components"] {
        transform: scale(1.5) !important;
    }

    .modal-image[src*="mcu_vision"] {
        transform: scale(1.5) !important;
    }

    .modal-image[src*="mcu_builder_anatomy"],
    .modal-image[src*="mcu_triggers"],
    .modal-image[src*="mcu_where"],
    .modal-image[src*="mcu_idea1"],
    .modal-image[src*="mcu_idea2"],
    .modal-image[src*="mcu_idea3"],
    .modal-image[src*="mcu_40builders"],
    .modal-image[src*="mcu_builderstructures"],
    .modal-image[src*="mcu_solution1"],
    .modal-image[src*="mcu_solution2"] {
        transform: scale(1.5) !important;
    }

}

@media screen and (max-width: 480px) {
    .project-hero {
        padding: 120px 0 40px;
    }

    .project-hero-title {
        font-size: 2rem;
    }

    .project-hero-subtitle {
        font-size: 1.25rem;
    }

    .project-hero-image-centered {
        max-width: 100%;
    }

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

    .demo-button {
        font-size: 0.8125rem;
    }

    .project-content-two-col {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .project-content-two-col.reverse {
        grid-template-columns: 1fr !important;
    }

    .project-section {
        padding: 60px 0;
    }

    /* Limit modal image width to 80% on mobile */
    .modal-image {
        max-width: 80%;
        transform: scale(1) !important;
    }

    .modal-image[src*="salesforce_components"] {
        transform: scale(1.5) !important;
    }

    .modal-image[src*="mcu_vision"] {
        transform: scale(1.5) !important;
    }

    .modal-image[src*="mcu_builder_anatomy"],
    .modal-image[src*="mcu_triggers"],
    .modal-image[src*="mcu_where"],
    .modal-image[src*="mcu_idea1"],
    .modal-image[src*="mcu_idea2"],
    .modal-image[src*="mcu_idea3"],
    .modal-image[src*="mcu_40builders"],
    .modal-image[src*="mcu_builderstructures"],
    .modal-image[src*="mcu_solution1"],
    .modal-image[src*="mcu_solution2"] {
        transform: scale(1.5) !important;
    }

    /* Prevent page zoom and ensure all elements respect viewport width on mobile */
    html {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        position: relative;
    }

    img, video, iframe, table {
        max-width: 100%;
        height: auto;
    }

    .container, .project-section, .project-content-two-col, .project-image-full {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* Force light mode - override dark mode preferences */
@media (prefers-color-scheme: dark) {
    html {
        color-scheme: light;
    }
    
    body {
        background-color: #ffffff !important;
        color: #2d3748 !important;
    }
    
    /* Ensure all backgrounds stay light */
    .navbar,
    .project-section,
    .hero,
    .work-section,
    .contact-section,
    .project-hero,
    .project-hero-details {
        background-color: inherit !important;
    }
    
    /* Ensure text colors stay dark */
    h1, h2, h3, h4, h5, h6,
    .nav-link,
    .project-section-title,
    .project-hero-title,
    .hero-title {
        color: inherit !important;
    }
    
    /* Preserve nav link hover color */
    .nav-link:hover {
        color: #DE0F66 !important;
    }
    
    /* Preserve nav link focus/active states */
    .nav-link:focus,
    .nav-link:active,
    .nav-link.active {
        color: #DE0F66 !important;
    }
    
    /* Preserve nav logo hover color */
    .nav-logo:hover {
        color: #DE0F66 !important;
    }
}

/* Limit art modal image width to 80% on mobile */
.art-modal-image {
    max-width: 80%;
}

/* Make navigation buttons visible on mobile */
.art-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
    outline: none !important;
    box-shadow: none !important;
}
