@import url('https://fonts.googleapis.com/css2?family=Maven+Pro:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Maven Pro', sans-serif;
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Animated background elements */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(87, 109, 90, 0.03) 0%, transparent 70%);
    animation: float-bg 20s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(126, 153, 138, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-circle 15s ease-in-out infinite reverse;
    z-index: -1;
    pointer-events: none;
}

/* Additional floating shapes */
.bg-shape-1 {
    position: fixed;
    top: 20%;
    left: -5%;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, rgba(87, 109, 90, 0.02), rgba(126, 153, 138, 0.03));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph-float 18s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

.bg-shape-2 {
    position: fixed;
    bottom: 15%;
    right: -8%;
    width: 200px;
    height: 120px;
    background: rgba(126, 153, 138, 0.025);
    border-radius: 50% 20% 80% 40%;
    animation: drift-rotate 22s linear infinite;
    z-index: -1;
    pointer-events: none;
}

.bg-shape-3 {
    position: fixed;
    top: 60%;
    left: -10%;
    width: 80px;
    height: 80px;
    background: rgba(87, 109, 90, 0.03);
    transform: rotate(45deg);
    animation: square-dance 25s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

.bg-shape-4 {
    position: fixed;
    top: 80%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: radial-gradient(ellipse, rgba(126, 153, 138, 0.02) 0%, transparent 70%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: wobble-float 20s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

/* Floating dots */
.bg-dots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.bg-dots::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 20%;
    width: 4px;
    height: 4px;
    background: rgba(87, 109, 90, 0.1);
    border-radius: 50%;
    box-shadow: 
        20px 15px 0 rgba(126, 153, 138, 0.08),
        -15px 25px 0 rgba(87, 109, 90, 0.06),
        30px -10px 0 rgba(126, 153, 138, 0.07),
        -25px -20px 0 rgba(87, 109, 90, 0.05);
    animation: dots-float 12s ease-in-out infinite;
}

.bg-dots::after {
    content: '';
    position: absolute;
    bottom: 25%;
    right: 15%;
    width: 3px;
    height: 3px;
    background: rgba(126, 153, 138, 0.08);
    border-radius: 50%;
    box-shadow: 
        -30px 20px 0 rgba(87, 109, 90, 0.06),
        15px -25px 0 rgba(126, 153, 138, 0.07),
        -20px -15px 0 rgba(87, 109, 90, 0.05),
        25px 10px 0 rgba(126, 153, 138, 0.06);
    animation: dots-float 15s ease-in-out infinite reverse;
}

@keyframes float-bg {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes float-circle {
    0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
    33% { transform: translateY(-30px) translateX(-20px) scale(1.1); }
    66% { transform: translateY(20px) translateX(15px) scale(0.9); }
}

@keyframes morph-float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% { 
        transform: translateY(-20px) rotate(90deg);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% { 
        transform: translateY(10px) rotate(180deg);
        border-radius: 40% 60% 60% 40% / 60% 40% 30% 70%;
    }
    75% { 
        transform: translateY(-15px) rotate(270deg);
        border-radius: 70% 30% 40% 60% / 30% 70% 60% 40%;
    }
}

@keyframes drift-rotate {
    0% { transform: translateX(0px) translateY(0px) rotate(0deg); }
    25% { transform: translateX(-30px) translateY(-20px) rotate(90deg); }
    50% { transform: translateX(-10px) translateY(25px) rotate(180deg); }
    75% { transform: translateX(20px) translateY(-10px) rotate(270deg); }
    100% { transform: translateX(0px) translateY(0px) rotate(360deg); }
}

@keyframes square-dance {
    0%, 100% { transform: translateY(0px) rotate(45deg) scale(1); }
    33% { transform: translateY(-25px) rotate(135deg) scale(1.2); }
    66% { transform: translateY(15px) rotate(225deg) scale(0.8); }
}

@keyframes wobble-float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% { 
        transform: translateY(-35px) rotate(180deg) scale(1.1);
        border-radius: 30% 60% 70% 40% / 40% 70% 30% 60%;
    }
}

@keyframes dots-float {
    0%, 100% { transform: translateY(0px); opacity: 1; }
    50% { transform: translateY(-20px); opacity: 0.6; }
}

.container {
    max-width: 480px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-section {
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.name {
    font-family: 'Urbanist', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.tagline {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.location {
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.link-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px 28px;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(87, 109, 90, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(126, 153, 138, 0.2), transparent);
    transition: left 0.6s ease;
}

.link-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(87, 109, 90, 0.05) 0%, transparent 50%, rgba(126, 153, 138, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.link-item:hover::before {
    left: 100%;
}

.link-item:hover::after {
    opacity: 1;
}

.link-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 25px 50px rgba(87, 109, 90, 0.15), 0 0 30px rgba(126, 153, 138, 0.1);
    border-color: rgba(87, 109, 90, 0.3);
    background: rgba(255, 255, 255, 0.98);
}

.link-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #7e998a, #576d5a);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(87, 109, 90, 0.2);
    position: relative;
    overflow: hidden;
}

.link-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.link-item:hover .link-icon {
    transform: scale(1.15) rotateY(15deg) rotateX(5deg);
    box-shadow: 0 10px 30px rgba(87, 109, 90, 0.4);
    background: linear-gradient(135deg, #8db89e, #6a7d6d);
}

.link-item:hover .link-icon::before {
    transform: translateX(100%) rotate(45deg);
}

.link-content {
    flex: 1;
    text-align: left;
}

.link-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
}

.link-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7e998a, #576d5a);
    transition: width 0.4s ease;
}

.link-item:hover .link-title {
    color: #576d5a;
    transform: translateX(3px);
}

.link-item:hover .link-title::after {
    width: 100%;
}

.link-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.link-item:hover .link-description {
    color: #555;
    transform: translateX(3px);
}

.link-arrow {
    color: #999;
    font-size: 16px;
    transition: all 0.3s ease;
}

.link-item:hover .link-arrow {
    color: #576d5a;
    transform: translateX(5px);
}

.footer {
    margin-top: 40px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.footer-text {
    font-size: 12px;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .name {
        font-size: 28px;
    }

    .link-item {
        padding: 18px 20px;
    }

    .link-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .link-title {
        font-size: 16px;
    }

    .link-description {
        font-size: 13px;
    }
}

/* Special styling for main portfolio link */
.main-link {
    background: linear-gradient(135deg, rgba(126, 153, 138, 0.1), rgba(87, 109, 90, 0.1));
    border: 2px solid rgba(87, 109, 90, 0.2);
}

.main-link:hover {
    background: linear-gradient(135deg, rgba(126, 153, 138, 0.15), rgba(87, 109, 90, 0.15));
    border-color: rgba(87, 109, 90, 0.3);
}

.main-link .link-title {
    color: #576d5a;
    font-weight: 700;
}