/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0f0f23;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ANIMATED BACKGROUND */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: -2;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(94, 53, 177, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    animation: slowRotate 30s linear infinite;
}

@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* CONTAINER */
.container {
    width: 100%;
    height: 100vh;
    max-width: 1200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

/* PROFILE SECTION */
.profile-section {
    text-align: center;
    margin-bottom: 20px;
}

.profile-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
}

#picture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(94, 53, 177, 0.5);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

#picture:hover {
    transform: scale(1.05);
}

.profile-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5e35b1, #3b82f6);
    opacity: 0.6;
    filter: blur(10px);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.name {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    min-height: 30px;
}

.typewrite > .wrap {
    border-right: 2px solid #3b82f6;
    padding-right: 5px;
}

/* LINKS CONTAINER */
.links-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.link-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* LINK BUTTONS */
.link-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(94, 53, 177, 0.1), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.link-btn:hover::before {
    opacity: 1;
}

.link-btn:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.link-btn img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.link-btn span {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

/* Platform-specific hover colors */
.link-btn.linkedin:hover { box-shadow: 0 10px 30px rgba(0, 119, 181, 0.4); }
.link-btn.github:hover { box-shadow: 0 10px 30px rgba(88, 166, 255, 0.4); }
.link-btn.google:hover { box-shadow: 0 10px 30px rgba(66, 133, 244, 0.4); }
.link-btn.instagram:hover { box-shadow: 0 10px 30px rgba(225, 48, 108, 0.4); }
.link-btn.whatsapp:hover { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); }
.link-btn.gmail:hover { box-shadow: 0 10px 30px rgba(234, 67, 53, 0.4); }

/* ACTION BUTTONS */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.action-btn {
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.action-btn.primary {
    background: linear-gradient(135deg, #5e35b1, #3b82f6);
    color: white;
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(94, 53, 177, 0.4);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* TABLET RESPONSIVE */
@media (max-width: 768px) {
    .container {
        gap: 25px;
        padding: 15px;
    }

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

    .name {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .link-group {
        gap: 12px;
    }

    .link-btn {
        padding: 15px 10px;
    }

    .link-btn img {
        width: 32px;
        height: 32px;
    }

    .link-btn span {
        font-size: 0.8rem;
    }

    .action-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* MOBILE RESPONSIVE */
@media (max-width: 480px) {
    .container {
        gap: 20px;
    }

    .profile-wrapper {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }

    .name {
        font-size: 1.6rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .link-group {
        gap: 10px;
    }

    .link-btn {
        padding: 12px 8px;
        border-radius: 12px;
    }

    .link-btn img {
        width: 28px;
        height: 28px;
    }

    .link-btn span {
        font-size: 0.7rem;
    }

    .action-buttons {
        gap: 10px;
    }

    .action-btn {
        padding: 11px 16px;
        font-size: 0.85rem;
    }
}

/* SMALL MOBILE */
@media (max-width: 360px) {
    .profile-wrapper {
        width: 90px;
        height: 90px;
    }

    .name {
        font-size: 1.4rem;
    }

    .tagline {
        font-size: 0.85rem;
    }

    .link-btn {
        padding: 10px 6px;
    }

    .link-btn img {
        width: 24px;
        height: 24px;
    }

    .link-btn span {
        font-size: 0.65rem;
    }

    .action-btn {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
}

/* LANDSCAPE MODE */
@media (max-height: 600px) and (orientation: landscape) {
    .container {
        flex-direction: row;
        gap: 30px;
        max-width: 100%;
    }

    .profile-section {
        flex: 0 0 auto;
        margin-bottom: 0;
    }

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

    .name {
        font-size: 1.6rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .links-container {
        flex: 1;
        max-width: 600px;
    }

    .link-btn {
        padding: 12px 8px;
    }

    .link-btn img {
        width: 28px;
        height: 28px;
    }

    .link-btn span {
        font-size: 0.75rem;
    }
}
