/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background spheres */
.background-spheres {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    background: transparent;
    mix-blend-mode: screen;
}

.sphere::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    filter: blur(30px);
}

.sphere-1 {
    width: 500px;
    height: 500px;
    top: -10%;
    right: -10%;
    background: radial-gradient(circle at 30% 30%, #FF6B6B, #4ECDC4);
    animation: float1 25s ease-in-out infinite, colorShift1 15s ease-in-out infinite;
}

.sphere-2 {
    width: 400px;
    height: 400px;
    bottom: -5%;
    left: -5%;
    background: radial-gradient(circle at 70% 70%, #845EC2, #2C73D2);
    animation: float2 20s ease-in-out infinite, colorShift2 12s ease-in-out infinite;
}

.sphere-3 {
    width: 300px;
    height: 300px;
    top: 40%;
    left: 25%;
    background: radial-gradient(circle at 50% 50%, #FF9671, #C34A36);
    animation: float3 15s ease-in-out infinite, colorShift3 18s ease-in-out infinite;
}

.sphere-4 {
    width: 250px;
    height: 250px;
    bottom: 30%;
    right: 25%;
    background: radial-gradient(circle at 40% 60%, #00C9A7, #008B74);
    animation: float4 18s ease-in-out infinite, colorShift4 20s ease-in-out infinite;
}

.sphere-5 {
    width: 350px;
    height: 350px;
    top: 20%;
    right: 15%;
    background: radial-gradient(circle at 60% 40%, #FF61D2, #FE9090);
    animation: float5 22s ease-in-out infinite, colorShift5 16s ease-in-out infinite;
}

.sphere-6 {
    width: 450px;
    height: 450px;
    bottom: 15%;
    left: 10%;
    background: radial-gradient(circle at 45% 55%, #4D8CFE, #2CD9FF);
    animation: float6 24s ease-in-out infinite, colorShift6 14s ease-in-out infinite;
}

@keyframes float1 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    20% {
        transform: translate(25%, 15%) rotate(90deg) scale(1.1);
    }

    40% {
        transform: translate(-20%, 25%) rotate(180deg) scale(0.9);
    }

    60% {
        transform: translate(-25%, -20%) rotate(270deg) scale(1.05);
    }

    80% {
        transform: translate(20%, -25%) rotate(360deg) scale(0.95);
    }

    100% {
        transform: translate(0, 0) rotate(720deg) scale(1);
    }
}

@keyframes float2 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(-30%, 20%) rotate(-90deg) scale(1.15);
    }

    50% {
        transform: translate(25%, 30%) rotate(-180deg) scale(0.95);
    }

    75% {
        transform: translate(30%, -25%) rotate(-270deg) scale(1.1);
    }

    100% {
        transform: translate(0, 0) rotate(-360deg) scale(1);
    }
}

@keyframes float3 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(25%, -25%) scale(1.1) rotate(120deg);
    }

    66% {
        transform: translate(-25%, 20%) scale(0.9) rotate(240deg);
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
    }
}

@keyframes float4 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    30% {
        transform: translate(-20%, -30%) scale(0.9) rotate(-120deg);
    }

    60% {
        transform: translate(30%, 20%) scale(1.1) rotate(-240deg);
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(-360deg);
    }
}

@keyframes float5 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    25% {
        transform: translate(35%, 15%) scale(1.05) rotate(90deg);
    }

    50% {
        transform: translate(15%, -35%) scale(0.95) rotate(180deg);
    }

    75% {
        transform: translate(-35%, -15%) scale(1.05) rotate(270deg);
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
    }
}

@keyframes float6 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    20% {
        transform: translate(-25%, 35%) scale(1.1) rotate(-90deg);
    }

    40% {
        transform: translate(35%, 25%) scale(0.9) rotate(-180deg);
    }

    60% {
        transform: translate(25%, -35%) scale(1.05) rotate(-270deg);
    }

    80% {
        transform: translate(-35%, -25%) scale(0.95) rotate(-360deg);
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(-720deg);
    }
}

@keyframes colorShift1 {

    0%,
    100% {
        filter: blur(60px) hue-rotate(0deg);
    }

    50% {
        filter: blur(60px) hue-rotate(45deg);
    }
}

@keyframes colorShift2 {

    0%,
    100% {
        filter: blur(60px) hue-rotate(0deg);
    }

    50% {
        filter: blur(60px) hue-rotate(-45deg);
    }
}

@keyframes colorShift3 {

    0%,
    100% {
        filter: blur(60px) hue-rotate(0deg);
    }

    50% {
        filter: blur(60px) hue-rotate(30deg);
    }
}

@keyframes colorShift4 {

    0%,
    100% {
        filter: blur(60px) hue-rotate(0deg);
    }

    50% {
        filter: blur(60px) hue-rotate(-30deg);
    }
}

@keyframes colorShift5 {

    0%,
    100% {
        filter: blur(60px) hue-rotate(0deg);
    }

    50% {
        filter: blur(60px) hue-rotate(60deg);
    }
}

@keyframes colorShift6 {

    0%,
    100% {
        filter: blur(60px) hue-rotate(0deg);
    }

    50% {
        filter: blur(60px) hue-rotate(-60deg);
    }
}

/* Container styles */
.container {
    width: 100%;
    max-width: 1000px;
    min-width: 900px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Profile card styles */
.profile-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: fit-content;
}

.profile-card::before,
.social-card::before,
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.05) 25%,
            transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-hover::before {
    opacity: 1;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Profile image styles */
.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 30px auto 20px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

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

/* Text styles */
h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.profile-info {
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.text-container {
    text-align: left;
    max-width: 600px;
    width: 100%;
    height: 100%;
    padding: 0 10px;
}

.profile-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #fff 0%, #b3b3b3 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.location {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
    z-index: 1;
}

.location i {
    color: #4ECDC4;
    font-size: 0.8rem;
}

.location span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
}

.location-flag {
    font-size: 0.8rem;
}

.location:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.bio {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.passion {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.0rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.typing-container {
    margin-bottom: 30px;
    min-height: 60px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.typing-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    text-align: left;
    line-height: 1.6;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 100%;
}

.cursor {
    display: inline-block;
    width: 2px;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Social links styles */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
}

.social-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* About section styles */
.about-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-top: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.about-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.static-info {
    margin-bottom: 30px;
    text-align: center;
}

.static-info h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #b3b3b3 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.location {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.about-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 20px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.dynamic-text {
    position: relative;
    display: inline-block;
    color: #4ECDC4;
    font-weight: 500;
}

/* Source code link styles */
.source-code-link {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.source-code-link:hover {
    opacity: 1;
}

.source-code-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.source-code-link a:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.source-code-link i {
    font-size: 0.9em;
}

@keyframes wave {
    0% {
        transform: rotate(-10deg) scale(1.2);
    }

    50% {
        transform: rotate(10deg) scale(1.2);
    }

    100% {
        transform: rotate(-10deg) scale(1.2);
    }
}

.project-link .source-text {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    opacity: 0.7;
}

.project-link .source-text::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.project-link:hover .source-text::before {
    width: 100%;
}

.project-link .source-text i {
    font-size: 0.9em;
    margin-right: 4px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 0;
        background-size: 300% 300%;
        overflow-x: hidden;
    }

    .container {
        padding: 20px;
        margin: 0 auto;
        width: 90%;
        max-width: 400px;
        min-width: unset;
        display: flex;
        align-items: center;
        height: 80vh;
    }

    .profile-card {
        height: 100%;
        max-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .profile-info {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .profile-card {
        padding: 30px 20px;
        margin-bottom: 20px;
        width: 100%;
    }

    .dynamic-text {
        color: #27625e;
    }

    h1 {
        font-size: 1.8rem;
    }

    .location {
        top: 15px;
        right: 15px;
        padding: 4px 10px;
        font-size: 0.9rem;
    }

    .location i {
        font-size: 0.8rem;
    }

    .location span {
        font-size: 0.9rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .social-card {
        padding: 20px;
        width: 100%;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .social-button {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .typing-container {
        min-height: 160px;
        margin: 15px auto 20px;
    }

    .typing-text {
        font-size: 0.95rem;
        max-width: 280px;
        margin: 0 auto;
        gap: 12px;
    }

    /* Adjust sphere positions for mobile */
    .sphere {
        transform-origin: center center;
    }

    .sphere-1 {
        top: 5%;
        right: -20%;
    }

    .sphere-2 {
        bottom: 5%;
        left: -20%;
    }

    .sphere-3 {
        top: 30%;
        left: 10%;
    }

    .sphere-4 {
        bottom: 20%;
        right: 10%;
    }

    .sphere-5 {
        top: 15%;
        right: 5%;
    }

    .sphere-6 {
        bottom: 10%;
        left: 5%;
    }

    .project-link {
        bottom: 20px;
        font-size: 0.85rem;
        width: 100%;
        padding: 0 20px;
    }

    .project-link .source-text {
        font-size: 0.85rem;
    }

    .project-link .source-text i {
        font-size: 0.85em;
    }

    .project-link a::after {
        width: 90%;
        white-space: normal;
        text-align: center;
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

/* Small mobile devices */
@media (max-width: 360px) {
    body {
        padding: 30px 0;
    }

    .container {
        padding: 15px;
        width: 95%;
    }

    h1 {
        font-size: 1.5rem;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .profile-card,
    .social-card {
        padding: 20px 15px;
    }

    .social-button {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .about-text {
        max-width: 240px;
        font-size: 0.95rem;
    }
}