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

* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    margin: 0;
    padding: 0;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    font-family: 'Inter', sans-serif;
}

/* Subtle animated background particles */
body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.05), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.03), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: float 20s infinite linear;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-200px, -200px);
    }
}

.circle {
    position: absolute;
    background-image: url('img/avatar.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    box-shadow:
        0 0 30px 10px rgba(255, 255, 255, 0.15),
        0 0 60px 20px rgba(138, 43, 226, 0.1),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.2);
    animation: pulse 4s ease-in-out infinite;
}

.circle:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 40px 15px rgba(255, 255, 255, 0.2),
        0 0 80px 30px rgba(138, 43, 226, 0.15),
        inset 0 0 30px rgba(255, 255, 255, 0.15);
}

.slice {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile */
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    /* Soft separation borders */
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.02),
        0 0 0 0.5px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.slice-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(1) brightness(0.3) contrast(1.2);
    opacity: 0.7;
    /* Optimize for performance */
    will-change: filter, opacity;
}

.slice:hover .slice-video {
    filter: grayscale(0) brightness(0.8) contrast(1.1);
    opacity: 1;
}

.slice-content {
    position: relative;
    z-index: 2;
    /* Remove background and backdrop-filter for floating effect */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slice:hover {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    transform: scale(1.01);
    /* Enhanced borders on hover */
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        inset 0 0 30px rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.1);
}

.slice:hover .slice-content {
    /* Remove background on hover too */
    transform: scale(1.02);
}

/* New elegant label styling */
.concept-main {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 255, 255, 0.3);
}

.concept-sub {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.8px;
    opacity: 0.85;
    font-style: italic;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.7),
        0 0 10px rgba(255, 255, 255, 0.2);
}

/* Small phones (375px and up) */
@media (min-width: 375px) {
    .concept-main {
        font-size: 2.0rem;
        letter-spacing: 2.5px;
        margin-bottom: 0.4rem;
    }

    .concept-sub {
        font-size: 1.0rem;
        letter-spacing: 1px;
    }
}

/* Large phones (480px and up) */
@media (min-width: 480px) {
    .concept-main {
        font-size: 2.2rem;
        letter-spacing: 2.5px;
        margin-bottom: 0.4rem;
    }

    .concept-sub {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
}

/* Tablets (640px and up) - still mobile layout */
@media (min-width: 640px) {
    .concept-main {
        font-size: 2.4rem;
        letter-spacing: 3px;
        margin-bottom: 0.5rem;
    }

    .concept-sub {
        font-size: 1.2rem;
        letter-spacing: 1.2px;
    }

    .slice {
        font-size: 1.8rem;
        font-weight: 600;
    }
}

/* Large tablets (768px and up) - still mobile layout */
@media (min-width: 768px) {
    .concept-main {
        font-size: 2.6rem;
        letter-spacing: 3px;
        margin-bottom: 0.5rem;
    }

    .concept-sub {
        font-size: 1.25rem;
        letter-spacing: 1.3px;
    }

    .slice {
        font-size: 1.8rem;
    }
}

/* Desktop (1000px and up) - same rectangular layout, larger fonts */
@media (min-width: 1000px) {
    .concept-main {
        font-size: 3.0rem;
        letter-spacing: 4px;
        margin-bottom: 0.7rem;
    }

    .concept-sub {
        font-size: 1.3rem;
        letter-spacing: 1.5px;
    }

    .slice {
        font-size: 2.0rem;
    }
}

/* Large desktops (1200px and up) */
@media (min-width: 1200px) {
    .concept-main {
        font-size: 3.2rem;
        letter-spacing: 4px;
        margin-bottom: 0.7rem;
    }

    .concept-sub {
        font-size: 1.4rem;
        letter-spacing: 1.5px;
    }

    .slice {
        font-size: 2.2rem;
    }
}

/* Enhanced hover effects for floating labels */
.slice:hover .concept-main {
    text-shadow:
        0 3px 8px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.slice:hover .concept-sub {
    opacity: 1;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(255, 255, 255, 0.4);
}

/* top */
.slice-active.slice-top {
    top: 0;
    left: 0;
    width: 100vw;
    height: 50vh;
    height: 50dvh;
    /* Dynamic viewport height for mobile */
    /* Soft bottom separation */
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.02),
        0 1px 0 rgba(255, 255, 255, 0.05),
        0 -1px 0 rgba(255, 255, 255, 0.03);
}

/* left */
.slice-active.slice-left {
    top: 50%;
    left: 0;
    width: 50vw;
    height: 50vh;
    height: 50dvh;
    /* Dynamic viewport height for mobile */
    /* Soft right separation */
    border-right: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.02),
        1px 0 0 rgba(255, 255, 255, 0.05),
        -1px 0 0 rgba(255, 255, 255, 0.03);
}

/* right */
.slice-active.slice-right {
    top: 50%;
    left: 50%;
    width: 50vw;
    height: 50vh;
    height: 50dvh;
    /* Dynamic viewport height for mobile */
    /* Soft left separation */
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.02),
        -1px 0 0 rgba(255, 255, 255, 0.05),
        1px 0 0 rgba(255, 255, 255, 0.03);
}

/* bottom */
.slice-active.slice-bottom {
    top: unset;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 50px;
    /* Increased height for better mobile visibility */
    /* Soft top separation */
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.02),
        0 -1px 0 rgba(255, 255, 255, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Enhanced text styling for sections */
.section-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.section-content.vertical {
    flex-direction: column;
    gap: 0.5rem;
}

.section-content i {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Smooth entrance animation */
.slice {
    opacity: 0;
    transform: scale(0.8);
}

.slice-active {
    opacity: 1;
    transform: scale(1);
}

/* Pulse animation for the avatar */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.quote {
    font-style: italic;
    font-weight: 300;
    font-size: 1.1rem;
    font-family: 'Inter', serif;
    opacity: 0.7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Social links styling */
.bottom-layout {
    display: flex;
    flex-direction: row;
    /* Always horizontal on mobile */
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

/* Hide quote on mobile, show only links */
.quote {
    display: none;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    /* Slightly smaller for mobile */
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.social-links:hover {
    opacity: 0.9;
}

.social-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.social-link:hover {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.separator {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    font-size: 0.8rem;
}

/* Responsive bottom layout */
@media (min-width: 640px) {
    .bottom-layout {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 800px;
        gap: 2rem;
    }

    /* Show quote on desktop */
    .quote {
        display: block;
        font-style: italic;
        font-weight: 300;
        font-size: 1.4rem;
        font-family: 'Inter', serif;
        opacity: 0.7;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .social-links {
        font-size: 1rem;
        gap: 1rem;
        opacity: 0.5;
    }
}

@media (min-width: 1000px) {
    .social-links {
        font-size: 1.1rem;
    }
}