* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
}

::-webkit-scrollbar {
    display: none;
}

body {
    background-color: #222;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.slide-container {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.slide {
    display: none;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 70px;
    overflow-y: auto;
}

.slide.active {
    display: flex;
}

.slide-content {
    display: flex;
    height: 100%;
    width: 100%;
    flex-direction: row;
}

.text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 20px;
}

.image-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.polaroid-stack {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.polaroid-stack.non-clickable {
    cursor: default;
}

.polaroid {
    position: absolute;
    background-color: white;
    padding: 15px 15px 40px 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    max-width: 80%;
    transform-origin: center center;
    opacity: 1;
}

.polaroid img {
    display: block;
    width: 100%;
    border-radius: 5px;
}

.polaroid.fade-out {
    opacity: 0;
    transform: rotate(0deg) scale(0.8);
}

.polaroid.fade-in {
    opacity: 0;
    transform: rotate(0deg) scale(0.8);
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: rotate(0deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(10deg) translateX(0%) translateY(5%) scale(1);
    }
}

.polaroid:nth-child(1) {
    transform: rotate(8deg) translateX(5%) translateY(-5%) scale(1);
    z-index: 5;
}

.polaroid:nth-child(2) {
    transform: rotate(-5deg) translateX(-10%) translateY(2%) scale(1);
    z-index: 4;
}

.polaroid:nth-child(3) {
    transform: rotate(3deg) translateX(7%) translateY(7%) scale(1);
    z-index: 3;
}

.polaroid:nth-child(4) {
    transform: rotate(-7deg) translateX(-5%) translateY(-8%) scale(1);
    z-index: 2;
}

.polaroid:nth-child(5) {
    transform: rotate(10deg) translateX(0%) translateY(5%) scale(1);
    z-index: 1;
}

.polaroid-stack:hover .polaroid:nth-child(1) {
    transform: rotate(12deg) translateX(15%) translateY(-15%) scale(1);
}

.polaroid-stack:hover .polaroid:nth-child(2) {
    transform: rotate(-10deg) translateX(-20%) translateY(5%) scale(1);
}

.polaroid-stack:hover .polaroid:nth-child(3) {
    transform: rotate(8deg) translateX(20%) translateY(15%) scale(1);
}

.polaroid-stack:hover .polaroid:nth-child(4) {
    transform: rotate(-12deg) translateX(-15%) translateY(-20%) scale(1);
}

.polaroid-stack:hover .polaroid:nth-child(5) {
    transform: rotate(15deg) translateX(5%) translateY(10%) scale(1);
}

.polaroid::after {
    content: attr(data-date);
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Permanent Marker", cursive, sans-serif;
    color: #333;
    font-size: 20px;
    letter-spacing: 0.5px;
    font-weight: 500;
    white-space: nowrap;
}

.polaroid-stack.portrait {
    max-height: 80vh;
}

.polaroid.portrait {
    position: absolute;
    background-color: white;
    padding: 15px 15px 45px 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    max-width: 45%;
    max-height: 70vh;
    transform-origin: center center;
    opacity: 1;
}

.polaroid.portrait img {
    display: block;
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 0;
}

.polaroid.portrait:nth-child(1) {
    transform: rotate(-10deg) scale(1);
    z-index: 5;
}

.polaroid.portrait:nth-child(2) {
    transform: rotate(-6deg) scale(1);
    z-index: 4;
}

.polaroid.portrait:nth-child(3) {
    transform: rotate(-2deg) scale(1);
    z-index: 3;
}

.polaroid.portrait:nth-child(4) {
    transform: rotate(2deg) scale(1);
    z-index: 2;
}

.polaroid.portrait:nth-child(5) {
    transform: rotate(6deg) scale(1);
    z-index: 1;
}

.polaroid-stack:hover .polaroid.portrait:nth-child(1) {
    transform: rotate(-25deg) scale(1);
}

.polaroid-stack:hover .polaroid.portrait:nth-child(2) {
    transform: rotate(-15deg) scale(1);
}

.polaroid-stack:hover .polaroid.portrait:nth-child(3) {
    transform: rotate(-5deg) scale(1);
}

.polaroid-stack:hover .polaroid.portrait:nth-child(4) {
    transform: rotate(5deg) scale(1);
}

.polaroid-stack:hover .polaroid.portrait:nth-child(5) {
    transform: rotate(15deg) scale(1);
}

h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 32px;
    margin-bottom: 20px;
    color: #66ccff;
}

.subtitle.abaswift {
    color: #ace1e6;
}

.subtitle.productivity {
    color: #a1a1f7;
}

.subtitle.gemini {
    color: #5469f0;
}

.subtitle.keyboard {
    color: #6fa8dc;
}

.subtitle.calendar {
    color: #ff6666;
}

.subtitle.minimized {
    color: #66ffe0;
}

p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 800px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tech-tag {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 5px 12px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.tech-tag:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.project-link {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 16px;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.project-link::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid white;
    border-top: 2px solid white;
    transform: rotate(45deg);
    margin-left: 6px;
    opacity: 1;
}

.project-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dock-container {
    display: flex;
    justify-content: center;
    gap: 5px;
    background-color: rgba(60, 60, 60, 0.7);
    border-radius: 35px;
    padding: 12px 16px;
    position: fixed;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    min-width: min-content;
    white-space: nowrap;
    overflow: visible;
    backdrop-filter: blur(10px);
}

.dock-icon-container {
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    margin: 0 2px;
    transition: transform 0.3s ease;
}

.dock-icon-container:hover,
.dock-icon-container.active {
    transform: scale(1.2);
}

.dock-icon {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.dock-icon-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dock-icon-container:hover .dock-icon-hover,
.dock-icon-container.active .dock-icon-hover {
    opacity: 1;
}

.circular-image {
    border-radius: 50%;
    object-fit: cover;
    width: 300px;
    height: 300px;
}

img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

@media (max-width: 1000px) {
    .slide-content {
        flex-direction: column;
    }

    .image-content {
        padding-top: 200px;
        padding-bottom: 450px;
    }

    h1 {
        font-size: 35px;
    }

    .subtitle {
        font-size: 24px;
    }

    .slide {
        padding: 20px 20px 300px 20px;
    }

    .slide-container {
        padding: 20px;
        margin: 10px;
    }

    .polaroid {
        padding: 10px 10px 30px 10px;
        max-width: 70%;
    }

    .polaroid.portrait {
        max-width: 40%;
        padding: 12px 12px 35px 12px;
        max-height: 65vh;
    }

    .polaroid.portrait img {
        max-height: 55vh;
    }
    .polaroid::after,
    .polaroid.portrait::after {
        bottom: 4px;
    }

    .dock-container {
        padding: 12px 16px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        max-width: 85%;
        border-radius: 25px;
        backdrop-filter: blur(10px);
        justify-items: center;
    }

    .dock-icon-container {
        width: 70px;
        height: 70px;
        margin: 0;
    }

    .dock-icon-container:nth-child(5) {
        grid-column: 1 / 3;
        grid-row: 2;
    }
    .dock-icon-container:nth-child(6) {
        grid-column: 2 / 4;
        grid-row: 2;
    }
    .dock-icon-container:nth-child(7) {
        grid-column: 3 / 5;
        grid-row: 2;
    }
}

.clickable-icon {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    cursor: pointer;
    width: 300px;
    height: 300px;
    object-fit: cover;
}

.clickable-icon:hover {
    transform: scale(1.25);
}

body {
    background-color: #222;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    opacity: 0;
    transition: opacity 1s ease;
}

body.loaded {
    opacity: 1;
}
