/* Font Declaration */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

@font-face {
    font-family: 'Angella White';
    src: url('./fonts/Angella White Personal Use Only.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PP Editorial';
    src: url('./fonts/PPEditorialNew-Regular.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PP Editorial';
    src: url('./fonts/PPEditorialNew-Italic.otf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'PP Editorial';
    src: url('./fonts/PPEditorialNew-UltralightItalic.otf') format('truetype');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

/* CSS Variables */
:root {
    --text-primary: oklch(30.39% 0.04 213.68 / 1);
    --text-secondary: oklch(30.39% 0.04 213.68 / 1);
    --body-text: #14353c;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PP Editorial', serif;
    line-height: 1.6;
    color: var(--body-text);
    background-color: #fbffe7;
    /* Improve text rendering on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent horizontal scroll on mobile */
    overflow-x: hidden;
}

/* Mobile-friendly touch targets */
@media (max-width: 768px) {
    /* Ensure all clickable elements are at least 44px for better touch interaction */
    a, button, .social-link, .project-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Header typography - PP Editorial for all headers */
h1, h2, h3, h4, h5, h6 {
    font-family: 'PP Editorial', serif;
    font-weight: normal;
    font-style: normal;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fbffe7;
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #e5e5e5;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'PP Editorial', serif;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    padding: 0px 0 130px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 225px 1fr;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    transform: translateY(-10px);
}

.hero-image {
    position: relative;
}

.hero-photo {
    width: 225px;
    height: 300px;
    object-fit: cover;
    border-radius: 36px;
    display: block;
}

.hero-text h1 {
    font-family: 'PP Editorial', serif;
    font-weight: normal;
    font-style: normal;
    line-height: 1.2;
    font-size: 3.0rem;
    margin-bottom: 1.5rem;
    color: var(--body-text);
}

.hero-description {
    font-family: 'PP Editorial', serif;
    font-weight: 200;
    font-style: italic;
    font-size: 1.7rem;
    line-height: 1.8;
    color: var(--body-text);
    margin-bottom: 2rem;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.1rem;
}

.work-description {
    font-family: 'Inter', sans-serif;;
    font-weight: 200;
    font-style: normal;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--body-text);
    margin-bottom: 2rem;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.1rem;
}

/* Heart dot superscript */
.heart-dot {
    color: #ff0055;
    font-size: 1rem;
    vertical-align: super;
    cursor: pointer;
    position: relative;
    margin-left: 2px;
    top: -0.3em;
    transition: all 0.3s ease;
}

.heart-dot:hover {
    color: #ff0077;
    transform: scale(1.2);
}

/* Heart sentence styling */
.heart-sentence {
    position: relative;
    transition: all 0.3s ease;
}

.heart-sentence::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: rgba(255, 0, 85, 0.5);
    transform: translateX(-50%);
    transition: width 1s ease;
}

/* Hover effect for only the heart sentence when dot is hovered */
.heart-dot:hover {
    color: #ff0077;
    transform: scale(1.2);
}

.heart-sentence:has(.heart-dot:hover)::after {
    width: 100%;
}

/* JavaScript fallback - add this class via JS */
.heart-sentence.underlined::after {
    width: 100%;
}

/* Update tooltip text colors */
.heart-dot::after {
    content: "Builder in mind: 'action'.  Thinker in heart: 'Intuition'";
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(243, 243, 203, 0.9);
    color: var(--body-text);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0.6;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    font-style: normal;
    font-weight: 200;
    line-height: 1.4;
    letter-spacing: 1px;
}

.heart-dot::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.heart-dot:hover::after,
.heart-dot:hover::before {
    opacity: 1;
    visibility: visible;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    text-decoration: none;
    color: var(--body-text);
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--body-text);
    background-color: rgba(20, 53, 60, 0.1);
    transform: translateY(-2px);
}

.social-link svg {
    width: 19px;
    height: 19px;
}

/* Image Placeholders */
.image-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: 500;
    width: 300px;
    height: 300px;
}

.image-placeholder.large {
    width: 100%;
    height: 250px;
}

.image-placeholder span {
    text-align: center;
}

/* Sections */
.section {
    padding: 40px 0;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--body-text);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--body-text);
    margin-bottom: 3rem;
}

/* Work Section (Projects) - Inter Font */
#projects .section-subtitle,
#projects .hero-description,
#projects .project-item h3,
#projects .project-description,
#projects .project-link {
    font-family: 'Inter', sans-serif;
}

/* Biography Section - Inter Font */
#biography .timeline-year,
#biography .timeline-content p {
    font-family: 'Inter', sans-serif;
}

/* Media/Writing Section - Inter Font */
#media .section-subtitle,
#media .media-item h3,
#media .media-source,
#media .media-link {
    font-family: 'Inter', sans-serif;
}

/* Project Showcase */
.project-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.project-content h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--body-text);
}

.project-description {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--body-text);
}

.project-details,
.project-impact {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--body-text);
    margin-bottom: 1.5rem;
}

.project-buttons {
    display: flex;
    gap: 1rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-item {
    background: #fdffee;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.project-item:hover {
    transform: translateY(-4px);
}

.project-image {
    width: 100%;
    margin-bottom: 1.2rem;
}

.project-item .image-placeholder {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    border: 2px dashed #ccc;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: perspective(300px) rotateX(5deg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.project-item .image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    border-radius: 6px;
    pointer-events: none;
}

.project-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.8rem 0;
    color: var(--body-text);
}

.project-item .project-description {
    color: var(--body-text);
    margin: 0 0 2rem 0;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
}

.project-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.8rem 0;
    color: var(--body-text);
}

.project-item .project-description {
    color: var(--body-text);
    margin: 0 0 2rem 0;
    font-size: 1.3 rem;
    line-height: 1.5;
    font-weight: 400;
}

.project-link {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--body-text);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.project-link:hover {
    opacity: 1;
    color: var(--body-text);
    transform: translateX(2px);
}

.project-link svg {
    width: 14px;
    height: 14px;
}

.project-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.project-link:hover svg {
    transform: translateX(2px);
}

/* Biography Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Update timeline line gradient */
.timeline::before {
    content: '';
    position: absolute;
    left: 160px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(20, 53, 60, 0.2) 5%, 
        rgba(20, 53, 60, 0.2) 95%, 
        transparent 100%);
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.6s; }
.timeline-item:nth-child(2) { animation-delay: 0.6s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-year {
    flex-shrink: 0;
    width: 140px;
    font-family: 'PP Editorial', serif;
    font-weight: 500;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--body-text);
    text-align: right;
    padding-right: 1rem;
    position: relative;
}

.timeline-year::after {
    display: none;
}

.timeline-thumbnail {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-image-placeholder {
    width: 32px;
    height: 32px;
    background: rgba(20, 53, 60, 0.1);
    border: 1px solid rgba(20, 53, 60, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Simple scale hover effect for all timeline placeholders */
.timeline-image-placeholder:hover {
    transform: scale(4);
    border-radius: 4px;
    background: rgba(20, 53, 60, 0.15);
    border-color: rgba(20, 53, 60, 0.4);
    box-shadow: 0 8px 24px rgba(20, 53, 60, 0.3);
    z-index: 10;
}

.timeline-image-placeholder:hover span {
    font-size: 20px;
}

/* Timeline image with photo styling */
.timeline-image-placeholder.all-timeline-image {
    background: transparent;
    border: 2px solid rgba(20, 53, 60, 0.3);
    overflow: hidden;
}

.timeline-image-placeholder.all-timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

.timeline-image-placeholder.all-timeline-image:hover {
    transform: scale(4);
    border-radius: 4px;
    border: none;
    box-shadow: 0 8px 24px rgba(20, 53, 60, 0.3);
    z-index: 10;
}

.timeline-image-placeholder.all-timeline-image:hover img {
    border-radius: 2px;
}

.timeline-image-placeholder:hover span {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.timeline-content {
    flex: 1;
    margin-left: 1.5rem;
    padding: 0;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(3px);
}

.timeline-content h3 {
    display: none;
}

.timeline-content p {
    font-family: 'PP Editorial', serif;
    font-weight: 200;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--body-text);
    margin: 0;
    opacity: 1;
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    max-width: 1000px;
    margin: 0 auto;
}

.media-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.2rem;
    position: relative;
}

.media-item {
    background: #fdffee;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}



/* Position tiles in their grid locations */
.media-column .media-item:nth-child(1) {
    grid-area: 1 / 1;
}

.media-column .media-item:nth-child(2) {
    grid-area: 1 / 2;
}

.media-column .media-item:nth-child(3) {
    grid-area: 2 / 1;
}

.media-column .media-item:nth-child(4) {
    grid-area: 2 / 2;
}





/* Rounded corners - external corners 24px, internal corners 6px */
.media-column .media-item:nth-child(1) {
    border-top-left-radius: 24px;
    border-bottom-right-radius: 6px;
}

.media-column .media-item:nth-child(2) {
    border-top-right-radius: 24px;
    border-bottom-left-radius: 6px;
}

.media-column .media-item:nth-child(3) {
    border-bottom-left-radius: 24px;
    border-top-right-radius: 6px;
}

.media-column .media-item:nth-child(4) {
    border-bottom-right-radius: 24px;
    border-top-left-radius: 6px;
}

.media-image {
    width: 100%;
    flex-shrink: 0;
}



.media-item .image-placeholder {
    width: 100%;
    height: 100px;
    border-radius: 0;
    border: none;
    flex-shrink: 0;
}



.media-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.75rem 1rem 0.5rem;
    color: var(--body-text);
    line-height: 1.2;
    flex-shrink: 0;
}

.media-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}



.media-content .media-source {
    color: var(--body-text);
    margin: 0 1rem;
    font-size: 0.8rem;
    opacity: 0.7;
    flex-shrink: 0;
}



.media-content .media-link {
    display: inline-block;
    margin: 0.5rem 1rem 1rem;
    color: var(--body-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    margin-top: auto;
}



.media-content .media-link:hover {
    color: var(--body-text);
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--body-text);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background: var(--body-text);
    opacity: 0.8;
}

.cta-button.secondary {
    background: transparent;
    color: var(--body-text);
    border: 2px solid var(--body-text);
}

.cta-button.secondary:hover {
    background: var(--body-text);
    color: white;
}

/* Footer */
.footer {
    background: var(--body-text);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Top Quote */
.top-quote {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 24px;
    background-color: #fbffe7;
    padding: 20px 0;
    flex-wrap: wrap;
}

.quote-text {
    font-family: 'Angella White', 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #941212;
    letter-spacing: 1px;
    text-align: center;
    margin: 0;
}

.neon-heart {
    filter: drop-shadow(0 0 6px #ff0055) drop-shadow(0 0 12px #ff001e);
    stroke: #ff001e;
    fill: none;
    margin-top: 2px;
}

.solid-heart {
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.solid-heart:hover {
    animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
    }
    14% {
        transform: scale(1.1);
        filter: drop-shadow(0 4px 8px rgba(255, 0, 85, 0.3));
    }
    28% {
        transform: scale(1);
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
    }
    42% {
        transform: scale(1.05);
        filter: drop-shadow(0 3px 6px rgba(255, 0, 85, 0.2));
    }
    70% {
        transform: scale(1);
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
    }
}

/* Responsive Design */

/* Tablet and small desktop */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        gap: 3rem;
        padding: 0 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.2rem;
    }
}

/* Mobile landscape and portrait tablet */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .top-quote {
        flex-direction: column;
        gap: 8px;
        padding: 15px 12px;
    }
    
    .quote-text {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .hero {
        padding: 15px 0 30px;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        transform: translateY(-40px);
        padding: 0 1rem;
    }
    
    .hero-photo {
        width: 180px;
        height: 240px;
        margin: 0 auto;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1.3rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .section h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-item {
        padding: 1rem;
    }
    
    .project-item h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .project-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .timeline {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 2rem;
    }
    
    .timeline-year {
        width: auto;
        text-align: left;
        padding-right: 0;
        margin-bottom: 0.5rem;
        margin-left: 3rem;
        font-size: 1rem;
        font-style: italic;
    }
    
    .timeline-thumbnail {
        margin-left: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .timeline-content {
        margin-left: 3rem;
        margin-top: 0;
        font-size: 0.95rem;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
    }
    
    .media-column {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .top-quote {
        padding: 12px 10px;
    }
    
    .quote-text {
        font-size: 1.5rem;
    }
    
    .hero-content {
        padding: 0 0.5rem;
        transform: translateY(-20px);
    }
    
    .hero-photo {
        width: 150px;
        height: 200px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .section {
        padding: 25px 0;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .project-item {
        padding: 0.8rem;
    }
    
    .project-item h3 {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    .social-links {
        gap: 0.8rem;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .timeline-year {
        font-size: 0.85rem;
        margin-left: 2.5rem;
    }
    
    .timeline-content {
        margin-left: 2.5rem;
        font-size: 0.9rem;
    }
    
    /* Make pulse icon smaller on mobile */
    .project-item h3 svg[style*="animation: pulse"] {
        width: 14px !important;
        height: 14px !important;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .quote-text {
        font-size: 1.3rem;
    }
    
    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section h2 {
        font-size: 1.6rem;
    }
    
    .project-item h3 {
        font-size: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    /* Improve scroll performance on mobile */
    -webkit-overflow-scrolling: touch;
}

/* Focus styles for accessibility and mobile navigation */
a:focus,
button:focus,
input:focus {
    outline: 3px solid #007acc;
    outline-offset: 2px;
    /* Ensure focus is visible on mobile */
    border-radius: 4px;
}

/* Improve tap highlighting on mobile */
* {
    -webkit-tap-highlight-color: rgba(0, 122, 204, 0.2);
}

/* Prevent text selection on mobile for better UX */
.social-link,
.project-link,
button {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.project-item .image-placeholder.shopping-feature {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    border: 2px dashed #4a90e2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-item .image-placeholder.shopping-feature span {
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Pulse animation for current project indicator */
@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
