:root {
    --primary-color: #183c34;
    --secondary-color: #2a5951;
    --text-color: #333333;
    --background-color: #f9f9f9;
    --card-bg: #ffffff;
    --shadow: rgba(24, 60, 52, 0.15);
    --hover-shadow: rgba(24, 60, 52, 0.3);
    --link-hover: #2a5951;
    --border-color: rgba(24, 60, 52, 0.2);
    --highlight-color: #56a699;
}

.dark-mode {
    --primary-color: #183c34;
    --secondary-color: #2a5951;
    --text-color: #e4e4e4;
    --background-color: #121212;
    --card-bg: #1e1e1e;
    --shadow: rgba(0, 0, 0, 0.5);
    --hover-shadow: rgba(0, 0, 0, 0.7);
    --link-hover: #56a699;
    --border-color: rgba(86, 166, 153, 0.3);
    --highlight-color: #56a699;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
    transition: all 0.3s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 650px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0.02;
    z-index: -1;
    animation: pulse 15s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.02;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.05;
    }

    100% {
        transform: scale(1);
        opacity: 0.02;
    }
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px var(--shadow);
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px var(--shadow);
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
    margin-top: 10px;
}

.profile-img-container {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 10px 25px var(--shadow);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transform: scale(1.02);
}

.profile-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    border-top-color: transparent;
    border-right-color: var(--highlight-color);
}

.profile-details {
    text-align: center;
    max-width: 480px;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--highlight-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-bio {
    position: relative;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
    line-height: 1.8;
    overflow: hidden;
}

.tagline-container {
    position: relative;
    height: 30px;
    overflow: hidden;
}

.tagline {
    position: absolute;
    width: 100%;
    height: 30px;
    line-height: 30px;
    opacity: 0;
    transform: translateY(20px);
    text-align: center;
}

.tagline.active {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.copy-section {
    margin-bottom: 40px;
    width: 100%;
    position: relative;
}

.copy-input {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(24, 60, 52, 0.05);
}

.copy-url {
    flex-grow: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-color);
    padding: 0 10px;
    font-size: 1rem;
}

.copy-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.copy-btn:hover {
    background-color: var(--link-hover);
    transform: translateY(-2px);
}

.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

a.link-card {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 5px 15px rgba(24, 60, 52, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--hover-shadow);
    border-color: var(--highlight-color);
}

.link-content {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-grow: 1;
}

.link-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-color);
    border-radius: 12px;
    background-color: rgba(24, 60, 52, 0.08);
    transition: all 0.3s ease;
}

.link-card:hover .link-icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.link-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-color);
}

.link-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-color);
    background-color: var(--background-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.link-btn:hover {
    background-color: rgba(24, 60, 52, 0.08);
    transform: translateY(-2px);
}

.link-url {
    display: none;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 20px 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.popup-icon {
    font-size: 3rem;
    color: var(--highlight-color);
    margin-bottom: 15px;
}

.popup-message {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.popup-url {
    font-size: 0.9rem;
    color: var(--text-color);
    background-color: rgba(24, 60, 52, 0.08);
    padding: 8px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    word-break: break-all;
    max-width: 300px;
}

.popup-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-btn:hover {
    background-color: var(--link-hover);
    transform: translateY(-2px);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

footer {
    margin-top: 50px;
    text-align: center;
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    width: 100%;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.footer-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 2px 5px;
    z-index: 1;
}

.footer-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--highlight-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.footer-link:hover::before {
    transform: scaleX(1);
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom right, rgba(24, 60, 52, 0.05) 0%, transparent 70%),
        radial-gradient(circle at top left, rgba(24, 60, 52, 0.03) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.2;
}

input::placeholder {
    color: var(--text-color);
    opacity: 0.6;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}