@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url("https://fonts.googleapis.com/css?family=Overpass:400,800");

* {
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

html, body {
    margin: 0px;
    height: 100%;
}

body {
    overflow-x: hidden;
    transform: scale(1.5);
    transform-origin: 0 0;
    width: 66.67%; /* 100% / 1.5 to compensate for scaling */
    height: 66.67%; /* 100% / 1.5 to compensate for scaling */
}

button:focus-visible {
    outline: 2px solid #4a90e2 !important;
    outline: -webkit-focus-ring-color auto 5px !important;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Shared base styles for all pages */
.index, .duplicate, .ev, .slip {
    background-color: #121212;
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
}

.overlap-group-wrapper {
    background-color: #121212;
    width: 100%;
    max-width: 650px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

.overlap-group {
    width: 100%;
    max-width: 650px;
    min-height: 100vh;
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 20px;
}

.header {
    width: 100%;
    max-width: 360px;
    height: 37px;
    margin: 36px auto 20px auto;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.plus {
    width: 12px;
    height: 12px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    transform: translate(-50%, -50%);
}

.text-wrapper-3 {
    font-family: "Overpass", Helvetica;
    font-weight: 400;
    color: #ffffff;
    font-size: 20px;
    letter-spacing: 0;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    line-height: normal;
    white-space: nowrap;
}

.image-2 {
    width: 141px;
    height: 37px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    object-fit: cover;
    border-radius: 0 !important;
}

.text-wrapper-5 {
    font-family: "Overpass", Helvetica;
    font-weight: 400;
    color: #ffffff;
    font-size: 14px;
    text-align: right;
    letter-spacing: 0;
    line-height: normal;
    position: align-left;
}

.text-and-icons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.text-wrapper-5 {
    font-family: "Overpass", Helvetica;
    font-weight: 400;
    color: #ffffff;
    font-size: 14px;
    text-align: left;
    letter-spacing: 0;
    line-height: normal;
    margin: 0;
}

.icons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
    color: white;
}

.icons a i {
    font-size: 20px !important;
    line-height: 1;
}

.mail {
    width: 20px !important;
    height: 20px !important;
    border-radius: 1px;
    object-fit: cover;
}

.linkedin {
    width: 20px !important;
    height: 20px !important;
    border-radius: 1px;
    object-fit: cover;
}

.pdf {
    width: 20px !important;
    height: 20px !important;
    border-radius: 1px;
    object-fit: fit;
}

.icons a:hover {
    transform: scale(1.1);
}

.title {
	font-family: "Overpass", Helvetica;
    font-weight: 800;
    color: #ffffff;
    font-size: 20px;
    letter-spacing: 0;
    line-height: normal;
    margin: 0 0 20px;
	padding: 20px 40px 20px 40px;
}

/* Shared text styles */
.span {
    font-weight: 800;
}

.text-wrapper-2 {
    font-family: "Overpass", Helvetica;
    font-weight: 400;
    color: #ffffff;
    transition: transform 0.2s ease;
    font-size: 14px;
    letter-spacing: 0;
}

/* All images should be rounded */
img {
    border-radius: 8px;
}

/* Back button styles */
.back-button {
    position: relative;
    top: 15%; 
    left: 0%;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 10;
}

.back-button:hover {
    transform: scale(1.1);
}

.back-arrow {
    width: 20px;
    height: 20px;
}

/* Timeline Container */
.timeline {
    max-width: 650px;
    margin: 40px auto;
    padding: 40px;
    position: relative;
}

/* Timeline Line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: #333;
    transform: translateX(-50%);
}

/* Timeline Item */
.timeline-item {
    position: relative;
    margin: 40px 0;
    width: 100%;
}

/* Timeline Content */
.timeline-content {
    font-family: "Overpass", Helvetica;
    position: relative;
    width: 45%;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Left side items */
.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
    text-align: left;
    margin-left: 10px;
}

/* Right side items */
.timeline-item:nth-child(even) .timeline-content {
    left: 55%;
    text-align: left;
    margin-left: 10px;
}

/* Timeline Dot */
.timeline-dot {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 16px;
    height: 16px;
    background-color: #4a90e2;
    border-radius: 50%;
    transform: translateX(-50%);
    border: 3px solid #000;
    z-index: 1;
}

/* Timeline Date */
.timeline-date {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 8px;
    font-weight: 400;
}

/* Timeline Title */
.timeline-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

/* Timeline Description */
.timeline-description {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.4;
    font-weight: 400;
}

/* More projects styles */
.more-projects {
    width: 100%;
    max-width: 491px;
    margin: 40px auto;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.more-projects .text-wrapper {
    font-family: "Overpass", Helvetica;
    font-weight: 800;
    color: #ffffff;
    font-size: 20px;
    letter-spacing: 0;
    line-height: normal;
    margin-bottom: 20px;
}

.project-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.project-link {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-decoration: none;
    transition: transform 0.2s ease;
    width: 100%;
}

.project-link:hover {
    transform: scale(1.02);
}

.project-text {
    font-family: "Overpass", Helvetica;
    font-weight: 400;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0;
    line-height: normal;
    flex: 1;
    padding-right: 10px;
}

.project-image {
    width: 212px;
    height: 115.64px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Impact card styles */
.card {
    width: 100%;
    max-width: 650px;
    margin: 20px 0;
    padding: 40px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: none;
}

.card .div {
    font-family: "Overpass", Helvetica;
    font-weight: 800;
    color: #ffffff;
    font-size: 20px;
    letter-spacing: 0;
    line-height: normal;
    margin-bottom: 15px;
}

.card .p {
    font-family: "Overpass", Helvetica;
    font-weight: 400;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0;
    line-height: 1.4;
    margin: 8px 0;
}

/* Main image styles */
.pic {
    width: 100%;
    max-width: 491px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 8px;
}

.pic .image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* INDEX PAGE SPECIFIC STYLES */
.index .footer {
    width: 100%;
    max-width: 432px;
    margin: 40px auto;
    background-color: transparent;
    display: flex;
    flex-direction: column;
}

.index .footer .image {
    width: 200px;
    height: 273px;
    object-fit: cover;
}

.index .footer-content {
    display: flex;
    width: 100%;
    align-items: left;
    padding: 5% 0 5% 5%;
}

.index .footer-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 10%;
}

.index .footer .text-wrapper {
    width: 300px;
    height: 100px;
    position: relative;
    left: auto;
    font-family: "Overpass", Helvetica;
    font-weight: 400;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0;
    line-height: normal;
}

.index .footer .div {
    width: fit-content;
    font-family: "Overpass", Helvetica;
    font-weight: 400;
    color: #ffffff;
    font-size: 10px;
    letter-spacing: 0;
    line-height: normal;
    margin-top: 10px;
    text-align: left;
}

.index .main-info-card {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin: 35px auto;
    max-width: 100%;
}

.index .the-road {
	border: none;
	border-radius: 1px;
}

.index .text-description {
    display: flex;
    flex-direction: column;
    width: 179.55px;
    align-items: flex-start;
    gap: 114px;
}

.index .duplicate-payments {
    height: 102.3px;
    font-family: "Overpass", Helvetica;
    font-weight: 400;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0;
    line-height: normal;
}

.index .p {
    height: 105px;
    font-family: "Overpass", Helvetica;
    font-weight: 400;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0;
    line-height: normal;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.index .p:hover {
    transform: scale(1.02);
}

.index .frame {
    display: flex;
    flex-direction: column;
    width: 212px;
    align-items: flex-start;
    gap: 100px;
}

.index .rectangle {
    width: 100%;
    height: 115.64px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.index .rectangle:hover {
    transform: scale(1.02);
}

.index .intro-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 366px;
    align-items: flex-start;
    gap: 46px;
    margin: 20px auto;
}

.index .intro-card .text-wrapper-3 {
    font-family: "Overpass", Helvetica;
    font-weight: 400;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0;
    line-height: normal;
    width: 100%;
}

.index .text-wrapper-4 {
    font-family: "Overpass", Helvetica;
    font-weight: 400;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0;
    line-height: normal;
}

.index .image-2 {
    border-radius: 0 !important;
}

.index .thebottom {
    font-family: "Overpass", Helvetica;
    font-weight: 400;
    color: #ffffff;
    font-size: 10px;
    letter-spacing: 0;
    line-height: 1.4;
    margin: 0px;
    padding: 0 15% 0% 5%;
}

/* Page navigation */
.page {
    display: none;
}

.page.active {
    display: block;
}

.image-overlay.active {
    display: flex;
}

.image-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.image-overlay img:hover {
    transform: scale(1.02);
}

/* Close button */
.close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

.close-button:hover {
    color: #ccc;
}

/* Make project images clickable */
.pic .image {
    cursor: pointer;
    transition: transform 1s ease;
}

/* Mobile responsiveness - V2 */
/* Replace your existing mobile media query with this improved version */

@media (max-width: 720px) {
    /* Remove scaling on mobile for better text readability */
    body {
        transform: none;
        width: 100%;
        height: 100%;
    }
    
    .overlap-group-wrapper {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .overlap-group {
        padding: 15px;
        max-width: 100%;
    }
    
    /* Header adjustments - keep original layout */
    .header {
        max-width: 80%;
        margin: 20px auto 15px auto;
        height: 37px;
    }
    
    .text-wrapper-3 {
        font-size: 14px;
    }
    
    .image-2 {
        width: 100px;
        height: 26px;
    }
    
    /* Intro card improvements */
	.index .p {
    
    /* New clickable indicators */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.index .the-road {
	display: none;
}

/* Subtle gradient overlay to indicate interactivity */
.index .p::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(74, 144, 226, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

/* Active/pressed state for mobile */
.index .p:active {
    transform: translateY(1px);
    background: rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.7);
}

/* Enhanced clickable styles for project images */
.index .rectangle {
    width: 100%;
    height: 115.64px;
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}
	
    .index .intro-card {
        gap: 25px;
        max-width: 100%;
    }
    
    .index .text-wrapper-4 {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .text-and-icons {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .text-wrapper-5 {
        font-size: 14px;
        text-align: left;
    }
    
    .icons {
        gap: 20px;
        justify-content: flex-start;
    }
    
    /* Main content card - remove images, keep text only */
    .index .main-info-card {
        flex-direction: column;
        gap: 20px;
        margin: 25px auto;
        align-items: center;
    }
    
    .index .the-road {
        width: 100%;
        height: 20px;
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .index .text-description {
        width: 100%;
        gap: 30px;
        order: 2;
    }
    
    .index .frame {
        display: none; /* Hide project images on mobile */
    }
    
    .index .p {
        height: auto;
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    
    /* Footer improvements */
    .index .footer {
        max-width: 100%;
        margin: 30px auto;
    }
    
    .index .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 0;
    }
    
    .index .footer .image {
        width: 150px;
        height: 200px;
        margin-bottom: 15px;
    }
    
    .index .footer-text {
        margin-left: 0;
        width: 100%;
    }
    
    .index .footer .text-wrapper {
        width: 100%;
        height: auto;
        font-size: 13px;
        line-height: 1.4;
        text-align: center;
    }
    
    .index .thebottom {
        font-size: 11px;
        text-align: center;
        padding: 10px 0;
        margin-top: 15px;
    }
    
    /* Detail pages improvements */
    .title {
        font-size: 18px;
        padding: 15px 20px;
        text-align: center;
    }
    
    .card {
        padding: 20px;
        margin: 15px 0;
    }
    
    .card .div {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .card .p {
        font-size: 13px;
        line-height: 1.5;
        margin: 10px 0;
    }
    
    /* Timeline mobile optimization */
    .timeline {
        padding: 20px 15px;
        margin: 20px auto;
    }
    
    .timeline::before {
        left: 20px;
        width: 2px;
    }
    
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 40px;
        padding: 15px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        left: 0;
        margin-left: 40px;
    }
    
    .timeline-dot {
        display: block;
        left: 0px;
        transform: none;
        width: 12px;
        height: 12px;
    }
    
    .timeline-date {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .timeline-title {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .timeline-description {
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* Project sections */
    .more-projects {
        margin: 30px auto;
        padding: 0 15px;
    }
    
    .more-projects .text-wrapper {
        font-size: 18px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .project-item {
        flex-direction: column;
        margin-bottom: 25px;
    }
    
    .project-link {
        flex-direction: column;
        gap: 15px;
    }
    
    .project-text {
        font-size: 13px;
        line-height: 1.4;
        padding-right: 0;
        text-align: left;
    }
    
    .project-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Back button */
    .back-button {
        top: 10px;
        left: 10px;
        position: fixed;
        z-index: 100;
        background-color: rgba(0, 0, 0, 0.7);
        padding: 8px;
        border-radius: 50%;
    }
    
    /* Main image adjustments */
    .pic {
        margin: 15px auto;
        max-width: 100%;
    }
    
    .pic .image {
        width: 100%;
        height: auto;
    }
}

/* Additional breakpoint for very small screens */
@media (max-width: 480px) {
    .overlap-group-wrapper {
        padding: 0 10px;
    }
    
    .overlap-group {
        padding: 10px;
    }
    
    .index .text-wrapper-4,
    .text-wrapper-5,
    .card .p {
        font-size: 12px;
    }
    
    .timeline-description {
        font-size: 11px;
    }
}