/* Fonts */
@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 400;
    src: local('Lora Regular'), local('Lora-Regular'), local('Times New Roman');
}
@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 500;
    src: local('Lora Medium'), local('Lora-Medium'), local('Times New Roman');
}
@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 600;
    src: local('Lora SemiBold'), local('Lora-SemiBold'), local('Times New Roman Bold');
}
@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 700;
    src: local('Lora Bold'), local('Lora-Bold'), local('Times New Roman Bold');
}
@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 300;
    src: local('Nunito Sans Light'), local('NunitoSans-Light'), local('Arial');
}
@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 400;
    src: local('Nunito Sans Regular'), local('NunitoSans-Regular'), local('Arial');
}
@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 600;
    src: local('Nunito Sans SemiBold'), local('NunitoSans-SemiBold'), local('Arial Bold');
}
@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 700;
    src: local('Nunito Sans Bold'), local('NunitoSans-Bold'), local('Arial Bold');
}

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

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

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

html {
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
    position: relative;
    overflow-x: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.cover-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.scrollable-content {
    position: relative;
    z-index: 3;
    margin-top: 100vh;
    background-color: transparent;
    min-height: 200vh;
    margin-bottom: 0;
    flex: 1;
}

#home {
    background-color: transparent;
    position: relative;
    z-index: 1;
}

#experience {
    background-color: #FFFFFF;
    position: relative;
    z-index: 3;
}

#blog {
    background-color: #FFFFFF;
    position: relative;
    z-index: 3;
}

#research, #projects, #contact {
    background-color: #E6F2F5;
    position: relative;
    z-index: 3;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    margin-bottom: 1rem;
    color: #333333;
}

a {
    color: #B0E0E6;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #87CEEB;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    font-size: 2.5rem;
}



.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #B0E0E6;
    margin: 0.5rem auto;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #333333;
    font-weight: 600;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #B0E0E6;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #333333;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Home Section */
#home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
    padding: 0;
    position: relative;
}

.avatar-container {
    text-align: center;
    margin-bottom: 1rem;
}

.avatar {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 40% top;
    border: none;
}

.profile-img {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    will-change: transform;
    transform: translateZ(0);
    pointer-events: none;
    backface-visibility: hidden;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.typewriter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 2;
    padding: 0 2rem;
    padding-top: 20vh;
    will-change: transform;
    pointer-events: auto;
    backface-visibility: hidden;
    transform: translate3d(0,0,0);
    -webkit-transform: translate3d(0,0,0);
    -moz-transform: translate3d(0,0,0);
    -ms-transform: translate3d(0,0,0);
    -o-transform: translate3d(0,0,0);
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
    -moz-perspective: 1000px;
    -ms-perspective: 1000px;
    -o-perspective: 1000px;
    touch-action: auto; 
}

.typewriter-overlay .title {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 100%;
    max-width: 90%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 0;
    width: 100%;
    min-height: 100vh;
    position: relative;
    background-color: rgba(255, 255, 255, 0.5);
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.home-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
}

.home-left, .home-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-right {
    margin-left: 5rem;
    align-items: flex-start;
}

.name {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    position: relative;
}

.research-area {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
    text-align: left;
    font-style: italic;
    line-height: 1.4;
}

.bubbles-container {
    position: relative;
    width: 100%;
    height: 150px;
    margin-top: 10px;
}

.bubble {
    position: absolute;
    background-color: rgba(176, 224, 230, 0.8);
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
    text-align: center;
    padding: 5px;
    line-height: 1.2;
    word-break: break-word;
    z-index: 5;
}

.bubble:nth-child(1) {
    width: 85px;
    height: 85px;
    top: -45px;
    left: 280px;
    animation-delay: 0s;
    background-color: rgba(255, 182, 193, 0.8);
    font-size: 1rem;
}

.bubble:nth-child(2) {
    width: 105px;
    height: 105px;
    top: -65px;
    left: 360px;
    animation-delay: 0.5s;
    background-color: rgba(216, 191, 216, 0.8);
    font-size: 1rem;
}

.bubble:nth-child(3) {
    width: 105px;
    height: 105px;
    top: 20px;
    left: 320px;
    animation-delay: 1s;
    background-color: rgba(173, 216, 230, 0.8);
    font-size: 0.9rem;
}

.bubble:nth-child(4) {
    width: 110px;
    height: 110px;
    top: 10px;
    left: 420px;
    animation-delay: 1.5s;
    background-color: rgba(144, 238, 144, 0.8);
    font-size: 0.9rem;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.title {
    font-size: 3.5rem;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: left;
    min-height: 2.5em; 
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.typewriter-text {
    position: relative;
    white-space: nowrap;
    min-height: 1em;
    line-height: 1.5em;
    display: inline-block;
    font-family: "Fira Code", "Consolas", "Courier New", monospace;
    max-width: 100%;
    overflow: hidden;
    transform: translate3d(0,0,0);
    -webkit-transform: translate3d(0,0,0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    -o-backface-visibility: hidden;
    will-change: transform;
}

.typewriter-text::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1em;
    margin-left: 2px;
    background-color: #B0E0E6;
    vertical-align: middle;
    animation: blink-caret 1s step-end infinite;
    position: relative;
    top: 0;
    transform: translate3d(0,0,0);
    -webkit-transform: translate3d(0,0,0);
    -moz-transform: translate3d(0,0,0);
    -ms-transform: translate3d(0,0,0);
    -o-transform: translate3d(0,0,0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    -o-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
    -moz-perspective: 1000px;
    -ms-perspective: 1000px;
    -o-perspective: 1000px;
    will-change: opacity;
}

@keyframes blink-caret {
    from, to { background-color: transparent; }
    50% { background-color: #B0E0E6; }
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.5rem;
    color: #333333;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #B0E0E6;
}

/* Research Section */
.publication {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: transform 0.3s ease;
}

.publication:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.publication-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.publication-authors {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.publication-venue {
    color: #666;
    margin-bottom: 1rem;
}

.publication-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.publication-links a {
    padding: 0.3rem 0.8rem;
    background-color: #B0E0E6;
    color: #333333;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.publication-links a:hover {
    background-color: #87CEEB;
}

/* Experience Section */
.experience-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.experience-section {
    flex: 1;
    min-width: 300px;
}

.subsection-title {
    text-align: left;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-family: 'Lora', serif;
    color: #333333;
    position: relative;
    padding-bottom: 0.5rem;
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #B0E0E6;
}

.timeline {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #B0E0E6;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #FFFFFF;
    border: 4px solid #B0E0E6;
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content-with-image {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    gap: 1.5rem;
    align-items: center;
}

/* 四川大学布局 - 图片在文字上方，与edu2保持一致 */
.edu1-layout {
    flex-direction: column;
    align-items: center;
}

/* 匹兹堡大学布局 - 图片在专业文字上方 */
.edu2-layout .timeline-text {
    display: flex;
    flex-direction: column;
}

.timeline-item:nth-child(odd) .timeline-content-with-image {
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content-with-image {
    text-align: left;
}

/* 不再需要特殊调整奇数项的edu1布局 */

.timeline-content-with-image .timeline-text {
    width: 100%;
}

.timeline-content-with-image .timeline-image {
    max-width: 80%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

/* 四川大学图片 - 放大并放在文字上方 */
.edu1-image {
    max-width: 200px;
    order: -1;
    margin-bottom: 1rem;
    margin-top: 0;
}

/* 匹兹堡大学图片 - 放大并放在文字上方 */
.edu2-image {
    max-width: 200px;
    order: -1;
    margin-bottom: 1rem;
}

.timeline-date {
    color: #4682B4;
    font-weight: 600;
}

.timeline-title {
    margin: 0.5rem 0;
}

.timeline-description {
    color: #666;
}

.timeline-description i {
    color: #4682B4;
    width: 20px;
    margin-right: 8px;
    text-align: center;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 320px;
}

.project-card-link {
    text-decoration: none; 
    color: inherit;
}

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

.coming-soon {
    position: relative;
    pointer-events: none;
}
.coming-soon .project-img {
    height: 100%;
}
.coming-soon::after {
    content: "Coming Soon";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    opacity: 1;
    border-radius: 8px;
}

.project-img {
    width: 100%;
    height: 66%;
    object-fit: cover;
}

.project-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    height: 34%;
    text-align: center;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    padding: 0;
    text-align: center;
}

.project-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.project-description {
    padding: 0;
    color: #666;
    font-size: 0.9rem;
    text-align: left;
    word-break: break-word;
}

.blog-content {
    margin-top: 30px;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blog-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    font-style: italic;
}

/* Contact Section */
.contact-image-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.contact-content-overlay {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 2rem;
    width: 40%;
    max-width: 500px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(3px);
    z-index: 5;
    text-align: left;
}

.contact-title {
    color: #333;
    margin-bottom: 1.5rem;
    position: relative;
}

.contact-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 3px;
    background-color: #B0E0E6;
}

.contact-content {
    max-width: 100%;
    margin: 0;
    text-align: left;
}

.contact-text {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

.contact-email {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4682B4;
    margin: 0.5rem 0;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: #B0E0E6;
}

.contact-img {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    filter: brightness(1.1) contrast(1.1);
}

.snowflake {
    position: absolute;
    color: #fff;
    opacity: 0.9;
    animation: fall 5s linear forwards, melt 2s linear 5s forwards;
    pointer-events: none;
    z-index: 2;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

@keyframes fall {
    from { transform: translateY(0) rotate(0deg); }
    to { transform: translateY(100vh) rotate(360deg); }
}

@keyframes melt {
    from { opacity: 0.9; }
    to { opacity: 0; }
}

.snowflake.small {
    font-size: 10px;
    animation-duration: 7s;
}

.snowflake.medium {
    font-size: 20px;
    animation-duration: 5s;
}

.snowflake.large {
    font-size: 30px;
    animation-duration: 6s;
}

/* Footer */
footer {
    text-align: center;
    padding: 0 0 2rem 0;
    border-top: none;
    color: #666;
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #B0E0E6;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: none;
    outline: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
}
.back-to-top:hover {
    transform: translateY(-4px);
    opacity: 0.9;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .navbar-container {
        padding: 1rem;
    }
    
    .bubbles-container {
        height: 170px;
        margin-top: 10px;
        width: 320px;
    }
    
    .bubble:nth-child(1) {
        width: 75px;
        height: 75px;
        top: 20px;
        left: 40px;
    }
    
    .bubble:nth-child(2) {
        width: 95px;
        height: 95px;
        top: 0px;
        left: 120px;
    }
    
    .bubble:nth-child(3) {
        width: 95px;
        height: 95px;
        top: 60px;
        left: 60px;
        font-size: 0.8rem;
    }
    
    .bubble:nth-child(4) {
        width: 90px;
        height: 90px;
        top: 50px;
        left: 160px;
        font-size: 0.8rem;
    }

    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background-color: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        width: 100%;
        text-align: center;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger.active div:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .profile-img {
        height: 100vh;
    }
    
    .typewriter-overlay .title {
        font-size: 2.2rem;
        max-width: 95%;
        padding: 0 0.5rem;
    }
    
    .home-content {
        padding: 30px 0;
    }
    
    .home-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .home-right {
        align-items: center;
        margin-left: 0;
        text-align: center;
    }
    
    .research-area {
        text-align: center;
        padding: 0 15px;
    }

    .experience-container {
        flex-direction: column;
    }
    
    .experience-section {
        width: 100%;
        margin-bottom: 3rem;
    }
    
    .subsection-title {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }
    
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(odd) {
        text-align: left;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 21px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .contact-image-container {
        min-height: 100vh;
    }
    
    .contact-img {
        min-height: 100vh;
    }
    
    .contact-content-overlay {
        width: 60%;
        padding: 1.5rem;
        right: 5%;
    }
}

@media screen and (max-width: 480px) {
    .name {
        font-size: 2rem;
    }
    
    .title {
        font-size: 2.0rem;
    }
    
    .typewriter-overlay .title {
        font-size: 1.8rem;
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .home-content {
        padding: 20px 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-image-container {
        min-height: 100vh;
    }
    
    .contact-img {
        min-height: 100vh;
    }
    
    .contact-content-overlay {
        width: 85%;
        padding: 1rem;
        top: 50%;
        right: 50%;
        transform: translate(50%, -50%);
    }
    
    .contact-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-email {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 768px) {
    .typewriter-text {
        white-space: normal;
        word-break: break-word;
    }
}