/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    background: #f8fafc;
    color: #23272f;
    margin: 0;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    scroll-snap-type: y mandatory;
}

h1, h3 {
    letter-spacing: 2px;
}

section {
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 16px rgba(60,72,88,0.07);
    padding: 24px 20px;
    margin-bottom: 32px;
}

.centered-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-left: 4vw;
    padding-right: 4vw;
    box-sizing: border-box;
    width: 100%;
    opacity: 0;
    transform: translateY(40px);
    /* animation moved to effects.css */
}

.main-name {
    font-size: 10rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 1.2rem;
    color: #23272f;
    text-align: center;
    line-height: 1.1;
    display: flex;
    justify-content: center;
    align-items: center;
    word-break: break-word;
}

.subtitle {
    font-size: 1.35rem;
    font-weight: 400;
    color: #4a4a4a;
    letter-spacing: 1px;
    margin: 0;
    text-align: center;
    word-break: break-word;
}

.about-section {
    background: #f3f4f6;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(60,72,88,0.04);
    padding: 2.5rem 2rem 2rem 2rem;
    margin: 0 auto 40px 0;
    max-width: 520px;
    margin-top: 40px;
    margin-left: 5vw;
    opacity: 0;
    transform: translateX(-40px);
    /* animation moved to effects.css */
}

.about-section-hero {
    position: relative;
    width: 100%;
    min-height: 320px;
    margin: 120px 0 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.about-bg {
    background: #e5e7eb;
    min-height: 320px;
    box-shadow: 0 8px 40px 0 rgba(60,72,88,0.10);
    border-radius: 32px;
    margin-top: 80px;
    margin-bottom: 0;
    width: 80vw;
    max-width: 900px;
    position: relative;
    left: 0;
    opacity: 0;
    transform: translateY(60px);
    /* animation moved to effects.css */
    display: flex;
    align-items: flex-start;
}

.about-bg-text {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 11vw;
    font-weight: 700;
    color: #ededed;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    line-height: 1;
    z-index: 1;
    user-select: none;
    pointer-events: none;
    width: 100%;
    text-align: left;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-60px);
    /* transition moved to effects.css */
}

.about-foreground {
    position: relative;
    z-index: 2;
    margin-left: 8vw;
    margin-bottom: 1vw;
    margin-top: 5vw;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    padding-right: 4vw;
}

.about-foreground-custom {
    margin-left: 0 !important;
    max-width: 600px;
    margin-top: 4vw;
}

.about-foreground-text {
    font-size: 2.2rem;
    color: #23272f;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
    text-align: left;
    background: transparent;
    max-width: 100%;
    width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.about-foreground-text-custom {
    font-size: 1.1rem;
    text-align: left;
    width: 100%;
}

.about-content {
    padding: 3rem 2.5rem 2.5rem 3.5rem;
    max-width: 600px;
}

.about-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #23272f;
    margin-bottom: 1.2rem;
    letter-spacing: 1.5px;
    margin-left: 0;
}

.about-text {
    font-size: 1.15rem;
    color: #23272f;
    line-height: 1.7;
    margin: 0;
    text-align: left;
}

.intro-text {
    font-size: 1.35rem;
    color: #23272f;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: 0;
}

.about-me-slide {
    background: #f3f4f6;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(60,72,88,0.04);
    padding: 2.5rem 2rem 2rem 2.5rem;
    max-width: 700px;
    margin-left: 0;
    opacity: 0;
    transform: translateY(60px);
    /* animation moved to effects.css */
}

.project-section {
    width: 100%;
    margin-top: 120px;
    margin-bottom: 120px;
    position: relative;
}

.project-row {
    display: flex;
    align-items: flex-start;
    width: 90vw;
    max-width: 1400px;
    min-height: 400px;
    gap: 30px;
    margin: 0 auto;
}
.project-info {
    flex: 1 1 0;
    min-width: 260px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #fff;
    z-index: 2;
    height: fit-content;
}

.project-swipe-mask {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.project-line {
    position: relative;
    display: inline-block;
    overflow: hidden;   
}

.project-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #23272f;
    line-height: 1.1;
}

.project-meta {
    font-size: 1.1rem;
    font-weight: 600;
    color: #23272f;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.project-desc {
    font-size: 1.3rem;
    color: #23272f;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
    text-align: left;
    max-width: 480px;
}

.project-images-carousel {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-height: 600px;
    overflow-y: auto;
}

.project-image {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    position: relative;
}

.project-image img {
    width: 180px;
    max-width: 90vw;
    border-radius: 2.5rem;
    box-shadow: 0 8px 40px 0 rgba(60,72,88,0.10);
    background: #fff;
    display: block;
    margin-bottom: 2rem;
    cursor: pointer;
}

/* Center the SKILLS and CONTACT icons vertically over the background text */
.skills-section-hero,
.contact-section-hero {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.skills-foreground,
.contact-foreground {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 3vw;
    z-index: 2;
    width: auto;
    justify-content: center;
}

.skills-foreground img,
.contact-foreground img,
#skills-carousel img {
    max-width: 110px !important;
    height: 110px !important;
    min-width: 110px !important;
    min-height: 110px !important;
    padding: 0.5rem;
    background: #fff;
    box-shadow: 0 2px 12px rgba(60,72,88,0.10);
    border-radius: 1.5rem;
}

#skills-carousel img {
    margin-right: 2rem;
}
#skills-carousel img:last-child {
    margin-right: 0;
}

/* Suggested code change */
.img-overlay-label {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    background: rgba(255,255,255,0.93);
    color: #23272f;
    padding: 0.18em 1.3em 0.18em 1.3em;
    border-radius: 2em;
    font-size: 1.45rem;
    font-family: 'Caveat', cursive, sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0.97;
    pointer-events: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    z-index: 3;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    display: flex;
    align-items: center;
    gap: 0.7em;
    white-space: nowrap;
    border: 2px solid #e0e0e0;
}
.project-image a:hover .img-overlay-label,
.project-image a:focus .img-overlay-label {
    background: #007bff;
    color: #fff;
    box-shadow: 0 4px 18px rgba(0,123,255,0.13);
    border-color: #007bff;
    opacity: 1;
}
.img-overlay-label .arrow {
    font-size: 1.5em;
    margin-left: 0.2em;
    font-family: inherit;
    display: inline-block;
    transform: translateY(2px) rotate(-10deg);
}
@media (max-width: 900px) {
    .img-overlay-label {
        opacity: 1;
        background: #fff;
        color: #23272f;
    }
}

/* Suggested code change */
.img-handwritten-label {
    font-family: 'Caveat', cursive, sans-serif;
    font-size: 1.45rem;
    color: #23272f;
    margin-top: 0.2em;
    margin-bottom: 0.8em;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-block;
    line-height: 1.1;
    text-align: center;
    width: 100%;
    user-select: none;
    pointer-events: none;
}
.img-handwritten-label .arrow-up {
    font-size: 1.5em;
    margin-left: 0.2em;
    display: inline-block;
    transform: rotate(-25deg) translateY(2px);
    color: #007bff;
}

/* Responsive */
@media (max-width: 1200px) {
    .main-name {
        font-size: 6rem;
    }
    .subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 900px) {
    .project-row {
        flex-direction: column;
        gap: 40px;
        min-height: 0;
    }
    .project-title {
        font-size: 2.5rem;
    }
    .project-desc {
        font-size: 1.1rem;
    }
    .project-image img {
        width: 180px;
    }
    .about-bg {
        width: 96vw;
        border-radius: 18px;
        left: 0;
    }
    .about-content {
        padding: 2rem 1rem 1.5rem 1.5rem;
    }
    .about-title {
        font-size: 2rem;
    }
    .about-text {
        font-size: 1.05rem;
    }
    .about-bg_text {
        font-size: 14vw;
    }
    .about-foreground {
        margin-left: 0;
        margin-top: 2vw;
        max-width: 100%;
    }
    .about-foreground-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .main-name {
        font-size: 3.2rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .about-content {
        padding: 2rem 1rem 1.5rem 1rem;
    }
    .about-title {
        font-size: 2rem;
    }
    .about-text {
        font-size: 1.05rem;
        margin-left: 0.5rem;
    }
    .about-bg {
        border-radius: 18px;
    }
}

@media (max-width: 600px) {
    .about-bg-text {
        font-size: 12vw;
    }
    .skills-foreground img,
    .contact-foreground img {
        max-width: 60px;
    }
}

.about-section,
.project-info {
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.project-info,
.project-swipe-mask {
    background: none !important;
    box-shadow: none !important;
}

.full-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 8vh;
    padding-bottom: 8vh;
    scroll-snap-align: start;
}

.project-tag {
  display: block;
  font-size: 1.2rem;
  color: #444;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}